/**
 * The site's styles, loaded after Bootstrap (assets/vendor/bootstrap/bootstrap.min.css). Plain CSS: edit it and reload;
 * there's no build step. Sections follow the pages (front page, shared components, service page sections…), in the
 * order they cascade.
 *
 * Breakpoints (Bootstrap's): sm 576px, md 768px, lg 992px, xl 1200px, xxl 1400px. "Up to md" is max-width: 767.98px.
 * Spacing is in multiples of 1rem (Bootstrap's $spacer); brand colours are the --brand-* variables in :root below.
 */

/* ==================================================================================================================
   Industries grid (parts/service/industries.php): the base layout; columns and gap are set with the bands below.
   ================================================================================================================== */

body .industry-grid {
	display: grid;
}
.industry-grid > :is(*, div) {
	margin: 0;
}
:where(.industry-grid) {
	gap: 0.5em;
}

/* ==================================================================================================================
   Base: brand colours (CSS variables), typography, embeds.
   ================================================================================================================== */

/* Brand colours
 * Defaults (must match brand_colors_css() in lib/html.php). config/theme.php → colors overrides them with an
 * inline :root style (brand_colors_css(), printed in views/layout.php).
 * Use these variables for anything brand-coloured so it follows the chosen palette.
 */
:root {
	--brand-primary: #0d6efd;
	--brand-primary-rgb: 13, 110, 253;
	--brand-secondary: #21b1f3;
	--brand-secondary-rgb: 33, 177, 243;
	/* Dark tone derived from Secondary (no separate setting): card titles, dark section background. */
	--brand-dark: color-mix(in srgb, var(--brand-secondary) 38%, #000);
	--brand-accent: #f5a524;
	/* Lighter Primary for text on dark backgrounds (hero eyebrow, navbar link hover). Follows the Primary colour. */
	--brand-primary-on-dark: color-mix(in srgb, var(--brand-primary) 60%, #fff);
	/* Same for Secondary (header button gradient). */
	--brand-secondary-on-dark: color-mix(in srgb, var(--brand-secondary) 60%, #fff);
}

/* Typography */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	text-wrap: balance; /* Avoid a single word on the last line. */
}

h1,
.h1,
h2,
.h2 {
	letter-spacing: -0.02em;
}

h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	font-weight: 600;
}

body {
	/* Crisper text, especially light text on dark sections (macOS). */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	vertical-align: middle;
}

/* ==================================================================================================================
   Site header and <main>.
   ================================================================================================================== */

/* Header
 * Translucent header: black at 45% with a blur of whatever scrolls underneath.
 * The tint and blur sit on a pseudo-element: a backdrop-filter on the header itself would stop the dropdowns
 * (which hang below it) from blurring the page behind them.
 * --header-bg and --header-blur are shared with the dropdowns, so a sub-menu always matches the bar.
 */
.site-header {
	/* Glass tint: near-black with a hint of the brand's dark tone (Secondary, with a touch of Primary), so it follows
	 * config/theme.php → colors. Previously plain black: rgba($black, 0.45), and 0.65 once scrolled, with a 5px blur.
	 */
	--header-tint: color-mix(in srgb, color-mix(in srgb, var(--brand-dark) 88%, var(--brand-primary)) 45%, #000);
	--header-bg-scrolled: color-mix(in srgb, var(--header-tint) 82%, transparent);
	--header-bg: color-mix(in srgb, var(--header-tint) 74%, transparent);
	--header-blur: 6px;
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--header-bg);
	backdrop-filter: blur(var(--header-blur));
	transition: background-color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
	.site-header::before {
		transition: none;
	}
}
/* Darker once the hero has scrolled out from under the header (class set in main.js), and on pages without a hero. */
.site-header.is-scrolled {
	--header-bg: var(--header-bg-scrolled);
}
/* Fully white links (navbar-dark defaults to 55% white). */
.site-header .navbar {
	background-image: none; /* Remove Bootstrap's gradient sheen ($enable-gradients) so the header is a flat tint. */
	--bs-navbar-nav-link-padding-x: 1rem; /* Wider spacing between menu items (default 0.5rem). */
	--bs-navbar-color: #fff;
	--bs-navbar-hover-color: var(--brand-primary-on-dark); /* Same tone as the hero eyebrow. */
	--bs-navbar-active-color: #fff;
}
/* The current page's link still takes the hover colour (Bootstrap's .active rule otherwise outranks :hover). */
.site-header .navbar-nav .nav-link.active:hover, .site-header .navbar-nav .nav-link.active:focus-visible {
	color: var(--bs-navbar-hover-color);
}
/* Caret: a thin chevron instead of Bootstrap's triangle, flipping up while the sub-menu is open. */
.site-header .dropdown-toggle::after {
	width: 0.4em;
	height: 0.4em;
	margin-left: 0.5em;
	vertical-align: middle;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-0.2em) rotate(45deg);
	transition: transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
	.site-header .dropdown-toggle::after {
		transition: none;
	}
}
.site-header .dropdown-toggle[aria-expanded=true]::after {
	transform: translateY(0.1em) rotate(-135deg);
}
/* Sub-menus: a glass panel in the header's tint (following it when it darkens on scroll), with a faint Primary border like the cards. */
.site-header .dropdown-menu {
	--bs-dropdown-min-width: 12rem;
	--bs-dropdown-spacer: 0; /* No gap: the panel hangs straight off the header bar. */
	--bs-dropdown-bg: var(--header-bg);
	--bs-dropdown-border-color: color-mix(in srgb, var(--brand-primary) 15%, transparent);
	--bs-dropdown-border-radius: 0.5rem;
	--bs-dropdown-link-color: #fff;
	--bs-dropdown-link-hover-color: var(--brand-primary-on-dark); /* Same tone as the top-level link hover. */
	--bs-dropdown-link-hover-bg: transparent; /* Colour change only, like the top-level links. */
	--bs-dropdown-link-active-color: var(--brand-primary-on-dark); /* Current page: the hover tone (a dot read as a list bullet). */
	--bs-dropdown-link-active-bg: transparent;
	--bs-dropdown-item-padding-x: 1.25rem;
	--bs-dropdown-item-padding-y: 0.5rem;
	border-top-left-radius: 0; /* Square top edge under the header bar; only the bottom corners are rounded. */
	border-top-right-radius: 0;
	backdrop-filter: blur(var(--header-blur));
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}
.site-header .dropdown-item {
	position: relative;
	background-image: none; /* Remove Bootstrap's gradient sheen ($enable-gradients). */
	transition: color 0.2s ease, transform 0.15s ease-in-out;
	/* Small nudge to the right on hover, as on the button arrows. */
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus-visible {
	transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
	.site-header .dropdown-item {
		transition: none;
	}
}
/* Desktop: the panel fades and slides down into place. It stays display: block so the transition can run;
 * visibility keeps the hidden items out of the tab order.
 */
@media (min-width: 768px) {
	/* Menu items fill the full bar height (into the navbar's vertical padding), so a sub-menu hangs from the
	 * bottom edge of the header rather than from the link.
	 */
	.site-header .navbar-collapse {
		align-self: stretch;
		align-items: center;
	}
	.site-header .navbar-nav {
		align-self: stretch;
		margin-block: calc(-1 * var(--bs-navbar-padding-y));
	}
	.site-header .nav-item {
		display: flex;
		align-items: center;
	}
	.site-header .dropdown-menu {
		display: block;
		top: 100%;
		margin-top: 0; /* Attached to the header bar. */
		border-top: 0;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.3s ease, visibility 0s linear 0.2s;
		/* Darkens on its own once it reaches the end of the hero, before the bar does (class set in main.js). */
	}
	.site-header .dropdown-menu.is-past-hero {
		--bs-dropdown-bg: var(--header-bg-scrolled);
	}
	.site-header .dropdown-menu.show {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.3s ease, visibility 0s;
	}
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
	.site-header .dropdown-menu {
		transition: none;
	}
	.site-header .dropdown-menu.show {
		transition: none;
	}
}
/* Collapsed menu: no panel inside the panel, just indented items on a thin Primary rule. */
@media (max-width: 767.98px) {
	.site-header .dropdown-menu {
		--bs-dropdown-bg: transparent;
		--bs-dropdown-border-width: 0;
		--bs-dropdown-link-color: rgba(255, 255, 255, 0.8);
		margin: 0 0 0.5rem 0.25rem;
		border-left: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
		border-radius: 0;
		backdrop-filter: none;
		box-shadow: none;
	}
	.site-header .dropdown-item {
		font-size: 0.9375rem;
	}
}

/* Logo: the SVG wordmark (images/logos/) or an uploaded logo. The wordmark is wide, so it is kept short. */
.navbar-brand img {
	display: block;
	height: 32px;
	width: auto;
}

.navbar-static-top {
	margin-bottom: 1.5rem;
}

/* Main
 * The page is at least as tall as the window and <main> takes up any spare room, so on short pages (e.g. 404) the
 * footer sits at the bottom of the window rather than halfway up. dvh follows the mobile browser bars.
 */
#wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

#main {
	flex: 1 0 auto;
	margin-top: 1rem;
}

/* ==================================================================================================================
   Front page sections (index.php).
   ================================================================================================================== */

/* Front page */
.page-home #main,
.has-page-hero #main {
	margin-top: 0; /* The hero starts under the fixed header. */
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(400px, 60vh, 560px); /* 60% of the window, kept between 400px and 560px. */
	padding-top: var(--header-height, 4rem); /* Room for the fixed header that overlays the hero (height set in main.js). */
	background-color: #212529; /* Shown when no image is set. */
	color: #fff;
}
.hero .hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
		 object-fit: cover;
}
/* Darken the image so the text stays readable: darker on the left behind the text, fading lighter to the right. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.15) 100%);
	/* Narrow screens: the text spans the full width, so darken evenly, about as dark as the gradient is
	 * behind the text on wide screens (the text sits over the bright sky here).
	 */
}
@media (max-width: 991.98px) {
	.hero::after {
		background: rgba(0, 0, 0, 0.65);
	}
}
.hero .hero-content {
	position: relative;
	z-index: 1;
	padding-block: 3rem;
}
/* Small screens: a little bigger than Bootstrap's responsive h1 (about 28px at phone width). */
@media (max-width: 767.98px) {
	.hero .hero-title {
		font-size: 2.125rem;
	}
}
.hero .hero-subtext {
	max-width: 40rem;
	/* Small screens: smaller, so it doesn't compete with the title. */
}
@media (max-width: 767.98px) {
	.hero .hero-subtext {
		font-size: 1.0625rem;
	}
}
/* Small screens: smaller and tighter, so the eyebrow fits on one line. */
@media (max-width: 575.98px) {
	.hero .section-eyebrow {
		font-size: 0.75rem;
		letter-spacing: 0.06em;
	}
}

