/* ==========================================================================
   Forbes Bros — 2026 front page
   Scoped to .fb26 so it cannot leak into the rest of the legacy theme.
   ========================================================================== */

/* PT Root UI — ParaType, SIL OFL 1.1 (see assets/fonts/pt-root-ui-OFL.txt).
   Variable wght 300-700, subset to Latin. The full 795-glyph build with
   Cyrillic sits alongside it as pt-root-ui-full.woff2 if it's ever needed. */
@font-face {
	font-family: "PT Root UI";
	src: url("../fonts/pt-root-ui-latin.woff2") format("woff2-variations"),
		url("../fonts/pt-root-ui-latin.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

/* Tokens sit on :root, not on .fb26, because the header is rendered by
   header.php outside the .fb26 wrapper and still needs them. Declaring only
   custom properties here changes nothing on its own. */
:root {
	--fb-red: #e74c38;
	--fb-red-dark: #cf3f2c;
	--fb-ink: #000;
	--fb-body: #2a2a2a;
	--fb-muted: #63676d;
	--fb-grey-bg: #f0f0f1;
	--fb-line: #e3e3e4;
	--fb-line-soft: #fcedeb;
	--fb-card-scrim: rgba(0, 0, 0, 0.5);

	--fb-font: "PT Root UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--fb-container: 1140px;
	--fb-gutter: 24px;

	--fb-header-h: 69px;
}

.fb26 {
	font-family: var(--fb-font);
	color: var(--fb-body);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.fb26 *,
.fb26 *::before,
.fb26 *::after {
	box-sizing: border-box;
}

/* Photo blocks share the 3px radius the buttons use. Each of these clips its
   own <img> via overflow: hidden, so the radius only needs to go on the box. */
.fb26-shear,
.fb26-card,
.fb26-project {
	border-radius: 3px;
}

.fb26 img,
.fb26 svg,
.fb26 video {
	max-width: 100%;
	display: block;
}

/* :where() keeps this at zero specificity so component rules still win. */
.fb26 :where(p) {
	margin: 0 0 1em;
}

.fb26 :where(p:last-child) {
	margin-bottom: 0;
}

.fb26-container {
	width: 100%;
	max-width: calc(var(--fb-container) + var(--fb-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--fb-gutter);
}

.fb26-section {
	padding-block: 90px;
}

/* --- Eyebrow label ------------------------------------------------------- */

.fb26-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--fb-muted);
}

.fb26-eyebrow::before {
	content: "";
	width: 18px;
	height: 13px;
	background: var(--fb-red);
	/* the mark is a slightly sheared block, not a square */
	clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

/* --- Headings ------------------------------------------------------------ */

.fb26-h2 {
	margin: 0;
	font-size: clamp(30px, 3.1vw, 44px);
	line-height: 1.14;
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--fb-ink);
}

.fb26-h2 .fb26-h2__accent {
	color: var(--fb-red);
	display: block;
}

.fb26-lede {
	margin: 18px 0 0;
	max-width: 46ch;
	font-size: 16px;
	line-height: 1.45;
	color: var(--fb-body);
}

/* --- Buttons ------------------------------------------------------------- */

.fb26-btn {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--fb-red);
	border-radius: 3px;
	background: #fff;
	color: var(--fb-red);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fb26-btn__label {
	padding: 12px 20px;
}

.fb26-btn__caret {
	display: grid;
	place-items: center;
	width: 40px;
	border-left: 1px solid var(--fb-line-soft);
	transition: border-color 0.18s ease;
}

.fb26-btn__caret svg {
	width: 7px;
	height: 12px;
}

.fb26-btn:hover,
.fb26-btn:focus-visible {
	background: var(--fb-red);
	color: #fff;
}

.fb26-btn:hover .fb26-btn__caret,
.fb26-btn:focus-visible .fb26-btn__caret {
	border-left-color: rgba(255, 255, 255, 0.4);
}

/* Solid white button used on top of photography */
.fb26-btn--onimage {
	background: #fff;
	border-color: #fff;
	border-radius: 3px;
	color: var(--fb-red);
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 500;
	display: inline-block;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fb26-btn--onimage:hover,
.fb26-btn--onimage:focus-visible {
	background: var(--fb-red);
	border-color: var(--fb-red);
	color: #fff;
}

.fb26 a:focus-visible,
.fb26 button:focus-visible {
	outline: 2px solid var(--fb-red);
	outline-offset: 3px;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.fb26-hero {
	position: relative;
	/* Same 32px inset as the footer block */
	margin-inline: 32px;
	border-radius: 3px;
	height: clamp(480px, 47vw, 700px);
	overflow: hidden;
	background: #1b1b1d;
	isolation: isolate;
}

.fb26-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Even dark overlay across the whole frame, both sides of the slash */
.fb26-hero__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
}

/* The white slash that separates the two halves */
.fb26-hero__slash {
	position: absolute;
	inset: 0;
	background: #fff;
	clip-path: polygon(63.5% 0, 65.2% 0, 56.2% 100%, 54.5% 100%);
}

.fb26-hero__inner {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.fb26-hero__content {
	max-width: 620px;
	color: #fff;
}

.fb26-hero__title {
	margin: 0;
	/* Hits the design's 60px at the 1440 frame, scales down below it. */
	font-size: clamp(34px, 4.17vw, 60px);
	line-height: 1.2;
	font-weight: 700;
	/* -1.83px at 60px, expressed in em so it tracks the clamp. */
	letter-spacing: -0.0305em;
	color: #fff;
}

.fb26-hero__text {
	margin: 36px 0 0;
	max-width: 44ch;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   2. Philosophy + service icons
   ========================================================================== */

.fb26-philosophy__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.fb26-philosophy__head .fb26-lede {
	max-width: 62ch;
}

.fb26-services {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
	margin-top: 64px;
	text-align: center;
}

.fb26-service__icon {
	height: 150px;
	display: grid;
	place-items: end center;
	margin-bottom: 22px;
}

.fb26-service__icon svg,
.fb26-service__icon img {
	max-height: 150px;
	width: auto;
	margin-inline: auto;
}

.fb26-service__title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--fb-ink);
}

.fb26-service__title a {
	color: inherit;
	text-decoration: none;
}

.fb26-service__title a:hover {
	color: var(--fb-red);
}

.fb26-service__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--fb-body);
}

/* Line-art draw-on animation, once, when scrolled into view */
.fb26-service__icon [data-draw] path,
.fb26-service__icon [data-draw] line,
.fb26-service__icon [data-draw] polyline {
	stroke-dasharray: var(--dash, 1000);
	stroke-dashoffset: var(--dash, 1000);
}

.fb26-service__icon.is-drawn [data-draw] path,
.fb26-service__icon.is-drawn [data-draw] line,
.fb26-service__icon.is-drawn [data-draw] polyline {
	animation: fb-draw 1.1s ease forwards;
	animation-delay: var(--delay, 0s);
}

@keyframes fb-draw {
	to {
		stroke-dashoffset: 0;
	}
}

/* ==========================================================================
   3. About
   ========================================================================== */

.fb26-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: 64px;
	align-items: center;
}

