/*
 * Fibrewise Consulting: the patterns.
 * Each block names the design component it reproduces (Blocks.tsx,
 * PageHero.tsx, GalleryCarousel.tsx and the route files in
 * ~/designs/fibre-wise/src). Values come from theme.json tokens.
 */

/* ---------- Sections ----------
 * The design's section spacing: home 80px, 112px from 768px (py-20
 * md:py-28); lg 96px (py-24); md 80px (py-20); hero, a page's opening
 * section, 64px top, 96px from 768px, and 96px bottom (pt-16 md:pt-24 pb-24). */

.fw-section.is-space-home {
	padding-block: var(--wp--preset--spacing--section);
}

.fw-section.is-space-lg {
	padding-block: var(--wp--preset--spacing--24);
}

.fw-section.is-space-md {
	padding-block: var(--wp--preset--spacing--20);
}

.fw-section.is-space-hero {
	padding-top: var(--wp--preset--spacing--section-top);
	padding-bottom: var(--wp--preset--spacing--24);
}

.fw-section.is-slate {
	overflow: hidden;
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

/* Lists and query lists start bare; low priority (:where) so each
 * pattern's own spacing wins. */
.fw-main :where(ul.wp-block-list, ol.wp-block-list, .wp-block-post-template) {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Halftone ----------
 * The design's HeadlinePattern, drawn behind a heading's wrapper. Wide:
 * 768px at most, 72% of the screen, no wider than its column, 384px high
 * at most, 3.5rem out to the left. Tall: 400px, 42%, 496px, 2rem out.
 * 14% until it scrolls into view, then 24% and 18px right. On slate 20%
 * then 30%, screened. Below 768px: no overhang, smaller, 10% then 17%. */

.fw-ht {
	position: relative;
	isolation: isolate;
}

.fw-ht::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	left: -3.5rem;
	width: min(48rem, 72vw, 100%);
	max-height: 24rem;
	aspect-ratio: 1920 / 1268;
	background: url("../images/fibrewise-halftone-wide.webp") left center / contain no-repeat;
	opacity: 0.24;
	transform: translate3d(0, -50%, 0);
	pointer-events: none;
}

.fw-ht--tall::before {
	left: -2rem;
	width: min(25rem, 42vw, 100%);
	max-height: 31rem;
	aspect-ratio: 1631 / 1920;
	background-image: url("../images/fibrewise-halftone-tall.webp");
}

.fw-ht--dark::before {
	opacity: 0.3;
	mix-blend-mode: screen;
}

.fw-js .fw-ht::before {
	opacity: 0.14;
	transform: translate3d(-18px, -50%, 0);
	transition: opacity var(--wp--custom--motion--halftone), transform var(--wp--custom--motion--halftone);
}

.fw-js .fw-ht--dark::before {
	opacity: 0.2;
}

.fw-js .fw-ht.is-visible::before {
	opacity: 0.24;
	transform: translate3d(0, -50%, 0);
}

.fw-js .fw-ht--dark.is-visible::before {
	opacity: 0.3;
}

@media (max-width: 767.98px) {
	.fw-ht::before,
	.fw-ht--tall::before {
		left: 0;
	}

	.fw-ht::before {
		width: min(27rem, 100%);
		max-height: 17rem;
	}

	.fw-ht--tall::before {
		width: min(14rem, 62vw);
		max-height: 22rem;
	}

	.fw-js .fw-ht::before {
		opacity: 0.1;
	}

	.fw-js .fw-ht.is-visible::before {
		opacity: 0.17;
	}

	.fw-js .fw-ht--dark.is-visible::before {
		opacity: 0.22;
	}
}

/* ---------- Reveal ----------
 * The design's block fade: up 24px over 0.7s as it scrolls into view.
 * Headings and paragraphs do not move (the design marks them but styles
 * nothing). Hidden only when the script will reveal them. */

.fw-js .fw-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fw-js .fw-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Section heading ----------
 * The design's SectionHeading: a line above, 20px of space, the kicker in
 * the first column and the heading across the other two from 768px;
 * 48px below, 80px from 768px. As the page opening: no line. */

.fw-section-heading {
	display: grid;
	gap: var(--wp--preset--spacing--5);
	margin-bottom: var(--wp--preset--spacing--12);
	padding-top: var(--wp--preset--spacing--5);
	border-top: 1px solid var(--wp--preset--color--line);
}

.fw-section-heading.is-hero {
	padding-top: 0;
	border-top: 0;
}

@media (min-width: 768px) {
	.fw-section-heading {
		grid-template-columns: 1fr 2fr;
		margin-bottom: var(--wp--preset--spacing--20);
	}
}

/* 36px, 72px from 768px, medium, line height 0.98; the pull-out words on
 * their own line, light, grey. */
.fw-section-heading__title,
.fw-hero.is-detail .fw-hero__title {
	position: relative;
	z-index: 1;
	max-width: var(--wp--custom--measure--4xl);
	font-size: var(--wp--preset--font-size--7-xl);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--heading);
}

.fw-section-heading__title em,
.fw-hero.is-detail .fw-hero__title em,
.fw-contact__title em {
	display: block;
	margin-top: var(--wp--preset--spacing--1);
	color: var(--wp--preset--color--muted);
	font-weight: 300;
}

/* ---------- Underlined link ----------
 * "View all projects", "Get in touch": semibold, a gold line 8px below,
 * the arrow 8px after (12px in the closing band). */

.fw-text-link a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	padding-bottom: var(--wp--preset--spacing--2);
	border-bottom: 1px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--slate);
	font-weight: 700;
	text-decoration: none;
}