.feature-cards {
	padding-block: 3rem;
}
.feature-cards .section-header {
	margin-bottom: 2rem;
}
/* Card with a faint blue border. */
.feature-cards .card {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	--bs-card-border-radius: 0.5rem;
	--bs-card-spacer-x: 1.25rem;
	--bs-card-spacer-y: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
	.feature-cards .card {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.feature-cards .card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
.feature-cards .feature-card-icon {
	display: block;
	width: 48px;
	height: 48px;
	-o-object-fit: contain;
		 object-fit: contain;
	margin-bottom: 1rem;
}
.feature-cards .card-title {
	margin-bottom: 0.75rem;
	color: var(--brand-dark);
}
.feature-cards .card-text {
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
.feature-cards .card-link {
	font-size: 0.875rem;
}
/* The whole card is the link (.stretched-link on "Learn more"): hovering anywhere nudges its arrow, and the
 * keyboard focus ring goes round the card rather than the link text.
 */
.feature-cards .card:hover .link-arrow span[aria-hidden=true] {
	transform: translateX(3px);
}
.feature-cards .card:has(.stretched-link:focus-visible) {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}
.feature-cards .card:has(.stretched-link:focus-visible) .stretched-link:focus-visible {
	outline: 0;
	box-shadow: none;
}
/* Industry labels under the cards: a lead-in above, then each industry with its icon, in the cards' border and corners.
 * Set apart from the cards as its own group (more space above than between the heading and the cards), with the
 * lead-in kept close to its labels.
 */
.feature-cards .feature-cards-sectors {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-top: 3rem;
}
@media (max-width: 767.98px) {
	.feature-cards .feature-cards-sectors {
		margin-top: 2.5rem;
	}
}
/* A quiet label (the subtitle grey) rather than the purple used for section eyebrows: it labels the row, not a
 * section, so it shouldn't compete with the cards' links above.
 */
.feature-cards .feature-cards-sectors .section-eyebrow {
	margin-bottom: 0;
	color: var(--bs-secondary-color);
}
.feature-cards .feature-cards-sectors ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.feature-cards .feature-cards-sectors li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.875rem 0.375rem 0.75rem;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
	background-color: var(--bs-body-bg);
	border: var(--bs-border-width) solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
	border-radius: 0.5rem;
	/* Wide screens: a little larger, so the row holds its own under the cards (small screens keep the compact
	 * size, which wraps into balanced rows).
	 */
}
@media (min-width: 768px) {
	.feature-cards .feature-cards-sectors li {
		padding: 0.5rem 1rem 0.5rem 0.875rem;
		font-size: 0.9375rem;
	}
}
.feature-cards .feature-cards-sector-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}
@media (min-width: 768px) {
	.feature-cards .feature-cards-sector-icon {
		width: 20px;
		height: 20px;
	}
}
/* One column (below sm): icon beside the title, text and link full width below, so the cards are shorter.
 * The card body switches from flex to grid in the template (d-grid d-sm-flex).
 */
@media (max-width: 575.98px) {
	.feature-cards .card-body {
		grid-template-columns: auto 1fr;
		align-items: center;
		-moz-column-gap: 1rem;
				 column-gap: 1rem;
	}
	.feature-cards .feature-card-icon {
		width: 40px;
		height: 40px;
		margin-bottom: 0;
	}
	.feature-cards .card-title {
		grid-column: 1/-1;
		margin-bottom: 0;
	}
	.feature-cards .feature-card-icon + .card-title {
		grid-column: 2;
	}
	.feature-cards .card-text,
	.feature-cards .card-link {
		grid-column: 1/-1;
	}
	.feature-cards .card-text {
		margin-top: 0.75rem;
	}
}

.process {
	--process-accent: var(--brand-secondary);
	/* Lighter tone of the accent, readable on the dark background. Used for the eyebrow, highlights and the button. */
	--process-accent-light: color-mix(in srgb, var(--process-accent) 60%, #fff);
	padding-block: 3rem;
	/* Outline button in the same lighter tone as the eyebrow. When filled (hover/active) the fill is light,
	 * so the text switches to the Dark colour to stay readable.
	 */
}
.process .btn.btn-outline-primary {
	--btn-brand: var(--process-accent-light);
	--bs-btn-hover-color: var(--brand-dark);
	--bs-btn-active-color: var(--brand-dark);
}
.process {
	color: #fff;
	background-color: color-mix(in srgb, var(--brand-dark) 65%, #000);
	background-image: radial-gradient(ellipse at 65% 45%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 60%);
	/* Glow behind the diagram. */
}
.process h2 {
	color: #fff;
}
.process .process-subtitle {
	max-width: 60ch;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.75);
	/* Stacked: the button moves below the diagram (.process-action), so no space is kept for it here. */
}
@media (max-width: 991.98px) {
	.process .process-subtitle {
		margin-bottom: 0;
	}
}
/* Button below the diagram when stacked (the one in the text column is hidden then). */
.process .process-action {
	text-align: center;
}
/* Centred in its column and capped so the diagram doesn't outgrow the text on wide screens. */
.process .process-image {
	display: block;
	width: 100%;
	max-width: 40rem;
	height: auto;
	margin-inline: auto;
}

.work-packages {
	--work-package-line: color-mix(in srgb, var(--brand-primary) 15%, transparent);
	--work-package-dots: color-mix(in srgb, var(--brand-primary) 35%, transparent); /* The line is dotted, so a stronger tone. */
	/* The line fades in and out over this distance at its ends. */
	--work-package-fade: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 60px), transparent);
	--work-package-node-size: 44px;
	--work-package-gutter: 44px; /* Card edge to centre line. */
	--work-package-overlap: 64px; /* Neighbouring cards interlock by this much. */
	padding-top: 3rem;
	padding-bottom: 4.5rem; /* Extra room before the client logos band. */
	/* Centre line with the cards alternating either side of it. */
}
.work-packages .work-packages-spine {
	position: relative;
	display: grid;
	gap: 1.25rem;
	margin-top: 2rem;
}
.work-packages .work-packages-spine::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	/* Round dots, spaced to match the curved layout's dotted line. */
	background: radial-gradient(circle, var(--work-package-dots) 1.5px, transparent 1.5px) center top/3px 8px repeat-y;
	-webkit-mask-image: var(--work-package-fade);
					mask-image: var(--work-package-fade);
}
/* Same card styling as the feature cards, but on a white background. */
.work-packages .card {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	--bs-card-border-radius: 0.5rem;
	--bs-card-spacer-x: 1.75rem;
	--bs-card-spacer-y: 1.5rem;
}
.work-packages .work-package {
	width: calc(50% - var(--work-package-gutter));
	min-width: 0;
}
.work-packages .work-package:nth-child(even) {
	margin-left: auto;
}
.work-packages .work-package + .work-package {
	margin-top: calc(-1 * var(--work-package-overlap));
}
@media (prefers-reduced-motion: no-preference) {
	.work-packages .work-package {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.work-packages .work-package:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
.work-packages .work-package .card-body {
	gap: 0.625rem;
}
.work-packages .work-package .card-text {
	margin-bottom: 0;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
.work-packages .work-package .card-link {
	margin-top: 0.25rem;
	font-size: 0.875rem;
}
/* Icon circle sitting on the centre line (right of odd cards, left of even ones), centred on the card's height
 * (a negative margin rather than a transform, so main.js can read its position in the curved layout).
 */
.work-packages .work-package-node {
	--work-package-node-offset: calc(-1 * (var(--work-package-gutter) + var(--work-package-node-size) / 2 + var(--bs-card-border-width)));
	position: absolute;
	top: 50%;
	margin-top: calc(var(--work-package-node-size) / -2);
	right: var(--work-package-node-offset);
	display: grid;
	place-items: center;
	width: var(--work-package-node-size);
	height: var(--work-package-node-size);
	background-color: var(--bs-body-bg);
	border: 2px solid var(--brand-primary);
	border-radius: 50%;
	transition: background-color 0.2s ease;
}
.work-packages .work-package:nth-child(even) .work-package-node {
	right: auto;
	left: var(--work-package-node-offset);
}
.work-packages .work-package-icon {
	display: block;
	width: 22px;
	height: 22px;
	-o-object-fit: contain;
		 object-fit: contain;
	transition: filter 0.2s ease;
}
/* Active card: hovered (devices with a pointer), holding keyboard focus, or in the middle of the screen while
 * scrolling on touch screens and small screens (.is-in-view, set in main.js, as there is no hover there).
 * The node fills with the Primary colour and the icon turns white (the filter works for the inline theme icons
 * and uploaded images alike). Hover already gets the border and lift from card-hover-lift.
 */
@media (hover: hover) {
	.work-packages .work-package:hover .work-package-node {
		background-color: var(--brand-primary);
	}
	.work-packages .work-package:hover .work-package-icon {
		filter: brightness(0) invert(1);
	}
}
.work-packages .work-package.is-in-view,
.work-packages .work-package:focus-within {
	--bs-card-border-color: var(--brand-primary);
}
@media (prefers-reduced-motion: no-preference) {
	.work-packages .work-package.is-in-view,
	.work-packages .work-package:focus-within {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
	}
}
.work-packages .work-package.is-in-view .work-package-node,
.work-packages .work-package:focus-within .work-package-node {
	background-color: var(--brand-primary);
}
.work-packages .work-package.is-in-view .work-package-icon,
.work-packages .work-package:focus-within .work-package-icon {
	filter: brightness(0) invert(1);
}
.work-packages .work-package-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.875rem;
}
.work-packages .work-package-header .card-title {
	color: var(--brand-dark);
	text-wrap: balance;
}
.work-packages .work-package-hook {
	margin-bottom: 0;
	font-weight: 600;
	font-size: 0.9375rem;
}
.work-packages .work-package-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.work-packages .work-package-tags li {
	padding: 3px 8px;
	font-size: 0.75rem;
	color: var(--bs-secondary-color);
	background-color: #f8f9fa;
	border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
	border-radius: 0.25rem;
}
/* Curved layout (.is-road): cards in one column, lined up on the right. A line sways gently through the nodes
 * in a lane on their left, alternating between two positions. The path is drawn by assets/js/main.js.
 */
.work-packages .work-packages-road {
	display: none;
}
@media (min-width: 768px) {
	.work-packages .work-packages-spine.is-road {
		--work-package-lane: 168px; /* Includes ~60px of space between the line and the cards. */
		--work-package-node-x-odd: 34px; /* Node centres, from the lane's left edge. */
		--work-package-node-x-even: 86px;
		/* No straight line: the curved one replaces it (without the script there are nodes only). */
	}
	.work-packages .work-packages-spine.is-road::before {
		display: none;
	}
	.work-packages .work-packages-spine.is-road {
		/* Cards follow the wave: those whose node sits further in are shifted in a little. The space between
		 * cards is the same amount, for an even rhythm. Right edges stay lined up (shifted cards are narrower).
		 */
		--work-package-shift: 26px;
		gap: var(--work-package-shift);
	}
	.work-packages .work-packages-spine.is-road .work-package {
		z-index: 1;
		width: calc(100% - var(--work-package-lane));
		margin-left: var(--work-package-lane);
	}
	.work-packages .work-packages-spine.is-road .work-package:nth-child(even) {
		width: calc(100% - var(--work-package-lane) - var(--work-package-shift));
		margin-left: calc(var(--work-package-lane) + var(--work-package-shift));
	}
	/* One column: no interlocking. */
	.work-packages .work-packages-spine.is-road .work-package + .work-package {
		margin-top: 0;
	}
	.work-packages .work-packages-spine.is-road .work-package .work-package-node {
		right: auto;
		left: calc(var(--work-package-node-x-odd) - var(--work-package-node-size) / 2 - var(--work-package-lane) - var(--bs-card-border-width));
	}
	.work-packages .work-packages-spine.is-road .work-package:nth-child(even) .work-package-node {
		left: calc(var(--work-package-node-x-even) - var(--work-package-node-size) / 2 - var(--work-package-lane) - var(--work-package-shift) - var(--bs-card-border-width));
	}
	.work-packages .work-packages-road {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		overflow: visible;
		pointer-events: none;
		fill: none;
		stroke: var(--work-package-dots);
		stroke-width: 3px;
		stroke-linecap: round; /* Turns the zero-length dashes into round dots. */
		stroke-dasharray: 0 8;
		-webkit-mask-image: var(--work-package-fade);
						mask-image: var(--work-package-fade);
	}
}
/* Small screens: the line moves to the left edge and the cards stack. */
@media (max-width: 767.98px) {
	.work-packages {
		--work-package-gutter: 12px;
		/* Tighter cards, so the stacked list is shorter. */
	}
	.work-packages .card {
		--bs-card-spacer-x: 1.25rem;
		--bs-card-spacer-y: 1.25rem;
	}
	.work-packages .work-packages-spine::before {
		left: calc(var(--work-package-node-size) / 2);
	}
	.work-packages .work-package,
	.work-packages .work-package:nth-child(even) {
		width: calc(100% - var(--work-package-node-size) - var(--work-package-gutter));
		margin-left: calc(var(--work-package-node-size) + var(--work-package-gutter));
	}
	.work-packages .work-package + .work-package {
		margin-top: 0;
	}
	/* Level with the card title rather than the middle of the card (tall cards would leave it far from the title). */
	.work-packages .work-package .work-package-node,
	.work-packages .work-package:nth-child(even) .work-package-node {
		top: calc(var(--bs-card-spacer-y) + 0.875rem);
		right: auto;
		left: calc(-1 * (var(--work-package-gutter) + var(--work-package-node-size) + var(--bs-card-border-width)));
	}
	/* Tags left out, so the stacked cards are shorter. */
	.work-packages .work-package-tags {
		display: none;
	}
}
.work-packages {
	/* Reveal on scroll (.is-revealable and .is-revealed are set in main.js, which skips it when reduced motion is
	 * requested; without the script everything simply shows). The line draws down as the section scrolls into view
	 * (--work-package-drawn, 0 to 1); each card glides a short way in toward the line and fades up, and its node
	 * settles onto the line just after. Plays once. "translate" and "scale" are used rather than "transform", so the
	 * hover lift still works, and main.js still reads the cards' positions (offsets ignore them).
	 */
	overflow-x: clip; /* Cards start just outside their place. */
}
.work-packages .work-packages-spine.is-revealable {
	--work-package-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-packages .work-packages-spine.is-revealable::before,
.work-packages .work-packages-spine.is-revealable .work-packages-road {
	clip-path: inset(0 0 calc((1 - var(--work-package-drawn, 0)) * 100%) 0);
}
.work-packages .work-packages-spine.is-revealable .work-package {
	--work-package-from: -36px 0; /* Left-hand cards come in from the left… */
	opacity: 0;
	translate: var(--work-package-from);
	transition: opacity 0.7s var(--work-package-ease) var(--work-package-delay, 0s), translate 0.9s var(--work-package-ease) var(--work-package-delay, 0s), transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.work-packages .work-packages-spine.is-revealable .work-package:nth-child(even) {
	--work-package-from: 36px 0; /* …right-hand ones from the right. */
}
.work-packages .work-packages-spine.is-revealable .work-package.is-revealed {
	opacity: 1;
	translate: 0 0;
}
.work-packages .work-packages-spine.is-revealable .work-package-node {
	opacity: 0;
	scale: 0.6;
	transition: opacity 0.5s ease calc(var(--work-package-delay, 0s) + 0.3s), scale 0.6s var(--work-package-ease) calc(var(--work-package-delay, 0s) + 0.3s), background-color 0.2s ease;
}
.work-packages .work-packages-spine.is-revealable .is-revealed .work-package-node {
	opacity: 1;
	scale: 1;
}
/* Curved layout: all cards sit to the right of the line, so they all come in from the right. */
@media (min-width: 768px) {
	.work-packages .work-packages-spine.is-revealable.is-road .work-package {
		--work-package-from: 40px 0;
	}
}
/* Small screens (stacked, line on the left): up from below instead. */
@media (max-width: 767.98px) {
	.work-packages .work-packages-spine.is-revealable .work-package,
	.work-packages .work-packages-spine.is-revealable .work-package:nth-child(even) {
		--work-package-from: 0 24px;
	}
}

.client-logos {
	padding-block: 2rem; /* Slimmer than other sections: a single strip of logos. */
	/* Faint tint of the Primary colour, so the band belongs to the brand palette. */
	background-color: color-mix(in srgb, var(--brand-primary) 4%, #fff);
}

/* Logo strip: 4 logos visible; scrolls continuously when there are more (.is-scrolling). */
.logo-marquee {
	--logos-visible: 4;
	container-type: inline-size;
	display: flex;
	overflow: hidden;
}
@media (max-width: 767.98px) {
	.logo-marquee {
		--logos-visible: 3;
	}
}
.logo-marquee .logo-marquee-list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.logo-marquee .logo-marquee-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100cqi / var(--logos-visible));
	padding-inline: 1.75rem;
}
@media (max-width: 767.98px) {
	.logo-marquee .logo-marquee-item {
		padding-inline: 0.5rem;
	}
}
/* Each logo gets about the same area, so wide and compact logos look equally strong: the height shrinks as the
 * logo gets wider (--logo-ratio, width / height, is set per logo in the template). Capped by the slot width.
 * One colour by default (grey, slightly faded); full colour on hover.
 */
.logo-marquee .logo-marquee-image {
	--logo-size: 52px; /* Side of the square every logo matches in area. */
	width: auto;
	max-width: min(100%, 140px);
	height: auto;
	max-height: 28px; /* Without sqrt() support. */
	max-height: clamp(14px, var(--logo-size) / sqrt(var(--logo-ratio, 3)), 36px);
	-o-object-fit: contain;
		 object-fit: contain;
}
@media (max-width: 767.98px) {
	.logo-marquee .logo-marquee-image {
		--logo-size: 44px;
	}
}
.logo-marquee .logo-marquee-image {
	filter: grayscale(1);
	opacity: 0.65;
	transition: filter 0.2s ease, opacity 0.2s ease;
}
/* Valeo's light green turns very pale in grey, so its grey is a little darker. Before :hover, which still shows the
 * logo's own colours. */
.logo-marquee .logo-marquee-image[src$="/valeo.png"] {
	filter: grayscale(1) brightness(0.65);
}
.logo-marquee .logo-marquee-image:hover {
	filter: none;
	opacity: 1;
}
.logo-marquee.is-scrolling {
	/* Fade the edges so logos slide in and out softly. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
					mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-marquee.is-scrolling .logo-marquee-list {
	animation: logo-marquee var(--marquee-duration, 30s) linear infinite;
}
.logo-marquee.is-scrolling:hover .logo-marquee-list {
	animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.logo-marquee.is-scrolling {
		overflow-x: auto;
		-webkit-mask-image: none;
						mask-image: none;
	}
	.logo-marquee.is-scrolling .logo-marquee-list {
		animation: none;
	}
}

@keyframes logo-marquee {
	to {
		transform: translateX(-100%);
	}
}
/* Dark, like Process: the photo's dark background blends into it, and it breaks up the run of light sections. */
.founder-quote {
	padding-block: 3rem;
	/* Stacked: the photo has its own dark headroom (and fades in at the top), so less padding above it. */
}
@media (max-width: 767.98px) {
	.founder-quote {
		padding-top: 1.5rem;
	}
}
.founder-quote {
	color: #fff;
	background-color: color-mix(in srgb, var(--brand-dark) 65%, #000);
	background-image: radial-gradient(ellipse at 25% 50%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 60%);
	/* Glow behind the photo.
	 * No frame: the section is his background. The photo's edges fade into the section, and side by side it sits
	 * on the section's bottom edge. On small screens (stacked above the quote) the bottom edge fades too.
	 */
}
.founder-quote .founder-quote-photo {
	--founder-quote-fade-bottom: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
	max-width: 18.75rem;
	margin-inline: auto;
	/* Stacked: a little smaller, so the photo doesn't take over the screen above the quote. */
}
@media (max-width: 767.98px) {
	.founder-quote .founder-quote-photo {
		max-width: 16rem;
	}
}
/* Side by side: 85% of the column, lined up with the container's left edge. The spare space goes
 * between the photo and the quote (the quote column has no offset, so the gap stays balanced).
 */
@media (min-width: 768px) {
	.founder-quote .founder-quote-photo {
		--founder-quote-fade-bottom: linear-gradient(to bottom, transparent, #000 20%);
		width: 85%;
		margin-left: 0;
		margin-bottom: -3rem; /* Down onto the section's bottom edge (the column is aligned to the end). */
	}
}
.founder-quote .founder-quote-image,
.founder-quote .founder-quote-initials {
	display: block;
	width: 100%;
	aspect-ratio: 4/5;
	-webkit-mask-image: var(--founder-quote-fade-bottom), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
					mask-image: var(--founder-quote-fade-bottom), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-composite: source-in, xor;
					mask-composite: intersect;
}
.founder-quote .founder-quote-image {
	height: auto;
	-o-object-fit: cover;
		 object-fit: cover;
	-o-object-position: center 20%;
		 object-position: center 20%; /* Keep the face in frame when the photo is cropped. */
}
/* Stand-in until a photo is set (filled, so the fade shows). */
.founder-quote .founder-quote-initials {
	background-color: var(--brand-dark);
	display: grid;
	place-items: center;
	font-size: 4rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--brand-primary-on-dark);
}
.founder-quote .founder-quote-text {
	margin-bottom: 1.5rem;
	/* Same size as the hero subtext (.lead). */
}
.founder-quote .founder-quote-text p {
	margin-bottom: 0;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.6;
	text-wrap: pretty;
	/* Quotation marks inline at the start and end of the text: text-sized, in the brand colour and heading weight. */
}
.founder-quote .founder-quote-text p::before, .founder-quote .founder-quote-text p::after {
	font-weight: 700;
	line-height: 0;
	color: var(--brand-secondary-on-dark);
}
.founder-quote .founder-quote-text p::before {
	content: "“"/"";
	margin-right: 0.15em;
}
.founder-quote .founder-quote-text p::after {
	content: "”"/"";
	margin-left: 0.15em;
}
/* Matches the hero subtext on small screens too. Normal wrapping there: in a narrow column "pretty"
 * pulls words down early and leaves a ragged gap mid-paragraph.
 */
@media (max-width: 767.98px) {
	.founder-quote .founder-quote-text p {
		font-size: 1.0625rem;
		text-wrap: wrap;
	}
}
/* Name and job title, after a short brand-coloured rule. */
.founder-quote .founder-quote-caption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-left: 1rem;
	border-left: 3px solid var(--brand-secondary-on-dark);
}
.founder-quote .founder-quote-name {
	font-weight: 600;
}
.founder-quote .founder-quote-role {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75); /* Same as the Process subtitle. */
}

/* ==================================================================================================================
   Shared components.
   ================================================================================================================== */

.cta-banner {
	padding-top: 3rem; /* Room after the tinted section above. */
	padding-bottom: 3rem; /* Room before the footer. */
}
.cta-banner .cta-banner-inner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 1.5rem;
	border-radius: 0.5rem;
}
/* Flowing lines across the right of the banner, fading in from the left, behind the text and button. Two sets of lines
 * sway slowly against each other (still when reduced motion is requested).
 */
.cta-banner .cta-banner-waves {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: 70%;
	height: 100%;
	pointer-events: none;
	opacity: 0.4;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 85%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 40%, #000 85%, transparent);
}
.cta-banner .cta-banner-waves g {
	stroke-width: 1.3;
}
@media (max-width: 767.98px) {
	.cta-banner .cta-banner-waves {
		width: 100%;
		opacity: 0.3;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.cta-banner .cta-banner-waves-a {
		animation: cta-waves-a 14s ease-in-out infinite alternate;
	}
	.cta-banner .cta-banner-waves-b {
		animation: cta-waves-b 18s ease-in-out infinite alternate;
	}
}
.cta-banner .cta-banner-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	--cta-icon: var(--brand-primary);
	/* Lighter tone of the brand colour (same as the Process eyebrow), readable on the dark banner. */
	color: color-mix(in srgb, var(--cta-icon) 60%, #fff);
	/* cta-banner part's 'icon_color'. */
}
.cta-banner .cta-banner-icon.is-secondary {
	--cta-icon: var(--brand-secondary);
}
.cta-banner .cta-banner-text p {
	opacity: 0.8;
}
/* Small screens: title with the icon on its right, text full width below (lined up with the title), then a
 * full-width button. The banner switches from flex to grid in the template (d-grid d-md-flex), and the text
 * wrapper drops out of the layout so the title and text are placed separately.
 */
@media (max-width: 767.98px) {
	.cta-banner .cta-banner-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
	.cta-banner .cta-banner-text {
		display: contents;
	}
	.cta-banner .cta-banner-text h2 {
		grid-area: 1/1;
		margin-bottom: 0 !important; /* Over .mb-1: the row gap does the spacing. */
	}
	.cta-banner .cta-banner-text p {
		grid-column: 1/-1;
	}
	.cta-banner .cta-banner-icon {
		grid-area: 1/2;
		width: 44px;
		height: 44px;
	}
	.cta-banner .cta-banner-icon svg {
		width: 40px;
		height: 40px;
	}
	.cta-banner .cta-banner-action {
		grid-column: 1/-1;
		margin-top: 1rem;
	}
	.cta-banner .cta-banner-action .btn {
		width: 100%;
	}
}

@keyframes cta-waves-a {
	to {
		transform: translate(-40px, 6px) scale(1.04, 0.92);
	}
}
@keyframes cta-waves-b {
	to {
		transform: translate(30px, -8px) scale(0.97, 1.08);
	}
}
/* Primary buttons (header, hero, CTA): brand gradient with a soft glow. */
.btn-primary {
	--bs-btn-bg: var(--brand-primary);
	--bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary) 90%, #000);
	--bs-btn-active-bg: color-mix(in srgb, var(--brand-primary) 80%, #000);
	--bs-btn-disabled-bg: var(--brand-primary);
	--bs-btn-focus-shadow-rgb: var(--brand-primary-rgb);
	--bs-btn-border-color: transparent;
	--bs-btn-hover-border-color: transparent;
	--bs-btn-active-border-color: transparent;
	background-image: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
	background-origin: border-box; /* Stretch the gradient under the (transparent) border, otherwise it repeats there as a 1px line. */
	box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-primary) 35%, transparent);
}
.btn-primary:hover, .btn-primary:active {
	background-image: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 90%, #000), color-mix(in srgb, var(--brand-secondary) 90%, #000));
	box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 45%, transparent);
}