.fb26-stats {
	display: flex;
	gap: 46px;
	margin-top: 74px;
	flex-wrap: wrap;
}

.fb26-stat__value {
	margin: 0;
	font-size: 34px;
	line-height: 1;
	font-weight: 500;
	color: var(--fb-red);
	letter-spacing: -0.015em;
}

.fb26-stat__label {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--fb-red);
}

/* Sheared photo panel */
.fb26-shear {
	position: relative;
	overflow: hidden;
	aspect-ratio: 617 / 445;
	clip-path: polygon(13.2% 0, 100% 0, 100% 100%, 0 100%);
}

.fb26-shear img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Same overlay as the hero video */
.fb26-shear::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.6);
}

.fb26-shear__cta {
	position: absolute;
	right: 24px;
	bottom: 26px;
	z-index: 2;
}

/* ==========================================================================
   4. Companies
   ========================================================================== */

.fb26-companies {
	background: #fff;
}

.fb26-company-grid {
	margin-top: 46px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fb26-company-row {
	display: flex;
	gap: 0;
}

.fb26-card {
	position: relative;
	overflow: hidden;
	display: block;
	text-decoration: none;
	color: #fff;
	background: #2c3e56;
	isolation: isolate;
}

.fb26-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fb26-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--fb-card-scrim);
	z-index: -1;
}

.fb26-card:hover img,
.fb26-card:focus-visible img {
	transform: scale(1.04);
}