.fw-text-link a::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--fw-icon-arrow-up-right) center / contain no-repeat;
	mask: var(--fw-icon-arrow-up-right) center / contain no-repeat;
}

/* ---------- Hero: home ----------
 * The design's PageHero with centeredScroll: slate, the screen's height
 * less the header; 48px top (68px from 768px), 28px bottom (40px). */

.fw-hero.fw-section {
	padding: 0;
}

.fw-hero.is-home {
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

.fw-hero.is-home .fw-hero__inner {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(3rem, 1fr) auto;
	min-height: calc(100svh - 5rem - var(--wp-admin--admin-bar--height, 0px));
	padding-top: var(--wp--preset--spacing--12);
	padding-bottom: var(--wp--preset--spacing--7);
}

@media (min-width: 768px) {
	.fw-hero.is-home .fw-hero__inner {
		padding-top: 4.25rem;
		padding-bottom: var(--wp--preset--spacing--10);
	}
}

/* The tall halftone on the right, 14rem past the edge, 70% of the screen
 * wide, 110% high, with the gold light sweeping across it every 6 seconds. */
.fw-hero__decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.fw-hero__decor.fw-ht::before,
.fw-hero__decor::after {
	left: auto;
	right: -14rem;
	width: min(56rem, 70vw);
	height: 110%;
	max-height: none;
	aspect-ratio: auto;
}

.fw-hero__decor::after {
	content: "";
	position: absolute;
	top: 50%;
	-webkit-mask: url("../images/fibrewise-halftone-tall.webp") left center / contain no-repeat;
	mask: url("../images/fibrewise-halftone-tall.webp") left center / contain no-repeat;
	background: linear-gradient(105deg, transparent 35%, color-mix(in oklab, var(--wp--preset--color--gold) 85%, white) 50%, transparent 65%) no-repeat;
	background-size: 300% 100%;
	background-position: 100% 0;
	mix-blend-mode: screen;
	transform: translate3d(0, -50%, 0);
	animation: fw-sweep 6s ease-in-out 1.2s infinite;
}

@keyframes fw-sweep {
	0% {
		background-position: 100% 0;
	}

	25%,
	100% {
		background-position: 0% 0;
	}
}

/* The dotted logo: 312px, 432px from 768px, 163px above the headline; it
 * rises in, then a single sweep of light crosses it. The script drifts it
 * up and fades it as the page scrolls. */
.fw-hero__logo {
	position: relative;
	display: inline-block;
	margin-bottom: 10.2rem;
	will-change: transform;
}

/* 312px as designed, never wider than the screen (it is, below 352px). */
.fw-hero__logo {
	max-width: 100%;
}

.fw-hero__logo .fw-hero__logo-image {
	width: 19.5rem;
	max-width: 100%;
	margin: 0;
	animation: fw-logo-in 1.1s ease-out backwards;
}

@media (min-width: 768px) {
	.fw-hero__logo .fw-hero__logo-image {
		width: 27rem;
	}
}

.fw-hero__logo .fw-hero__logo-image img {
	display: block;
	width: 100%;
	height: auto;
}

@keyframes fw-logo-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

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

.fw-hero__logo::after {
	content: "";
	position: absolute;
	inset: 0;
	-webkit-mask: var(--fw-logo-mask, none) center / contain no-repeat;
	mask: var(--fw-logo-mask, none) center / contain no-repeat;
	background: linear-gradient(105deg, transparent 35%, color-mix(in oklab, var(--wp--preset--color--gold) 85%, white) 50%, transparent 65%) no-repeat;
	background-size: 300% 100%;
	background-position: 100% 0;
	mix-blend-mode: screen;
	pointer-events: none;
	animation: fw-logo-sweep 1.4s ease-in-out 1.2s 1 backwards;
}

@keyframes fw-logo-sweep {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: 0% 0;
	}
}

/* The headline: 35px to 84px, medium, line height 0.94, in its lines; the
 * last words light, gold (3.91:1 on slate, large text). */
.fw-hero__title {
	position: relative;
	z-index: 1;
	max-width: var(--wp--custom--measure--hero);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--display);
}

.fw-hero.is-home .fw-hero__title {
	color: var(--wp--preset--color--paper);
}

.fw-hero__title span,
.fw-hero__title em {
	display: block;
}

.fw-hero.is-home .fw-hero__title em {
	margin-top: var(--wp--preset--spacing--1);
	color: var(--wp--preset--color--gold);
	font-weight: 300;
}

/* Below the headline: a faint line, then the intro (paper, 16px, 18px
 * from 768px), in the first of three columns from 768px. */
.fw-hero__meta {
	display: grid;
	align-items: start;
	gap: var(--wp--preset--spacing--8);
	margin-top: var(--wp--preset--spacing--6);
	padding-block: var(--wp--preset--spacing--6);
	border-top: 1px solid var(--wp--custom--color--hairline-dark-20);
}

@media (min-width: 768px) {
	.fw-hero__meta {
		grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr) auto;
		margin-top: var(--wp--preset--spacing--8);
		padding-block: var(--wp--preset--spacing--7);
	}
}

.fw-hero__intro {
	max-width: var(--wp--custom--measure--xl);
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-hero.is-home .fw-hero__intro {
	color: var(--wp--preset--color--paper);
}

/* "Scroll to explore": 17.6px medium, a gold line below, the arrow
 * bouncing. Gold on slate is the approved gold on dark (4.54:1). */
.fw-scroll-link.is-centred {
	display: flex;
	justify-content: center;
	padding-top: var(--wp--preset--spacing--4);
	padding-bottom: var(--wp--preset--spacing--1);
}

.fw-scroll-link a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding-bottom: var(--wp--preset--spacing--1);
	border-bottom: 1px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold-on-dark);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	text-decoration: none;
}