/* Header button: gradient of lightened brand tones (a touch deeper than the "on-dark" eyebrow tones) with light
 * white text, so it stands out from the dark translucent header (the full-strength gradient blends into it).
 */
.site-header .btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-hover-color: #fff;
	--bs-btn-active-color: #fff;
	background-image: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 74%, #fff), color-mix(in srgb, var(--brand-secondary) 74%, #fff));
	/* Hover brightening is a white inset-shadow overlay (gradients can't be transitioned, box-shadows can) so it fades. */
	box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, 0), 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: box-shadow 0.3s ease;
}
.site-header .btn-primary:hover, .site-header .btn-primary:active {
	background-image: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 74%, #fff), color-mix(in srgb, var(--brand-secondary) 74%, #fff));
	box-shadow: inset 0 0 0 100vmax rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.3);
}
@media (prefers-reduced-motion: reduce) {
	.site-header .btn-primary {
		transition: none;
	}
}

/* Outline buttons (e.g. "Explore our services") in the brand colour.
 * Add .btn-brand-secondary to use the Secondary colour instead.
 */
.btn-outline-primary {
	--btn-brand: var(--brand-primary);
	--btn-brand-rgb: var(--brand-primary-rgb);
	--bs-btn-color: var(--btn-brand);
	--bs-btn-border-color: var(--btn-brand);
	--bs-btn-hover-bg: var(--btn-brand);
	--bs-btn-hover-border-color: var(--btn-brand);
	--bs-btn-active-bg: var(--btn-brand);
	--bs-btn-active-border-color: var(--btn-brand);
	--bs-btn-disabled-color: var(--btn-brand);
	--bs-btn-disabled-border-color: var(--btn-brand);
	--bs-btn-focus-shadow-rgb: var(--btn-brand-rgb);
}
.btn-outline-primary.btn-brand-secondary {
	--btn-brand: var(--brand-secondary);
	--btn-brand-rgb: var(--brand-secondary-rgb);
}

/* White buttons (e.g. "Back to the homepage" beside the Contact Us button): a secondary action that sits quietly next
 * to the gradient button. Faint Primary border and soft shadow like the cards; the border turns Primary on hover.
 */
.btn-white {
	--bs-btn-color: var(--bs-body-color);
	--bs-btn-bg: #fff;
	--bs-btn-border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
	--bs-btn-hover-color: var(--brand-primary);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: var(--brand-primary);
	--bs-btn-active-color: var(--brand-primary);
	--bs-btn-active-bg: #fff;
	--bs-btn-active-border-color: var(--brand-primary);
	--bs-btn-focus-shadow-rgb: var(--brand-primary-rgb);
	background-image: none; /* Remove Bootstrap's gradient sheen ($enable-gradients). */
	box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-primary) 10%, transparent);
	transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-white:hover, .btn-white:active {
	box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) {
	.btn-white {
		transition: none;
	}
}

/* Trailing arrow in any button, e.g. "Talk to an Engineer →". */
.btn span[aria-hidden=true] {
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.15s ease-in-out;
}
.btn:hover span[aria-hidden=true] {
	transform: translateX(3px);
}

/* Text link with a trailing arrow, e.g. "Read more →". */
.link-arrow {
	font-weight: 500;
}
.link-arrow span[aria-hidden=true] {
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.15s ease-in-out;
}
.link-arrow:hover span[aria-hidden=true] {
	transform: translateX(3px);
}

/* Small uppercase line above a section title. When it wraps (e.g. the front page's tagline on phones), the lines are
 * balanced, so no word is left on its own. */
.section-eyebrow {
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-wrap: balance;
}
/* The heroes' eyebrow is part of the page's main heading (it names the page, e.g. the service, for search engines), as a
 * span on its own line. The heading's line height is tighter than a paragraph's, so the paragraph's is put back. */
h1 .section-eyebrow {
	display: block;
	line-height: var(--bs-body-line-height);
}

/* Subtitle under a section heading (light sections): muted colour, wide enough that a one-line subtitle stays on one
 * line on desktop.
 */
.section-subtitle {
	max-width: 120ch;
	color: var(--bs-secondary-color);
}

/* Section heading and subtitle (.section-intro): centred on small screens. */
@media (max-width: 767.98px) {
	.section-intro {
		text-align: center;
	}
	.section-intro .section-subtitle,
	.section-intro .process-subtitle {
		margin-inline: auto;
	}
}

/* Colourised part of a title, e.g. <span class="text-accent">word</span>. */
.text-accent {
	color: var(--brand-primary);
	/* On dark sections use a lightened brand colour, so it stays readable on navy. */
}
.hero .text-accent {
	color: var(--brand-primary-on-dark);
}
/* Secondary, like the Process section (the other dark section). */
.founder-quote .text-accent, .page-hero .text-accent, .block-dark-band .text-accent {
	color: var(--brand-secondary-on-dark);
}
.process .text-accent {
	color: var(--process-accent-light);
}
/* Process title: gradient from the lightened Primary to the lightened Secondary (the eyebrow stays solid).
 * "color" above remains as the fallback where background-clip: text isn't supported.
 */