.fb26-card__body {
	position: relative;
	height: 100%;
	padding: 34px 36px 30px;
	display: flex;
	flex-direction: column;
}

.fb26-card__title {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	color: #fff;
	max-width: 22ch;
}

.fb26-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	max-width: 62ch;
}

.fb26-card__cta {
	margin-top: auto;
	align-self: flex-start;
}

/* Feature card spans the row */
.fb26-card--feature {
	width: 100%;
	aspect-ratio: 1140 / 440;
}

.fb26-card--feature .fb26-card__title {
	max-width: none;
}

.fb26-card--feature .fb26-card__text {
	max-width: 90ch;
}

.fb26-card--feature .fb26-card__cta {
	position: absolute;
	right: 36px;
	bottom: 30px;
	margin-top: 0;
}

/* Paired cards, split by a diagonal white gap */
/* Each half overhangs the centre line so the diagonal clip leaves a white
   wedge; the extra width keeps the pair spanning the full container. */
.fb26-card--half {
	width: 56.4%;
	aspect-ratio: 643 / 438;
	flex: 0 0 auto;
}

/* Gap centre runs 615px -> 529px across the 1140px block; each edge is
   offset 5px from it so the pair leaves a 10px white diagonal. */
.fb26-card--half:first-child {
	clip-path: polygon(0 0, 94.87% 0, 81.45% 100%, 0 100%);
	margin-right: -6.4%;
}

.fb26-card--half:last-child {
	clip-path: polygon(19.12% 0, 100% 0, 100% 100%, 5.7% 100%);
	margin-left: -6.4%;
}

.fb26-card--half:first-child .fb26-card__body {
	padding-right: 22%;
}

.fb26-card--half:last-child .fb26-card__body {
	padding-left: 24%;
}

.fb26-card--half .fb26-card__title {
	font-size: 21px;
	margin-top: auto;
}

.fb26-card--half .fb26-card__cta {
	margin-top: 20px;
}

/* ==========================================================================
   5. Our Story — interactive timeline
   ========================================================================== */

.fb26-story {
	position: relative;
	padding-top: 90px;
	padding-bottom: 0;
	overflow: hidden;
}

.fb26-story__stage {
	position: relative;
	margin-top: 34px;
	min-height: 620px;
}

.fb26-story__art {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 100vw;
	max-width: none;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	/* Line art is screened back so it reads as a backdrop, not a subject. */
	opacity: 0.5;
}

.fb26-story__nav {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.fb26-era-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	border: 0;
	border-radius: 3px;
	background: var(--fb-red);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.fb26-era-btn:hover {
	background: var(--fb-red-dark);
}

.fb26-era-btn svg {
	width: 6px;
	height: 11px;
	flex: none;
}

/* Marker: dot + drop line + copy */
.fb26-era {
	position: absolute;
	top: 6px;
	z-index: 2;
	width: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.fb26-era[hidden] {
	display: none;
}

.fb26-era__dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--fb-red);
}

.fb26-era__line {
	width: 2px;
	background: var(--fb-red);
	margin-left: 6px;
	/* Stage top to the summit: stage height, less the dot, less how far the
	   peak rises out of the bottom-anchored artwork. */
	height: max(28px, calc(620px - 21px - (100vw * 529 / 1439) * var(--peak-f, 0.9)));
}

.fb26-era__copy {
	position: absolute;
	left: 34px;
	top: 56px;
	width: 330px;
	padding: 20px 24px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* Peaks past the midpoint would run the card off the right edge. */
.fb26-era--flip .fb26-era__copy {
	left: auto;
	right: 20px;
}

.fb26-era__years {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 500;
	color: var(--fb-ink);
	letter-spacing: -0.01em;
}

.fb26-era__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--fb-body);
}

.fb26-era.is-entering {
	opacity: 0;
	transform: translateY(8px);
}

.fb26-era__label {
	display: none;
}

/* Wide screens show every era at once as a marker on its peak; the copy opens
   on hover, so the prev/next stepper has nothing left to do. Narrower screens
   keep the one-at-a-time carousel, which JS drives via [hidden]. */