.fw-scroll-link a::after {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: var(--fw-icon-arrow-down) center / contain no-repeat;
	mask: var(--fw-icon-arrow-down) center / contain no-repeat;
	animation: fw-bounce 1s infinite;
}

@keyframes fw-bounce {
	0%,
	100% {
		transform: translateY(-25%);
		animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
	}

	50% {
		transform: none;
		animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
	}
}

/* ---------- Hero: service and case study ----------
 * 28px top and bottom (40px from 768px); the back link, then the headline
 * 40px below (48px from 768px), the intro 32px below that. */

.fw-hero.is-detail .fw-hero__inner {
	padding-block: var(--wp--preset--spacing--7);
}

@media (min-width: 768px) {
	.fw-hero.is-detail .fw-hero__inner {
		padding-block: var(--wp--preset--spacing--10);
	}
}

/* 18.4px semibold uppercase, 0.08em tracking, gold (the approved gold
 * text on paper), the arrow bouncing before it, slate on hover. */
/* The design's back link row: 18.4px on the body's 1.5 line. */
.fw-back-link {
	display: flex;
	font-size: var(--wp--preset--font-size--label-lg);
	line-height: var(--wp--custom--line-height--body);
}

.fw-back-link a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--gold-text);
	font-size: var(--wp--preset--font-size--label-lg);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--wp--custom--motion--hover);
}

.fw-back-link a:hover {
	color: var(--wp--preset--color--slate);
}

.fw-back-link a::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background: var(--wp--preset--color--gold-text);
	-webkit-mask: var(--fw-icon-arrow-left) center / contain no-repeat;
	mask: var(--fw-icon-arrow-left) center / contain no-repeat;
	animation: fw-bounce 1s infinite;
}

.fw-hero.is-detail .fw-hero__head {
	margin-top: var(--wp--preset--spacing--10);
}

@media (min-width: 768px) {
	.fw-hero.is-detail .fw-hero__head {
		margin-top: var(--wp--preset--spacing--12);
	}
}

.fw-hero.is-detail .fw-hero__intro {
	margin-top: var(--wp--preset--spacing--8);
	color: var(--wp--preset--color--muted);
}

/* ---------- Feature grid ----------
 * The design's FeatureGrid: ruled slate cards, 288px high at least, 24px
 * padding (32px from 768px); the icon 28px gold, the title 24px medium
 * 56px below it (80px with no icon), the line 16px below in paper at 70%. */

.fw-feature-grid {
	display: grid;
	border-top: 1px solid var(--wp--preset--color--line);
	border-left: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 640px) {
	.fw-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.fw-feature-grid.is-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fw-feature-grid.is-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fw-feature {
	min-height: 18rem;
	padding: var(--wp--preset--spacing--6);
	border-right: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

@media (min-width: 768px) {
	.fw-feature {
		padding: var(--wp--preset--spacing--8);
	}
}

/* Gold icons on slate: 3.91:1, above the 3:1 graphics need. */
.fw-feature__icon.fw-glyph {
	color: var(--wp--preset--color--gold);
}

/* Two classes: WordPress's ":root :where(.is-layout-flow) > :first-child"
 * would otherwise zero the margin of a title that opens its card. */
.fw-feature > .fw-feature__title {
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--2-xl);
	font-weight: 500;
	line-height: 2rem;
}

.fw-feature.has-icon .fw-feature__title {
	margin-top: var(--wp--preset--spacing--14);
}

.fw-feature__body {
	margin-top: var(--wp--preset--spacing--4);
	color: var(--wp--custom--color--on-dark-70);
	line-height: var(--wp--custom--line-height--relaxed);
}

/* Careers' opening paragraph: 24px, relaxed, 896px wide, 56px above the grid. */
.fw-feature-grid__intro {
	max-width: var(--wp--custom--measure--4xl);
	margin-bottom: var(--wp--preset--spacing--14);
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: var(--wp--custom--line-height--relaxed);
}

/* About's lead line: 18px, 40px above the grid. */
.fw-feature-grid__lead {
	margin-bottom: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.75rem;
}

/* About's closing line: 30px, 60px from 768px, italic grey, 56px below the grid. */
.fw-feature-grid__closing {
	max-width: 64rem;
	margin-top: var(--wp--preset--spacing--14);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--quote);
	font-style: italic;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.fw-feature-grid__closing {
		line-height: var(--wp--custom--line-height--none);
	}
}

/* ---------- Image band ----------
 * The design's ImageBand: 45% of the screen high (340px at least), the
 * photo 120% high so it can drift 8% as the page scrolls, under a slate
 * wash at 25%, 50% then 85% down the band. */

.fw-band {
	position: relative;
	width: 100%;
	height: 45vh;
	min-height: 340px;
	overflow: hidden;
}

.fw-band.is-team {
	height: 56vw;
	max-height: 90vh;
}

.fw-band__media {
	position: absolute;
	top: -10%;
	left: 0;
	width: 100%;
	height: 120%;
	will-change: transform;
}

.fw-band__media > * {
	position: absolute;
	inset: 0;
	margin: 0;
}

.fw-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fw-band__wash {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, color-mix(in oklab, var(--wp--preset--color--slate) 25%, transparent), color-mix(in oklab, var(--wp--preset--color--slate) 50%, transparent), color-mix(in oklab, var(--wp--preset--color--slate) 85%, transparent));
	pointer-events: none;
}