.process .process-title .text-accent {
	background-image: linear-gradient(90deg, var(--brand-primary-on-dark), var(--brand-secondary-on-dark));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Inner pages
 * Dark band at the top of an inner page (views/parts/page-hero.php), under the fixed header: the same navy as the
 * dark sections.
 */
.page-hero {
	color: #fff;
	background-color: color-mix(in srgb, var(--brand-dark) 65%, #000);
	background-image: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--brand-secondary) 18%, transparent), transparent 60%);
	padding-top: var(--header-height, 4rem); /* Room for the fixed header (height set in main.js). */
	position: relative; /* For the backdrop, behind the text (below lg every image hero has one). */
	isolation: isolate;
}
.page-hero .page-hero-content {
	padding-block: 3rem 3rem;
}
.page-hero .page-hero-title {
	color: #fff;
}
@media (max-width: 767.98px) {
	.page-hero .page-hero-title {
		font-size: 2.125rem; /* Same as the front page hero title. */
	}
}
/* Small line under the title, e.g. a post's date and author. */
.page-hero .page-hero-meta {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
}
/* With an image (service pages' featured image): text on the left, image on the right (wide screens only). */
@media (min-width: 992px) {
	.page-hero .page-hero-has-image {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		-moz-column-gap: 3rem;
				 column-gap: 3rem;
		align-items: center;
	}
}
/* "bleed" layout: the contained image enlarged past its column to the screen edge. The part inside the content
 * column stays bright; past the content edge it dims and fades out, so the eye stays on the column.
 */
.page-hero.page-hero-bleed {
	overflow-x: clip;
}
.page-hero.page-hero-bleed .page-hero-image {
	padding-block: 0;
}
.page-hero.page-hero-bleed .page-hero-image img {
	width: 135%;
	max-width: none;
	aspect-ratio: 1400/700;
	-o-object-fit: cover;
		 object-fit: cover;
	margin-inline: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, 0.4) 80%, transparent 97%), linear-gradient(transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, 0.4) 80%, transparent 97%), linear-gradient(transparent, #000 5%, #000 95%, transparent);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}
/* Background image ("background" layout): fills the right of the band and fades into the navy behind the text.
 * Below lg it sits behind the whole band instead, as does the side image of the other layouts (a copy, .d-lg-none).
 */
.page-hero.page-hero-has-backdrop {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
@media (min-width: 992px) {
	.page-hero.page-hero-has-backdrop .page-hero-content {
		max-width: 40rem;
		padding-block: 4.5rem 5rem;
	}
}
.page-hero .page-hero-backdrop {
	--scene-focus: 0; /* Which part shows when the sides are cropped: 0 the left edge, 1 the right (stage.js reads it too). */
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden; /* Also clips an animated scene's stage (assets/js/scenes/). */
	contain: paint;
	opacity: 0.25;
}
.page-hero .page-hero-backdrop img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
		 object-fit: cover;
	-o-object-position: calc(var(--scene-focus) * 100%) center;
		 object-position: calc(var(--scene-focus) * 100%) center;
}
/* Below lg: the images are drawn for the right of a wide band, so the crop keeps their right-hand part, where the
 * detail is, a little brighter. */
@media (max-width: 991.98px) {
	.page-hero .page-hero-backdrop {
		--scene-focus: 0.8;
		opacity: 0.45;
		/* A diagonal fade, nearly vertical: towards the top left, behind the text, down to 40% and softly blurred (::after). */
		-webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.4) 15%, #000 85%);
		mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.4) 15%, #000 85%);
	}
	.page-hero .page-hero-backdrop::after {
		content: "";
		position: absolute;
		inset: 0;
		-webkit-backdrop-filter: blur(3px);
		backdrop-filter: blur(3px);
		-webkit-mask-image: linear-gradient(105deg, #000 15%, transparent 85%);
		mask-image: linear-gradient(105deg, #000 15%, transparent 85%);
	}
	/* Per scene: on its most graphic part (the block diagram, the car, the plot) rather than lines of text. */
	.page-hero[data-scene="code-board"] .page-hero-backdrop {
		opacity: 0.7; /* A much darker scene than the others. */
	}
	.page-hero[data-scene="model-code"] .page-hero-backdrop {
		--scene-focus: 0.35;
	}
	.page-hero[data-scene="connected-car"] .page-hero-backdrop {
		--scene-focus: 0; /* The car in the right three quarters, its front running off the edge. */
	}
	.page-hero[data-scene="test-bench"] .page-hero-backdrop {
		--scene-focus: 0.6;
	}
	/* A soft navy glow behind the text keeps it crisp over the brighter backdrop. */
	.page-hero:has(> .page-hero-backdrop) .page-hero-content {
		text-shadow: 0 0 1rem color-mix(in srgb, var(--brand-dark) 65%, #000), 0 0 2rem color-mix(in srgb, var(--brand-dark) 65%, #000);
	}
}
@media (min-width: 992px) {
	.page-hero .page-hero-backdrop {
		left: auto;
		/* Capped on wide screens, so the image keeps roughly its own proportions instead of being cropped top and bottom. */
		width: min(62%, 960px);
		opacity: 1;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
		mask-image: linear-gradient(90deg, transparent, #000 40%);
	}
}
.page-hero .page-hero-image {
	padding-block: 2rem;
}
.page-hero .page-hero-image img {
	display: block;
	width: 100%;
	max-width: 479px;
	height: auto;
	margin-inline: auto;
	/* Renders on black (glowing light only): black drops out against the band, and the edges fade so no box shows. */
	mix-blend-mode: screen;
	-webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent);
	mask-image: radial-gradient(closest-side, #000 80%, transparent);
}
.page-hero .page-hero-text {
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 767.98px) {
	.page-hero .page-hero-text {
		font-size: 1.0625rem; /* Same as the front page hero subtext. */
	}
}

/* Light variant (.is-light, e.g. the About page): a pale band with dark text; the fixed header stays solid navy over it. */
.page-hero.is-light {
	color: var(--bs-body-color);
	background: linear-gradient(160deg, color-mix(in srgb, var(--brand-secondary) 6%, #fff), color-mix(in srgb, var(--brand-primary) 5%, #f4f8fb));
}
.page-hero.is-light .page-hero-title {
	color: var(--brand-dark);
}
.page-hero.is-light .page-hero-text {
	color: var(--bs-secondary-color);
}
.page-hero.is-light .text-accent {
	color: var(--brand-primary);
}

/* Buttons under the text: the main button, then a text link beside it. */
.page-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	margin-top: 2rem;
}
.page-hero-actions .link-arrow {
	padding-bottom: 2px;
	font-weight: 600;
	color: var(--brand-dark);
	border-bottom: 1px solid var(--brand-primary);
}
.page-hero:not(.is-light) .page-hero-actions .link-arrow {
	color: #fff;
}

/* Inline illustration on the right (About page): planes float gently, out of step. Only the outer <svg>: the icons
 * nested in it keep their own 24-unit size. */
.page-hero-illustration > svg {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-inline: auto;
	overflow: visible;
}
.page-hero-illustration svg text {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
	.page-hero-illustration svg .about-plane {
		animation: about-float 6s ease-in-out infinite;
		animation-delay: calc(var(--i) * -2s);
	}
}

@keyframes about-float {
	50% {
		transform: translateY(-5px);
	}
}

/* ==================================================================================================================
   Pages, page content, forms and the footer.
   ================================================================================================================== */

/* Content below the band: pages (e.g. the 404 page), and posts and blog listings (not ported yet). Text sits in a
 * readable column lined up with the band text.
 */
.page-content,
.not-found-content {
	padding-block: 3rem;
}


/* Blog listings: content written on the Posts page, above the cards. */
.listing-intro {
	margin-bottom: 2.5rem;
}

/* Older / Newer posts, below the cards. */
.posts-nav {
	margin-top: 3rem;
}

/* Single post: featured image above the content, rounded like the cards. */
.post-thumbnail {
	margin-bottom: 2rem;
}
.post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

/* Single post: tags as chips (like the work package topics), linking to the tag's listing. */
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}
.post-tags a {
	padding: 3px 8px;
	font-size: 0.75rem;
	color: var(--bs-secondary-color);
	background-color: #f8f9fa;
	border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
	border-radius: 0.25rem;
	display: inline-block;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.post-tags a:hover {
	color: var(--brand-primary);
	border-color: var(--brand-primary);
}

/* Single post: author box (author-bio.php), the same faint Primary border as the cards. */
.author-info {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	--bs-card-border-radius: 0.5rem;
	--bs-card-spacer-x: 1.5rem;
	--bs-card-spacer-y: 1.5rem;
	margin-top: 2.5rem;
}
.author-info .author-avatar {
	border-radius: 50%;
}
.author-info h2 a {
	color: inherit;
}
.author-info .author-description {
	font-size: 0.9375rem;
	color: var(--bs-secondary-color);
}

/* Single post: previous / next posts as cards, lifting on hover like the other cards. */
.post-nav {
	margin-top: 3rem;
}

.post-nav-card {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	--bs-card-border-radius: 0.5rem;
	color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
	.post-nav-card {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.post-nav-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
.post-nav-card .card-body {
	display: block;
}
.post-nav-card .section-eyebrow {
	display: block;
	color: var(--brand-primary);
}
.post-nav-card .post-nav-title {
	display: block;
	font-weight: 600;
}

/* Page text (.prose): spacing and details for headings, lists, links and images, matched to the rest of the site. */
.prose > :first-child {
	margin-top: 0;
}
.prose > :last-child {
	margin-bottom: 0;
}
.prose h2,
.prose h3,
.prose h4 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}
.prose h3,
.prose h4 {
	margin-top: 2rem;
}
.prose p,
.prose ul,
.prose ol {
	margin-bottom: 1.25rem;
}
.prose li + li {
	margin-top: 0.375rem;
}
/* Links in running text: underlined (links are otherwise undecorated), with a faint Primary line that fills on hover.
 * Not buttons or arrow links ("Read more →"), which are styled already.
 */
.prose a:not(.btn, .link-arrow) {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--brand-primary) 35%, transparent);
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s ease;
}
.prose a:not(.btn, .link-arrow):hover {
	text-decoration-color: currentColor;
}
/* Eyebrow (paragraph with "section-eyebrow text-accent") kept close to the heading below it, and set well apart from
 * what comes before it, as it starts a new section.
 */
.prose > * + .section-eyebrow {
	margin-top: 3.5rem;
}
.prose .section-eyebrow {
	margin-bottom: 0.5rem;
}
.prose .section-eyebrow + h2,
.prose .section-eyebrow + h3 {
	margin-top: 0;
}
/* Quotes: a Primary bar on the left, like a highlighted note. */
.prose blockquote {
	margin-block: 2rem;
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-size: 1.125rem;
	border-left: 3px solid var(--brand-primary);
}
.prose blockquote p:last-of-type {
	margin-bottom: 0;
}
.prose blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-style: normal;
	color: var(--bs-secondary-color);
}
/* Images: rounded like the cards. */
.prose img {
	border-radius: 0.5rem;
}
.prose figure {
	margin-block: 2rem;
}
.prose figcaption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
/* Divider: the faint Primary rule used on the cards. */
.prose hr {
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
	opacity: 1;
}

/* Contact page
 * Contact Us page (views/contact.php): the form on the left, a panel with the "What happens next" steps and the
 * contact details on the right.
 */
.contact-page {
	padding-block: 3rem;
	/* Form heading (page content: a heading styled .h4 and a .section-subtitle paragraph), then a gap before the form. */
}
.contact-page .section-subtitle {
	margin-bottom: 2rem;
}
/* Side panel: the same faint Primary border and radius as the cards, no hover (it isn't a link).
 * Desktop: stays in view beside the form while scrolling.
 */
.contact-page .contact-panel {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	--bs-card-border-radius: 0.5rem;
	--bs-card-spacer-x: 1.5rem;
	--bs-card-spacer-y: 1.75rem;
}
@media (min-width: 992px) {
	.contact-page .contact-panel {
		position: sticky;
		top: calc(var(--header-height, 4rem) + 2rem);
	}
}
.contact-page .contact-panel h2.h5 {
	margin-bottom: 1.5rem;
}
/* "What happens next": numbered steps, the numbers in Primary outline circles (like the work package nodes). */
.contact-page .contact-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: contact-step;
}
.contact-page .contact-steps li {
	position: relative;
	padding-left: 3rem;
	counter-increment: contact-step;
}
.contact-page .contact-steps li + li {
	margin-top: 1.25rem;
}
.contact-page .contact-steps li::before {
	content: counter(contact-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand-primary);
	border: 2px solid var(--brand-primary);
	border-radius: 50%;
}
.contact-page .contact-steps strong {
	display: block;
	font-weight: 600;
}
.contact-page .contact-steps span {
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
/* Contact details (config/site.php → contact), under the steps, divided off by a faint rule. No rule when they are
 * the first thing in the panel (all steps blank).
 */
.contact-page .contact-details {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
.contact-page .contact-details h2 {
	margin-bottom: 1rem;
}
/* Small uppercase labels in Primary, the same as the section eyebrows (.section-eyebrow). */
.contact-page .contact-details dt {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-primary);
}
.contact-page .contact-details dd {
	margin-bottom: 0;
}
.contact-page .contact-details:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* The contact form (views/contact.php). */
.contact-form .form-label {
	margin-bottom: 0.5rem;
}
/* Required marker after a label. */
.contact-form .form-required {
	color: var(--brand-primary);
}
/* Fields: faint Primary border (a touch stronger than the cards so empty fields are visible), Primary on focus. */
.contact-form .form-control,
.contact-form .form-select {
	border-color: color-mix(in srgb, var(--brand-primary) 20%, transparent);
	border-radius: 0.5rem;
	box-shadow: none; /* Remove Bootstrap's inset shadow ($enable-shadows). */
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb), 0.15);
}
.contact-form .form-control.has-error,
.contact-form .form-select.has-error {
	border-color: var(--bs-form-invalid-border-color);
}
.contact-form .form-control.has-error:focus,
.contact-form .form-select.has-error:focus {
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.15);
}
.contact-form textarea.form-control {
	resize: vertical;
}
/* Dropdown still on its placeholder option ("Select a service…"): muted, like a text field's placeholder. */
.contact-form .form-select:has(option[value=""]:checked) {
	color: var(--bs-secondary-color);
}
/* Small muted line under the button. */
.contact-form .form-note {
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
/* While sending: the button dims and can't be pressed again. */
/* Field errors: as Bootstrap's .invalid-feedback, but placed in the gap below the field (the form rows use gy-4)
 * rather than in the flow. Otherwise fixing the last field and clicking Send removes its error on blur, the
 * button jumps up between mouse down and up, and the click is lost.
 */
.contact-form .contact-form-field {
	position: relative; /* The error is placed from here. */
	display: block; /* An inline span; as a block, the error lines up under the field. */
}
.contact-form .contact-form-error {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--bs-form-invalid-color);
}
/* The form is a column, so the message after sending can be moved to the top (it comes last in the markup). */
.contact-form form.contact-form-body {
	display: flex;
	flex-direction: column;
}
/* Message after sending: a rounded box above the fields, Primary tint on success, danger tint on any problem.
 * The form's address ends in #contact-form, so the page opens scrolled to it.
 */