@media (min-width: 1024px) {
	.fb26-story__nav {
		display: none;
	}

	/* The artwork is bottom-anchored and scales with the viewport, so the stage
	   has to grow with it — otherwise wide screens push the summits above the
	   markers. 140px of headroom clears the tallest peak's dot and label. */
	.fb26-story {
		--art-h: calc(100vw * 529 / 1439);
		--stage-h: max(620px, calc(var(--art-h) + 140px));
	}

	.fb26-story__stage {
		min-height: var(--stage-h);
	}

	/* Drop each marker onto its own summit instead of a shared top rail:
	   --peak-y is the peak's distance from the stage top, so the dot rides
	   a fixed stem above it and the row follows the ridge. */
	.fb26-era {
		--peak-y: calc(var(--stage-h) - var(--art-h) * var(--peak-f, 0.9));
		top: max(6px, calc(var(--peak-y) - 71px));
	}

	.fb26-era__line {
		/* Normally the full 56px stem; it shortens only when a peak sits so
		   high that the dot has been clamped to the top of the stage. */
		height: max(10px, min(56px, calc(var(--peak-y) - 21px)));
	}

	.fb26-era__dot {
		position: relative;
		transition: transform 0.18s ease;
	}

	/* Thin targets are hard to hit — pad the dot out without moving it. */
	.fb26-era__dot::before {
		content: '';
		position: absolute;
		inset: -9px;
	}

	/* Centred above its own dot: markers now sit at different heights, so a
	   label beside the dot would collide with its neighbour on narrow desktops. */
	.fb26-era__label {
		display: block;
		position: absolute;
		top: -26px;
		left: 7.5px;
		transform: translateX(-50%);
		margin: 0;
		padding: 2px 9px;
		border-radius: 3px;
		background: rgba(255, 255, 255, 0.82);
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
		font-size: 14px;
		font-weight: 500;
		white-space: nowrap;
		color: var(--fb-ink);
		transition: background-color 0.18s ease, color 0.18s ease;
	}

	/* An open card is wider than the gap to the next marker, so it must never
	   take the pointer — otherwise it swallows the hover meant for its
	   neighbour and stays open. Nothing in it is interactive. */
	.fb26-era__copy {
		top: 28px;
		left: 22px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.fb26-era--flip .fb26-era__copy {
		left: auto;
		right: 22px;
	}

	/* The label already states the years. */
	.fb26-era__copy .fb26-era__years {
		display: none;
	}

	.fb26-era:hover,
	.fb26-era:focus-within {
		z-index: 4;
	}

	.fb26-era:hover .fb26-era__copy,
	.fb26-era:focus-within .fb26-era__copy {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.fb26-era:hover .fb26-era__dot,
	.fb26-era:focus-within .fb26-era__dot {
		transform: scale(1.2);
	}

	.fb26-era:hover .fb26-era__label,
	.fb26-era:focus-within .fb26-era__label {
		background: var(--fb-red);
		color: #fff;
	}

	/* A clicked marker keeps focus, so without this its card would stay up
	   while the pointer is already on a different one. Hover always wins. */
	.fb26-story__markers:hover .fb26-era:not(:hover) .fb26-era__copy {
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
	}

	.fb26-story__markers:hover .fb26-era:not(:hover) .fb26-era__dot {
		transform: none;
	}

	.fb26-story__markers:hover .fb26-era:not(:hover) .fb26-era__label {
		background: rgba(255, 255, 255, 0.82);
		color: var(--fb-ink);
	}

	.fb26-era:hover {
		z-index: 5;
	}

	.fb26-era:focus-visible {
		outline: none;
	}

	.fb26-era:focus-visible .fb26-era__dot {
		box-shadow: 0 0 0 3px rgba(231, 78, 56, 0.35);
	}
}

/* ==========================================================================
   6. Purpose
   ========================================================================== */

/* A 1px border can't survive clip-path, so the outline is two stacked
   clipped layers: the tint shows through as a hairline around the fill. */
.fb26-purpose__box {
	position: relative;
	padding: 54px 34px;
	display: grid;
	grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
}

.fb26-purpose__box::before,
.fb26-purpose__box::after {
	content: "";
	position: absolute;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
}

.fb26-purpose__box::before {
	inset: 0;
	background: var(--fb-line-soft);
}

.fb26-purpose__box::after {
	inset: 1px;
	background: #fff;
}

.fb26-purpose__box > * {
	position: relative;
	z-index: 1;
}

.fb26-purpose__title {
	margin: 14px 0 0;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--fb-ink);
}

.fb26-values {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.fb26-value__title {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--fb-ink);
}

.fb26-value__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--fb-body);
}

