/* ==========================================================================
   Looks — each company's own look, on top of the preset in main.css.
   Loaded only for sites whose design.json has a "style" (batch 2 on), so
   sites without one keep exactly the look they had.

   Body classes, one per setting (site.json design.style):
     hdr-*     header        solid, centered, float, bar, line, clean
     hero-*    home opener   center, stack, split, panel, mosaic, inset
     ph-*      page header   center, stack, split, panel, plain, inset
     cards-*   cards         rule, plain, soft, outline, tile, nodes
     titles-*  section heads charge, plain, swoosh, ticks, rule, dot
     motif-*   drawing       charge, contour, rings, ticks, hex, nodes
     footer-*  footer        dark, light, brand
     radius-*, btn-*         corners and buttons
   Colours come from the tokens; --c-motif-1…5, --charge, --motif-nodes,
   --motif-nodes-dark and --motif-glyph are printed for these sites only.
   ========================================================================== */

/* 1. Corners, buttons, display type ---------------------------------------- */
.radius-none {
	--r-xs: 0px;
	--r-sm: 0px;
	--r-md: 0px;
	--r-lg: 0px;
}

.radius-small {
	--r-xs: 2px;
	--r-sm: 4px;
	--r-md: 6px;
	--r-lg: 10px;
}

.radius-medium {
	--r-xs: 6px;
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 22px;
}

.radius-large {
	--r-xs: 10px;
	--r-sm: 16px;
	--r-md: 24px;
	--r-lg: 36px;
}

.btn-square {
	--r-btn: 0px;
}

.btn-soft {
	--r-btn: 8px;
}

.btn-pill {
	--r-btn: 999px;
}

/* A slab serif display face (Rokkitt): heavy and tight, like a wordmark. */
.display-slab {
	--display-weight: 800;
	--display-tracking: -0.012em;
	--display-leading: 1;
}

/* A serif display face with a small x-height (Cormorant) needs more size. */
.has-looks.display-serif {
	--fs-h2: clamp(2.125rem, 1.45rem + 2.4vw, 3.375rem);
	--fs-h1: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
	--fs-h3: clamp(1.375rem, 1.24rem + 0.5vw, 1.75rem);
	--display-weight: 600;
	--display-leading: 1.04;
	--display-tracking: -0.005em;
}

/* Small titles in a serif display face with a small x-height read larger. */
.has-looks.display-serif :is(.post-card__title, .sk-service-row__title, .sk-service__title, .sk-service-chip__title, .sk-card h3) {
	font-size: clamp(1.3rem, 1.18rem + 0.45vw, 1.6rem);
	font-weight: 600;
	line-height: 1.2;
}

/* A stacked logo (mark above the name) is shown taller. */
.has-looks .brand-logo.is-tall .brand-logo__img {
	height: 60px;
}

.has-looks .brand--footer .brand-logo.is-tall .brand-logo__img {
	height: 76px;
}

@media (max-width: 1079px) { /* nav-bp */
	.has-looks .brand-logo.is-tall .brand-logo__img {
		height: 50px;
	}
}

/* Eight services: four a row on wide screens (two rows, none left over). */
@media (min-width: 1100px) {
	.has-looks .sk-services__grid:has(> li:nth-child(8):last-child) {
		--cols: 4;
	}
}

/* Centred section heads: the buttons below a section's content are centred too. */
.has-looks.preset-corporate .sk-section > .wp-block-buttons,
.has-looks.preset-corporate .sk-section .sk-wide > .wp-block-buttons,
.has-looks.preset-warm .sk-section > .wp-block-buttons {
	justify-content: center;
}

/* 2. Headers ---------------------------------------------------------------- */
.site-header__contact {
	display: none;
}

/* centered: the logo in the middle, the menu on its own row below; the
   header scrolls away on wide screens (it is tall). */
@media (min-width: 1080px) { /* nav-bp */
	.hdr-centered .site-header {
		position: relative;
		top: auto;
	}

	.hdr-centered .site-header__inner {
		position: relative;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-height: 0;
		padding-top: 1.35rem;
	}

	.hdr-centered .brand {
		margin: 0 auto;
	}

	.hdr-centered .brand-logo__img {
		height: 58px;
		max-width: 320px;
		object-position: center;
	}

	.hdr-centered .primary-nav {
		margin-top: 1.1rem;
		border-top: 1px solid var(--c-rule);
	}

	.hdr-centered .primary-nav .menu {
		justify-content: center;
		gap: 0.75rem;
	}

	.hdr-centered .top-item > .menu-link {
		min-height: 3.4rem;
		font-weight: 560;
		letter-spacing: 0.01em;
	}

	.hdr-centered .top-item > .menu-link::after {
		bottom: -1px;
	}

	.hdr-centered .site-header__actions {
		position: absolute;
		top: 1.6rem;
		right: var(--gutter);
	}

	.hdr-centered .site-header.is-scrolled {
		box-shadow: none;
	}
}

:root:has(> body.hdr-centered),
:root:has(> body.hdr-bar) {
	scroll-padding-top: 1.25rem;
}

/* A quiet light contact bar over a centred header. */
.hdr-centered .topbar {
	background: var(--c-tint);
	color: var(--c-muted);
	border-bottom: 1px solid var(--c-rule);
}

.hdr-centered .topbar a,
.hdr-centered .topbar .social-links a {
	color: var(--c-ink);
}

.hdr-centered .topbar a:hover {
	color: var(--c-brand);
}

.hdr-centered .topbar__list .icon {
	color: var(--c-brand);
}

.hdr-centered .topbar :focus-visible {
	outline-color: var(--c-focus);
}

/* float: the header is a rounded bar floating over the page. */
.hdr-float .site-header {
	padding-top: 0.75rem;
	background: transparent;
	border-bottom: 0;
}

.hdr-float .site-header.is-scrolled {
	box-shadow: none;
}

.hdr-float .site-header__inner {
	width: calc(100% - 2 * var(--gutter));
	max-width: var(--w-wide);
	min-height: calc(var(--header-h) - 0.75rem);
	padding-inline: 1.5rem 0.6rem;
	background: var(--c-surface);
	border: 1px solid var(--c-rule);
	border-radius: 999px;
	box-shadow: 0 18px 44px -28px rgb(16 24 40 / 0.5);
	transition: box-shadow 0.25s var(--ease);
}

.hdr-float .site-header.is-scrolled .site-header__inner {
	box-shadow: 0 22px 50px -24px rgb(16 24 40 / 0.55);
}