.contact-form form .contact-form-response {
	order: -1;
	margin: 0 0 1.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	border: var(--bs-border-width) solid;
	border-radius: 0.5rem;
}
.contact-form form.is-sent .contact-form-response {
	color: var(--brand-dark);
	background-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
	border-color: color-mix(in srgb, var(--brand-primary) 25%, transparent);
}
.contact-form form.is-failed .contact-form-response,
.contact-form form.is-limited .contact-form-response,
.contact-form form.is-expired .contact-form-response,
.contact-form form.is-invalid .contact-form-response {
	color: var(--bs-danger-text-emphasis);
	background-color: var(--bs-danger-bg-subtle);
	border-color: var(--bs-danger-border-subtle);
}

/* Footer */
#footer {
	padding-block: 2rem;
	font-size: 0.875rem;
	background-color: color-mix(in srgb, var(--brand-primary) 3%, #fff); /* Very light tint of the brand colour. */
	border-top: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
	/* Brand: spaced-out uppercase site name (or the footer logo). */
}
#footer .footer-brand {
	display: inline-block;
}
#footer .footer-brand img {
	display: block;
	height: 32px;
	width: auto;
}
/* Small and muted like the registered office opposite, so the two sides balance. */
#footer .footer-tagline {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: var(--bs-secondary-color);
}
/* Menu and legal links: small navy text, spaced with gaps rather than padding. */
#footer .nav {
	row-gap: 0.5rem;
}
/* Centred so an icon link (e.g. LinkedIn) lines up with the text links. */
#footer .footer-menu {
	-moz-column-gap: 2rem;
			 column-gap: 2rem;
	align-items: center;
}
/* The current page isn't highlighted; only hover and keyboard focus turn a link Primary. */
#footer .nav-link {
	padding: 0;
	color: var(--brand-dark);
}
#footer .nav-link:hover, #footer .nav-link:focus-visible {
	color: var(--brand-primary);
}
/* Icon links (e.g. LinkedIn): the size of a line of footer text, in the link's colour. */
#footer .footer-link-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}
/* The company's registered details under the menu, and its registered office on the right: small and muted. */
#footer .footer-company, #footer .footer-office {
	margin: 0;
	font-size: 0.8rem;
	color: var(--bs-secondary-color);
	text-wrap: balance;
}
#footer .footer-company {
	margin-top: 1rem;
	text-align: center;
}
#footer .footer-office span {
	display: block;
}

/* Posts */
.sticky .card {
	background-color: #f8f9fa;
}

.entry-meta {
	font-size: small;
	margin-top: 0.75rem;
}

/* Comments (comments.php, ecosar_theme_comment() in functions.php), in the post column. */
#comments {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
}

#comments-title,
.comment-reply-title {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

/* Each comment: a card with a faint Primary border; replies indented below it. */
.commentlist {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}
.commentlist li.comment {
	margin-bottom: 1rem;
	padding: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
	border-radius: 0.5rem;
}
.commentlist .children {
	margin: 1rem 0 0;
	padding-left: 1.25rem;
	list-style: none;
}
.commentlist .children li.comment:last-child {
	margin-bottom: 0;
}
.commentlist .comment-meta {
	margin-bottom: 0.75rem;
}
/* Author line: small avatar, name and date in a row. */
.commentlist .comment-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
.commentlist .comment-author .fn {
	font-weight: 600;
	color: var(--bs-body-color);
}
.commentlist .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.commentlist .comment-content p:last-child {
	margin-bottom: 0;
}

/* ==================================================================================================================
   Blocks (.block-*) and lists (.list-*), and the service page sections (views/parts/service/). Interleaved: later
   rules build on earlier ones.
   ================================================================================================================== */

/* Blocks: a .block section with a style (.block-band, .block-dark-band, .block-card), its content in .block-inner.
 * Tinted band: the faint Primary tint of the client logos band, running the full window width while the content
 * stays in the text column (the border-image paints outside the box without widening the page).
 */
.block.block-band {
	--band-bg: color-mix(in srgb, var(--brand-primary) 4%, #fff);
	margin-block: 3.5rem;
	padding-block: 3.5rem;
	-o-border-image: linear-gradient(var(--band-bg) 0 0) 0//0 100vw;
		 border-image: linear-gradient(var(--band-bg) 0 0) fill 0//0 100vw;
}
.block.block-band:last-child {
	margin-bottom: 0;
}
/* Not a .row: its negative top margin cancels its columns' gy-* gutter, so zeroing it would add space above. */
.block.block-band > .block-inner > :first-child:not(.row) {
	margin-top: 0;
}
.block.block-band > .block-inner > :last-child {
	margin-bottom: 0;
}
/* Grid of cards: one column, two from md. */
.block.block-band .industry-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: 2rem;
}
@media (min-width: 768px) {
	.block.block-band .industry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		/* An odd card out on the last row is centred, at the same width as the others. */
	}
	.block.block-band .industry-grid > :last-child:nth-child(odd) {
		grid-column: 1/-1;
		justify-self: center;
		width: calc(50% - 0.625rem);
	}
}

/* A page ending with a band, followed by the CTA banner (Page (Service) template): the band runs on behind the banner,
 * rather than leaving a strip of white between them.
 */
.page-content:has(.prose > .block-band:last-child) {
	padding-bottom: 0;
	/* "Edit" link (logged in): on the tint too. */
}