/* ==========================================================================
   7. Projects
   ========================================================================== */

.fb26-projects__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.fb26-projects__title {
	margin: 0;
	font-size: clamp(28px, 2.8vw, 38px);
	font-weight: 700;
	letter-spacing: -0.012em;
	color: var(--fb-ink);
}

.fb26-projects__viewport {
	margin-top: 42px;
	overflow: hidden;
}

.fb26-projects__track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fb26-project {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 1140 / 437;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
}

.fb26-project img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.fb26-project::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.66) 100%);
	z-index: -1;
}

.fb26-project__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0 34px 30px;
}

.fb26-project__title {
	margin: 0 0 22px;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 500;
	color: #fff;
	max-width: 40ch;
	/* Highlights vary from one line to a full paragraph — keep cards level. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.fb26-project__meta {
	display: flex;
	align-items: flex-end;
	gap: 34px;
	flex-wrap: wrap;
}

.fb26-project__meta dl {
	margin: 0;
}

.fb26-project__meta dt {
	margin: 0;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
}

.fb26-project__meta dd {
	margin: 3px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.72);
}

.fb26-project__cta {
	margin-left: auto;
}

.fb26-projects__dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 26px;
}

.fb26-dot {
	width: 30px;
	height: 3px;
	border: 0;
	padding: 0;
	background: #d2d2d3;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fb26-dot[aria-current="true"] {
	background: var(--fb-red);
}

/* ==========================================================================
   8. Locations map
   ========================================================================== */

.fb26-locations__stage {
	position: relative;
	margin-top: 34px;
}

.fb26-map {
	position: relative;
	width: 100%;
	max-width: 780px;
	margin-inline: auto;
}

.fb26-map__art {
	width: 100%;
}

.fb26-pin {
	position: absolute;
	width: 17px;
	height: 17px;
	margin: -8.5px 0 0 -8.5px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fb-red);
	cursor: pointer;
	transition: transform 0.18s ease;
}

.fb26-pin::before {
	/* larger invisible hit area */
	content: "";
	position: absolute;
	inset: -11px;
}

.fb26-pin:hover,
.fb26-pin[aria-expanded="true"] {
	transform: scale(1.25);
}

/* Elbow connector drawn from the card to its pin */
.fb26-map__link-h,
.fb26-map__link-v {
	position: absolute;
	background: var(--fb-red);
	z-index: 3;
	pointer-events: none;
}

.fb26-map__link-h[hidden],
.fb26-map__link-v[hidden] {
	display: none;
}

.fb26-map__link-h {
	height: 1px;
}

.fb26-map__link-v {
	width: 1px;
}

.fb26-location-card {
	position: absolute;
	z-index: 4;
	width: 290px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--fb-line);
	font-size: 13px;
	line-height: 1.5;
}

.fb26-location-card[hidden] {
	display: none;
}

.fb26-location-card h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-ink);
}

.fb26-location-card strong {
	display: block;
	margin-top: 10px;
	font-weight: 500;
	color: var(--fb-ink);
}

.fb26-location-card p {
	margin: 0;
	color: var(--fb-body);
}

/* ==========================================================================
   9. Logo strip
   ========================================================================== */

.fb26-logos {
	padding-block: 40px 76px;
}

.fb26-logos__mask {
	overflow: hidden;
}

.fb26-logos__track {
	display: flex;
	align-items: center;
	gap: 76px;
	width: max-content;
	animation: fb-marquee 50s linear infinite;
}

.fb26-logos:hover .fb26-logos__track {
	animation-play-state: paused;
}

.fb26-logos__track img {
	height: 26px;
	width: auto;
	flex: none;
	object-fit: contain;
}

@keyframes fb-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ==========================================================================
   10. Contact
   ========================================================================== */

.fb26-contact {
	background: var(--fb-grey-bg);
	padding-block: 74px 90px;
}

.fb26-contact__head {
	text-align: center;
	margin-bottom: 42px;
}

.fb26-contact__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 2.6vw, 34px);
	font-weight: 500;
	color: var(--fb-ink);
}

.fb26-contact__head p {
	margin: 0;
	font-size: 16px;
	color: var(--fb-body);
}

.fb26-contact__form {
	max-width: 480px;
	margin-inline: auto;
}

/* --- Form controls (also styles the Contact Form 7 output) --------------- */