.fw-band__quote {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.fw-band__figure {
	margin: 0;
	color: var(--wp--preset--color--paper);
	text-align: center;
}

.fw-band__figure blockquote {
	margin: 0;
}

.fw-band__figure blockquote p {
	max-width: 56rem;
	margin: 0 auto;
	font-size: var(--wp--preset--font-size--band-quote);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--snug);
}

.fw-band__figure figcaption {
	margin-top: var(--wp--preset--spacing--6);
	color: var(--wp--custom--color--on-dark-60);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1rem;
	text-transform: uppercase;
}

/* ---------- Image placeholder ----------
 * Where a photo is not yet in the media library, or the design itself
 * shows a placeholder: the design's neutral box with its two fine
 * diagonals and the label. Never stock imagery. Slate text (9:1). */

.fw-image-placeholder {
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: flex-end;
	min-height: 18rem;
	padding: var(--wp--preset--spacing--5);
	overflow: hidden;
	background-color: var(--wp--preset--color--placeholder);
	background-image:
		linear-gradient(145deg, transparent 49.7%, color-mix(in oklab, var(--wp--preset--color--gold) 42%, transparent) 50%, transparent 50.3%),
		linear-gradient(35deg, transparent 49.7%, color-mix(in oklab, var(--wp--preset--color--muted) 25%, transparent) 50%, transparent 50.3%);
}

.fw-image-placeholder.is-tall {
	min-height: 34rem;
}

.fw-image-placeholder__label {
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------- Project cards ----------
 * The design's ProjectStack: 24px apart; each card bordered, on card,
 * 512px high at least, photo and text side by side from 768px, every
 * second card with the photo on the right. The photo 544px high at least.
 * The text: 28px padding (48px from 768px), 20px at the foot; the label
 * 12px semibold uppercase grey; the title 36px, 60px from 768px; the line
 * 18px grey 24px below; the gold arrow (approved darker gold, 5.42:1). */

.fw-projects__list {
	display: grid;
	gap: var(--wp--preset--spacing--6);
}

.fw-card-link__a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.fw-project-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: 32rem;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--card);
}

@media (min-width: 768px) {
	.fw-project-card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fw-projects__list > li:nth-child(even) .fw-project-card > :first-child {
		order: 2;
	}
}

.fw-project-card__image {
	min-height: 34rem;
	margin: 0;
	overflow: hidden;
}

.fw-project-card__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
}

.fw-project-card__body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: var(--wp--preset--spacing--7) var(--wp--preset--spacing--7) var(--wp--preset--spacing--5);
}

@media (min-width: 768px) {
	.fw-project-card__body {
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--12) var(--wp--preset--spacing--5);
	}
}

.fw-project-card__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1rem;
	text-transform: uppercase;
}

.fw-project-card__title {
	max-width: var(--wp--custom--measure--xl);
	font-size: var(--wp--preset--font-size--6-xl);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--none);
}

.fw-project-card__summary {
	max-width: 32rem;
	margin-top: var(--wp--preset--spacing--6);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-project-card__arrow.fw-glyph {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--wp--preset--color--gold-text);
	transition: transform var(--wp--custom--motion--hover);
}

.fw-card-link__a:hover .fw-project-card__arrow,
.fw-card-link__a:hover .fw-service-row__arrow {
	transform: translate(4px, -4px);
}

.fw-projects__more {
	margin-top: var(--wp--preset--spacing--8);
}

/* ---------- Service rows ----------
 * The design's ServicesGrid: a line above the list, each row ruled below,
 * 32px top and bottom; from 768px the name, the line and the 24px arrow in
 * columns of 1, 1.5 and 48px. */

.fw-services {
	border-top: 1px solid var(--wp--preset--color--line);
}

.fw-service-row {
	display: grid;
	gap: var(--wp--preset--spacing--6);
	padding-block: var(--wp--preset--spacing--8);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 768px) {
	.fw-service-row {
		grid-template-columns: 1fr 1.5fr 3rem;
		align-items: start;
	}
}

/* 24px on a 32px line, 30px on a 36px line from 768px (text-2xl md:text-3xl). */
.fw-service-row__title {
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 500;
	line-height: 2rem;
}

@media (min-width: 768px) {
	.fw-service-row__title {
		line-height: 2.25rem;
	}
}