.page-content:has(.prose > .block-band:last-child) + .cta-banner {
	padding-top: 0;
	background-color: color-mix(in srgb, var(--brand-primary) 4%, #fff);
}

/* Dark band: the navy of the dark sections, full width like the tinted band, with light text. Lists in it
 * read as a breakdown: no bullets, a rule between items, a bold lead-in (<strong>) on its own line, and a marker
 * coloured like the layers in the illustrations (cyan for the first two items, purple after).
 */
.block.block-dark-band {
	--band-bg: color-mix(in srgb, var(--brand-dark) 65%, #000);
	margin-block: 3.5rem;
	padding-block: 4rem;
	color: rgba(255, 255, 255, 0.75);
	-o-border-image: linear-gradient(var(--band-bg) 0 0) 0//0 100vw;
		 border-image: linear-gradient(var(--band-bg) 0 0) fill 0//0 100vw;
}
.block.block-dark-band > .block-inner > :first-child {
	margin-top: 0;
}
.block.block-dark-band > .block-inner > :last-child {
	margin-bottom: 0;
}
.block.block-dark-band h2,
.block.block-dark-band h3 {
	color: #fff;
}
.block.block-dark-band img {
	border-radius: 0;
}
.block.block-dark-band .list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.block.block-dark-band .list li {
	position: relative;
	margin: 0;
	padding: 1rem 0.5rem 1rem 1.75rem;
	font-size: 0.875rem;
	/* Divider above each item: a hairline that fades out at both ends. */
	--dark-band-rule: linear-gradient(90deg, transparent, rgb(255 255 255 / 14%) 18%, rgb(255 255 255 / 14%) 82%, transparent);
	background: var(--dark-band-rule) top/100% 1px no-repeat;
	/* Dividers between items only: none above the first (the highlight draws its own lines on hover). */
}
.block.block-dark-band .list li:first-child {
	background: none;
}
.block.block-dark-band .list li::before {
	content: "";
	position: absolute;
	top: 1.35rem;
	left: 0.25rem;
	width: 10px;
	height: 10px;
	background-color: #a98bf5;
	border-radius: 2px;
	transform: rotate(45deg);
	box-shadow: 0 0 8px currentColor;
}
.block.block-dark-band .list li:nth-child(-n+2)::before {
	background-color: #5ad1f5;
}
.block.block-dark-band .list strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1rem;
	color: #fff;
}

/* Stack diagram in a dark band (assets/illustrations/*.svg, printed inline by views/services/embedded-software.php). Each
 * layer is drawn in its own colour (currentColor). Hovering or focusing a layer, or its item in the list beside it,
 * highlights both (.is-active, set in main.js): the layer brightens and lifts slightly, the rest of the diagram and list
 * fades back.
 */
.stack-diagram {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin-inline: auto;
	overflow: visible;
}
.stack-diagram .stack-layer {
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.stack-diagram .stack-plane {
	fill: currentColor;
	fill-opacity: 0.14;
	stroke: currentColor;
	stroke-width: 1.4;
	filter: url(#stack-glow);
	transition: fill-opacity 0.3s ease, stroke-width 0.3s ease;
}
.stack-diagram .stack-grid {
	fill: none;
	stroke: currentColor;
	stroke-opacity: 0.35;
	stroke-width: 0.8;
}
.stack-diagram .stack-halo {
	fill: currentColor;
	fill-opacity: 0.18;
}
.stack-diagram .stack-connector {
	fill: none;
	stroke: currentColor;
	stroke-opacity: 0.75;
	stroke-width: 1.3;
	stroke-linecap: round;
	filter: url(#stack-glow);
	transition: stroke-opacity 0.3s ease, stroke-width 0.3s ease;
}
.stack-diagram .stack-label {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 2px;
	fill: #fff;
	fill-opacity: 0.72;
	transition: fill-opacity 0.3s ease;
}
.stack-diagram .stack-layer.is-active .stack-plane {
	fill-opacity: 0.32;
	stroke-width: 2.2;
}
.stack-diagram .stack-layer.is-active .stack-connector {
	stroke-opacity: 1;
	stroke-width: 1.8;
}
.stack-diagram .stack-layer.is-active .stack-label {
	fill-opacity: 1;
}
/* Fixed hover area for each plane: it stays put when the plane lifts. */
.stack-diagram .stack-hit {
	fill: transparent;
}
.stack-diagram .stack-layer:not(.stack-callout) > :not(.stack-hit) {
	transition: transform 0.3s ease;
}
@media (prefers-reduced-motion: no-preference) {
	.stack-diagram .stack-layer.is-active:not(.stack-callout) > :not(.stack-hit) {
		transform: translateY(-6px);
	}
}

.has-stack-diagram.has-active .stack-layer:not(.is-active) {
	opacity: 0.35;
}
.has-stack-diagram li[data-stack-layer] {
	/* The highlight: a soft wash in the layer's colour (cyan for the upper layers, purple below, like the markers),
	 * fading out at both ends like the dividers, with its own faded rule top and bottom.
	 */
	position: relative;
	isolation: isolate; /* Keeps the highlight (z-index -1) just behind the item's text, not behind the band. */
	transition: opacity 0.3s ease;
}
.has-stack-diagram li[data-stack-layer]:nth-child(-n+2) {
	--stack-tint: 90, 209, 245;
}
.has-stack-diagram li[data-stack-layer]:nth-child(n+3) {
	--stack-tint: 169, 139, 245;
}
.has-stack-diagram li[data-stack-layer]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, transparent, rgba(var(--stack-tint), 0.55) 25%, rgba(var(--stack-tint), 0.55) 75%, transparent) top/100% 1px no-repeat, linear-gradient(90deg, transparent, rgba(var(--stack-tint), 0.55) 25%, rgba(var(--stack-tint), 0.55) 75%, transparent) bottom/100% 1px no-repeat, linear-gradient(90deg, transparent, rgba(var(--stack-tint), 0.1) 22%, rgba(var(--stack-tint), 0.1) 78%, transparent);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.has-stack-diagram li[data-stack-layer].is-active::after {
	opacity: 1;
}
.has-stack-diagram li[data-stack-layer]:focus-visible {
	outline: 2px solid var(--brand-primary-on-dark);
	outline-offset: -2px;
}
.has-stack-diagram.has-active li[data-stack-layer]:not(.is-active) {
	opacity: 0.45;
}
/* Devices with a mouse: each item shows only its title until it (or its layer) is highlighted; the text then opens
 * below it. The text column sits at the top of the row, so opening an item never moves the heading. Touch screens
 * (no hover) keep all the text showing.
 */
@media (hover: hover) {
	.has-stack-diagram .stack-text {
		align-self: flex-start;
	}
	.has-stack-diagram .stack-layer-text {
		display: grid;
		grid-template-rows: 0fr;
		opacity: 0;
		transition: grid-template-rows 0.35s ease, opacity 0.3s ease;
	}
	.has-stack-diagram .stack-layer-text > span {
		min-height: 0;
		overflow: hidden;
	}
	.has-stack-diagram li.is-active .stack-layer-text {
		grid-template-rows: 1fr;
		opacity: 1;
	}
}

/* Service pages: section headers (views/parts/service/section-header.php) and the intro at the top of each
 * service page's file (services/): the eyebrow, heading and text one after another, across the full width.
 */
.service-section-header {
	margin-bottom: 2rem;
}
.service-section-header > :first-child {
	margin-top: 0;
}
.service-section-header > :last-child {
	margin-bottom: 0;
}
.service-section-header > h2,
.service-section-header > h3 {
	margin-top: 0;
}

/* A new section: well apart from the one before it. */
.prose > * + .service-section-header {
	margin-top: 3.5rem;
}

/* Card: like the front page feature cards (faint Primary border, lifts on hover). */
.block.block-card {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.25rem;
	background-color: var(--bs-body-bg);
	border: var(--bs-border-width) solid var(--bs-card-border-color);
	border-radius: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
	.block.block-card {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.block.block-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
.block.block-card > .block-inner {
	display: flex;
	flex: 1;
	flex-direction: column;
}
.block.block-card > .block-inner > * {
	margin-block: 0 1rem;
}
.block.block-card > .block-inner > :last-child {
	margin-bottom: 0;
}
.block.block-card h3,
.block.block-card h4 {
	font-size: 1.25rem;
	color: var(--brand-dark);
}
.block.block-card p,
.block.block-card ul:not(.list-chips) {
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
/* Bullets as Primary tick marks. */
.block.block-card ul:not(.list-chips) {
	padding-left: 0;
	list-style: none;
}
.block.block-card ul:not(.list-chips) li {
	position: relative;
	padding-left: 1.625rem;
}
.block.block-card ul:not(.list-chips) li::before {
	content: "";
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1rem;
	height: 1rem;
	background-color: var(--brand-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
					mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Heading icon in a faint Primary circle. */
.block.block-card .heading-icon {
	width: 56px;
	height: 56px;
	padding: 12px;
	background-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
	border-radius: 50%;
}
/* Chips sit at the bottom, so they line up across cards of different lengths. */
.block.block-card .list-chips {
	margin-top: auto;
}

/* Industry card (views/parts/service/industries.php): the icon in its own column, centred on the name and line beside
 * it; the points line up with the text.
 */
.industry-card {
	--industry-icon: 56px;
	display: grid;
	flex: 1;
	grid-template-columns: var(--industry-icon) minmax(0, 1fr);
	align-content: start;
	-moz-column-gap: 1rem;
			 column-gap: 1rem;
}
.industry-card > * {
	grid-column: 2;
	margin: 0;
}
/* .block.block-card in front, to win over the card's own 56px icon above, so the icon always matches its column. */
.block.block-card .industry-card .heading-icon {
	grid-row: 1;
	grid-column: 1;
	align-self: center;
	width: var(--industry-icon);
	height: var(--industry-icon);
	margin: 0;
}
.industry-card h3 {
	margin: 0 0 0.25rem;
}
.industry-card .industry-card-head p {
	margin: 0;
}
/* Over the entry content's list spacing. */
.industry-card .list {
	margin: 1rem 0 0;
}
/* Tags only (no text or points): the icon centred on the title and tags together, the tags close under the title. */
.industry-card:not(:has(.industry-card-head p, > .list:not(.list-chips))) .heading-icon {
	grid-row: 1/span 2;
}
.industry-card:not(:has(.industry-card-head p, > .list:not(.list-chips))) .list-chips {
	margin-top: 0.5rem;
}
/* Phones (.is-collapsible, set by main.js): the points stay closed until the card is tapped. The title is a button
 * that looks like the title, with a chevron; its tap area covers the whole card.
 */
.industry-card.is-collapsible:not(.is-open) > .list {
	display: none;
}
.block.block-card:has(.industry-card-toggle) {
	position: relative;
	cursor: pointer;
}
.industry-card-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	background: none;
	border: 0;
}
.industry-card-toggle::before {
	content: "";
	order: 1; /* After the title. */
	flex: none;
	width: 0.5em;
	height: 0.5em;
	border: solid var(--brand-primary);
	border-width: 0 2px 2px 0;
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform 0.2s ease;
}
.industry-card-toggle[aria-expanded=true]::before {
	transform: translateY(0.1em) rotate(-135deg);
}
@media (prefers-reduced-motion: reduce) {
	.industry-card-toggle::before {
		transition: none;
	}
}
.industry-card-toggle::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.industry-card-toggle:focus-visible {
	outline: none;
}
.block.block-card:has(.industry-card-toggle:focus-visible) {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

/* Icon above a heading (assets/icons/). Same size as the feature card icons. */
.heading-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
}

/* List → Linked chain: items joined by a line through a node each, e.g. one requirement traced from need to test.
 * A vertical timeline (line on the left), side by side from lg (line along the top). Each item: a bold stage name
 * (<strong>) on its own line, then the example. The last node is filled: the end of the chain.
 */
.list.list-chain {
	--chain-gap: 1.5rem;
	--chain-node: 1.5rem;
	display: grid;
	gap: var(--chain-gap);
	margin-block: 2rem;
	padding: 0;
	list-style: none;
}
.list.list-chain li {
	position: relative;
	margin: 0;
	padding-left: calc(var(--chain-node) + 1rem);
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
	/* Node: a ring around a dot. */
}
.list.list-chain li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: var(--chain-node);
	height: var(--chain-node);
	background: radial-gradient(circle, var(--brand-primary) 0 30%, var(--bs-body-bg) 34%);
	border: 2px solid var(--brand-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
.list.list-chain li:last-child::before {
	background: var(--brand-primary);
}
/* Line to the next node. */
.list.list-chain li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: var(--chain-node);
	bottom: calc(var(--chain-gap) * -1);
	left: calc(var(--chain-node) / 2 - 1px);
	width: 2px;
	background: linear-gradient(var(--brand-primary), var(--brand-secondary));
}
.list.list-chain strong {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 1rem;
	line-height: var(--chain-node);
	color: var(--brand-dark);
}
/* An example under the item (<em>): on its own lines, set off by a faint rule. */
.list.list-chain em {
	display: block;
	margin-top: 0.75rem;
	padding-left: 0.75rem;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
	border-left: 2px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
}
@media (min-width: 992px) {
	.list.list-chain {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}
	.list.list-chain li {
		padding: calc(var(--chain-node) + 1rem) 1rem 0 0;
	}
	.list.list-chain li:not(:last-child)::after {
		top: calc(var(--chain-node) / 2 - 1px);
		right: calc(var(--chain-gap) * -1);
		bottom: auto;
		left: var(--chain-node);
		width: auto;
		height: 2px;
		background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
	}
	.list.list-chain strong {
		line-height: inherit;
	}
}

/* Card grid with three in a row on wide screens (industries section, 'columns' => 3): no centred odd card there. */
@media (min-width: 992px) {
	.block.block-band .industry-grid.has-3-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.block.block-band .industry-grid.has-3-columns > :last-child:nth-child(odd) {
		grid-column: auto;
		width: auto;
	}
}
/* Linked chain with icon nodes (views/services/systems-engineering.php: a .chain-node per item, holding a theme icon). The node
 * is larger and holds the icon; all are outlined (hover fills one). Wide screens: each node centred over its column, the text centred
 * under it and the line running from node centre to node centre; when the "every stage" bar follows, a dashed line
 * drops from each item down onto it, as that applies to every stage.
 */
.list.list-chain li:has(> .chain-node) {
	--chain-node: 3rem;
}
.list.list-chain li:has(> .chain-node)::before {
	content: none;
}
.list.list-chain li:has(> .chain-node) .chain-node {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--chain-node);
	height: var(--chain-node);
	background-color: var(--bs-body-bg);
	border: 2px solid var(--brand-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
.list.list-chain li:has(> .chain-node) .chain-node-icon {
	display: block;
	width: 24px;
	height: 24px;
}
/* Stacked: the title centred on the node beside it, the text straight under. */
.list.list-chain li:has(> .chain-node) strong {
	display: flex;
	align-items: center;
	min-height: var(--chain-node);
	margin-bottom: 0.25rem;
	line-height: 1.3;
}
@media (min-width: 992px) {
	.list.list-chain li:has(> .chain-node) {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: calc(var(--chain-node) + 1rem) 0 0;
		text-align: center;
		/* Centred with a margin rather than translate, which the reveal and hover use. */
	}
	.list.list-chain li:has(> .chain-node) .chain-node {
		left: 50%;
		margin-left: calc(var(--chain-node) / -2);
	}
	.list.list-chain li:has(> .chain-node) strong {
		display: block;
		min-height: 0;
		margin-bottom: 0.375rem;
	}
	.list.list-chain li:has(> .chain-node):not(:last-child)::after {
		right: calc(-50% - var(--chain-gap) + var(--chain-node) / 2);
		left: calc(50% + var(--chain-node) / 2);
	}
}

@media (min-width: 992px) {
	.list.list-chain:has(+ .chain-span) li:has(> .chain-node)::before {
		content: "";
		position: static;
		flex: 1 0 1.5rem;
		order: 99;
		width: 0;
		height: auto;
		margin: 1rem auto -2rem; /* Down through the list's bottom margin, onto the bar. */
		background: none;
		border: 0;
		border-left: 2px dotted color-mix(in srgb, var(--brand-primary) 40%, transparent);
		border-radius: 0;
		box-shadow: none;
	}
}
/* Linked chain animation (main.js adds .is-animated, then .is-revealed once it scrolls into view; skipped when reduced
 * motion is requested, and without the script it simply shows). Reveal: the line draws left to right, each node settles
 * in turn and its text fades up after it, then the connectors drop onto the bar. Afterwards, while on screen
 * (.is-playing): the nodes glow one after another every few seconds, and the connectors drift down toward the bar.
 */
.list.list-chain.is-animated {
	--chain-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	position: relative;
}
.list.list-chain.is-animated > li .chain-node {
	opacity: 0;
	scale: 0.6;
	transition: opacity 0.5s ease, scale 0.6s var(--chain-ease);
	transition-delay: calc(var(--chain-i) * 0.18s);
}
.list.list-chain.is-animated > li > strong,
.list.list-chain.is-animated > li > :not(.chain-node, strong) {
	opacity: 0;
	translate: 0 8px;
	transition: opacity 0.6s ease, translate 0.7s var(--chain-ease);
	transition-delay: calc(var(--chain-i) * 0.18s + 0.15s);
}
/* The line to the next node draws out from this one. */
.list.list-chain.is-animated > li::after {
	transform-origin: left center;
	scale: 0 1;
	transition: scale 0.5s var(--chain-ease);
	transition-delay: calc(var(--chain-i) * 0.18s + 0.1s);
}
@media (max-width: 991.98px) {
	.list.list-chain.is-animated > li::after {
		transform-origin: center top;
		scale: 1 0;
	}
}
.list.list-chain.is-animated.is-revealed > li .chain-node,
.list.list-chain.is-animated.is-revealed > li > strong,
.list.list-chain.is-animated.is-revealed > li > :not(.chain-node, strong) {
	opacity: 1;
	translate: 0 0;
	scale: 1;
}
.list.list-chain.is-animated.is-revealed > li::after {
	scale: 1;
}
@media (min-width: 992px) {
	.list.list-chain.is-animated.is-playing > li .chain-node {
		animation: chain-node-glow 7s ease-out infinite;
		animation-delay: calc(var(--chain-i) * 4.2s / var(--chain-last));
	}
}

@keyframes chain-node-glow {
	0% {
		box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 12%, transparent);
	}
	2% {
		box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-primary) 22%, transparent), 0 0 18px color-mix(in srgb, var(--brand-primary) 35%, transparent);
	}
	14%, 100% {
		box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 12%, transparent);
	}
}
/* Hovering a stage (devices with a pointer): its node fills with the Primary colour, the icon turns white, the node lifts
 * slightly and the title takes the Primary colour.
 */
@media (hover: hover) {
	.list.list-chain li:has(> .chain-node) .chain-node {
		transition: background-color 0.25s ease, translate 0.25s ease, opacity 0.5s ease, scale 0.6s ease;
	}
	.list.list-chain li:has(> .chain-node) .chain-node-icon,
	.list.list-chain li:has(> .chain-node) > strong {
		transition: filter 0.25s ease, color 0.25s ease, opacity 0.6s ease, translate 0.7s ease;
	}
	.list.list-chain li:has(> .chain-node):hover .chain-node {
		background-color: var(--brand-primary);
	}
	.list.list-chain li:has(> .chain-node):hover .chain-node-icon {
		filter: brightness(0) invert(1);
	}
	.list.list-chain li:has(> .chain-node):hover > strong {
		color: var(--brand-primary);
	}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) and (min-width: 992px) {
	.list.list-chain li:has(> .chain-node):hover .chain-node {
		translate: 0 -3px;
	}
}
/* Connectors onto the bar: drawn down after the reveal, then a slow drift of the dots toward the bar. */
@media (min-width: 992px) {
	.list.list-chain.is-animated:has(+ .chain-span) li:has(> .chain-node)::before {
		border-left: 0;
		background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--brand-primary) 45%, transparent) 0 2px, transparent 2px 6px) 0 0/2px 6px;
		width: 2px;
		transform-origin: center top;
		scale: 1 0;
		transition: scale 0.6s ease;
		transition-delay: calc(var(--chain-last) * 0.18s + 0.5s + var(--chain-i) * 0.06s);
	}
	.list.list-chain.is-revealed:has(+ .chain-span) li:has(> .chain-node)::before {
		scale: 1;
	}
	.list.list-chain.is-playing:has(+ .chain-span) li:has(> .chain-node)::before {
		animation: chain-connector 1.6s linear infinite;
	}
}
@keyframes chain-connector {
	to {
		background-position: 0 6px;
	}
}
/* Under a linked chain: what applies at every stage, as one bar spanning the chain's width, with a label (first item,
 * in <strong>) and the items side by side, centred (views/services/systems-engineering.php).
 */
.chain-span {
	margin-block: 0 2rem;
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	background-color: color-mix(in srgb, var(--brand-primary) 4%, var(--bs-body-bg));
	border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
	border-radius: 0.5rem;
}
.chain-span ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chain-span li {
	position: relative;
	margin: 0;
	padding-left: 0.875rem;
	color: var(--bs-body-color);
	/* A small filled dot, centred on the line of text. */
}
.chain-span li::before {
	content: "";
	position: absolute;
	top: calc(0.75em - 3px);
	left: 0;
	width: 6px;
	height: 6px;
	background-color: var(--brand-primary);
	border-radius: 50%;
}
/* Label: no marker. */
.chain-span li:first-child {
	padding-left: 0;
}
.chain-span li:first-child::before {
	content: none;
}
/* The list leaves no gap before its next item, so li + li's margin (entry content) is reset here. */
.chain-span li + li {
	margin-top: 0;
}
.chain-span strong {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-primary);
}