/* CF7 runs the form markup through wpautop, which turns every newline into a
   <br>. They land after every label. Nothing in this form wants one. */
.fb26-contact__form br {
	display: none;
}

.fb26-contact__form .fb26-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.fb26-contact__form .fb26-field {
	margin: 0 0 18px;
}

.fb26-contact__form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-ink);
}

.fb26-contact__form input[type="text"],
.fb26-contact__form input[type="email"],
.fb26-contact__form input[type="tel"],
.fb26-contact__form select,
.fb26-contact__form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #dedee0;
	border-radius: 7px;
	background: #fff;
	font-family: inherit;
	/* 16px keeps iOS Safari from zooming the page on focus */
	font-size: 16px;
	line-height: 1.4;
	color: var(--fb-body);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fb26-contact__form textarea {
	min-height: 130px;
	resize: vertical;
}

.fb26-contact__form ::placeholder {
	color: #9a9c9f;
}

.fb26-contact__form input:focus,
.fb26-contact__form select:focus,
.fb26-contact__form textarea:focus {
	outline: 0;
	border-color: var(--fb-red);
	box-shadow: 0 0 0 3px rgba(231, 76, 56, 0.14);
}

.fb26-consent {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 4px 0 24px;
	font-size: 15px;
	color: var(--fb-body);
}

.fb26-contact__form .fb26-consent input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	flex: none;
	margin: 0;
	border: 1px solid var(--fb-red);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.fb26-contact__form .fb26-consent input[type="checkbox"]:checked {
	background: var(--fb-red)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E")
		center / 12px 10px no-repeat;
}

/* CF7 nests the box and its text inside a <label>, several spans deep, so the
   gap has to go on that label rather than on .fb26-consent. */
.fb26-contact__form .fb26-consent .wpcf7-list-item {
	margin: 0;
}

.fb26-contact__form .fb26-consent label {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.4;
	color: var(--fb-body);
	cursor: pointer;
}

.fb26-contact__form input[type="submit"],
.fb26-contact__form button[type="submit"] {
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--fb-red);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.fb26-contact__form input[type="submit"]:hover,
.fb26-contact__form button[type="submit"]:hover {
	background: var(--fb-red-dark);
}

/* Contact Form 7 chrome */
.fb26-contact__form .wpcf7-form-control-wrap {
	display: block;
}

.fb26-contact__form .wpcf7-not-valid-tip {
	margin-top: 5px;
	font-size: 13px;
	color: var(--fb-red);
}

.fb26-contact__form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 15px;
	border: 1px solid var(--fb-line);
	border-radius: 7px;
	font-size: 14px;
}

.fb26-contact__form .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.fb26 *,
	.fb26 *::before,
	.fb26 *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.fb26-service__icon.is-drawn [data-draw] path,
	.fb26-service__icon.is-drawn [data-draw] line,
	.fb26-service__icon.is-drawn [data-draw] polyline {
		stroke-dashoffset: 0;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
	.fb26-section {
		padding-block: 64px;
	}

	.fb26-services {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 32px;
	}

	.fb26-about__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.fb26-purpose__box {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 44px 40px;
	}

	.fb26-story__stage {
		min-height: 520px;
	}

	.fb26-era {
		width: 300px;
	}

	.fb26-era__copy {
		width: 290px;
	}
}

@media (max-width: 767px) {
	.fb26-hero__slash {
		display: none;
	}

	.fb26-services {
		grid-template-columns: 1fr;
	}

	.fb26-service__icon {
		height: 130px;
	}

	.fb26-company-row {
		flex-direction: column;
		gap: 10px;
	}

	.fb26-card--half {
		width: 100%;
		margin: 0 !important;
		clip-path: none !important;
		aspect-ratio: 16 / 11;
	}

	.fb26-card--half .fb26-card__body {
		padding: 26px !important;
	}

	.fb26-card--feature {
		aspect-ratio: auto;
		min-height: 0;
	}

	.fb26-card--feature .fb26-card__cta {
		position: static;
		margin-top: 22px;
		align-self: flex-start;
	}

	.fb26-project {
		aspect-ratio: 4 / 5;
	}

	.fb26-project__meta {
		gap: 18px;
	}

	.fb26-project__cta {
		margin: 14px 0 0;
	}

	.fb26-stats {
		gap: 28px;
	}

	.fb26-era {
		position: static;
		width: 100%;
		margin-top: 28px;
	}

	.fb26-era__dot,
	.fb26-era__line {
		display: none;
	}

	.fb26-era__copy {
		position: static;
		width: 100%;
	}

	.fb26-story__stage {
		min-height: 0;
		padding-bottom: 30px;
	}

	.fb26-story__art {
		position: relative;
		margin-top: 30px;
	}

	.fb26-logos__track {
		gap: 48px;
	}
}