.fw-service-row__summary {
	color: var(--wp--preset--color--muted);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-service-row__arrow.fw-glyph {
	width: 1.5rem;
	height: 1.5rem;
	transition: transform var(--wp--custom--motion--hover);
}

/* ---------- Scope list ----------
 * The service page's "What we do": 40px between the columns from 1024px.
 * The opening line 24px; the list ruled above, below and between, 16px
 * rows, 32px below the line; the detail in grey, 32px below the list. */

.fw-scope {
	display: grid;
	gap: var(--wp--preset--spacing--10);
}

@media (min-width: 1024px) {
	.fw-scope {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fw-scope__body {
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-scope__list.wp-block-list {
	margin-top: var(--wp--preset--spacing--8);
	border-block: 1px solid var(--wp--preset--color--line);
}

.fw-scope__list li {
	padding-block: var(--wp--preset--spacing--4);
}

.fw-scope__list li + li {
	border-top: 1px solid var(--wp--preset--color--line);
}

.fw-scope__detail {
	margin-top: var(--wp--preset--spacing--8);
	color: var(--wp--preset--color--muted);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-scope__image {
	min-height: 34rem;
	margin: 0;
	overflow: hidden;
}

.fw-scope__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	object-fit: cover;
}

/* ---------- Quote ----------
 * The design's Quote: slate, 64px by 24px padding (96px by 64px from
 * 768px); the words 30px, 60px from 768px, medium; the name 40px below,
 * 14px, paper at 70%. */

.fw-quote {
	margin: 0;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--6);
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

@media (min-width: 768px) {
	.fw-quote {
		padding: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
	}
}

.fw-quote blockquote {
	margin: 0;
}

.fw-quote blockquote p {
	max-width: 64rem;
	font-size: var(--wp--preset--font-size--quote);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--tight);
}

.fw-quote figcaption {
	margin-top: var(--wp--preset--spacing--10);
	color: var(--wp--custom--color--on-dark-70);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.25rem;
}

/* ---------- Quote grid ----------
 * The design's QuoteGrid: ruled at paper 15%, three columns (1, 1, 1.35)
 * from 768px with more than one quote; each on slate, 40px by 24px (48px
 * by 32px from 768px); the words 18px, 20px from 768px, medium; the name
 * 40px below, 12px semibold uppercase, paper at 60%. */

.fw-quote-grid {
	display: grid;
	border-top: 1px solid var(--wp--custom--color--hairline-dark-15);
	border-left: 1px solid var(--wp--custom--color--hairline-dark-15);
}

@media (min-width: 768px) {
	.fw-quote-grid.is-multi {
		grid-template-columns: 1fr 1fr 1.35fr;
	}
}

.fw-quote-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--6);
	border-right: 1px solid var(--wp--custom--color--hairline-dark-15);
	border-bottom: 1px solid var(--wp--custom--color--hairline-dark-15);
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

@media (min-width: 768px) {
	.fw-quote-card {
		padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--8);
	}
}

.fw-quote-card blockquote {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--snug);
}

@media (min-width: 768px) {
	.fw-quote-card blockquote {
		font-size: var(--wp--preset--font-size--xl);
	}
}

/* A single quote (the Services page): centred, its words and name no wider
 * than 40rem (about 66 characters at 20px), so the lines do not run the
 * width of the page. Not in the design: asked for by Phil, 21 Oct 2026. */
.fw-quote-grid:not(.is-multi) .fw-quote-card {
	align-items: center;
	text-align: center;
}

.fw-quote-grid:not(.is-multi) .fw-quote-card blockquote,
.fw-quote-grid:not(.is-multi) .fw-quote-card figcaption {
	max-width: 40rem;
}

/* The design keeps the quote's blank lines between paragraphs. */
.fw-quote-card blockquote p + p {
	margin-top: 1lh;
}

.fw-quote-card figcaption {
	margin-top: var(--wp--preset--spacing--10);
	color: var(--wp--custom--color--on-dark-60);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	line-height: 1rem;
	text-transform: uppercase;
}

/* ---------- Engagement band ----------
 * The design's Cta: a gold line, 24px below it the heading (36px, 60px
 * from 768px) and, from 768px, the line (18px grey) and the link beside it. */

.fw-engage {
	display: grid;
	gap: var(--wp--preset--spacing--8);
	padding-top: var(--wp--preset--spacing--6);
	border-top: 1px solid var(--wp--preset--color--gold);
}

@media (min-width: 768px) {
	.fw-engage {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fw-engage__title {
	position: relative;
	z-index: 1;
	font-size: var(--wp--preset--font-size--6-xl);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--none);
}

.fw-engage__text {
	position: relative;
	z-index: 1;
}

.fw-engage__body {
	max-width: var(--wp--custom--measure--xl);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-engage__link {
	margin-top: var(--wp--preset--spacing--8);
}

.fw-engage__link a {
	gap: var(--wp--preset--spacing--3);
}

/* ---------- Scrolling gallery ----------
 * The design's ImageCarousel: square photos, a third of the screen wide,
 * sliding left a full set every 30 seconds, paused under the pointer or by
 * its button. Still and scrollable without the script or with reduced motion. */

.fw-marquee {
	position: relative;
	width: 100%;
	overflow-x: auto;
}

.fw-marquee.is-looping {
	overflow: hidden;
}

.fw-marquee__track {
	display: flex;
	width: max-content;
}

.fw-marquee.is-looping .fw-marquee__track {
	animation: fw-marquee 30s linear infinite;
	will-change: transform;
}

.fw-marquee.is-looping:hover .fw-marquee__track,
.fw-marquee.is-paused .fw-marquee__track {
	animation-play-state: paused;
}

@keyframes fw-marquee {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.fw-marquee__item {
	flex-shrink: 0;
	width: 33.333333vw;
	min-height: 0;
	aspect-ratio: 1;
	margin: 0;
	overflow: hidden;
}

.fw-marquee__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The pause button (approved 21 Oct 2026): 44px, slate, bottom right. */
.fw-marquee__toggle {
	position: absolute;
	right: var(--wp--preset--spacing--4);
	bottom: var(--wp--preset--spacing--4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
	cursor: pointer;
}

.fw-marquee__toggle .fw-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.fw-marquee__toggle:focus-visible {
	outline-color: var(--wp--preset--color--gold-on-dark);
}

@media (prefers-reduced-motion: reduce) {
	.fw-marquee.is-looping {
		overflow-x: auto;
	}

	.fw-marquee.is-looping .fw-marquee__track {
		animation: none;
	}

	.fw-marquee__toggle {
		display: none;
	}
}

/* ---------- Project gallery ----------
 * The design's GalleryCarousel: one photo at a time, 544px high at least,
 * fading over 0.5s; previous and next 16px in from the sides (paper at 80%,
 * a faint line); the dots 24px below, 10px, gold for the one showing. */

.fw-gallery__stage {
	display: flex;
	gap: var(--wp--preset--spacing--4);
	overflow-x: auto;
}

.fw-gallery__item {
	flex: 0 0 85%;
	min-height: 34rem;
	margin: 0;
}

.fw-gallery__item img {
	display: block;
	width: 100%;
	height: 34rem;
	object-fit: cover;
}

.fw-js .fw-gallery__stage {
	position: relative;
	display: block;
	min-height: 34rem;
	overflow: hidden;
	background: var(--wp--preset--color--card);
}

.fw-js .fw-gallery__item {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
}

.fw-js .fw-gallery__item.is-current {
	opacity: 1;
	pointer-events: auto;
}

.fw-js .fw-gallery__item img {
	height: 100%;
	cursor: zoom-in;
}

.fw-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: inline-flex;
	padding: var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--custom--color--line-60);
	background: var(--wp--custom--color--paper-80);
	color: var(--wp--preset--color--slate);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--wp--custom--motion--hover);
}

.fw-gallery__nav:hover {
	background: var(--wp--preset--color--paper);
}

.fw-gallery__nav.is-prev {
	left: var(--wp--preset--spacing--4);
}

.fw-gallery__nav.is-next {
	right: var(--wp--preset--spacing--4);
}

.fw-gallery__nav .fw-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* The dots are 10px as designed, each in a 24px target; the 7px either
 * side of the dot is taken back so the dots sit where the design draws
 * them (24px below the photo) and the section keeps its height. */
.fw-gallery > .fw-gallery__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--1);
	margin-top: calc(var(--wp--preset--spacing--6) - 7px);
	margin-bottom: -7px;
}

