/*
 * Page sections from the Velmora patterns: full-width bands, section heads, the hero, the call-to-action
 * band, the brands grid, the pinned steps, the lookbook strip, the dark feature and the booking card.
 * Loaded on the front end and in the block editor.
 */

/* Full-width bands. Neighbouring bands meet without a gap; each one carries its own vertical rhythm. */
.vlm-panel {
	padding-block: var(--wp--preset--spacing--80);
}

:is(.entry-content, .is-root-container) > .vlm-panel {
	margin-block: 0;
}

.vlm-panel--rule {
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.vlm-panel > :first-child {
	margin-block-start: 0;
}

.vlm-panel > :last-child {
	margin-block-end: 0;
}

/* Text on Charcoal. */
.vlm-dark {
	color: var(--wp--preset--color--surface);
	background-color: var(--wp--preset--color--deep);
}

.vlm-dark :is(h1, h2, h3, h4) {
	color: var(--wp--preset--color--surface);
}

.vlm-dark p:not(.vlm-eyebrow) {
	color: rgb(255 255 255 / 0.7);
}

.vlm-dark .vlm-eyebrow {
	color: var(--wp--preset--color--deep-muted);
}

.vlm-dark a:not(.vlm-button, .wp-block-button__link) {
	color: inherit;
}

.vlm-dark :focus-visible {
	outline-color: var(--wp--preset--color--surface);
}

/* Outline buttons on Charcoal and over photographs. */
:is(.vlm-dark, .vlm-hero) .vlm-button--secondary,
:is(.vlm-dark, .vlm-hero) .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff;
	background: transparent;
	border-color: rgb(255 255 255 / 0.6);
}

:is(.vlm-dark, .vlm-hero) .vlm-button--secondary:hover,
:is(.vlm-dark, .vlm-hero) .wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border-color: #fff;
}

/* Buttons that point onward carry an arrow. */
.vlm-arrow .wp-block-button__link::after,
.vlm-button.vlm-arrow::after {
	margin-inline-start: 0.625rem;
	content: "→" / "";
	transition: transform var(--wp--custom--transition);
	display: inline-block;
}

.vlm-arrow .wp-block-button__link:hover::after,
.vlm-button.vlm-arrow:hover::after {
	transform: translateX(3px);
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.125rem;
	padding-block: 0;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	padding-block: 0;
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}

.vlm-button--small .wp-block-button__link {
	min-height: 2.5rem;
	padding-inline: 1.125rem;
	font-size: 0.875rem;
}

/* Section head: label and heading on the left, a short introduction on the right. */
.vlm-head {
	display: grid;
	gap: 1.5rem;
	margin-block-end: clamp(2.5rem, 4vw, 3.5rem);
}

.vlm-head > * {
	margin: 0;
}

.vlm-head h2 {
	margin: 0;
}

.vlm-head__intro {
	max-width: 26rem;
	color: var(--wp--preset--color--muted);
}

@media (min-width: 64em) {
	.vlm-head {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: end;
		column-gap: var(--wp--preset--spacing--60);
	}

	.vlm-head__intro {
		padding-block-end: 0.5rem;
	}
}

.vlm-head--center {
	justify-items: center;
	text-align: center;
}

@media (min-width: 64em) {
	.vlm-head--center {
		grid-template-columns: minmax(0, 1fr);
	}
}

.vlm-head--center h2 {
	max-width: 38rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.vlm-head--center .vlm-head__intro {
	max-width: 35rem;
}

/* Hero: a full-screen photograph, the text aligned with the page container near its foot. */
.vlm-hero.wp-block-cover {
	align-items: flex-end;
	padding-block: calc(var(--vlm-header-h) + var(--wp--preset--spacing--60)) clamp(3rem, 7vh, 4.5rem);
	color: #fff;
}

.vlm-hero::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgb(20 18 15 / 0.55) 0%, rgb(20 18 15 / 0.25) 55%, rgb(20 18 15 / 0) 100%);
	content: "";
	pointer-events: none;
}

/* Matches core's content-position selector, which otherwise shrinks the text box and pins it left. */
.vlm-hero.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	z-index: 2;
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

/* Core's constrained layout centres children with !important margins; the hero text stays left-aligned. */
.vlm-hero .wp-block-cover__inner-container > * {
	max-width: 56rem;
	margin-inline: 0 !important;
}

.vlm-hero .vlm-eyebrow {
	margin-block-end: 1.5rem;
	color: rgb(255 255 255 / 0.7);
}

.vlm-hero h1 {
	margin-block: 0 1.75rem;
	color: #fff;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 500;
	line-height: 1.02;
}

.vlm-hero p:not(.vlm-eyebrow) {
	max-width: 36rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.5;
}

.vlm-hero .wp-block-buttons {
	gap: 1rem;
	margin-block-start: 2.5rem;
}

.vlm-hero .wp-block-button__link {
	min-height: 3.625rem;
	padding-inline: 1.75rem;
	font-size: 1rem;
}

.vlm-hero a:not(.wp-block-button__link, .vlm-button) {
	color: inherit;
}

.vlm-hero :focus-visible {
	outline-color: #fff;
}

/* Call-to-action band on Charcoal, with fine diagonal rules to the right. */
.vlm-cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 5rem;
}

.vlm-cta-band::before {
	position: absolute;
	inset: 0 0 0 55%;
	z-index: -1;
	background: repeating-linear-gradient(115deg, transparent 0 5.5rem, rgb(255 255 255 / 0.07) 5.5rem calc(5.5rem + 1px));
	content: "";
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
	mask-image: linear-gradient(90deg, transparent, #000 45%);
	pointer-events: none;
}

.vlm-cta-band__inner {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.vlm-cta-band__inner > * {
	margin: 0;
}

@media (min-width: 64em) {
	.vlm-cta-band__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--wp--preset--spacing--70);
	}
}

.vlm-cta-band .vlm-eyebrow {
	color: rgb(246 241 233 / 0.6);
}

.vlm-cta-band h2 {
	margin-block: 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
}

.vlm-cta-band h2 + p {
	max-width: 40rem;
	margin: 0;
	font-size: 1.0625rem;
}

/* The band's main action: a large Bone pill with a round Forest arrow. */
.vlm-cta-band .vlm-actions .vlm-button:first-child {
	gap: 1.25rem;
	min-height: 4.5rem;
	padding: 0.875rem 0.875rem 0.875rem 1.75rem;
	color: #fff;
	font-size: 1.0625rem;
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.vlm-cta-band .vlm-actions .vlm-button:first-child:hover {
	background: var(--wp--preset--color--accent-deep);
	border-color: var(--wp--preset--color--accent-deep);
}

.vlm-cta-band .vlm-actions .vlm-button:first-child::after {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--wp--preset--color--accent);
	background: #fff;
	border-radius: 50%;
	content: "→" / "";
	transition: transform var(--wp--custom--transition);
}