/* ==========================================================================
   11. Header
   The nav markup lives in header.php, outside .fb26, so these rules hang off
   the .fb26-page body class instead. Everything is inside the lg breakpoint
   that bootstrap's .navbar-expand-lg uses, so the mobile collapse — toggler,
   stacked menu, static sub-menus — keeps its existing behaviour untouched.
   ========================================================================== */

@media (min-width: 992px) {

	/* assets/css/style.css sets `nav { padding: 55px 60px 30px !important }`,
	   so matching !important is the only way to reset it. */
	.fb26-page .navbar {
		height: var(--fb-header-h);
		padding: 0 32px !important;
		display: flex;
		align-items: center;
		background: #fff;
	}

	/* The fixed-top nav no longer overlays the hero, so make room for it. */
	.fb26-page .fb26 {
		padding-top: var(--fb-header-h);
	}

	.fb26-page .navbar-brand {
		flex: none;
		margin: 0;
		padding: 0;
	}

	/* Beats `nav a.navbar-brand img { width:340px; height:55px; max-width:80% }` */
	.fb26-page nav a.navbar-brand img {
		display: block;
		width: auto;
		height: 44px;
		max-width: none;
	}

	.fb26-page .navbar-collapse {
		display: flex;
		align-items: center;
		flex: 1;
	}

	/* Centre the menu in the space between logo and CTA, overriding .ml-auto */
	.fb26-page .navbar-nav {
		display: flex;
		align-items: center;
		gap: 17px;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	/* style.css gives every .menu-item 15px side padding; the gap replaces it.
	   Full header height matters too: .sub-menu is positioned `top: 100%` off
	   this <li>, so a text-height <li> would open the dropdown part-way up the
	   header. At 69px it drops from the header's bottom edge, which also
	   removes the dead gap the pointer had to cross to reach it. */
	.fb26-page .navbar-nav > .menu-item {
		height: var(--fb-header-h);
		display: flex;
		align-items: center;
		padding: 0;
	}

	.fb26-page .navbar-nav > .menu-item > a {
		display: inline-flex;
		align-items: center;
		padding: 0;
		font-family: var(--fb-font);
		font-size: 16px;
		font-weight: 500;
		line-height: 22px;
		letter-spacing: 0;
		text-transform: capitalize;
		white-space: nowrap;
		color: var(--fb-ink);
		transition: color 0.18s ease;
	}

	.fb26-page .navbar-nav > .menu-item > a:hover,
	.fb26-page .navbar-nav > .menu-item > a:focus-visible {
		color: var(--fb-red);
	}

	.fb26-page .navbar-nav .menu-item .icon {
		display: inline-flex;
		align-items: center;
		margin-left: 13px;
	}

	.fb26-page .navbar-nav .menu-item .svg-icon {
		width: 13px;
		height: auto;
		margin: 0;
	}

	.fb26-page .fb26-nav-cta {
		flex: none;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 194px;
		height: 41px;
		padding: 0 24px;
		border-radius: 3px;
		background: var(--fb-red);
		font-family: var(--fb-font);
		font-size: 16px;
		font-weight: 500;
		line-height: 22px;
		text-transform: capitalize;
		text-decoration: none;
		white-space: nowrap;
		color: #fff;
		transition: background-color 0.18s ease;
	}

	.fb26-page .fb26-nav-cta:hover,
	.fb26-page .fb26-nav-cta:focus-visible {
		background: var(--fb-red-dark);
		color: #fff;
		text-decoration: none;
	}

	.fb26-page .sub-menu {
		width: auto;
		min-width: 210px;
		padding: 10px 0;
		background: #fff;
		border: 1px solid var(--fb-line);
		border-radius: 3px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}

	.fb26-page .sub-menu .menu-item {
		padding: 0;
	}

	.fb26-page .sub-menu .menu-item a {
		display: block;
		position: relative;
		padding: 11px 22px!important;
		font-family: var(--fb-font);
		font-size: 15px;
		font-weight: 400;
		line-height: 1.4;
		text-transform: none;
		white-space: nowrap;
		color: var(--fb-body);
		transition: padding-left 0.15s ease, color 0.15s ease;
	}

	/* Keeps style.css's hover behaviour — the label slides right and a Font
	   Awesome caret (\f0da) appears via ::after — but rebased onto the new
	   22px padding, so the caret lands where the resting text sits. */
	.fb26-page .sub-menu .menu-item a:hover {
		padding-left: 36px !important;
		color: var(--fb-red);
	}

	.fb26-page .sub-menu .menu-item a:hover::after {
		left: 22px;
		top: 50%;
		transform: translateY(-50%);
	}
}

/* ==========================================================================
   12. Footer
   Rendered by footer.php only on the front-page template; every other page
   keeps the legacy markup. Scoped to .fb26-page for the same reason as the
   header — the footer sits outside the .fb26 wrapper.
   ========================================================================== */

.fb26-page .fb26-footer {
	background: var(--fb-grey-bg);
	padding: 0 32px;
	position: static;
	z-index: auto;
}

/* assets/css/style.css paints a full-bleed overlay image on `footer:after`. */
.fb26-page .fb26-footer::after {
	content: none;
}

.fb26-page .fb26-footer__block {
	padding: 61px 96px 34px;
	background: var(--fb-red);
	color: #fff;
	font-family: var(--fb-font);
	/* 45-degree cut on both bottom corners, as in the design */
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 76px),
		calc(100% - 76px) 100%,
		76px 100%,
		0 calc(100% - 76px)
	);
}