.fw-gallery__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.fw-gallery__dot::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
	transition: background-color var(--wp--custom--motion--hover);
}

.fw-gallery__dot:hover::before {
	background: var(--wp--preset--color--muted);
}

.fw-gallery__dot[aria-current="true"]::before {
	background: var(--wp--preset--color--gold);
}

.fw-viewer[hidden] {
	display: none;
}

.fw-viewer {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--custom--color--paper-95);
}

@media (min-width: 768px) {
	.fw-viewer {
		padding: var(--wp--preset--spacing--10);
	}
}

.fw-viewer img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.fw-viewer button {
	position: absolute;
	display: inline-flex;
	padding: var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--custom--color--line-60);
	background: transparent;
	color: var(--wp--preset--color--slate);
	cursor: pointer;
	transition: background-color var(--wp--custom--motion--hover);
}

.fw-viewer button:hover {
	background: var(--wp--preset--color--card);
}

.fw-viewer .is-close {
	top: var(--wp--preset--spacing--5);
	right: var(--wp--preset--spacing--5);
}

.fw-viewer .is-prev,
.fw-viewer .is-next {
	top: 50%;
	transform: translateY(-50%);
}

.fw-viewer .is-prev {
	left: var(--wp--preset--spacing--4);
}

.fw-viewer .is-next {
	right: var(--wp--preset--spacing--4);
}

@media (min-width: 768px) {
	.fw-viewer .is-prev {
		left: var(--wp--preset--spacing--8);
	}

	.fw-viewer .is-next {
		right: var(--wp--preset--spacing--8);
	}
}

.fw-viewer .fw-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* ---------- Project detail ----------
 * Three ruled columns from 768px under a line; each 32px padding, its
 * heading 30px regular 64px down, the paragraph grey 20px below. */

.fw-detail {
	display: grid;
	border-top: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 768px) {
	.fw-detail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fw-detail__block {
	padding: var(--wp--preset--spacing--8);
	border-right: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.fw-detail__block > .fw-detail__title,
.fw-env__aside-title,
.fw-split__list-title {
	margin-top: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 400;
	line-height: 2.25rem;
}

.fw-detail__body {
	margin-top: var(--wp--preset--spacing--5);
	color: var(--wp--preset--color--muted);
	line-height: var(--wp--custom--line-height--relaxed);
}

/* ---------- Key outcomes ----------
 * Ruled, two columns from 768px, 32px padding, 24px. */

.fw-outcomes.wp-block-list {
	display: grid;
	border-top: 1px solid var(--wp--preset--color--line);
	border-left: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 768px) {
	.fw-outcomes.wp-block-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fw-outcomes li {
	padding: var(--wp--preset--spacing--8);
	border-right: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--2-xl);
	line-height: 2rem;
}

/* ---------- Statement on slate ----------
 * About's team statement: the kicker 28px above the heading, the heading
 * 36px, 72px from 768px, medium, line height 1.04, its closing words
 * regular gold; a line at paper 15%, 48px below (64px from 768px). */

.fw-statement {
	padding-bottom: var(--wp--preset--spacing--12);
	border-bottom: 1px solid var(--wp--custom--color--hairline-dark-15);
}

@media (min-width: 768px) {
	.fw-statement {
		padding-bottom: var(--wp--preset--spacing--16);
	}
}

/* Small gold text on slate is the approved gold on dark (4.54:1). */
.fw-section.is-slate .fw-eyebrow {
	margin-bottom: var(--wp--preset--spacing--7);
	color: var(--wp--preset--color--gold-on-dark);
}

.fw-statement__title {
	position: relative;
	z-index: 1;
	font-size: var(--wp--preset--font-size--7-xl);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--heading-loose);
}

.fw-statement__title em {
	display: block;
	color: var(--wp--preset--color--gold);
	font-weight: 400;
}

/* ---------- Environments ----------
 * Industries: a line above, each row ruled below, 48px top and bottom; the
 * name 30px medium beside the paragraph (18px grey) from 768px (1 and
 * 1.25). Then the slate box 64px below: 32px padding (56px from 768px). */

.fw-env {
	border-top: 1px solid var(--wp--preset--color--line);
}

.fw-env__row {
	display: grid;
	gap: var(--wp--preset--spacing--8);
	padding-block: var(--wp--preset--spacing--12);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 768px) {
	.fw-env__row {
		grid-template-columns: 1fr 1.25fr;
	}
}

.fw-env__title {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 500;
	line-height: 2.25rem;
}

.fw-env__body {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-env__aside {
	display: grid;
	gap: var(--wp--preset--spacing--8);
	margin-top: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--8);
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
}

@media (min-width: 768px) {
	.fw-env__aside {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: var(--wp--preset--spacing--14);
	}
}

.fw-env__aside .fw-env__aside-title {
	margin-top: 0;
}

.fw-env__aside-items.wp-block-list {
	display: grid;
	gap: var(--wp--preset--spacing--3);
	margin-top: var(--wp--preset--spacing--6);
	color: var(--wp--custom--color--on-dark-70);
}

.fw-env__aside-text {
	font-size: var(--wp--preset--font-size--3-xl);
	line-height: var(--wp--custom--line-height--tight);
}

/* ---------- News feed ----------
 * The design's News page: columns of cards (two from 768px, three from
 * 1024px), 24px apart; each bordered on card, 20px padding. */

.fw-news {
	columns: 1;
	column-gap: var(--wp--preset--spacing--6);
}

@media (min-width: 768px) {
	.fw-news {
		columns: 2;
	}
}

@media (min-width: 1024px) {
	.fw-news {
		columns: 3;
	}
}

.fw-news-card {
	margin-bottom: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--card);
	break-inside: avoid;
}