.vlm-cta-band .vlm-actions .vlm-button:first-child:hover::after {
	transform: translateX(3px);
}

/* Brands: centred heading, then one bordered cell per brand name. */
.vlm-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid var(--wp--preset--color--line);
	border-inline-start: 1px solid var(--wp--preset--color--line);
}

.vlm-brand-grid li {
	display: grid;
	place-items: center;
	min-height: 6.75rem;
	margin: 0;
	padding: 1rem;
	border-block-end: 1px solid var(--wp--preset--color--line);
	border-inline-end: 1px solid var(--wp--preset--color--line);
}

.vlm-brand-grid a {
	color: var(--wp--preset--color--contrast);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-align: center;
}

.vlm-brand-grid a:hover {
	color: var(--wp--preset--color--accent);
}

.vlm-note-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-block-start: clamp(2.5rem, 4vw, 3.5rem);
}

.vlm-note-row > * {
	margin: 0;
}

.vlm-note-row > p {
	max-width: 35rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

.vlm-note-row strong {
	color: var(--wp--preset--color--contrast);
}

/* How it works: steps beside a photograph. With scripts and a wide screen the section pins and the steps
   advance as the page scrolls (one photograph per step when there are enough); otherwise it is a list.
   Inactive steps fade with opacity only, so screen readers still read every step in order. */
.vlm-how__stage {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.vlm-how__steps {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.vlm-how__step > * {
	margin: 0;
}

.vlm-how__count {
	margin-block-end: 1rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--vlm-label-size);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.vlm-how__step h3 {
	margin-block: 0 1.25rem;
	font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.vlm-how__step p:not(.vlm-how__count) {
	max-width: 26rem;
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
}

.vlm-how__media {
	display: grid;
	margin: 0;
}

.vlm-how__media > * {
	grid-area: 1 / 1;
	margin: 0;
}

.vlm-how__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

/* Unpinned, only the first photograph is shown. */
.vlm-how__media > :not(:first-child) {
	display: none;
}

.vlm-how__progress {
	display: none;
}

@media (min-width: 64em) {
	.vlm-how__stage {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		column-gap: var(--wp--preset--spacing--70);
	}

	/* svh: the height with Safari's toolbars showing, so the pinned stage never runs under them on iPad. */
	.vlm-how.is-pinned {
		height: calc(var(--vlm-how-steps, 4) * 60vh + 40vh);
		height: calc(var(--vlm-how-steps, 4) * 60svh + 40svh);
	}

	.vlm-how.is-pinned .vlm-how__stage {
		position: -webkit-sticky;
		position: sticky;
		top: calc(var(--vlm-header-h) + var(--vlm-admin-bar));
		height: calc(100vh - var(--vlm-header-h) - var(--vlm-admin-bar));
		height: calc(100svh - var(--vlm-header-h) - var(--vlm-admin-bar));
		max-height: 56rem;
	}

	.vlm-how.is-pinned .vlm-how__steps {
		gap: 0;
	}

	.vlm-how.is-pinned .vlm-how__step {
		grid-area: 1 / 1;
		opacity: 0;
		transform: translateY(1rem);
		transition: opacity 0.5s ease, transform 0.6s var(--vlm-ease);
	}

	.vlm-how.is-pinned .vlm-how__step.is-active {
		opacity: 1;
		transform: none;
	}

	.vlm-how.is-pinned .vlm-how__progress {
		display: grid;
		grid-area: 2 / 1;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 0.375rem;
		max-width: 35rem;
		margin-block-start: 1.75rem;
	}

	.vlm-how__progress span {
		height: 2px;
		background: var(--wp--preset--color--line);
		transition: background-color 0.4s ease;
	}

	.vlm-how__progress span.is-done {
		background: var(--wp--preset--color--accent);
	}

	/* Photographs fill a frame the height of the pinned stage, cropped to fit. */
	.vlm-how.is-pinned .vlm-how__media {
		position: relative;
		display: block;
		height: 100%;
		max-height: 48.75rem;
	}

	.vlm-how.is-pinned .vlm-how__media > * {
		position: absolute;
		inset: 1rem 0 2rem;
		display: block;
		opacity: 0;
		transition: opacity 0.6s ease;
	}

	.vlm-how.is-pinned .vlm-how__media img {
		width: 100%;
		height: 100%;
	}

	.vlm-how.is-pinned .vlm-how__media > .is-active {
		opacity: 1;
	}

	.vlm-how.is-pinned .vlm-how__media img {
		aspect-ratio: auto;
	}
}

/* Lookbook: a sideways strip of photographs that runs to the right edge of the screen. */
.vlm-lookbook {
	overflow-x: clip;
}

/* The strip spans the screen; its first photograph lines up with the page container. */
.vlm-lookbook__track.wp-block-gallery.has-nested-images {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	margin-inline: calc(50% - 50vw);
	padding-block: 1.875rem 0.5rem;
	padding-inline: calc(50vw - 50%);
	overflow-x: auto;
	scroll-padding-inline: calc(50vw - 50%);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.vlm-lookbook__track::-webkit-scrollbar {
	display: none;
}

/* With the script, the photographs repeat on both sides and every stop centres one photograph on the screen,
   with its neighbours showing equally either side. The low/high rhythm follows each photograph, not its slot. */
.vlm-lookbook__track.is-looped.wp-block-gallery.has-nested-images {
	padding-inline: 0;
	scroll-padding-inline: 0;
}

.vlm-lookbook__track.is-looped.has-nested-images figure.wp-block-image:not(#individual-image) {
	margin-block-start: 0;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.vlm-lookbook__track.is-looped.has-nested-images figure.wp-block-image.is-low:not(#individual-image) {
	margin-block-start: 1.875rem;
}

.vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image) {
	position: relative;
	flex: 0 0 min(78vw, 23.75rem);
	width: auto;
	aspect-ratio: 19 / 24;
	margin: 0;
	scroll-snap-align: start;
}

/* Alternate photographs sit lower, as on a contact sheet. */
.vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(odd) {
	margin-block-start: 1.875rem;
}

.vlm-lookbook__track.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

.vlm-lookbook__track.has-nested-images figure.wp-block-image:has(figcaption)::before {
	position: absolute;
	inset: 40% 0 0;
	z-index: 1;
	height: auto;
	max-height: none;
	background: linear-gradient(180deg, rgb(20 18 15 / 0), rgb(20 18 15 / 0.78));
	border-radius: 0 0 var(--wp--custom--radius) var(--wp--custom--radius);
	content: "";
	backdrop-filter: none;
	-webkit-mask-image: none;
	mask-image: none;
}

.vlm-lookbook__track.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	max-height: none;
	margin: 0;
	padding: 1.25rem;
	overflow: visible;
	color: #fff;
	font-size: 1.375rem;
	line-height: 1.3;
	text-align: start;
	text-shadow: none;
	background: none;
}

/* The second line of a caption (the suburb) sits under the title in small type. */
.vlm-lookbook__track figcaption em {
	display: block;
	margin-block-start: 0.375rem;
	font-size: 0.8125rem;
	font-style: normal;
	opacity: 0.85;
}

.vlm-lookbook__actions {
	justify-content: center;
	margin-block-start: clamp(2.5rem, 4vw, 3.125rem);
}

.vlm-lookbook.is-pinned .vlm-lookbook__track {
	scroll-snap-type: none;
}

/* Pinned, the whole photographs and the button below them must fit the screen: on shorter screens the
   photographs are a little smaller, and the heading may sit above the top edge while the strip moves. */
.vlm-lookbook.is-pinned .vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-basis: min(23.75rem, calc((100vh - 21rem) * 19 / 24));
}

.vlm-lookbook.is-pinned {
	height: var(--vlm-lookbook-height, calc(100vh + var(--vlm-lookbook-distance, 0px)));
	padding-block: 0;
}

.vlm-lookbook.is-pinned > .vlm-lookbook__stage {
	position: sticky;
	top: var(--vlm-lookbook-top, calc(var(--vlm-header-h) + var(--vlm-admin-bar)));
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--vlm-header-h) - var(--vlm-admin-bar));
	padding-block: var(--wp--preset--spacing--60);
}

/* Dark feature: text beside a photograph, on Charcoal. */
.vlm-feature .wp-block-media-text {
	gap: var(--wp--preset--spacing--70);
}

.vlm-feature .wp-block-media-text__content {
	padding: 0;
}

.vlm-feature .wp-block-media-text__content > :first-child {
	margin-block-start: 0;
}

.vlm-feature .wp-block-media-text__media img {
	aspect-ratio: 13 / 10;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

.vlm-feature h2 {
	margin-block: 0 1.5rem;
}

.vlm-feature .wp-block-buttons {
	margin-block-start: 2rem;
}

/* Booking: numbered steps, then the request form in a card. */
.vlm-numbered {
	display: grid;
	gap: 1.5rem;
	margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
	padding: 0;
	list-style: none;
	counter-reset: vlm-step;
}

.vlm-numbered li {
	position: relative;
	margin: 0;
	padding-inline-start: 3.875rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	counter-increment: vlm-step;
}

.vlm-numbered li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.125rem;
	background: var(--wp--preset--color--accent-soft);
	border-radius: 50%;
	content: counter(vlm-step);
}

.vlm-numbered strong {
	display: block;
	margin-block-end: 0.25rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.25rem;
	font-weight: 400;
}

/* Booking: the steps beside the request form. */
.vlm-booking {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.vlm-booking > * {
	margin: 0;
}

@media (min-width: 64em) {
	.vlm-booking {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		column-gap: var(--wp--preset--spacing--70);
	}
}

.vlm-card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
}

.vlm-card > :first-child {
	margin-block-start: 0;
}

.vlm-card > :last-child {
	margin-block-end: 0;
}

@media (prefers-reduced-motion: reduce) {
	.vlm-how.is-pinned .vlm-how__step,
	.vlm-how.is-pinned .vlm-how__media > * {
		transition: none;
	}
}

/* Bands saved with the earlier, wider content size line up with the page container. */
.vlm-band.is-layout-constrained > * {
	max-width: var(--wp--style--global--wide-size);
}

/* Responsive refinements. */

/* Hero heading: scales with the screen's width and, on short screens, its height too, so the label,
   heading, introduction and buttons always fit in the first view (110px at most, 40px at least). */
.vlm-hero h1 {
	max-width: 16ch;
	font-size: clamp(2.25rem, min(1.25rem + 4vw, (100svh - 26rem) / 3.4), 4.75rem);
	text-wrap: balance;
}

/* Home hero heading on first load: the words rise into place one after another as a soft blur clears,
   then a red underline draws under the closing words. The words never start fully transparent, so the
   heading still paints in the first frame (it is the page's largest content). Words wrapped in inc/blocks.php. */
@media (prefers-reduced-motion: no-preference) {
	.vlm-hero-title .vlm-word {
		display: inline-block;
		animation: vlm-word-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
		animation-delay: calc(var(--vlm-word, 0) * 70ms + 120ms);
	}

	.vlm-hero-title em {
		position: relative;
		display: inline-block;
	}

	.vlm-hero-title em::after {
		position: absolute;
		right: 0;
		bottom: -0.04em;
		left: 0;
		height: 0.06em;
		background: var(--wp--preset--color--accent);
		border-radius: 1em;
		transform: scaleX(0);
		transform-origin: left center;
		animation: vlm-underline-draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.15s forwards;
		content: "";
	}
}

/* Then the introduction and the buttons rise in after the heading. They start almost (never fully)
   transparent: on phones the introduction is the page's largest content. "backwards" fill only, so the
   buttons' own hover effects work once they have landed. */
@media (prefers-reduced-motion: no-preference) {
	.vlm-hero:has(.vlm-hero-title) p:not(.vlm-eyebrow) {
		animation: vlm-hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s backwards;
	}

	.vlm-hero:has(.vlm-hero-title) .wp-block-button {
		animation: vlm-hero-rise-soft 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1s backwards;
	}

	.vlm-hero:has(.vlm-hero-title) .wp-block-button + .wp-block-button {
		animation-delay: 1.15s;
	}
}

@keyframes vlm-hero-rise {
	from {
		opacity: 0.02;
		filter: blur(8px);
		transform: translateY(1.25rem);
	}
}

@keyframes vlm-hero-rise-soft {
	from {
		opacity: 0.02;
		transform: translateY(1.25rem) scale(0.96);
	}
}

@keyframes vlm-word-rise {
	from {
		opacity: 0.02;
		filter: blur(10px);
		transform: translateY(0.55em) rotate(2deg);
	}

	to {
		opacity: 1;
		filter: blur(0);
		transform: none;
	}
}

@keyframes vlm-underline-draw {
	to {
		transform: scaleX(1);
	}
}

/* Short screens (laptops, phones in landscape): tighter spacing around the hero text. */
@media (max-height: 50em) {
	.vlm-hero .vlm-eyebrow {
		margin-block-end: 0.875rem;
	}

	.vlm-hero h1 {
		margin-block-end: 1rem;
	}

	.vlm-hero .wp-block-buttons {
		margin-block-start: 1.5rem;
	}

	.vlm-hero .wp-block-button__link {
		min-height: 3.125rem;
	}

	.vlm-hero.wp-block-cover {
		padding-block-end: 2rem;
	}
}

/* The cover block sets an inline 100vh; the small-viewport unit keeps phones from jumping as the URL bar hides. */
.vlm-hero.wp-block-cover {
	min-height: 100svh !important;
}

/* Phones: the hero buttons and the call-to-action button run the full width, one above the other. */
@media (max-width: 35.9375em) {
	.vlm-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.vlm-hero .wp-block-button,
	.vlm-hero .wp-block-button__link {
		width: 100%;
	}

	.vlm-cta-band .vlm-actions,
	.vlm-cta-band .vlm-actions .vlm-button:first-child {
		width: 100%;
	}

	.vlm-cta-band .vlm-actions .vlm-button:first-child {
		justify-content: space-between;
		min-height: 4.5rem;
		padding-block: 0.875rem;
	}

	.vlm-note-row .wp-block-buttons,
	.vlm-note-row .wp-block-button,
	.vlm-note-row .wp-block-button__link,
	.vlm-lookbook__actions .wp-block-button,
	.vlm-lookbook__actions .wp-block-button__link,
	.vlm-feature .wp-block-button,
	.vlm-feature .wp-block-button__link {
		width: 100%;
	}
}

/* The floating "Got a question?" note would sit over content on narrower screens. */
@media (max-width: 63.9375em) {
	.vlm-contact__teaser {
		display: none !important;
	}
}

/* Tablets: the steps form a two-column grid with one photograph beneath. */
@media (min-width: 48em) and (max-width: 63.9375em) {
	.vlm-how__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--60);
	}

	.vlm-how__step h3 {
		font-size: 2rem;
	}

	.vlm-how__media img {
		aspect-ratio: 16 / 9;
	}
}