.fb26-page .fb26-footer__grid {
	display: grid;
	grid-template-columns: 45.1% 19.3% 19.3% 16.3%;
}

/* --- Brand column --- */

.fb26-page .fb26-footer__logo {
	display: inline-flex;
}

.fb26-page .fb26-footer__logo img {
	display: block;
	width: auto;
	height: 38px;
	max-width: none;
}

.fb26-page .fb26-footer__tagline {
	margin: 20px 0 0;
	max-width: 312px;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}

/* justify-content is explicit because style.css sets `footer ul` to
   space-evenly, which would fling the two icons apart. */
.fb26-page .fb26-footer__social {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 16px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.fb26-page .fb26-footer__social li {
	list-style: none;
	padding: 0;
}

.fb26-page .fb26-footer__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	transition: background-color 0.18s ease;
}

.fb26-page .fb26-footer__social a:hover {
	background: rgba(255, 255, 255, 0.34);
}

.fb26-page .fb26-footer__coltitle {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

.fb26-page .fb26-footer__menu {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fb26-page .fb26-footer__menu li {
	list-style: none;
	padding: 0;
}

.fb26-page .fb26-footer__menu li + li {
	margin-top: 10px;
}

/* style.css puts Teko + uppercase directly on `.menu-item a`, and a rule on
   the anchor beats the family inherited from .fb26-footer__block — so the
   family and transform have to be restated here. */
.fb26-page .fb26-footer__menu a {
	display: inline-block;
	font-family: var(--fb-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.92);
	transition: color 0.18s ease;
}

.fb26-page .fb26-footer__menu a:hover {
	color: #fff;
	text-decoration: underline;
}

/* --- Bottom bar --- */

.fb26-page .fb26-footer__bottom {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	text-align: center;
}

.fb26-page .fb26-footer__copy,
.fb26-page .fb26-footer__legal {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.fb26-page .fb26-footer__legal {
	margin-top: 8px;
}

.fb26-page .fb26-footer__legal a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.fb26-page .fb26-footer__legal a:hover {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 991px) {
	.fb26-page .fb26-footer {
		padding: 0 16px;
	}

	.fb26-page .fb26-footer__block {
		padding: 44px 32px 30px;
		clip-path: polygon(
			0 0,
			100% 0,
			100% calc(100% - 44px),
			calc(100% - 44px) 100%,
			44px 100%,
			0 calc(100% - 44px)
		);
	}

	.fb26-page .fb26-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px 24px;
	}

	.fb26-page .fb26-footer__col {
		padding-top: 0;
	}
}

@media (max-width: 575px) {
	.fb26-page .fb26-footer__grid {
		grid-template-columns: 1fr;
	}
}