.fw-js .fw-news.is-collapsed .fw-news-card.is-more {
	display: none;
}

.fw-news-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--wp--preset--spacing--5);
}

.fw-news-card__who {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
}

.fw-news-card__mark {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--xs);
}

.fw-news-card__author {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	line-height: 1.25rem;
}

.fw-news-card__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1rem;
}

.fw-news-card__network.fw-glyph {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--wp--preset--color--gold-text);
}

.fw-news-card__body {
	margin-top: var(--wp--preset--spacing--5);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-news-card__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--wp--preset--spacing--6);
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--line);
}

.fw-news-card__foot .fw-glyph {
	width: 1rem;
	height: 1rem;
}

/* "Discover more": outlined, 14px medium uppercase. Gold text on paper is
 * the approved darker gold, its outline too; on hover that gold fills it
 * under paper text (5.14:1, approved 21 Oct 2026). */
.fw-news__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--10);
}

.fw-news__more {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--8);
	border: 1px solid var(--wp--preset--color--gold-text);
	background: transparent;
	color: var(--wp--preset--color--gold-text);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--wide);
	line-height: 1.25rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--wp--custom--motion--hover), color var(--wp--custom--motion--hover);
}

.fw-news__more:hover {
	background: var(--wp--preset--color--gold-text);
	color: var(--wp--preset--color--paper);
}

.fw-news__more .fw-glyph {
	width: 1rem;
	height: 1rem;
}

/* ---------- Page intro ----------
 * About: the story in the second column from 768px (16px, 18px from
 * 768px, grey, 576px); the badges 40px below in three columns, 104px
 * each (128px from 640px). */

.fw-intro {
	display: grid;
	gap: var(--wp--preset--spacing--5);
}

@media (min-width: 768px) {
	.fw-intro {
		grid-template-columns: 1fr 2fr;
	}
}

.fw-intro__body {
	max-width: var(--wp--custom--measure--xl);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--line-height--relaxed);
}

.fw-intro__badges {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: var(--wp--preset--spacing--5);
	max-width: var(--wp--custom--measure--xl);
	margin-top: var(--wp--preset--spacing--10);
}

@media (min-width: 640px) {
	.fw-intro__badges {
		gap: var(--wp--preset--spacing--8);
	}
}

.fw-intro__badge {
	margin: 0;
}

.fw-intro__badge img {
	display: block;
	width: 100%;
	max-width: 6.4rem;
	height: auto;
}

@media (min-width: 640px) {
	.fw-intro__badge img {
		max-width: 8rem;
	}
}

.fw-intro__badges.fw-fact--block {
	width: auto;
}

.fw-intro__badges.fw-fact--block::after {
	grid-column: 1 / -1;
}

/* ---------- Contact ----------
 * The page heading (35px to 84px, its last words light grey), then 64px
 * below (80px from 768px) the details beside the form from 1024px (0.8 to
 * 1.2, 64px apart). "Get In Touch" 36px; each detail 32px apart, the icon
 * 24px in the approved gold text, the label semibold, the value grey. */

.fw-contact__title {
	position: relative;
	z-index: 1;
	max-width: var(--wp--custom--measure--hero);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--display);
}

.fw-contact {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	margin-top: var(--wp--preset--spacing--16);
}

@media (min-width: 768px) {
	.fw-contact {
		margin-top: var(--wp--preset--spacing--20);
	}
}

@media (min-width: 1024px) {
	.fw-contact {
		grid-template-columns: 0.8fr 1.2fr;
	}
}

.fw-contact__details-title {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: 500;
	line-height: 2.5rem;
}

.fw-contact__items {
	display: grid;
	gap: var(--wp--preset--spacing--8);
	margin: var(--wp--preset--spacing--10) 0 0;
	padding: 0;
	list-style: none;
}

.fw-contact__item {
	display: flex;
	gap: var(--wp--preset--spacing--4);
}

.fw-contact__item .fw-icon {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--wp--preset--color--gold-text);
}

.fw-contact__label {
	font-weight: 700;
}

.fw-contact__value {
	color: var(--wp--preset--color--muted);
	overflow-wrap: anywhere;
}