.hdr-float .header-cta {
	border-radius: 999px;
}

@media (min-width: 1080px) { /* nav-bp */
	.hdr-float .top-item > .menu-link {
		border-radius: 999px;
	}

	.hdr-float .top-item > .menu-link::after {
		display: none;
	}

	.hdr-float .top-item:hover > .menu-link,
	.hdr-float .top-item.is-current > .menu-link {
		background: var(--c-tint-2);
		color: var(--c-ink);
	}
}

@media (max-width: 1079px) { /* nav-bp */
	.hdr-float .site-header__inner {
		padding-inline: 1.1rem 0.4rem;
	}
}

/* The opener and page headers start under the floating bar, so their photo
   reaches the top of the page behind it. */
.hdr-float .sk-flow > .sk-hero:first-child,
.hdr-float .site-main > .page-header:first-child {
	margin-top: calc(-1 * var(--header-h));
}

.hdr-float .site-main > .page-header:first-child {
	padding-top: calc(var(--header-h) + clamp(2.75rem, 1.75rem + 4vw, 6rem));
}

.hdr-float.hero-split .entry-content .wp-block-cover.sk-hero:first-child {
	padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
}

.hdr-float.ph-split .page-header {
	min-height: calc(var(--header-h) + clamp(320px, 30vw, 440px));
}

@media (max-width: 959px) {
	.hdr-float.hero-split .entry-content .wp-block-cover.sk-hero:first-child {
		padding-top: calc(var(--header-h) + 2.5rem);
	}
}

/* bar: two rows on wide screens — the logo with phone and email, then the
   menu on a dark band. The contact bar above is not shown. */
.site-header__contact {
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__contact li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.site-header__contact a {
	color: var(--c-ink);
	text-decoration: none;
}

.site-header__contact a:hover {
	color: var(--c-brand);
	text-decoration: underline;
}

.site-header__contact-icon {
	display: inline-grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--c-rule-strong);
	color: var(--c-brand);
}

@media (min-width: 1080px) { /* nav-bp */
	.hdr-bar .site-header {
		position: relative;
		top: auto;
		border-bottom: 0;
	}

	.hdr-bar .site-header.is-scrolled {
		box-shadow: none;
	}

	.hdr-bar .site-header__inner {
		flex-wrap: wrap;
		row-gap: 0;
		min-height: 0;
		padding-top: 1.1rem;
	}

	.hdr-bar .brand {
		order: 1;
		margin-right: 0;
	}

	.hdr-bar .brand-logo__img {
		height: 54px;
	}

	.hdr-bar .site-header__contact {
		order: 2;
		display: flex;
		margin-left: auto;
	}

	.hdr-bar .site-header__actions {
		order: 3;
		margin-left: 2rem;
	}

	.hdr-bar .primary-nav {
		position: relative;
		order: 4;
		flex: 0 0 100%;
		margin-top: 1.1rem;
		isolation: isolate;
	}

	.hdr-bar .primary-nav::before {
		content: "";
		position: absolute;
		inset: 0 calc(50% - 50vw);
		z-index: -1;
		background: var(--c-dark);
	}

	.hdr-bar .primary-nav .menu {
		min-height: 3.5rem;
		gap: 0.25rem;
	}

	.hdr-bar .top-item > .menu-link {
		min-height: 3.5rem;
		color: var(--c-on-dark);
	}

	.hdr-bar .top-item > .menu-link:hover,
	.hdr-bar .top-item.is-current > .menu-link {
		color: #fff;
	}

	.hdr-bar .top-item > .menu-link::after {
		bottom: 0;
		height: 3px;
		background: var(--c-accent-on-dark);
	}

	.hdr-bar .primary-nav .submenu-toggle {
		color: var(--c-on-dark);
	}

	.hdr-bar .primary-nav > .menu > .top-item > .menu-link:focus-visible {
		outline-color: var(--c-focus-dark);
	}
}

/* line: a heavy rule under a plain white header. */
.hdr-line .site-header--light {
	border-bottom: 4px solid var(--c-ink);
}

@media (min-width: 1080px) { /* nav-bp */
	.hdr-line .top-item > .menu-link {
		font-weight: 700;
	}

	.hdr-line .top-item > .menu-link::after {
		bottom: -4px;
		height: 4px;
		left: 0.75rem;
	}

	.hdr-line .site-header--light .top-item > .menu-link:hover {
		color: var(--c-ink);
	}
}

/* clean: no rule; the current page is marked with a small ring. */
.hdr-clean .site-header--light {
	border-bottom-color: transparent;
}

.hdr-clean .site-header--light.is-scrolled {
	border-bottom-color: var(--c-rule);
	box-shadow: none;
}

.hdr-clean.hero-inset.home .site-header--light:not(.is-scrolled) {
	background: var(--c-tint);
}

@media (min-width: 1080px) { /* nav-bp */
	.hdr-clean .top-item > .menu-link::after {
		left: 50%;
		right: auto;
		bottom: 0.2rem;
		width: 9px;
		height: 9px;
		border: 2.5px solid var(--c-motif-1);
		border-radius: 50%;
		background: transparent;
		transform: translateX(-50%) scale(0);
		transform-origin: center;
	}

	.hdr-clean .top-item.has-children > .menu-link::after {
		left: calc(50% - 0.85rem);
		right: auto;
	}

	.hdr-clean .top-item:hover > .menu-link::after,
	.hdr-clean .top-item.is-current > .menu-link::after {
		transform: translateX(-50%) scale(1);
	}

	.hdr-clean .top-item:nth-child(4n + 2) > .menu-link::after {
		border-color: var(--c-motif-2);
	}

	.hdr-clean .top-item:nth-child(4n + 3) > .menu-link::after {
		border-color: var(--c-motif-3);
	}

	.hdr-clean .top-item:nth-child(4n + 4) > .menu-link::after {
		border-color: var(--c-motif-4);
	}
}

/* 3. Home openers ----------------------------------------------------------- */