/* Section heads: the introduction sits under the heading until there is room beside it. */
@media (max-width: 63.9375em) {
	.vlm-head__intro {
		max-width: 36rem;
	}
}

/* Trust: the reviews block sits under its section head. */
.vlm-trust .vlm-reviews {
	margin-block-start: 0;
}

/* Service area: one card, a tall photograph with a floating "Our base" marker whose pin sends out a slow
   pulse, beside the heading, a "check your suburb" box (added by sections.js) and the suburbs as pills.
   Faint red rings radiate from the card's corner like a service radius. */
.vlm-area {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
	padding: clamp(0.875rem, 2vw, 1.25rem);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
}

.vlm-area::before {
	position: absolute;
	right: -14rem;
	bottom: -14rem;
	z-index: -1;
	width: 40rem;
	aspect-ratio: 1;
	background: repeating-radial-gradient(circle, transparent 0 2.4rem, rgb(200 32 47 / 0.1) 2.4rem calc(2.4rem + 1px));
	-webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
	mask-image: radial-gradient(circle, #000 20%, transparent 70%);
	pointer-events: none;
	content: "";
}

.vlm-area > * {
	margin: 0;
}

@media (min-width: 64em) {
	.vlm-area {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

.vlm-area__media {
	position: relative;
	margin: 0;
}

.vlm-area .wp-block-image,
.vlm-area .wp-block-image img {
	display: block;
	width: 100%;
	margin: 0;
}

.vlm-area .wp-block-image img {
	aspect-ratio: 16 / 11;
	object-fit: cover;
	border-radius: 18px;
}

@media (min-width: 64em) {
	.vlm-area .wp-block-image img {
		aspect-ratio: 4 / 5;
		max-height: 36rem;
	}
}

/* "Our base": a white marker on the photograph. */
.vlm-area__base {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	display: grid;
	grid-template-columns: auto auto;
	column-gap: 0.875rem;
	align-items: center;
	margin: 0;
	padding: 0.75rem 1.25rem 0.75rem 0.75rem;
	background: rgb(255 255 255 / 0.94);
	border-radius: 16px;
	box-shadow: 0 16px 32px -16px rgb(20 18 15 / 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.vlm-area__base::before {
	grid-row: 1 / span 2;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
	border-radius: 50%;
	content: "";
}

.vlm-area__base > * {
	margin: 0;
	line-height: 1.3;
}

.vlm-area__base p:first-child {
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vlm-area__base strong {
	font-size: 1.0625rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
	.vlm-area__base::before {
		animation: vlm-pin-pulse 2.4s ease-out infinite;
	}
}

@keyframes vlm-pin-pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(200 32 47 / 0.5);
	}

	70%,
	100% {
		box-shadow: 0 0 0 0.9rem rgb(200 32 47 / 0);
	}
}

.vlm-area__body {
	padding: clamp(0.25rem, 1.5vw, 1rem) clamp(0.25rem, 1.5vw, 1.5rem) clamp(0.5rem, 1.5vw, 1rem) 0;
}

.vlm-area__body > * {
	margin-block: 0;
}

.vlm-area__body h2 {
	margin-block: 0.75rem 1rem;
	font-size: clamp(1.875rem, 1.25rem + 2vw, 2.75rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.vlm-area__body > p:not(.vlm-eyebrow) {
	max-width: 38rem;
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
}

/* "Check your suburb": a search field and a live answer. */
.vlm-area__check {
	margin-block: 1.75rem 1rem;
}

.vlm-area__check input {
	width: 100%;
	max-width: 24rem;
	min-height: 3rem;
	padding: 0 1.25rem 0 2.75rem;
	font: inherit;
	font-size: 0.9375rem;
	background: var(--wp--preset--color--base) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem center / 1.125rem no-repeat;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

.vlm-area__check input:focus {
	border-color: var(--wp--preset--color--accent);
	outline: 0;
	box-shadow: 0 0 0 4px var(--wp--preset--color--accent-soft);
}

.vlm-area__result {
	min-height: 1.5em;
	margin: 0.625rem 0 0;
	color: var(--wp--preset--color--contrast-soft);
	font-size: 0.875rem;
}

.vlm-area__result a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* Suburbs as pills; while searching, matches turn red and the rest fade back. */
.vlm-area .vlm-suburb-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.vlm-area .vlm-suburb-grid li {
	margin: 0;
	padding: 0.5rem 1rem;
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	line-height: 1.3;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.vlm-area .vlm-suburb-grid li::before {
	display: none;
}

.vlm-area .vlm-suburb-grid li:hover {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.vlm-area .vlm-suburb-grid.is-filtering li:not(.is-match) {
	opacity: 0.3;
}

.vlm-area .vlm-suburb-grid li.is-match {
	color: #fff;
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* The pills ripple in once the card scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
	.vlm-area .vlm-suburb-grid.is-in li {
		animation: vlm-chip-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
		animation-delay: calc(var(--vlm-chip, 0) * 35ms + 150ms);
	}
}

@keyframes vlm-chip-in {
	from {
		opacity: 0;
		transform: translateY(0.5rem) scale(0.96);
	}
}

@media (max-width: 35.9375em) {
	.vlm-area__body {
		padding: 0 0.25rem 0.5rem;
	}

	.vlm-area .vlm-suburb-grid li {
		padding: 0.4375rem 0.875rem;
		font-size: 0.875rem;
	}

	.vlm-area__check input {
		max-width: none;
	}
}

/* Suburbs as a wrapped line of names separated by dots. */
.vlm-suburbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0;
	margin: 1.5rem 0 0;
	padding: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	list-style: none;
}

.vlm-suburbs li {
	margin: 0;
}

.vlm-suburbs li:not(:last-child)::after {
	margin-inline: 0.75rem;
	color: var(--wp--preset--color--line-strong);
	content: "·" / "";
}

/* Dark feature without a second column (e.g. before and after photos not chosen yet): the text spans it. */
.vlm-feature .wp-block-columns > .wp-block-column:not(:has(*)) {
	display: none;
}

.vlm-feature .wp-block-columns {
	gap: var(--wp--preset--spacing--70);
	align-items: center;
}

.vlm-feature .wp-block-columns > .wp-block-column > :first-child {
	margin-block-start: 0;
}

/* With no reviews and no rating entered yet, the whole reviews section stays hidden. */
.vlm-trust:not(:has(.vlm-reviews, .ti-widget)) {
	display: none;
}

.vlm-area__body .wp-block-buttons {
	margin-block-start: 1.75rem;
}

/* FAQ section: heading on the left, questions on the right; each question opens in place. */
.vlm-faq-layout {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.vlm-faq-layout > *,
.vlm-faq-layout__head > * {
	margin-block: 0;
}

.vlm-faq-layout__head h2 {
	margin-block: 0 1rem;
}

.vlm-faq-layout__head p:not(.vlm-eyebrow) {
	max-width: 26rem;
	color: var(--wp--preset--color--muted);
}

.vlm-faq-layout__head .wp-block-buttons {
	margin-block-start: 1.75rem;
}

@media (min-width: 64em) {
	.vlm-faq-layout {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--wp--preset--spacing--80);
		align-items: start;
	}

	.vlm-faq-layout__head {
		position: sticky;
		top: calc(var(--vlm-header-h) + var(--vlm-admin-bar) + 2rem);
	}
}

.vlm-faq-layout .vlm-faq {
	margin: 0;
}

.vlm-faq .wp-block-details summary {
	padding-block: 1.375rem;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	font-weight: 400;
	transition: color 0.2s ease;
}

.vlm-faq .wp-block-details summary:hover {
	color: var(--wp--preset--color--accent);
}

/* A plus that turns into a minus, in place of the chevron. */
.vlm-faq .wp-block-details summary::after {
	width: 0.875rem;
	height: 0.875rem;
	border: 0;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
	transform: none;
	transition: background-size 0.25s ease;
}

.vlm-faq .wp-block-details[open] summary::after {
	background-size: 100% 1.5px, 1.5px 0;
	transform: none;
}

.vlm-faq .wp-block-details > :not(summary) {
	max-width: 40rem;
	margin-block-end: 1.5rem;
	color: var(--wp--preset--color--muted);
}

/* Without before and after photos the dark feature is a text band: heading on the left, text and link on
   the right. The column's inline width from the editor is overridden. */
.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) {
	flex-basis: 100% !important;
}

@media (min-width: 64em) {
	.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--80);
		align-items: end;
	}

	.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) > .vlm-eyebrow {
		grid-column: 1;
	}

	.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) > h2 {
		grid-column: 1;
		margin-block-end: 0;
	}

	.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) > p:not(.vlm-eyebrow) {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: end;
		margin: 0;
	}

	.vlm-feature .wp-block-columns:not(:has(.vlm-compare, .vlm-feature__photo)) > .wp-block-column:has(*) > .wp-block-buttons {
		grid-column: 2;
		margin-block-start: 1.75rem;
	}
}

/* Core adds a top margin between grouped blocks; in the step grid it would push later steps down. */
.vlm-how__steps > .vlm-how__step {
	margin-block: 0;
}

@media (max-width: 47.9375em) {
	.vlm-brands__link {
		min-height: 6.5rem;
	}
}

/* The sanding photo stands in until a before and after pair is chosen, then the slider replaces it. */
.vlm-feature .wp-block-column:has(.vlm-compare) > .vlm-feature__photo {
	display: none;
}

.vlm-feature .vlm-feature__photo img {
	display: block;
	height: auto;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

/* ------------------------------------------------------------------------------------------------------
   Absolute Flooring home sections (2026 redesign brief).
   ------------------------------------------------------------------------------------------------------ */

/* Large pill call to action on a charcoal band: brand red with a round arrow. */
.vlm-cta-band .vlm-cta-band__button .wp-block-button__link {
	gap: 1.25rem;
	min-height: 4.5rem;
	padding: 0.875rem 0.875rem 0.875rem 1.75rem;
	font-size: 1.0625rem;
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.vlm-cta-band .vlm-cta-band__button .wp-block-button__link::after {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	color: var(--wp--preset--color--accent);
	background: #fff;
	border-radius: 50%;
	content: "→" / "";
	transition: transform var(--wp--custom--transition);
}

.vlm-cta-band .vlm-cta-band__button .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.vlm-cta-band .vlm-cta-band__button .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-deep);
	border-color: var(--wp--preset--color--accent-deep);
}

.vlm-cta-band__action {
	margin: 0;
}

@media (max-width: 35.9375em) {
	.vlm-cta-band__action,
	.vlm-cta-band .vlm-cta-band__button,
	.vlm-cta-band .vlm-cta-band__button .wp-block-button__link {
		width: 100%;
	}

	/* Text at the start, the round arrow at the end; long labels wrap rather than push the arrow out. */
	.vlm-cta-band .vlm-cta-band__button .wp-block-button__link {
		justify-content: space-between;
		min-height: 4rem;
		padding-block: 0.625rem;
		padding-inline-start: 1.5rem;
		text-align: start;
	}
}

/* Photo beside text. */
.vlm-split {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	align-items: center;
}

.vlm-split > *,
.vlm-split__body > * {
	margin-block: 0;
}

.vlm-split__body > * + * {
	margin-block-start: 1.25rem;
}

.vlm-split__body h2 {
	margin-block-start: 0;
}

.vlm-split__photo,
.vlm-split__photo img {
	display: block;
	width: 100%;
	margin: 0;
}

.vlm-split .vlm-split__photo img {
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

@media (min-width: 64em) {
	.vlm-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		column-gap: var(--wp--preset--spacing--80);
	}

	.vlm-split--reverse {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}

	.vlm-split .vlm-split__photo img {
		max-height: 40rem;
	}
}

/* Experience figures (from the business's own published claims). */
.vlm-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 3rem;
	padding-block: 1.5rem;
	border-block: 1px solid var(--wp--preset--color--line);
}

.vlm-stats > *,
.vlm-stat > * {
	margin: 0;
}

.vlm-stat__value {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
}

.vlm-stat__label {
	margin-block-start: 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Ticked list. */
.vlm-checklist {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 36em) {
	.vlm-checklist {
		grid-template-columns: repeat(2, auto);
		justify-content: start;
		column-gap: 2.5rem;
	}
}

.vlm-checklist li {
	position: relative;
	margin: 0;
	padding-inline-start: 2rem;
	font-weight: 500;
}

.vlm-checklist li::before {
	position: absolute;
	top: 0.1em;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.375rem;
	height: 1.375rem;
	color: #fff;
	font-size: 0.75rem;
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
	content: "✓" / "";
}

/* Finish cards. */
.vlm-finishes {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 48em) {
	.vlm-finishes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.vlm-finish {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.vlm-finishes > *,
.vlm-finish > * {
	margin: 0;
}

.vlm-finish h3 {
	font-size: var(--wp--preset--font-size--large);
}

.vlm-finish p:not(.vlm-eyebrow) {
	color: var(--wp--preset--color--muted);
}

.vlm-finish:hover {
	border-color: var(--wp--preset--color--accent);
	transform: translateY(-3px);
}

/* Buttons under a full-width row of cards are centred, like the projects button. */
.vlm-section-actions {
	justify-content: center;
	margin-block-start: clamp(2rem, 3vw, 2.75rem);
}

/* Links listed with a red arrow. */
.vlm-link-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid var(--wp--preset--color--line);
}

.vlm-link-list li {
	margin: 0;
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.vlm-link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.875rem;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, padding 0.2s ease;
}

.vlm-link-list a::after {
	color: var(--wp--preset--color--accent);
	content: "→" / "";
	transition: transform 0.2s ease;
}

.vlm-link-list a:hover {
	color: var(--wp--preset--color--accent);
}

.vlm-link-list a:hover::after {
	transform: translateX(4px);
}

/* Suburbs as an even grid of names. */
.vlm-suburb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 0.5rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.vlm-suburb-grid li {
	position: relative;
	margin: 0;
	padding-inline-start: 1rem;
	color: var(--wp--preset--color--contrast-soft);
	font-size: var(--wp--preset--font-size--small);
}

.vlm-suburb-grid li::before {
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 0.375rem;
	height: 0.375rem;
	background: var(--wp--preset--color--accent);
	border-radius: 50%;
	content: "";
}

/* Headings use Manrope; display weights stay within 400–600. */
.vlm-hero h1,
.vlm-cta-band h2,
.vlm-how__step h3,
.vlm-category-tile__title,
.vlm-mega__feature-title,
.vlm-faq .wp-block-details summary,
.vlm-numbered strong {
	font-family: var(--wp--preset--font-family--heading);
}

/* Headings inside ordinary page text (service pages) are a step smaller than section headings. */
.vlm-page :is(.vlm-page-content, .vlm-page-body__content) > h2 {
	font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.375rem);
}

.vlm-page :is(.vlm-page-content, .vlm-page-body__content) > h3 {
	font-size: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
}

/* A call-to-action band closing a page meets the footer. */
.entry-content > .vlm-cta-band:last-child {
	margin-block-end: 0;
}

/* Card grids on ordinary pages use the wide container, not the narrow text column. */
.vlm-page :is(.vlm-page-content, .vlm-page-body__content) > .vlm-category-grid {
	max-width: var(--wp--style--global--wide-size);
}

/* Headings inside columns on ordinary pages (contact details, form titles) use the smaller prose size. */
.vlm-page :is(.vlm-page-content, .vlm-page-body__content) .wp-block-column > h2 {
	font-size: clamp(1.375rem, 1.125rem + 0.8vw, 1.875rem);
}

.vlm-lookbook__track:focus-visible {
	outline: var(--wp--custom--focus-width) solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

/* Inner pages: overview card grids run three across so five or six pages fill whole rows. */
@media (min-width: 64em) {
	.vlm-page .vlm-panel .vlm-category-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Two pages share the row instead of leaving a gap. */
	.vlm-page .vlm-panel .vlm-category-grid__list:not(:has(> :nth-child(3))) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Four cards (steps, services) in one row on wide screens, two on tablets. */
@media (min-width: 48em) {
	.vlm-finishes--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.vlm-finishes--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.vlm-finish .vlm-card__link {
	align-self: end;
	margin-block-start: 0.5rem;
	font-weight: 500;
}

.vlm-finish .vlm-card__link a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.vlm-finish .vlm-card__link a::after {
	margin-inline-start: 0.375rem;
	content: "→" / "";
}

.vlm-finish .vlm-card__link a:hover {
	text-decoration: underline;
}

/* Project photos: an even grid of our own work with short captions. */
.vlm-project-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.75rem, 2vw, 1.25rem);
}

@media (min-width: 64em) {
	.vlm-project-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.vlm-project-grid > .wp-block-image {
	margin: 0;
}

.vlm-project-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
}

.vlm-project-grid figcaption {
	margin-block-start: 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: start;
}

/* Contact page: message form beside the contact details and a quote prompt. */
.vlm-contact-layout {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

@media (min-width: 64em) {
	.vlm-contact-layout {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
	}
}

.vlm-contact-layout > *,
.vlm-contact-layout__aside > * {
	margin: 0;
}

.vlm-contact-layout__aside {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.vlm-contact-layout h2 {
	margin-block: 0 var(--wp--preset--spacing--50);
	font-size: clamp(1.375rem, 1.125rem + 0.8vw, 1.875rem);
}

.vlm-card.vlm-dark {
	background: var(--wp--preset--color--deep);
	border-color: var(--wp--preset--color--deep);
}

.vlm-stats + .vlm-checklist {
	margin-block-start: 1.5rem;
}

/* Price list: services on the left, the price per square metre lined up on the right. */
.vlm-price-list > * {
	margin-block: 0;
}

.vlm-price-list h3 {
	margin-block-end: 0.5rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.vlm-price-list .vlm-price-table + h3 {
	margin-block-start: var(--wp--preset--spacing--60);
}

.vlm-price-table table {
	font-size: 1.0625rem;
}

:is(.entry-content, .is-root-container) .vlm-price-table :is(th, td) {
	padding-block: 1rem;
	vertical-align: baseline;
}

.vlm-price-table thead th {
	color: var(--wp--preset--color--muted);
	font-size: var(--vlm-label-size);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

:is(.entry-content, .is-root-container) .vlm-price-table :is(th, td):last-child {
	padding-inline-end: 0;
	text-align: end;
	white-space: nowrap;
}

.vlm-price-table td:last-child {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.vlm-price-table td a {
	color: inherit;
	text-decoration-color: var(--wp--preset--color--line-strong);
	text-underline-offset: 0.2em;
}

.vlm-price-table td a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration-color: currentColor;
}

/* Phones: a long price note ("Depends on the timber") wraps rather than squeezing the service name. */
@media (max-width: 35.9375em) {
	:is(.entry-content, .is-root-container) .vlm-price-table td:last-child {
		min-width: 5.5rem;
		white-space: normal;
	}

	.vlm-price-table table {
		font-size: 1rem;
	}
}

/* ------------------------------------------------------------------------------------------------------
   Motion. Scroll: the script marks content below the first screen and it fades up into place (transform
   and opacity only, so nothing reflows). Hover: photos ease in, cards lift. Mouse pointers only; none of
   it runs with reduced motion.
   ------------------------------------------------------------------------------------------------------ */
.vlm-reveal {
	opacity: 0;
	transform: translateY(1.75rem);
	transition: opacity 0.8s var(--vlm-ease) var(--vlm-reveal-delay, 0ms), transform 0.8s var(--vlm-ease) var(--vlm-reveal-delay, 0ms);
}

.vlm-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

.vlm-stat__value {
	font-variant-numeric: tabular-nums;
}

@media print {
	.vlm-reveal {
		opacity: 1;
		transform: none;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.vlm-split__photo,
	.vlm-area .wp-block-image,
	.vlm-feature .vlm-feature__photo,
	.vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image) {
		overflow: hidden;
		border-radius: var(--wp--custom--radius);
	}

	.vlm-split__photo img,
	.vlm-area .wp-block-image img,
	.vlm-feature .vlm-feature__photo img,
	.vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image) img {
		transition: transform 0.9s var(--vlm-ease);
	}

	.vlm-split__photo:hover img,
	.vlm-area .wp-block-image:hover img,
	.vlm-feature .vlm-feature__photo:hover img,
	.vlm-lookbook__track.has-nested-images figure.wp-block-image:not(#individual-image):hover img {
		transform: scale(1.045);
	}

	.vlm-review__inner {
		transition: transform 0.3s var(--vlm-ease), box-shadow 0.3s var(--vlm-ease), border-color 0.3s ease;
	}

	.vlm-review:hover .vlm-review__inner {
		border-color: var(--wp--preset--color--accent);
		box-shadow: 0 18px 36px -20px rgb(20 18 15 / 0.35);
		transform: translateY(-4px);
	}

	.vlm-finish:hover {
		box-shadow: 0 18px 36px -20px rgb(20 18 15 / 0.35);
	}

	.vlm-stat:not(.vlm-reveal) {
		transition: transform 0.3s var(--vlm-ease);
	}

	.vlm-stat:hover {
		transform: translateY(-3px);
	}

	.vlm-clients li {
		transition: transform 0.3s var(--vlm-ease);
	}

	.vlm-clients li:hover {
		transform: translateY(-3px);
	}
}


/* Call to action on a photograph: the offer, three promises and the button on the left, over a dark wash
   that clears towards the right; a dark glass panel of key figures on the right. Icons are CSS masks. */
.vlm-promo.wp-block-cover {
	align-items: stretch;
	min-height: 0;
	padding: clamp(2rem, 1rem + 4vw, 4.5rem);
	color: #fff;
	border-radius: 20px;
	overflow: hidden;
}

/* The editor's overlay colour (Charcoal at 80%) is replaced by a wash that clears towards the right. */
.vlm-promo.wp-block-cover .wp-block-cover__background.has-background-dim {
	background-color: transparent !important;
	background-image: linear-gradient(90deg, rgb(20 18 15 / 0.94) 0%, rgb(20 18 15 / 0.82) 45%, rgb(20 18 15 / 0.3) 100%);
	opacity: 1;
}

@media (max-width: 63.9375em) {
	.vlm-promo.wp-block-cover .wp-block-cover__background.has-background-dim {
		background-image: linear-gradient(180deg, rgb(20 18 15 / 0.92) 0%, rgb(20 18 15 / 0.85) 55%, rgb(20 18 15 / 0.6) 100%);
	}
}

.vlm-promo .wp-block-cover__inner-container {
	display: grid;
	align-items: center;
	gap: clamp(2rem, 4vw, 4rem);
	width: 100%;
}

@media (min-width: 64em) {
	.vlm-promo .wp-block-cover__inner-container {
		grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr);
	}
}

.vlm-promo__main > * {
	margin: 0;
}

.vlm-promo .vlm-eyebrow {
	color: rgb(255 255 255 / 0.85);
}

.vlm-promo h2 {
	margin-block: 1rem 1.25rem;
	color: #fff;
	font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.vlm-promo h2 em {
	display: block;
	color: var(--wp--preset--color--deep-muted);
}

.vlm-promo__text {
	max-width: 34rem;
	color: rgb(255 255 255 / 0.78);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* The three promises. */
.vlm-promo__points {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.75rem;
	margin-block: 2rem 2.25rem;
}

/* The editor's block spacing would push every promise but the first down. */
.vlm-promo__points > *,
.vlm-promo__stats > * {
	margin: 0;
}

.vlm-promo__point {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	align-content: center;
	justify-content: start;
	column-gap: 0.875rem;
	row-gap: 0.125rem;
}

@media (max-width: 39.9375em) {
	.vlm-promo__points {
		flex-direction: column;
	}
}

.vlm-promo__point::before {
	grid-row: 1 / span 2;
	align-self: center;
	width: 3rem;
	height: 3rem;
	content: "";
}

.vlm-promo__point > * {
	margin: 0;
	line-height: 1.35;
}

.vlm-promo__point p:first-child {
	font-size: 0.9375rem;
}

.vlm-promo__point p:last-child {
	color: rgb(255 255 255 / 0.65);
	font-size: var(--vlm-label-size);
}

/* The round outlined icon used by promises and figures. */
.vlm-promo__point::before,
.vlm-promo__stat::before {
	background: var(--vlm-icon) center / 46% no-repeat;
	border: 1px solid rgb(224 82 92 / 0.85);
	border-radius: 50%;
}

/* The figures panel. */
.vlm-promo__stats {
	display: grid;
	padding: 0.5rem 1.75rem;
	background: rgb(20 18 15 / 0.72);
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.vlm-promo__stat {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-content: center;
	column-gap: 1.25rem;
	padding-block: 1.125rem;
}

.vlm-promo__stat + .vlm-promo__stat {
	border-block-start: 1px solid rgb(200 32 47 / 0.55);
}

.vlm-promo__stat::before {
	grid-row: 1 / span 2;
	align-self: center;
	width: 3.75rem;
	height: 3.75rem;
	content: "";
}

.vlm-promo__stat > * {
	margin: 0;
}

.vlm-promo__value {
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.vlm-promo__stat p:last-child {
	color: rgb(255 255 255 / 0.65);
	font-size: 0.9375rem;
}

.vlm-promo__point--visit::before,
.vlm-promo__stat--visit::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2011l9-7%209%207v9a1%201%200%200%201-1%201h-5v-6H9v6H4a1%201%200%200%201-1-1z'/%3E%3C/svg%3E");
}

.vlm-promo__point--quote::before,
.vlm-promo__stat--quote::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%203h7l5%205v12a1%201%200%200%201-1%201H7a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1z'/%3E%3Cpath%20d='M14%203v5h5M9%2014l2%202%204-4'/%3E%3C/svg%3E");
}

.vlm-promo__point--dust::before,
.vlm-promo__stat--dust::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l1.8%204.7%204.7%201.8-4.7%201.8L12%2016l-1.8-4.7L5.5%209.5l4.7-1.8z'/%3E%3Cpath%20d='M19%2015l.8%202.2L22%2018l-2.2.8L19%2021l-.8-2.2L16%2018l2.2-.8z'/%3E%3C/svg%3E");
}

.vlm-promo__point--years::before,
.vlm-promo__stat--years::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='9'%20r='6'/%3E%3Cpath%20d='M8.5%2014%207%2022l5-3%205%203-1.5-8'/%3E%3C/svg%3E");
}

.vlm-promo__point--projects::before,
.vlm-promo__stat--projects::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l9%205-9%205-9-5z'/%3E%3Cpath%20d='M3%2012.5l9%205%209-5'/%3E%3Cpath%20d='M3%2017l9%205%209-5'/%3E%3C/svg%3E");
}

.vlm-promo__point--days::before,
.vlm-promo__stat--days::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='16'%20rx='2'/%3E%3Cpath%20d='M3%2010h18M8%203v4M16%203v4'/%3E%3C/svg%3E");
}

.vlm-promo__point--area::before,
.vlm-promo__stat--area::before {
	--vlm-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23E0525C'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-12a7%207%200%200%201%2014%200c0%205.8-7%2012-7%2012z'/%3E%3Ccircle%20cx='12'%20cy='9'%20r='2.5'/%3E%3C/svg%3E");
}

/* Buttons fill on hover: a layer of the hover colour grows across from the left, and the button's own hover
   colour switches in underneath only once the layer has covered it; on leaving, the layer shrinks away to the
   right. The :not(#vlm-fill) only raises the weight above the header's and footer's own button transitions.
   Mouse pointers only; off with reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	:is(.wp-block-button__link, .vlm-button) {
		--vlm-fill: var(--wp--preset--color--accent-deep);
	}

	:is(.wp-block-button__link, .vlm-button):not(#vlm-fill) {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		transition: background-color 0s, border-color 0.3s ease, color 0.3s ease;
	}

	:is(.wp-block-button__link, .vlm-button):not(#vlm-fill)::before {
		position: absolute;
		inset: 0;
		z-index: -1;
		background: var(--vlm-fill);
		transform: scaleX(0);
		transform-origin: right center;
		transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
		pointer-events: none;
		content: "";
	}

	:is(.wp-block-button__link, .vlm-button):not(#vlm-fill):hover {
		transition: background-color 0s 0.5s, border-color 0.3s ease, color 0.25s ease 0.12s;
	}

	:is(.wp-block-button__link, .vlm-button):not(#vlm-fill):hover::before {
		transform: scaleX(1);
		transform-origin: left center;
	}

	/* Outline buttons fill with Ink; over photographs and on Charcoal (hero, dark bands, header, footer), white. */
	.wp-block-button.is-style-outline .wp-block-button__link,
	.vlm-button--secondary {
		--vlm-fill: var(--wp--preset--color--contrast);
	}

	:is(.vlm-dark, .vlm-hero, .site-header, .site-footer) .wp-block-button.is-style-outline .wp-block-button__link,
	:is(.vlm-dark, .vlm-hero, .site-header, .site-footer) .vlm-button--secondary {
		--vlm-fill: #fff;
	}

	.site-footer .site-footer__button--whatsapp {
		--vlm-fill: color-mix(in srgb, var(--wp--preset--color--whatsapp) 85%, #fff);
	}
}

/* Careers: the job summary as a grid of small fact cards, and duty lists kept to one column. */
.vlm-job-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
	gap: 0.75rem;
	margin-block: 1.75rem 2.5rem;
}

.vlm-job-fact {
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-inline-start: 3px solid var(--wp--preset--color--accent);
	border-radius: 12px;
}

.vlm-job-fact > * {
	margin: 0;
}

.vlm-job-fact p:first-child {
	color: var(--wp--preset--color--muted);
	font-size: var(--vlm-label-size);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vlm-job-fact strong {
	font-size: 1.0625rem;
	font-weight: 600;
}

.vlm-checklist.vlm-checklist--stack {
	grid-template-columns: minmax(0, 1fr);
}