.fw-contact__value a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Careers ----------
 * Two columns from 1024px, 56px apart. Left: "Current Opportunities"
 * (36px, 72px from 768px) 48px above "What We Look For" (30px, 64px down),
 * the list grey, 16px apart. Right: "Send through your details" (36px),
 * its line grey, 24px above and below. */

.fw-split {
	display: grid;
	gap: var(--wp--preset--spacing--14);
}

@media (min-width: 1024px) {
	.fw-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fw-split__heading {
	margin-bottom: var(--wp--preset--spacing--12);
}

.fw-split__title {
	position: relative;
	z-index: 1;
	max-width: var(--wp--custom--measure--4xl);
	font-size: var(--wp--preset--font-size--7-xl);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--heading);
}

.fw-split__list.wp-block-list {
	display: grid;
	gap: var(--wp--preset--spacing--4);
	margin-top: var(--wp--preset--spacing--6);
	color: var(--wp--preset--color--muted);
}

.fw-split__form-title {
	font-size: var(--wp--preset--font-size--4-xl);
	font-weight: 400;
	line-height: 2.5rem;
}

.fw-split__form-text {
	margin-block: var(--wp--preset--spacing--6);
	color: var(--wp--preset--color--muted);
}

/* ---------- Forms ----------
 * Forminator, styled as the design's form controls (shadcn Label, Input,
 * Textarea, Button). Labels 14px medium; fields 48px high, a 1px border
 * (the approved field grey, 3.03:1), paper, 12px sides, 16px text (14px
 * from 768px), 8px under the label; the message 160px high; the button
 * slate, 48px. Forminator's character counters are hidden (the design has
 * none; the length limits stay). Its asterisks stay: every field is
 * required and they say so. */

.fw-main .forminator-ui,
.fw-capability .forminator-ui {
	display: grid;
	gap: var(--wp--preset--spacing--5);
	margin: 0;
	font-family: inherit;
}

.forminator-ui .forminator-row {
	display: grid;
	gap: var(--wp--preset--spacing--5);
}

@media (min-width: 640px) {
	.forminator-ui .forminator-row:has(> .forminator-col-6) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.forminator-ui .forminator-hidden,
.forminator-ui .forminator-field-text .forminator-description,
.forminator-ui .forminator-field-textarea .forminator-description {
	display: none;
}

/* The design's label is inline on the body's 24px line, so the field
 * starts 32px below the label's top. */
.forminator-ui .forminator-label {
	display: block;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	line-height: 1.5rem;
}

.forminator-ui .forminator-required {
	color: inherit;
}

.forminator-ui .forminator-input,
.forminator-ui .forminator-textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 3rem;
	margin-top: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--preset--color--field);
	border-radius: 0;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--slate);
	font: inherit;
	font-size: var(--wp--preset--font-size--base);
}

.forminator-ui .forminator-textarea {
	height: auto;
	min-height: 10rem;
	resize: vertical;
}

@media (min-width: 768px) {
	.forminator-ui .forminator-input,
	.forminator-ui .forminator-textarea {
		font-size: var(--wp--preset--font-size--sm);
	}
}

.forminator-ui .forminator-input:focus-visible,
.forminator-ui .forminator-textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}

.forminator-ui .forminator-button-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--2);
	box-sizing: border-box;
	width: 100%;
	height: 3rem;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--slate);
	color: var(--wp--preset--color--paper);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	cursor: pointer;
	transition: background-color var(--wp--custom--motion--hover);
}

.forminator-ui .forminator-button-submit:hover {
	background: color-mix(in oklab, var(--wp--preset--color--slate) 90%, transparent);
}

/* Inline errors: the design's destructive red (5.92:1 on paper). */
.forminator-ui .forminator-error-message {
	display: block;
	margin-top: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--error);
	font-size: var(--wp--preset--font-size--sm);
}

.forminator-ui .forminator-has_error .forminator-input,
.forminator-ui .forminator-has_error .forminator-textarea {
	border-color: var(--wp--preset--color--error);
}

.forminator-ui .forminator-response-message:empty,
.forminator-ui .forminator-response-message[aria-hidden="true"] {
	display: none;
}

.forminator-ui .forminator-response-message {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* Contact: the site's standard button (as "Get in touch" in the header):
 * as wide as its words, 36px high, 16px sides, the design's ↗ 8px after
 * "Submit". The design's is full width and 48px high; changed by Phil,
 * 21 Oct 2026. */
.fw-contact__form .forminator-button-submit {
	width: auto;
	height: auto;
	min-height: 2.25rem;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	line-height: 1.25rem;
}

.fw-contact__form .forminator-button-submit::after {
	content: "↗";
}

/* Capability statement: two columns from 640px, 16px apart; Name and
 * Email, then Business Name with "Download Now" (and its icon) beside it,
 * aligned to its foot, on the field's background. */
.fw-capability .forminator-ui {
	gap: var(--wp--preset--spacing--4);
}

@media (min-width: 640px) {
	.fw-capability .forminator-ui {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-content: start;
	}

	.fw-capability .forminator-ui .forminator-row {
		display: contents;
	}

	.fw-capability .forminator-ui .forminator-response-message {
		grid-column: 1 / -1;
	}

	.fw-capability .forminator-ui .forminator-row-last {
		display: block;
		align-self: end;
	}
}

.fw-capability .forminator-row-last {
	margin-top: var(--wp--preset--spacing--6);
}

.fw-capability .forminator-button-submit::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--fw-icon-download) center / contain no-repeat;
	mask: var(--fw-icon-download) center / contain no-repeat;
}