/* Process flow (views/services/embedded-software.php): steps as centred cards joined by arrows, side by side from lg and
 * stacked below. The last card, the outcome, has a faint Primary tint.
 */
.service-flow {
	--flow-gap: 3rem;
	--flow-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	display: grid;
	gap: var(--flow-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 992px) {
	.service-flow {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.service-flow {
		--flow-gap: 2.25rem;
	}
}

.service-flow-step {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 14%, transparent);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding: 1.75rem 1.25rem;
	text-align: center;
	background-color: var(--bs-body-bg);
	border: var(--bs-border-width) solid var(--bs-card-border-color);
	border-radius: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
	.service-flow-step {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.service-flow-step:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
/* Four across on mid-size screens: a little tighter. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.service-flow-step {
		padding-inline: 0.75rem;
	}
}
/* Arrow to the next step, centred in the gap: right on wide screens, down when stacked. */
.service-flow-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: calc((var(--flow-gap) - 22px) / 2) 0 0 -11px;
	background-color: color-mix(in srgb, var(--brand-primary) 55%, transparent);
	-webkit-mask: var(--flow-arrow) center/contain no-repeat;
					mask: var(--flow-arrow) center/contain no-repeat;
	rotate: 90deg;
	pointer-events: none;
}
@media (min-width: 992px) {
	.service-flow-step:not(:last-child)::after {
		top: 50%;
		left: 100%;
		margin: -11px 0 0 calc((var(--flow-gap) - 22px) / 2);
		rotate: none;
	}
}
/* The outcome. */
.service-flow-step:last-child {
	--bs-card-border-color: color-mix(in srgb, var(--brand-primary) 35%, transparent);
	background-color: color-mix(in srgb, var(--brand-primary) 6%, var(--bs-body-bg));
}
.service-flow-step h4 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	color: var(--brand-dark);
}

.service-flow-icon {
	display: block;
	width: 36px;
	height: 36px;
	margin: 0 auto 1rem; /* Centred over the title when stacked (side by side, the head centres it). */
}

/* Side by side, interactive (.is-interactive, set by main.js): one card open at a time (.is-active), twice as wide, its
 * areas listed in a right-hand column; the rest close to their icon and title. Cards resize smoothly. Without the
 * script, all cards stay open at equal width with the areas under the title.
 */
.service-flow-list {
	display: none;
}

@media (min-width: 992px) {
	.service-flow.is-interactive {
		display: flex;
	}
	.service-flow.is-interactive .service-flow-step {
		flex: 1 1 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 0fr;
		align-items: center;
		min-width: 0;
		cursor: default;
		transition: flex-grow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), grid-template-columns 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.service-flow.is-interactive .service-flow-step.is-active {
		--bs-card-border-color: var(--brand-primary);
		flex-grow: 2;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		/* Mid-size screens: a little more room for the open card's list. */
	}
	/* The right-hand column: closed to nothing, opening with the card; a hairline separates it from the title.
	 * While main.js measures the row's height: no animation.
	 */
}
@media (min-width: 992px) and (min-width: 992px) and (max-width: 1199.98px) {
	.service-flow.is-interactive .service-flow-step.is-active {
		flex-grow: 2.6;
	}
}
@media (min-width: 992px) {
	.service-flow.is-interactive .service-flow-step:focus-visible {
		outline: 2px solid var(--brand-primary);
		outline-offset: 3px;
	}
	.service-flow.is-interactive .service-flow-head {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.service-flow.is-interactive .service-flow-items {
		display: none;
	}
	.service-flow.is-interactive .service-flow-list {
		display: block;
		min-width: 0;
		margin: 0;
		padding: 0;
		overflow: hidden;
		list-style: none;
		text-align: left;
		opacity: 0;
		transition: opacity 0.25s ease;
	}
	.service-flow.is-interactive .service-flow-list li {
		position: relative;
		margin: 0;
		padding: 0.25rem 0 0.25rem 2rem;
		font-size: 0.875rem;
		color: var(--bs-secondary-color);
	}
	.service-flow.is-interactive .service-flow-list li::before {
		content: "";
		position: absolute;
		top: calc(0.25rem + 0.75em - 3px);
		left: 1.25rem;
		width: 5px;
		height: 5px;
		background-color: var(--brand-primary);
		border-radius: 50%;
	}
	.service-flow.is-interactive .service-flow-list::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		width: 1px;
		background: linear-gradient(transparent, color-mix(in srgb, var(--brand-primary) 30%, transparent), transparent);
	}
	.service-flow.is-interactive .service-flow-list {
		position: relative;
	}
	.service-flow.is-interactive .is-active .service-flow-list {
		opacity: 1;
		transition: opacity 0.35s ease 0.2s;
	}
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
	.service-flow.is-interactive .service-flow-step,
	.service-flow.is-interactive .service-flow-list {
		transition: none;
	}
}
@media (min-width: 992px) {
	.service-flow.is-interactive.is-measuring .service-flow-step,
	.service-flow.is-interactive.is-measuring .service-flow-list {
		transition: none !important;
	}
}
.service-flow-items {
	margin: 0 !important;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
	text-wrap: balance;
}
.service-flow-items span {
	white-space: nowrap;
}

.service-flow-badge {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--brand-primary);
	background-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
	border-radius: 999px;
}

/* Service pages: a band as the first section sits straight under the header band (no white strip above it). */
.page-content:has(.prose > .block-band:first-child) {
	padding-top: 0;
}
.page-content:has(.prose > .block-band:first-child) .prose > .block-band:first-child {
	margin-top: 0;
}

/* Full-width sections (the split image) reach the window edges without making the page scroll sideways. */
.page-service #main {
	overflow-x: clip;
}

/* Approach (views/about.php): header on the left, the steps on the right joined by arrows. */
.service-approach {
	scroll-margin-top: var(--header-height, 4rem);
}
.service-approach .service-section-header {
	margin-bottom: 0;
}

.service-approach-steps {
	display: grid;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-approach-steps li {
	position: relative;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
}
.service-approach-steps h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.0625rem;
	color: var(--brand-dark);
}
.service-approach-steps p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}
/* Stacked on small screens: each step centred under the left-aligned header. */
@media (max-width: 767.98px) {
	.service-approach-steps li {
		text-align: center;
	}
	.service-approach-icon {
		margin-inline: auto;
	}
}
@media (min-width: 768px) {
	.service-approach-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3rem;
		/* Arrow to the next step, level with the icons, centred in the gap. */
	}
	.service-approach-steps li:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 22px;
		left: calc(100% + 0.75rem);
		width: 1.5rem;
		height: 20px;
		background-color: color-mix(in srgb, var(--brand-primary) 55%, transparent);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M15 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
						mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M15 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
	}
}

.service-approach-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background-color: color-mix(in srgb, var(--brand-primary) 9%, var(--bs-body-bg));
	border-radius: 50%;
}
.service-approach-icon svg {
	width: 28px;
	height: 28px;
}

/* Values (views/parts/service/values.php): dark cards with an outline icon and a short bar in the card's accent. */
.service-values {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 768px) {
	.service-values {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.service-value {
	--value-accent: #5ad1f5;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.75rem 1.75rem;
	color: rgba(255, 255, 255, 0.72);
	background-color: color-mix(in srgb, var(--brand-dark) 65%, #000);
	background-image: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--value-accent) 12%, transparent), transparent 60%);
	border-radius: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
	.service-value {
		transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	}
	.service-value:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-primary) 12%, transparent);
		--bs-card-border-color: var(--brand-primary);
	}
}
.service-value.is-purple {
	--value-accent: #a98bf5;
}
/* Outline icon in the accent colour. */
.service-value .service-value-icon {
	width: 36px;
	height: 36px;
	margin-bottom: 1.5rem;
	color: var(--value-accent);
}
.service-value .service-value-icon path,
.service-value .service-value-icon circle,
.service-value .service-value-icon rect,
.service-value .service-value-icon g {
	stroke: currentColor !important; /* Over the icon's own colours, which are set inline. */
}
.service-value h4 {
	margin: 0 0 0.625rem;
	font-size: 1.125rem;
	color: #fff;
}
.service-value p {
	flex: 1;
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
}
.service-value::after {
	content: "";
	width: 32px;
	height: 3px;
	background-color: var(--value-accent);
	border-radius: 2px;
}

/* Values, light ('variant' => 'light'): open columns on a tinted band, divided by faded vertical rules, the icon in a
 * soft circle and everything centred; no dark cards.
 */
.service-values.is-light {
	gap: 0;
}
.service-values.is-light .service-value {
	align-items: center;
	padding: 1.5rem 2rem;
	color: var(--bs-secondary-color);
	text-align: center;
	background: none;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}
.service-values.is-light .service-value::after {
	display: none;
}
@media (min-width: 768px) {
	.service-values.is-light .service-value + .service-value {
		background: linear-gradient(transparent, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent) left/1px 100% no-repeat;
	}
}
@media (max-width: 767.98px) {
	.service-values.is-light .service-value + .service-value {
		background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent) top/100% 1px no-repeat;
	}
}
@media (max-width: 767.98px) {
	.service-values.is-light .service-value {
		padding-inline: 0;
	}
}
.service-values.is-light .service-value-icon {
	box-sizing: content-box;
	padding: 12px;
	margin-bottom: 1.25rem;
	background-color: var(--bs-body-bg);
	border-radius: 50%;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}
.service-values.is-light h4 {
	color: var(--brand-dark);
}
.service-values.is-light p {
	margin: 0;
}

/* Split (views/about.php): an image filling the left half of the window, the text on the right. */
.service-split {
	display: grid;
	align-items: center;
	margin-block: 4rem;
}
@media (min-width: 992px) {
	.service-split {
		grid-template-columns: 1fr 1fr;
		-moz-column-gap: 4rem;
				 column-gap: 4rem;
	}
}
.service-split .service-split-image {
	margin-inline: calc(50% - 50vw);
	margin-bottom: 2rem;
}
.service-split .service-split-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 420px;
	-o-object-fit: cover;
		 object-fit: cover;
	-o-object-position: 30% 30%;
		 object-position: 30% 30%;
	border-radius: 0;
}
@media (min-width: 992px) {
	.service-split .service-split-image {
		height: 400px;
		margin: 0 0 0 calc(50% - 50vw); /* Out to the left edge of the window. */
	}
	.service-split .service-split-image img {
		max-height: none;
	}
}
.service-split h3 {
	margin: 0 0 1rem;
}
.service-split .link-arrow {
	display: inline-block;
	padding-bottom: 2px;
	font-weight: 600;
	border-bottom: 1px solid currentColor;
}
.service-split .service-split-image {
	position: relative;
}

/* Key figure on the image (split section): a frosted glass card in the header's tint, in the corner by the text. */
.service-split-stat {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 280px;
	margin: 0;
	padding: 1rem 1.25rem;
	color: rgba(255, 255, 255, 0.82);
	background-color: color-mix(in srgb, color-mix(in srgb, color-mix(in srgb, var(--brand-dark) 88%, var(--brand-primary)) 45%, #000) 55%, transparent);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
}
.service-split-stat strong {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	background-image: linear-gradient(90deg, var(--brand-primary-on-dark), var(--brand-secondary-on-dark));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.service-split-stat span {
	font-size: 0.875rem;
	line-height: 1.35;
}
/* Small screens (short image): below the photo, overlapping its bottom edge, so it doesn't cover the picture. */
@media (max-width: 767.98px) {
	.service-split-stat {
		position: relative;
		right: auto;
		bottom: auto;
		width: -moz-fit-content;
		width: fit-content;
		margin: -2.25rem 1rem 0 auto;
		padding: 0.75rem 1rem;
		background-color: color-mix(in srgb, var(--brand-dark) 65%, #000); /* Solid: half of it sits over the white page. */
	}
	.service-split-stat strong {
		font-size: 2rem;
	}
}

/* Levels (views/services/test-validation.php): a staircase of levels rising left to right beside a panel describing the
 * selected one (.is-active, main.js). Steps get taller and shift from purple toward cyan as they near the real system.
 */
.service-levels {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}
@media (min-width: 992px) {
	.service-levels {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}
}

/* The staircase: kept to a sensible width, so the steps don't spread out too wide. */
.service-levels-chart {
	width: 100%;
	max-width: 560px;
}

.service-levels-steps {
	display: grid;
	grid-template-columns: repeat(var(--levels), minmax(0, 1fr));
	gap: 0.75rem;
	align-items: end;
	height: 260px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 767.98px) {
	.service-levels-steps {
		height: 220px;
		gap: 0.375rem;
	}
}

.service-level {
	--level-colour: color-mix(in srgb, var(--brand-primary) calc(100% - var(--step) * 80% / max(1, var(--levels) - 1)), #21b1f3);
	height: calc(30% + var(--step) * 70% / max(1, var(--levels) - 1)); /* From 30% up to full height, whatever the number of steps. */
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	cursor: pointer;
	outline: none;
}
.service-level .service-level-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	height: 100%;
	padding-top: 1rem;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--level-colour) 18%, var(--bs-body-bg)), color-mix(in srgb, var(--level-colour) 6%, var(--bs-body-bg)));
	border: 1px solid color-mix(in srgb, var(--level-colour) 30%, transparent);
	border-bottom: 0;
	border-radius: 0.5rem 0.5rem 0 0;
	transition: background 0.3s ease, border-color 0.3s ease, translate 0.3s ease, box-shadow 0.3s ease;
}
.service-level .service-level-icon {
	width: 26px;
	height: 26px;
	transition: filter 0.3s ease;
}
.service-level strong {
	font-size: 0.875rem;
	color: var(--brand-dark);
	transition: color 0.3s ease;
}
@media (max-width: 767.98px) {
	.service-level strong {
		font-size: 0.75rem;
	}
}
.service-level:hover .service-level-bar {
	border-color: var(--level-colour);
}
.service-level.is-active .service-level-bar {
	background: linear-gradient(to bottom, var(--level-colour), color-mix(in srgb, var(--level-colour) 70%, var(--brand-dark)));
	border-color: var(--level-colour);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--level-colour) 30%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
	.service-level.is-active .service-level-bar {
		translate: 0 -6px;
	}
}
.service-level.is-active .service-level-bar .service-level-icon {
	filter: brightness(0) invert(1);
}
.service-level.is-active .service-level-bar strong {
	color: #fff;
}
.service-level:focus-visible .service-level-bar {
	outline: 2px solid var(--brand-primary);
	outline-offset: 3px;
}