/* Openers on a light surface: dark text, the normal buttons. */
:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .wp-block-button__link {
	--btn-bg: var(--c-brand);
	--btn-fg: var(--c-brand-ink);
	--btn-bd: var(--c-brand);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .wp-block-button__link:hover {
	--btn-bg: var(--c-brand-hover);
	--btn-bd: var(--c-brand-hover);
	filter: none;
	box-shadow: none;
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .is-style-outline > .wp-block-button__link {
	--btn-bg: transparent;
	--btn-fg: var(--c-brand);
	--btn-bd: var(--c-brand);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .is-style-outline > .wp-block-button__link:hover {
	--btn-bg: var(--c-brand);
	--btn-fg: var(--c-brand-ink);
	--btn-bd: var(--c-brand);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero :focus-visible {
	outline-color: var(--c-focus);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .wp-block-cover__background {
	display: none;
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .wp-block-cover__inner-container,
:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .sk-hero__title {
	color: var(--c-ink);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero .sk-hero__text {
	color: var(--c-muted);
}

:is(.hero-stack, .hero-split, .hero-mosaic, .hero-inset) .sk-hero__eyebrow {
	color: var(--c-accent-text);
}

/* The pause button over a photo that sits inside a light opener. */
:is(.hero-stack, .hero-split, .hero-inset) .sk-hero__pause {
	border-color: rgb(255 255 255 / 0.7);
	background: rgb(0 0 0 / 0.38);
}

/* center: a full photo, the words in the middle. */
.hero-center .entry-content .wp-block-cover.sk-hero {
	align-items: center;
	justify-content: center;
	min-height: clamp(560px, 80svh, 840px) !important;
	padding-block: clamp(5rem, 3rem + 7vw, 9rem);
	text-align: center;
}

.hero-center .sk-hero .wp-block-cover__background {
	background:
		radial-gradient(ellipse 70% 60% at 50% 50%, color-mix(in srgb, var(--c-dark) 58%, transparent) 0%, color-mix(in srgb, var(--c-dark) 82%, transparent) 100%),
		linear-gradient(0deg, color-mix(in srgb, var(--c-dark) 70%, transparent) 0%, transparent 45%) !important;
}

.hero-center .sk-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 62rem;
}

.hero-center .sk-hero .sk-hero__title {
	max-width: 17ch;
	margin-inline: auto;
	text-wrap: balance;
}

.hero-center .sk-hero .sk-hero__text {
	max-width: 52ch;
	margin-inline: auto;
}

.hero-center .sk-hero .wp-block-buttons {
	justify-content: center;
}

.hero-center .sk-hero__eyebrow::before {
	display: none;
}

.hero-center .sk-hero__eyebrow {
	padding: 0.45rem 0.95rem;
	border: 1px solid color-mix(in srgb, var(--c-accent-on-dark) 55%, transparent);
	letter-spacing: 0.08em;
}

/* stack: the words first on the page colour, the photo as a wide band below. */
.hero-stack .entry-content .wp-block-cover.sk-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto clamp(260px, 40vw, 600px);
	align-items: end;
	min-height: 0 !important;
	padding: clamp(3.25rem, 2rem + 5vw, 7rem) var(--gutter) 0;
	background: var(--c-surface);
}

.hero-stack .sk-hero .wp-block-cover__inner-container {
	grid-area: 1 / 1;
	padding-bottom: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}

.hero-stack .sk-hero .sk-hero__title {
	max-width: 19ch;
	font-size: clamp(2.75rem, 1.5rem + 5vw, 6.25rem);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.hero-stack .sk-hero .sk-hero__text {
	max-width: 50ch;
}

.hero-stack .sk-hero .wp-block-cover__image-background {
	position: relative;
	grid-area: 2 / 1;
	inset: auto;
	width: 100%;
	max-width: var(--w-wide);
	height: 100%;
	margin-inline: auto;
	border-radius: var(--r-md) var(--r-md) 0 0;
}

.hero-stack .sk-hero__pause {
	right: max(calc(var(--gutter) + 1rem), calc((100% - var(--w-wide)) / 2 + 1rem));
}

/* split: the words on the left, the photo filling the right half. */
.hero-split .entry-content .wp-block-cover.sk-hero {
	align-items: center;
	min-height: clamp(560px, 74svh, 780px) !important;
	padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter);
	background: var(--c-surface);
}

.hero-split .sk-hero .wp-block-cover__inner-container > * {
	max-width: min(36rem, 47%);
}

.hero-split .sk-hero .sk-hero__title {
	font-size: clamp(2.375rem, 1.45rem + 3vw, 4.25rem);
	text-wrap: balance;
}

.hero-split .sk-hero .wp-block-cover__image-background {
	left: 53%;
	width: 47%;
	border-bottom-left-radius: clamp(4rem, 9vw, 10rem);
}

.hero-split .sk-hero__pause {
	right: var(--gutter);
}

@media (max-width: 959px) {
	.hero-split .entry-content .wp-block-cover.sk-hero {
		align-items: flex-start;
		min-height: 0 !important;
		padding-bottom: calc(clamp(240px, 62vw, 420px) + 2.5rem);
	}

	.hero-split .sk-hero .wp-block-cover__inner-container > * {
		max-width: 40rem;
	}

	.hero-split .sk-hero .wp-block-cover__image-background {
		inset: auto 0 0 auto;
		width: calc(100% - var(--gutter));
		height: clamp(240px, 62vw, 420px);
		border-radius: clamp(2.5rem, 12vw, 6rem) 0 0 0;
	}
}

/* panel: a full photo; the words on a solid panel at its foot. */
.hero-panel .entry-content .wp-block-cover.sk-hero {
	align-items: flex-end;
	min-height: clamp(580px, 82svh, 860px) !important;
	padding: clamp(7rem, 4rem + 9vw, 12rem) var(--gutter) 0;
}

.hero-panel .sk-hero .wp-block-cover__background {
	background: linear-gradient(0deg, color-mix(in srgb, var(--c-dark) 55%, transparent) 0%, transparent 45%) !important;
}

.hero-panel .sk-hero .wp-block-cover__inner-container {
	position: relative;
	width: min(100%, 46rem);
	margin-left: max(0px, calc((100% - var(--w-wide)) / 2));
	margin-right: auto;
	padding: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
	background: var(--c-dark);
}

.hero-panel .sk-hero .sk-hero__title {
	font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
	text-wrap: balance;
}

.hero-panel .sk-hero__pause {
	bottom: auto;
	top: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}

@media (max-width: 639px) {
	.hero-panel .entry-content .wp-block-cover.sk-hero {
		padding-inline: 0;
		padding-top: clamp(14rem, 60vw, 20rem);
	}

	.hero-panel .sk-hero .wp-block-cover__inner-container {
		padding-inline: var(--gutter);
	}
}

/* mosaic: a large headline, then the photos side by side in a mosaic. */
.hero-mosaic .entry-content .wp-block-cover.sk-hero {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-rows: auto;
	grid-auto-rows: clamp(150px, 15vw, 240px);
	gap: clamp(6px, 0.4rem + 0.3vw, 12px);
	align-items: stretch;
	min-height: 0 !important;
	padding: clamp(3rem, 2rem + 4.5vw, 6.5rem) max(var(--gutter), calc((100% + 2 * var(--gutter) - var(--w-wide)) / 2)) clamp(2.5rem, 2rem + 2vw, 4rem);
	background: var(--c-surface);
}

.hero-mosaic .sk-hero .wp-block-cover__inner-container {
	grid-column: 1 / -1;
	grid-row: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	column-gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: end;
	max-width: none;
	padding-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

.hero-mosaic .sk-hero .wp-block-cover__inner-container > * {
	grid-column: 1;
}

.hero-mosaic .sk-hero .sk-hero__title {
	grid-row: 2 / span 3;
	align-self: end;
	max-width: 15ch;
	font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.75rem);
	text-wrap: balance;
}

.hero-mosaic .sk-hero .sk-hero__text,
.hero-mosaic .sk-hero .wp-block-buttons {
	grid-column: 2;
}

.hero-mosaic .sk-hero .sk-hero__text {
	grid-row: 3;
	margin-top: 0;
}

.hero-mosaic .sk-hero .wp-block-buttons {
	grid-row: 4;
	margin-top: 1.5rem;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background {
	position: relative;
	inset: auto;
	width: 100%;
	height: 100%;
	opacity: 1 !important;
	object-fit: cover;
}

/* Up to five photos: one large, the others around it. */
.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(1) {
	grid-column: 1 / span 3;
	grid-row: 2 / span 2;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(2) {
	grid-column: 4 / span 2;
	grid-row: 2;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(3) {
	grid-column: 6;
	grid-row: 2;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(4) {
	grid-column: 4;
	grid-row: 3;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(5) {
	grid-column: 5 / span 2;
	grid-row: 3;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(n + 6) {
	display: none;
}

/* Fewer photos: the last one takes the space that is left. */
.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(2):last-of-type {
	grid-column: 4 / span 3;
	grid-row: 2 / span 2;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(3):last-of-type {
	grid-column: 4 / span 3;
	grid-row: 3;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(2):nth-last-of-type(3) {
	grid-column: 4 / span 3;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(4):last-of-type {
	grid-column: 4 / span 3;
}

.hero-mosaic .sk-hero .wp-block-cover__image-background:only-of-type {
	grid-column: 1 / -1;
}

@media (max-width: 959px) {
	.hero-mosaic .sk-hero .wp-block-cover__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-mosaic .sk-hero .sk-hero__title,
	.hero-mosaic .sk-hero .sk-hero__text,
	.hero-mosaic .sk-hero .wp-block-buttons {
		grid-column: 1;
		grid-row: auto;
	}

	.hero-mosaic .sk-hero .sk-hero__text {
		margin-top: 1.25rem;
	}

	.hero-mosaic .entry-content .wp-block-cover.sk-hero {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: clamp(120px, 34vw, 240px);
	}

	.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(n) {
		grid-column: auto;
		grid-row: auto;
	}

	.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(1) {
		grid-column: 1 / -1;
	}

	.hero-mosaic .sk-hero .wp-block-cover__image-background:nth-of-type(n + 4) {
		display: none;
	}
}

/* inset: a tinted opener with the photo framed on the right. */
.hero-inset .entry-content .wp-block-cover.sk-hero {
	align-items: center;
	min-height: clamp(560px, 74svh, 780px) !important;
	padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter);
	background: var(--c-tint);
}

.hero-inset .sk-hero .wp-block-cover__inner-container > * {
	max-width: min(36rem, 51%);
}

.hero-inset .sk-hero .sk-hero__title {
	font-size: clamp(2.25rem, 1.4rem + 2.7vw, 3.75rem);
	text-wrap: balance;
}

.hero-inset .sk-hero .wp-block-cover__image-background {
	top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	right: max(var(--gutter), calc((100% - var(--w-wide)) / 2));
	bottom: auto;
	left: auto;
	width: min(43%, 38rem);
	height: calc(100% - 2 * clamp(2.5rem, 1.5rem + 3vw, 4.5rem));
	border-radius: var(--r-lg);
	box-shadow: 0 40px 70px -40px rgb(16 24 40 / 0.55);
}

.hero-inset .sk-hero__pause {
	right: max(calc(var(--gutter) + 1rem), calc((100% - var(--w-wide)) / 2 + 1rem));
	bottom: clamp(3.25rem, 2.25rem + 3vw, 5.25rem);
}

@media (max-width: 959px) {
	.hero-inset .entry-content .wp-block-cover.sk-hero {
		align-items: flex-start;
		min-height: 0 !important;
		padding-bottom: calc(clamp(220px, 58vw, 400px) + 3.5rem);
	}

	.hero-inset .sk-hero .wp-block-cover__inner-container > * {
		max-width: 40rem;
	}

	.hero-inset .sk-hero .wp-block-cover__image-background {
		top: auto;
		right: var(--gutter);
		bottom: 2rem;
		left: var(--gutter);
		width: auto;
		height: clamp(220px, 58vw, 400px);
	}

	.hero-inset .sk-hero__pause {
		right: calc(var(--gutter) + 0.75rem);
		bottom: 2.75rem;
	}
}

/* 4. Page headers ------------------------------------------------------------- */

/* Light page headers: dark text and breadcrumbs. */
:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header {
	background: var(--c-surface);
	color: var(--c-ink);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header.has-photo::before {
	display: none;
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__title {
	color: var(--c-ink);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__lead {
	color: var(--c-muted);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__meta,
:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .breadcrumbs li {
	color: var(--c-muted);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .breadcrumbs a {
	color: var(--c-link);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .breadcrumbs a:hover {
	color: var(--c-ink);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__eyebrow,
:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__eyebrow a,
:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__eyebrow .post-label {
	color: var(--c-accent-text);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__icon {
	border-color: var(--c-rule);
	background: var(--c-tint);
	color: var(--c-brand);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header :focus-visible {
	outline-color: var(--c-focus);
}

:is(.ph-stack, .ph-split, .ph-plain, .ph-inset) .page-header__title::before {
	background: var(--c-accent-text);
}

/* center: the words centred over the photo. */
.ph-center .page-header__inner {
	text-align: center;
}

.ph-center .breadcrumbs ol,
.ph-center .page-header__heading,
.ph-center .page-header__eyebrow,
.ph-center .page-header__meta {
	justify-content: center;
}

.ph-center .page-header__title,
.ph-center .page-header__lead {
	margin-inline: auto;
	text-wrap: balance;
}

.ph-center .page-header__title::before {
	margin-inline: auto;
}

/* An icon sits above a centred title. */
.ph-center .page-header__heading {
	flex-direction: column;
	gap: 1.25rem;
}

.ph-center .page-header.has-photo::before {
	background:
		radial-gradient(ellipse 75% 70% at 50% 50%, color-mix(in srgb, var(--c-dark) 62%, transparent) 0%, color-mix(in srgb, var(--c-dark) 86%, transparent) 100%);
}

/* stack: the words on the page colour, the photo as a band below. */
.ph-stack .page-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-bottom: 0;
}

.ph-stack .page-header.no-photo {
	padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
	border-bottom: 1px solid var(--c-rule);
}

.ph-stack .page-header__inner {
	grid-row: 1;
}

.ph-stack .page-header__title {
	max-width: 24ch;
}

.ph-stack .page-header__media {
	position: relative;
	inset: auto;
	z-index: auto;
	grid-row: 2;
	width: calc(100% - 2 * var(--gutter));
	max-width: var(--w-wide);
	height: clamp(200px, 28vw, 420px);
	margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) auto 0;
	overflow: hidden;
	border-radius: var(--r-md) var(--r-md) 0 0;
}

/* split: the words on the left, the photo in the right half. */
.ph-split .page-header.has-photo .page-header__media {
	left: 55%;
	border-bottom-left-radius: clamp(3rem, 7vw, 7rem);
	overflow: hidden;
}

.ph-split .page-header.has-photo .page-header__inner > * {
	max-width: min(40rem, 50%);
}

.ph-split .page-header {
	min-height: clamp(320px, 30vw, 440px);
	display: flex;
	align-items: center;
}

.ph-split .page-header__inner {
	width: 100%;
}

.ph-split .page-header.no-photo {
	background: var(--c-tint);
}

@media (max-width: 899px) {
	.ph-split .page-header.has-photo {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 0;
	}

	.ph-split .page-header.has-photo .page-header__media {
		position: relative;
		order: 2;
		inset: auto;
		z-index: auto;
		height: clamp(180px, 48vw, 320px);
		margin: 2rem 0 0 var(--gutter);
		border-radius: clamp(2rem, 10vw, 5rem) 0 0 0;
	}

	.ph-split .page-header.has-photo .page-header__inner > * {
		max-width: none;
	}
}

/* panel: the photo across; the words on a solid panel at its foot. */
.ph-panel .page-header.has-photo {
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 34vw, 520px);
	padding-bottom: 0;
}

.ph-panel .page-header.has-photo::before {
	background: linear-gradient(0deg, color-mix(in srgb, var(--c-dark) 45%, transparent) 0%, transparent 60%);
}

.ph-panel .page-header.has-photo .page-header__inner {
	position: relative;
	width: min(calc(100% - 2 * var(--gutter)), 48rem);
	max-width: none;
	margin-left: max(var(--gutter), calc((100% - var(--w-wide)) / 2));
	margin-right: auto;
	padding: clamp(2rem, 1.5rem + 2vw, 3rem);
	background: var(--c-dark);
}

@media (max-width: 639px) {
	.ph-panel .page-header.has-photo .page-header__inner {
		width: 100%;
		margin-left: 0;
		padding-inline: var(--gutter);
	}
}

/* plain: type only, no photo, a heavy rule below. */
.ph-plain .page-header {
	padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
	border-bottom: 4px solid var(--c-ink);
}

.ph-plain .page-header__media {
	display: none;
}

.ph-plain .page-header__title {
	max-width: 20ch;
	font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

/* inset: tinted, with the photo framed on the right. */
.ph-inset .page-header {
	background: var(--c-tint);
}

.ph-inset .page-header.has-photo {
	display: flex;
	align-items: center;
	min-height: clamp(320px, 30vw, 440px);
}

.ph-inset .page-header__inner {
	width: 100%;
}

.ph-inset .page-header.has-photo .page-header__inner > * {
	max-width: min(38rem, 52%);
}

.ph-inset .page-header.has-photo .page-header__media {
	inset: clamp(1.75rem, 1rem + 2vw, 3rem) max(var(--gutter), calc((100% - var(--w-wide)) / 2)) clamp(1.75rem, 1rem + 2vw, 3rem) auto;
	width: min(38%, 32rem);
	overflow: hidden;
	border-radius: var(--r-lg);
	box-shadow: 0 30px 60px -38px rgb(16 24 40 / 0.55);
}

@media (max-width: 899px) {
	.ph-inset .page-header.has-photo {
		flex-direction: column;
		align-items: stretch;
	}

	.ph-inset .page-header.has-photo .page-header__media {
		position: relative;
		order: 2;
		inset: auto;
		z-index: auto;
		width: calc(100% - 2 * var(--gutter));
		height: clamp(180px, 48vw, 320px);
		margin: 2rem auto 0;
	}

	.ph-inset .page-header.has-photo .page-header__inner > * {
		max-width: none;
	}
}

/* 5. Section titles ------------------------------------------------------------- */
.titles-plain .sk-section__title::before,
.titles-plain .sk-flow > .sk-block-head .sk-block-title::before {
	display: none;
}

/* charge: the logo's colours as a bar above the title. */
.titles-charge .sk-section__title::before,
.titles-charge .sk-flow > .sk-block-head .sk-block-title::before {
	content: "";
	display: block;
	width: 4.5rem;
	height: 4px;
	margin-bottom: 1.25rem;
	background: var(--charge);
}

.titles-charge .sk-section--dark .sk-section__title::before {
	background: var(--charge);
}

/* swoosh: a short two-colour bar under a centred title. */
.titles-swoosh .sk-section__title::after,
.titles-swoosh .sk-flow > .sk-block-head .sk-block-title::after {
	content: "";
	display: block;
	width: 3.75rem;
	height: 5px;
	margin: 1.1rem auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--c-motif-1) 0 50%, var(--c-motif-2) 50% 100%);
}

/* ticks: a short gauge scale above the title. */
.titles-ticks .sk-section__title::before,
.titles-ticks .sk-flow > .sk-block-head .sk-block-title::before {
	content: "";
	display: block;
	width: 5.25rem;
	height: 12px;
	margin-bottom: 1.25rem;
	background:
		linear-gradient(var(--c-accent-text), var(--c-accent-text)) left bottom / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--c-accent-text) 0 2px, transparent 2px 12px) left bottom / 100% 12px no-repeat;
}

.titles-ticks .sk-section--dark .sk-section__title::before {
	background:
		linear-gradient(var(--c-accent-on-dark), var(--c-accent-on-dark)) left bottom / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--c-accent-on-dark) 0 2px, transparent 2px 12px) left bottom / 100% 12px no-repeat;
}

.preset-corporate.titles-ticks .sk-section__title::before {
	margin-inline: auto;
}

/* rule: a heavy rule across the content above the title. */
.titles-rule .sk-section__title,
.titles-rule .sk-flow > .sk-block-head .sk-block-title {
	padding-top: 1.25rem;
	border-top: 4px solid var(--c-ink);
}

.titles-rule .sk-section--dark .sk-section__title {
	border-top-color: #fff;
}

.titles-rule .sk-section__title::before,
.titles-rule .sk-flow > .sk-block-head .sk-block-title::before {
	display: none;
}

.titles-rule .sk-section > .sk-section__title {
	max-width: var(--w-wide);
}

/* dot: three joined rings (the logo's graph) above the title. */
.titles-dot .sk-section__title::before,
.titles-dot .sk-flow > .sk-block-head .sk-block-title::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 1.45rem;
	margin-bottom: 1rem;
	background: var(--motif-glyph) left center / contain no-repeat;
}

.preset-corporate.titles-dot .sk-section__title::before {
	margin-inline: auto;
}

.titles-dot .sk-section--dark .sk-section__title::before {
	background-image: var(--motif-glyph-dark);
}

/* 6. Cards ------------------------------------------------------------------------ */

/* rule: no box, a coloured rule along the top. */
.cards-rule :is(.sk-card, .sk-service, .post-card) {
	border: 0;
	border-top: 3px solid transparent;
	border-image: var(--charge) 1;
	box-shadow: none;
}

.cards-rule .sk-section--tint :is(.sk-card, .sk-service, .post-card) {
	box-shadow: none;
}

.cards-rule :is(.sk-card.has-link, .sk-service, .post-card):hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 40px -30px rgb(16 24 40 / 0.6);
}

.cards-rule .sk-section--dark .sk-card {
	background: color-mix(in srgb, #fff 5%, var(--c-dark));
}

/* plain: open cards — a thin rule on top, no box. */
.cards-plain :is(.sk-card, .sk-service, .post-card) {
	padding-top: 1.5rem;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--c-rule-strong);
	border-radius: 0;
	box-shadow: none;
}

.cards-plain .sk-card:not(.has-image) {
	padding-inline: 0;
	padding-bottom: 0;
}

.cards-plain .sk-card.has-icon:not(.has-image) {
	padding-top: calc(1.5rem + 4rem);
}

.cards-plain .sk-card.has-icon:not(.has-image)::before {
	top: 1.5rem;
	left: 0;
	background: transparent;
	border: 1px solid var(--c-rule-strong);
	border-radius: 50%;
}

.cards-plain .sk-card.has-icon:not(.has-image)::after {
	top: calc(1.5rem + 0.8125rem);
	left: 0.8125rem;
}

.cards-plain .sk-section--tint :is(.sk-card, .sk-service, .post-card) {
	box-shadow: none;
}

.cards-plain .sk-section--dark .sk-card {
	background: transparent;
	border-top-color: var(--c-dark-rule);
}

.cards-plain :is(.sk-card.has-link, .sk-service, .post-card):hover {
	border-top-color: var(--c-brand);
	box-shadow: none;
	transform: none;
}

.cards-plain .sk-service .sk-service__media,
.cards-plain .post-card .post-card__media {
	border-radius: var(--r-sm);
	overflow: hidden;
}

.cards-plain .sk-service__body,
.cards-plain .post-card__body {
	padding-inline: 0;
}

/* soft: rounded, borderless, a soft shadow; icons on a two-colour tile. */
.cards-soft :is(.sk-card, .sk-service, .post-card) {
	border: 0;
	border-radius: var(--r-lg);
	box-shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 20px 40px -30px rgb(16 24 40 / 0.45);
}

.cards-soft :is(.sk-card.has-link, .sk-service, .post-card):hover {
	box-shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 30px 50px -28px rgb(16 24 40 / 0.5);
	transform: translateY(-4px);
}

.cards-soft .sk-card.has-icon::before,
.cards-soft .sk-service__tile,
.cards-soft .sk-service__badge {
	border-radius: 50% 50% 50% 14%;
	background: linear-gradient(135deg, var(--c-motif-1), var(--c-brand));
	color: #fff;
}

.cards-soft .sk-card.has-icon::after {
	background: #fff;
}

.cards-soft .sk-section--dark .sk-card {
	background: color-mix(in srgb, #fff 6%, var(--c-dark));
	box-shadow: none;
}

/* outline: a fine frame with a gauge mark in the corner. */
.cards-outline :is(.sk-card, .sk-service, .post-card) {
	border: 1px solid var(--c-rule-strong);
	border-radius: var(--r-md);
	box-shadow: none;
}

.cards-outline :is(.sk-card, .sk-service, .post-card) {
	background:
		linear-gradient(var(--c-accent-text), var(--c-accent-text)) left bottom / 1.75rem 3px no-repeat,
		linear-gradient(var(--c-accent-text), var(--c-accent-text)) left bottom / 3px 1.75rem no-repeat,
		var(--c-surface);
}

.cards-outline .sk-section--dark .sk-card {
	background:
		linear-gradient(var(--c-accent-on-dark), var(--c-accent-on-dark)) left bottom / 1.75rem 3px no-repeat,
		linear-gradient(var(--c-accent-on-dark), var(--c-accent-on-dark)) left bottom / 3px 1.75rem no-repeat,
		var(--c-dark-2);
}

.cards-outline .sk-section--tint :is(.sk-card, .sk-service, .post-card) {
	box-shadow: none;
	border-color: var(--c-rule-strong);
}

.cards-outline :is(.sk-card.has-link, .sk-service, .post-card):hover {
	border-color: var(--c-brand);
	box-shadow: none;
	transform: none;
}

.cards-outline .sk-section--dark .sk-card {
	border-color: var(--c-dark-rule);
}

/* tile: photo first, square, heavy type; the words on a solid foot. */
.cards-tile :is(.sk-card, .sk-service, .post-card) {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: var(--c-surface);
}

.cards-tile .sk-section--tint :is(.sk-card, .sk-service, .post-card) {
	box-shadow: none;
}

.cards-tile .sk-card:not(.has-image) {
	border-top: 6px solid var(--c-ink);
}

.cards-tile .sk-service__body,
.cards-tile .post-card__body {
	border-top: 6px solid var(--c-ink);
}

.cards-tile :is(.sk-card.has-link, .sk-service, .post-card):hover {
	transform: none;
	box-shadow: none;
}

.cards-tile :is(.sk-service, .post-card):hover :is(.sk-service__body, .post-card__body),
.cards-tile .sk-card.has-link:not(.has-image):hover {
	border-top-color: var(--c-accent-text);
}

.cards-tile :is(.sk-service__title, .post-card__title, .sk-card h3) {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
}

.cards-tile .sk-section--dark .sk-card {
	background: color-mix(in srgb, #fff 6%, var(--c-dark));
	border-top-color: #fff;
}

.cards-tile .sk-section--dark .sk-card.has-icon::before {
	background: #fff;
}

.cards-tile .sk-section--dark .sk-card.has-icon::after {
	background: var(--c-ink);
}

/* nodes: fine frames; each icon in a ring of one of the logo's colours. */
.cards-nodes :is(.sk-card, .sk-service, .post-card) {
	border: 1px solid var(--c-rule);
	border-radius: var(--r-md);
	box-shadow: none;
}

.cards-nodes .sk-section--tint :is(.sk-card, .sk-service, .post-card) {
	box-shadow: none;
	border-color: var(--c-rule);
}

.cards-nodes :is(.sk-card.has-link, .sk-service, .post-card):hover {
	border-color: var(--c-brand);
	box-shadow: 0 24px 44px -32px rgb(16 24 40 / 0.5);
	transform: translateY(-3px);
}

.cards-nodes .sk-card.has-icon::before,
.cards-nodes .sk-service__tile {
	--node: var(--c-motif-1);
	border-radius: 50%;
	background: transparent;
	box-shadow: inset 0 0 0 3px var(--node);
	color: var(--c-ink);
}

.cards-nodes .sk-card.has-icon::after {
	background: var(--c-ink);
}

.cards-nodes li:nth-child(4n + 2) .sk-service__tile,
.cards-nodes .sk-card:nth-child(4n + 2)::before {
	--node: var(--c-motif-2);
}

.cards-nodes li:nth-child(4n + 3) .sk-service__tile,
.cards-nodes .sk-card:nth-child(4n + 3)::before {
	--node: var(--c-motif-3);
}

.cards-nodes li:nth-child(4n + 4) .sk-service__tile,
.cards-nodes .sk-card:nth-child(4n + 4)::before {
	--node: var(--c-motif-4);
}

.cards-nodes .sk-service__badge {
	border-radius: 50%;
	background: var(--c-surface);
	box-shadow: inset 0 0 0 3px var(--c-motif-1), 0 10px 20px -10px rgb(0 0 0 / 0.45);
	color: var(--c-ink);
}

.cards-nodes .sk-section--dark .sk-card {
	border-color: var(--c-dark-rule);
}

.cards-nodes .sk-section--dark .sk-card.has-icon::after {
	background: #fff;
}

/* 7. Motifs ------------------------------------------------------------------------ */

/* Bands that carry a drawing keep it inside (no sideways scrolling). */
:is(.motif-contour, .motif-rings, .motif-hex, .motif-nodes, .motif-ticks) :is(.sk-section--dark, .site-footer, .page-header) {
	overflow: clip;
}

/* charge: the logo's colours as a thin live line. */
.motif-charge .site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: var(--charge);
}

.motif-charge .site-footer::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--charge);
}

.motif-charge .sk-cta::after,
.motif-charge .cta-band__panel::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--charge);
}

.motif-charge .page-header__title::before {
	background: var(--charge);
	width: 4.5rem;
}

.motif-charge.hero-center .sk-hero .sk-hero__title::after {
	content: "";
	display: block;
	width: 6rem;
	height: 4px;
	margin: 1.75rem auto 0;
	background: var(--charge);
}

/* contour: topographic lines (land and forest mapping). */
.motif-contour :is(.sk-section--dark, .site-footer, .sk-cta, .cta-band__panel),
.motif-contour.hero-stack .sk-hero,
.motif-contour .page-header {
	position: relative;
	isolation: isolate;
}

.motif-contour :is(.sk-section--dark, .site-footer)::after,
.motif-contour :is(.sk-cta, .cta-band__panel)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--c-accent-on-dark);
	opacity: 0.13;
	-webkit-mask: url("../img/motifs/contour.svg") right -6rem top -4rem / min(1100px, 120%) auto no-repeat;
	mask: url("../img/motifs/contour.svg") right -6rem top -4rem / min(1100px, 120%) auto no-repeat;
	pointer-events: none;
}

.motif-contour.hero-stack .sk-hero::before,
.motif-contour .page-header::after {
	content: "";
	position: absolute;
	inset: 0 0 auto auto;
	z-index: 0;
	width: min(70%, 980px);
	height: min(85%, 640px);
	background: var(--c-brand);
	opacity: 0.09;
	-webkit-mask: url("../img/motifs/contour.svg") right top / cover no-repeat;
	mask: url("../img/motifs/contour.svg") right top / cover no-repeat;
	pointer-events: none;
}

.motif-contour .page-header__inner {
	z-index: 1;
}

/* rings: wide tilted rings (the logo's swoosh). */
.motif-rings :is(.sk-section--dark, .sk-cta, .cta-band__panel, .site-footer--light),
.motif-rings.hero-split .sk-hero {
	position: relative;
	isolation: isolate;
}

.motif-rings :is(.sk-section--dark, .sk-cta, .cta-band__panel)::after,
.motif-rings .site-footer--light::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--c-motif-1);
	opacity: 0.16;
	-webkit-mask: url("../img/motifs/rings.svg") right -10rem center / 900px auto no-repeat;
	mask: url("../img/motifs/rings.svg") right -10rem center / 900px auto no-repeat;
	pointer-events: none;
}

.motif-rings .site-footer--light::after {
	opacity: 0.1;
}

.motif-rings.hero-split .sk-hero::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 57%;
	z-index: 0;
	width: 980px;
	height: 980px;
	background: var(--c-motif-2);
	opacity: 0.14;
	transform: translate(-50%, -50%);
	-webkit-mask: url("../img/motifs/rings.svg") center / contain no-repeat;
	mask: url("../img/motifs/rings.svg") center / contain no-repeat;
	pointer-events: none;
}

@media (max-width: 959px) {
	.motif-rings.hero-split .sk-hero::before {
		top: auto;
		bottom: -180px;
		left: 20%;
		width: 700px;
		height: 700px;
		transform: translateX(-50%);
	}
}

/* ticks: gauge scales on the panels, the page bands and the footer. */
.motif-ticks.hero-panel .sk-hero .wp-block-cover__inner-container::before,
.motif-ticks.ph-panel .page-header.has-photo .page-header__inner::before,
.motif-ticks .site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 16px;
	background:
		repeating-linear-gradient(90deg, var(--c-accent-on-dark) 0 2px, transparent 2px 60px) left top / 100% 16px no-repeat,
		repeating-linear-gradient(90deg, var(--c-accent-on-dark) 0 1px, transparent 1px 12px) left top / 100% 8px no-repeat;
	opacity: 0.85;
	pointer-events: none;
}

.motif-ticks .site-footer {
	position: relative;
	padding-top: 16px;
}

.motif-ticks .sk-section--dark {
	background-image:
		repeating-linear-gradient(90deg, color-mix(in srgb, var(--c-accent-on-dark) 55%, transparent) 0 1px, transparent 1px 12px),
		repeating-linear-gradient(90deg, color-mix(in srgb, var(--c-accent-on-dark) 75%, transparent) 0 2px, transparent 2px 60px);
	background-size: 100% 8px, 100% 14px;
	background-position: left top, left top;
	background-repeat: no-repeat;
}

/* hex: a fine honeycomb (the logo's hexagon) in the dark bands and footer. */
.motif-hex :is(.sk-section--dark, .site-footer, .sk-cta, .cta-band__panel) {
	position: relative;
	isolation: isolate;
}

.motif-hex :is(.sk-section--dark, .site-footer)::after,
.motif-hex :is(.sk-cta, .cta-band__panel)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #fff;
	opacity: 0.06;
	-webkit-mask: url("../img/motifs/hex.svg") 0 0 / 56px 97px repeat;
	mask: url("../img/motifs/hex.svg") 0 0 / 56px 97px repeat;
	pointer-events: none;
}

/* The short bar on the call-to-action panel in the logo's own red. */
.motif-hex :is(.sk-cta, .cta-band__panel)::after {
	background: var(--c-accent);
}

.motif-hex .sk-section--dark::after {
	-webkit-mask-image: url("../img/motifs/hex.svg"), linear-gradient(90deg, transparent 30%, #000 100%);
	mask-image: url("../img/motifs/hex.svg"), linear-gradient(90deg, transparent 30%, #000 100%);
	-webkit-mask-size: 56px 97px, 100% 100%;
	mask-size: 56px 97px, 100% 100%;
	-webkit-mask-repeat: repeat, no-repeat;
	mask-repeat: repeat, no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	opacity: 0.09;
}

/* nodes: the logo's graph drawn behind openers and in the dark bands. */
.motif-nodes.hero-inset .sk-hero,
.motif-nodes.ph-inset .page-header,
.motif-nodes :is(.sk-section--dark, .site-footer, .sk-cta, .cta-band__panel) {
	position: relative;
	isolation: isolate;
}

.motif-nodes.hero-inset .sk-hero::before {
	content: "";
	position: absolute;
	right: max(0px, calc((100% - var(--w-wide)) / 2 - 6rem));
	top: 50%;
	z-index: 0;
	width: min(60vw, 900px);
	aspect-ratio: 640 / 380;
	background: var(--motif-nodes) center / contain no-repeat;
	opacity: 0.7;
	transform: translateY(-50%);
	pointer-events: none;
}

.motif-nodes.ph-inset .page-header::after {
	content: "";
	position: absolute;
	left: 40%;
	bottom: -10%;
	z-index: -3;
	width: min(40vw, 560px);
	aspect-ratio: 640 / 380;
	background: var(--motif-nodes) center / contain no-repeat;
	opacity: 0.4;
	pointer-events: none;
}

.motif-nodes :is(.sk-section--dark, .site-footer)::after,
.motif-nodes :is(.sk-cta, .cta-band__panel)::after {
	content: "";
	position: absolute;
	right: -4rem;
	top: -2rem;
	z-index: -1;
	width: min(70vw, 820px);
	aspect-ratio: 640 / 380;
	background: var(--motif-nodes-dark) center / contain no-repeat;
	opacity: 0.45;
	pointer-events: none;
}

/* The footer's text sits right on the graph: it fades out towards the text
   and stays at the outer edge. */
.motif-nodes .site-footer::after {
	opacity: 0.32;
	-webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
	mask-image: linear-gradient(100deg, transparent 38%, #000 88%);
}

@media (max-width: 959px) {
	.motif-nodes.hero-inset .sk-hero::before {
		left: auto;
		right: -35%;
		top: auto;
		bottom: -1rem;
		width: 130vw;
		opacity: 0.6;
		transform: none;
	}

	.motif-nodes.ph-inset .page-header::after {
		display: none;
	}
}

/* 8. Footers ------------------------------------------------------------------------ */

/* light: a pale band with dark text and the normal logo. */
.site-footer--light {
	background: var(--c-tint);
	color: var(--c-muted);
	border-top: 1px solid var(--c-rule);
}

.site-footer--light a {
	color: var(--c-ink);
}

.site-footer--light a:hover {
	color: var(--c-brand);
	text-decoration-color: var(--c-brand);
}

.site-footer--light :focus-visible {
	outline-color: var(--c-focus);
}

.site-footer--light .site-footer__title {
	color: var(--c-ink);
}

.site-footer--light .social-links--footer a {
	border-color: var(--c-rule-strong);
	color: var(--c-ink);
}

.site-footer--light .social-links--footer a:hover {
	border-color: var(--c-brand);
	color: var(--c-brand);
}

.site-footer--light .footer-contact .icon {
	color: var(--c-brand);
}

.site-footer--light .site-footer__bottom {
	background-image: linear-gradient(var(--c-rule), var(--c-rule));
	color: var(--c-muted);
}

/* brand: the footer in the brand colour. */
.footer-brand .site-footer {
	background: var(--c-brand);
	color: color-mix(in srgb, var(--c-brand-ink) 80%, var(--c-brand));
}

/* 9. Reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.cards-soft :is(.sk-card.has-link, .sk-service, .post-card):hover,
	.cards-rule :is(.sk-card.has-link, .sk-service, .post-card):hover,
	.cards-nodes :is(.sk-card.has-link, .sk-service, .post-card):hover {
		transform: none;
	}
}