/* Arrow under the staircase, labelled at both ends. */
.service-levels-axis {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding-top: 1rem;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
	border-top: 2px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
}
.service-levels-axis span:last-child {
	text-align: right;
}
.service-levels-axis::after {
	content: "";
	position: absolute;
	top: -7px;
	right: 2px;
	width: 12px;
	height: 12px;
	border-top: 2px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
	border-right: 2px solid color-mix(in srgb, var(--brand-primary) 25%, transparent);
	rotate: 45deg;
}

/* The panel: the selected level's description (all shown, one after another, without the script). */
.service-levels-details {
	display: grid;
	padding: 2rem;
	background-color: var(--bs-body-bg);
	border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}
.is-interactive .service-levels-details > * {
	grid-area: 1/1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}
.is-interactive .service-levels-details > *.is-active {
	opacity: 1;
	visibility: visible;
}
.service-levels-details .service-level-short {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-primary);
}
.service-levels-details h4 {
	margin: 0 0 0.75rem;
	color: var(--brand-dark);
}
.service-levels-details p {
	margin-bottom: 1rem;
	color: var(--bs-secondary-color);
}
.service-levels-details ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-levels-details li {
	position: relative;
	margin: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-size: 0.875rem;
}
.service-levels-details li::before {
	content: "";
	position: absolute;
	top: calc(0.25rem + 0.75em - 3px);
	left: 0;
	width: 6px;
	height: 6px;
	background-color: var(--brand-primary);
	border-radius: 50%;
}

/* List (views/services/test-validation.php): ticked points, two columns on wide screens, each separated by a faded rule. */
.service-list {
	display: grid;
	gap: 0 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.service-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.service-list li {
	position: relative;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding: 1.125rem 0 1.125rem 2.25rem;
	background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent) bottom/100% 1px no-repeat;
	/* A tick in a soft circle. */
}
.service-list li::before {
	content: "";
	position: absolute;
	top: calc(1.125rem + 0.8em - 12px);
	left: 0;
	width: 24px;
	height: 24px;
	background-color: color-mix(in srgb, var(--brand-primary) 10%, var(--bs-body-bg));
	border-radius: 50%;
}
.service-list li::after {
	content: "";
	position: absolute;
	top: calc(1.125rem + 0.8em - 7px);
	left: 5px;
	width: 14px;
	height: 14px;
	background-color: var(--brand-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
					mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Cycle (views/services/model-based-design.php): stages on a ring around a centre label, beside a panel describing the
 * selected stage (.is-active, main.js). Dashes drift clockwise round the ring, the direction of the process.
 */
.service-cycle {
	display: grid;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 992px) {
	.service-cycle {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}
}

.service-cycle-diagram {
	position: relative;
	width: 100%;
	max-width: 440px;
	aspect-ratio: 1;
	margin-inline: auto;
}
@media (max-width: 767.98px) {
	.service-cycle-diagram {
		max-width: 320px;
	}
}

.service-cycle-ring {
	position: absolute;
	inset: 0;
	overflow: visible;
}
.service-cycle-ring circle {
	fill: none;
	stroke: color-mix(in srgb, var(--brand-primary) 35%, transparent);
	stroke-width: 0.6;
	stroke-dasharray: 1.6 1.4;
}
@media (prefers-reduced-motion: no-preference) {
	.service-cycle-ring circle {
		animation: cycle-flow 2s linear infinite;
	}
}

@keyframes cycle-flow {
	to {
		stroke-dashoffset: -3;
	}
}
/* The model in the middle: a soft disc with the label. */
.service-cycle-centre {
	position: absolute;
	inset: 28%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
	background: radial-gradient(circle, var(--bs-body-bg) 55%, color-mix(in srgb, var(--brand-primary) 8%, var(--bs-body-bg)));
	border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent);
	border-radius: 50%;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}
.service-cycle-centre strong {
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--brand-dark);
}
@media (max-width: 767.98px) {
	.service-cycle-centre strong {
		font-size: 0.9375rem;
	}
}
.service-cycle-centre span {
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
}
@media (max-width: 767.98px) {
	.service-cycle-centre span {
		font-size: 0.75rem;
	}
}

.service-cycle-stages {
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-cycle-stage {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	translate: -50% -32px; /* Centres the node (not the label under it) on the ring. */
	cursor: pointer;
	outline: none;
}
.service-cycle-stage strong {
	font-size: 0.875rem;
	color: var(--brand-dark);
	white-space: nowrap;
	transition: color 0.3s ease;
}
.service-cycle-stage:focus-visible .service-cycle-node {
	outline: 2px solid var(--brand-primary);
	outline-offset: 4px;
}
.service-cycle-stage.is-active .service-cycle-node {
	background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
	border-color: transparent;
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-primary) 15%, transparent), 0 10px 24px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.service-cycle-stage.is-active .service-cycle-icon {
	filter: brightness(0) invert(1);
}
.service-cycle-stage.is-active strong {
	color: var(--brand-primary);
}

.service-cycle-node {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background-color: var(--bs-body-bg);
	border: 2px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
	border-radius: 50%;
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
}
.service-cycle-stage:hover .service-cycle-node {
	border-color: var(--brand-primary);
}
@media (prefers-reduced-motion: no-preference) {
	.service-cycle-stage:hover .service-cycle-node {
		scale: 1.06;
	}
}
@media (max-width: 767.98px) {
	.service-cycle-node {
		width: 50px;
		height: 50px;
	}
}

.service-cycle-icon {
	width: 28px;
	height: 28px;
	transition: filter 0.3s ease;
}
@media (max-width: 767.98px) {
	.service-cycle-icon {
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 767.98px) {
	.service-cycle-stage {
		translate: -50% -25px;
	}
}
/* The panel: the selected stage's description (all shown, one after another, without the script). */
.service-cycle-details {
	display: grid;
	padding: 2rem;
	background-color: var(--bs-body-bg);
	border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}
.is-interactive .service-cycle-details > * {
	grid-area: 1/1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}
.is-interactive .service-cycle-details > *.is-active {
	opacity: 1;
	visibility: visible;
}
.service-cycle-details .service-cycle-step {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-primary);
}
.service-cycle-details h4 {
	margin: 0 0 0.75rem;
	color: var(--brand-dark);
}
.service-cycle-details p {
	margin-bottom: 1rem;
	color: var(--bs-secondary-color);
}
.service-cycle-details ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-cycle-details li {
	position: relative;
	margin: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-size: 0.875rem;
}
.service-cycle-details li::before {
	content: "";
	position: absolute;
	top: calc(0.25rem + 0.75em - 3px);
	left: 0;
	width: 6px;
	height: 6px;
	background-color: var(--brand-primary);
	border-radius: 50%;
}

/* Features (views/services/model-based-design.php): the header on the left (it stays in view while the items scroll by on
 * wide screens), the items in two columns on the right, separated by faded rules rather than boxed in cards.
 */
.service-features {
	display: grid;
	gap: 2rem;
	margin-top: 3.5rem;
}
@media (min-width: 992px) {
	.service-features {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 4rem;
		align-items: start;
	}
	.service-features .service-features-header {
		position: sticky;
		top: calc(var(--header-height, 4rem) + 2rem);
	}
}
.service-features .service-section-header {
	margin-bottom: 0;
}

.service-features-list {
	display: grid;
	gap: 0 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.service-features-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.service-features-list li {
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding: 1.5rem 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent) top/100% 1px no-repeat;
}
.service-features-list h4 {
	margin: 1rem 0 0.375rem;
	font-size: 1.0625rem;
	color: var(--brand-dark);
}
.service-features-list p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bs-secondary-color);
}

.service-features-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background-color: color-mix(in srgb, var(--brand-primary) 9%, var(--bs-body-bg));
	border-radius: 0.5rem;
}
.service-features-icon svg {
	width: 24px;
	height: 24px;
}
/* One column on small screens: each item centred, its divider fading out at both ends. */
@media (max-width: 767.98px) {
	.service-features-list li {
		text-align: center;
		background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent);
	}
	.service-features-icon {
		margin-inline: auto;
	}
}

/* Integrity scale (views/services/functional-safety.php): a panel with the scale's ends on top (a gradient bar from lower
 * to higher integrity), then a row per industry, its levels spread along the same scale, tinted from purple toward cyan
 * as integrity rises. Hovering a row highlights it.
 */
.service-integrity {
	--integrity-label: 260px;
	padding: 1.75rem 2rem;
	background-color: var(--bs-body-bg);
	border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}
@media (max-width: 991.98px) {
	.service-integrity {
		--integrity-label: 0px;
		padding: 1.25rem;
	}
}

.service-integrity-axis {
	display: flex;
	justify-content: space-between;
	margin-left: var(--integrity-label);
	padding-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bs-secondary-color);
	background: linear-gradient(90deg, var(--brand-primary), #21b1f3) bottom/100% 3px no-repeat;
	border-radius: 2px;
}

.service-integrity-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-integrity-row {
	display: grid;
	grid-template-columns: var(--integrity-label) minmax(0, 1fr);
	align-items: center;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding: 1rem 0;
	border-radius: 0.375rem;
	transition: background-color 0.25s ease;
}
.service-integrity-row + .service-integrity-row {
	background-image: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent);
	background-position: top;
	background-size: 100% 1px;
	background-repeat: no-repeat;
}
.service-integrity-row:hover {
	background-color: color-mix(in srgb, var(--brand-primary) 4%, transparent);
}
@media (max-width: 991.98px) {
	.service-integrity-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
}

.service-integrity-label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.service-integrity-label strong {
	display: block;
	font-size: 0.9375rem;
	color: var(--brand-dark);
}
.service-integrity-label small {
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
}

.service-integrity-icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 36px;
	height: 36px;
	background-color: color-mix(in srgb, var(--brand-primary) 9%, var(--bs-body-bg));
	border-radius: 50%;
}
.service-integrity-icon svg {
	width: 20px;
	height: 20px;
}

/* The levels, spread evenly across the scale; each chip's tint follows its position (--level, 0 to 1). */
.prose .service-integrity-levels {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0; /* Over .prose ol's bottom margin, which would lift the chips off-centre from the label. */
	padding: 0;
	list-style: none;
}
.service-integrity-levels li {
	--tint: color-mix(in srgb, #21b1f3 calc(var(--level) * 100%), var(--brand-primary));
	flex: 0 0 auto;
	min-width: 64px;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding: 0.3rem 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	color: color-mix(in srgb, var(--tint) 75%, var(--brand-dark));
	background-color: color-mix(in srgb, var(--tint) calc(8% + var(--level) * 14%), var(--bs-body-bg));
	border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent);
	border-radius: 999px;
}
/* Stacked (below lg): compact rows, the name and standard on one line, and the levels joined into one segmented bar
 * across the full width, so each row reads as a scale on its own. */
@media (max-width: 991.98px) {
	.service-integrity-row {
		gap: 0.625rem;
		padding: 0.875rem 0;
	}
	.service-integrity-label {
		gap: 0.625rem;
	}
	.service-integrity-label > span:last-child {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		-moz-column-gap: 0.5rem;
		     column-gap: 0.5rem;
	}
	.service-integrity-icon {
		width: 30px;
		height: 30px;
	}
	.service-integrity-icon svg {
		width: 17px;
		height: 17px;
	}
	.prose .service-integrity-levels {
		gap: 2px;
	}
	.service-integrity-levels li {
		flex: 1 1 0;
		min-width: 0;
		padding: 0.375rem 0.25rem;
		font-size: 0.75rem;
		border-radius: 0;
	}
	.service-integrity-levels li:first-child {
		border-radius: 999px 0 0 999px;
	}
	.service-integrity-levels li:last-child {
		border-radius: 0 999px 999px 0;
	}
}

.service-integrity-note {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--bs-secondary-color);
}

/* Timeline (views/services/functional-safety.php): numbered nodes joined by a line down the left, title and text beside. */
.service-timeline-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-timeline-steps li {
	position: relative;
	display: flex;
	gap: 1.5rem;
	margin: 0 !important; /* Over the entry content's li + li spacing. */
	padding-bottom: 2rem;
	/* The line to the next node. */
}
.service-timeline-steps li:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 48px;
	bottom: 4px;
	left: 23px;
	width: 2px;
	background: linear-gradient(var(--brand-primary), color-mix(in srgb, var(--brand-primary) 20%, transparent));
}
.service-timeline-steps li:last-child {
	padding-bottom: 0;
}
.service-timeline-steps h4 {
	margin: 0.625rem 0 0.375rem;
	font-size: 1.0625rem;
	color: var(--brand-dark);
}
.service-timeline-steps p {
	margin: 0;
	color: var(--bs-secondary-color);
}

.service-timeline-node {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 48px;
	height: 48px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand-primary);
	background-color: var(--bs-body-bg);
	border: 2px solid var(--brand-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 10%, transparent);
	transition: background-color 0.25s ease, color 0.25s ease;
}
.service-timeline-steps li:hover .service-timeline-node {
	color: #fff;
	background-color: var(--brand-primary);
}

/* Tools (views/services/test-validation.php): three groups of chips, side by side from tablet width up. */
.service-tools {
	display: grid;
	gap: 1.5rem 2.5rem;
}
@media (min-width: 768px) {
	.service-tools {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.service-tools h4 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: var(--brand-dark);
}
.service-tools .list-chips {
	margin: 0;
}

/* List → Chips: small tags, like a post's tags. */
.list.list-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	list-style: none;
}
.list.list-chips li {
	padding: 3px 8px;
	font-size: 0.75rem;
	color: var(--bs-secondary-color);
	background-color: #f8f9fa;
	border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent);
	border-radius: 0.25rem;
	margin: 0;
}

/* Image, Media and Text */
