/**
 * Direction C — the living campaign (A · Pasteboard, refined).
 *
 * The working file as the website: every page opens on cobalt (the file
 * itself), reads on near-white paper, lays work out on a grey pasteboard and
 * leads back into cobalt through a blue tint. Funnel Display for statements,
 * Funnel Sans for reading, Geist Mono only for sizes, coordinates and file
 * names, never below 13px.
 *
 * Loaded last, over the base sheets and layout-b.css. Tokens are in
 * variables.css; this file restyles components and never sets a colour that
 * is not a token. Components here are grouped by where they appear:
 * foundation, chrome, grounds, homepage sections, work, pages.
 *
 * Design notes: DIRECTION-C.md.
 */

/* ===========================================================================
   Foundation
   =========================================================================== */

body {
	background: var(--color-bg);
	color: var(--color-fg);
	font-family: var(--font-body);
	font-synthesis: none;
}

:focus-visible {
	outline: 3px solid var(--color-blue);
	outline-offset: 3px;
}

/* On cobalt the selection blue disappears; white is the ring. */
.on-blue :focus-visible,
.hero--c :focus-visible,
.c-head :focus-visible,
.site-header:not(.is-solid) :focus-visible,
.site-nav :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible {
	outline-color: #ffffff;
}

[hidden] {
	display: none !important;
}

::selection {
	background: var(--color-blue-soft);
	color: var(--color-fg);
}

/* The statement face, wherever a heading is a statement. */
h1,
h2,
h3,
.c-h2 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
}

.c-h2 {
	margin: 0;
	font-size: var(--size-section);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.03em;
	max-width: 17ch;
}

.c-lede {
	margin: 0;
	max-width: 38ch;
	font: 400 clamp(1.1875rem, 1.6vw, 1.5rem) / 1.42 var(--font-body);
}

.c-eyebrow {
	margin: 0 0 var(--space-xs);
	font: 500 0.8125rem / 1.3 var(--font-mono);
	color: var(--color-fg-dim);
}

/* Buttons: square, one weight, a press that answers. */
.c-btn,
.button-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	min-height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 0;
	background: var(--color-fg);
	color: #ffffff;
	font: 650 1rem / 1 var(--font-body);
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: transform 140ms var(--ease-out), background-color 160ms ease;
}

.c-btn:active,
.button-pill:active {
	transform: scale(0.97);
}

.c-btn--light,
.on-blue .button-pill,
.final-cta .button-pill {
	background: #ffffff;
	color: var(--color-blue-deep);
}

.c-btn--blue {
	background: var(--color-blue);
	color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
	.c-btn:hover,
	.button-pill:hover {
		background: #2a2c34;
		color: #ffffff;
	}

	.c-btn--light:hover,
	.on-blue .button-pill:hover,
	.final-cta .button-pill:hover {
		background: var(--color-blue-soft);
		color: var(--color-blue-deep);
	}

	.c-btn--blue:hover {
		background: var(--color-blue-deep);
	}
}

/* ===========================================================================
   Chrome: header, menu, footer
   =========================================================================== */

/* Every page opens on cobalt, so the header starts as part of it: white
   logo, white links, no scrim. Past the head (main.js sets .is-solid) it
   becomes a paper bar with the logo in ink. The uploaded logo is white (it
   was made for a dark header), so it is shown as it is on cobalt and taken
   to ink on paper. */
.site-header {
	background: var(--color-blue);
	color: #ffffff;
	border-bottom: 1px solid transparent;
}

.site-header::before {
	display: none;
}

.site-header .site-header__logo img,
.site-header .site-header__logo:focus-visible img {
	filter: none;
}

.site-header.is-solid {
	background: var(--color-bg);
	color: var(--color-fg);
	border-bottom-color: var(--color-line);
}

.site-header.is-solid .site-header__logo img,
.site-header.is-solid .site-header__logo:focus-visible img {
	filter: brightness(0);
}

@media (hover: hover) and (pointer: fine) {
	.site-header .site-header__logo:hover img {
		filter: none;
		opacity: 0.82;
	}

	.site-header.is-solid .site-header__logo:hover img {
		filter: brightness(0);
		opacity: 0.72;
	}
}

.site-header__cta {
	border-bottom: 2px solid currentColor;
	color: inherit;
	font-family: var(--font-body);
	font-weight: 650;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
	color: inherit;
	border-bottom-color: transparent;
}

.menu-toggle {
	color: inherit;
}

.menu-toggle__bars span {
	background: currentColor;
}

/* The menu overlay is the working file again: cobalt, white statements. */
.site-nav {
	background-color: var(--color-blue);
	background-image: none;
	color: #ffffff;
}

.site-nav__link,
.site-nav__meta a {
	color: #ffffff;
}

.site-nav__link {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.03em;
}

body.nav-open .site-header,
body.nav-closing .site-header {
	background: transparent;
	color: #ffffff;
	border-bottom-color: transparent;
}

body.nav-open .site-header .site-header__logo img,
body.nav-closing .site-header .site-header__logo img {
	filter: none;
}

/* The close: final call to action and footer are one cobalt field, the
   wordmark set large at its foot (A's close). */
.final-cta,
.site-footer {
	background: var(--color-blue);
	color: #ffffff;
}

.final-cta {
	padding-block: var(--group) var(--head);
}

.final-cta__heading {
	font-family: var(--font-display);
	font-size: var(--size-section);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.final-cta__copy,
.final-cta__copy p {
	color: var(--color-blue-soft);
	font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
	line-height: 1.42;
}

.final-cta__email,
.site-footer a {
	color: #ffffff;
}

.final-cta__email {
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.site-footer__wordmark img {
	filter: none;
}

.site-footer__tagline,
.site-footer__bottom,
.site-footer__col-heading {
	color: var(--color-blue-soft);
}

.site-footer__col-heading {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0;
	text-transform: none;
}

.site-footer__nav a {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-footer__bottom {
	border-top-color: rgba(255, 255, 255, 0.24);
	font-size: 0.875rem;
}

/* Up to three legal links (Privacy policy, Terms of use, Terms of business).
   On a narrow screen they wrap as whole links, never mid-label. The row gap
   is just over the links' 8px-above-and-below hit areas (layout-b.css), so
   two rows' tap targets never touch. */
.site-footer__legal {
	flex-wrap: wrap;
	row-gap: 1.125rem;
}

.site-footer__legal a {
	white-space: nowrap;
}

/* Local legal preview only (inc/legal.php): an unpublished page's link is
   marked so nobody mistakes the preview for the live footer. Same type and
   colour as the link; never rendered on staging or production. */
.site-footer__draft {
	opacity: 0.7;
}

/* The statutory company line: present and legible, never competing with
   the footer above it. Same soft blue and size step as the bottom row. */
.site-footer__company {
	margin: var(--space-sm) 0 0;
	max-width: 60rem;
	color: var(--color-blue-soft);
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* ===========================================================================
   Cobalt grounds re-scope the tokens
   =========================================================================== */

/* On cobalt the ink ramp becomes white and the soft blue, the accent white,
   rules translucent white. Any component that sits on cobalt — a page head,
   the menu, the close, a Dark project section — takes the right colours
   without a rule of its own. */
.text-page__intro,
.services-page__intro,
.privacy-page__header,
.b-page-head,
.b-case__mast,
.service-hero,
.landing-hero,
.landing-conversion,
.hero--c,
.site-header:not(.is-solid),
body.nav-open .site-header,
body.nav-closing .site-header,
.site-nav,
.final-cta,
.site-footer,
.project-block--bg-dark,
.project-bgvideo {
	--color-fg: #ffffff;
	--color-fg-soft: #ffffff;
	--color-fg-dim: var(--color-blue-soft);
	--color-fg-faint: var(--color-blue-soft);
	--color-label: var(--color-blue-soft);
	--color-accent: #ffffff;
	--color-accent-contrast: var(--color-blue-deep);
	--color-line: rgba(255, 255, 255, 0.28);
	--color-line-strong: rgba(255, 255, 255, 0.4);
	--frame-border: rgba(255, 255, 255, 0.28);
}

/* A Background Video sits on the project's own dark ground and film. Its
   text takes the project's text colour (white when none is set); the token
   re-scope above covers the softer lines. */
.project-bgvideo {
	color: var(--project-fg, #ffffff);
}

/* White panels and paper inside a cobalt ground go back to ink: the
   Pasteboard's layers and strip, and the white media panels of a Dark
   project section (an HTML5 frame's label would otherwise be white on
   white). */
.hero--c .c-layers,
.hero--c .c-strip-band,
.project-block--bg-dark .media-item__media,
.project-block--bg-dark .ad-frame,
.project-block--bg-dark .b-fmt__bar {
	--color-fg: #121318;
	--color-fg-soft: #2a2d35;
	--color-fg-dim: #3e424c;
	--color-line: #d5d8e0;
}

/* A second action on cobalt is outlined, so the two read in order. */
.b-error__actions .button-pill:not(:first-child),
.b-error__actions .button-pill:not(:first-child) span {
	background: transparent;
	color: #ffffff;
}

.b-error__actions .button-pill:not(:first-child) {
	box-shadow: inset 0 0 0 2px #ffffff;
}

/* ===========================================================================
   Page heads: every page opens on cobalt
   =========================================================================== */

/* The heads are .container blocks; the cobalt runs edge to edge behind them
   (a full-bleed shadow, clipped to the head's own height). */
.text-page__intro,
.services-page__intro,
.privacy-page__header,
.b-page-head,
.b-case__mast,
.service-hero {
	position: relative;
	background: var(--color-blue);
	box-shadow: 0 0 0 100vmax var(--color-blue);
	clip-path: inset(0 -100vmax);
	color: #ffffff;
	padding-bottom: var(--head);
}

.text-page__heading,
.services-page__heading,
.privacy-page__title,
.b-page-head__title,
.b-case__title,
.service-hero__heading {
	color: #ffffff;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.text-page__intro *,
.services-page__intro *,
.b-case__mast *,
.service-hero *,
.b-page-head * {
	border-color: rgba(255, 255, 255, 0.28);
}

.text-page__copy,
.text-page__copy p,
.services-page__copy,
.services-page__copy p,
.service-hero__statement,
.service-hero__statement p,
.b-case__intro,
.b-case__intro p {
	color: #ffffff;
}

.b-case__facts dt,
.b-case__top,
.b-case__top * {
	color: var(--color-blue-soft);
}

.b-case__facts dd {
	color: #ffffff;
}

.b-page-head a,
.b-case__mast a,
.service-hero a,
.text-page__intro a {
	color: #ffffff;
}

/* Landing pages open on cobalt like every page, and their conversion
   section is the cobalt close: it meets the footer as one field. */
.landing-hero,
.landing-conversion {
	background: var(--color-blue);
	color: #ffffff;
}

.landing-hero {
	padding-top: calc(var(--header-h) + var(--space-lg));
}

.landing-hero__heading,
.landing-conversion__heading {
	color: #ffffff;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.landing-conversion {
	border-top: 0;
}

.landing-hero .button-pill,
.landing-conversion .button-pill {
	background: #ffffff;
	color: var(--color-blue-deep);
}

/* ===========================================================================
   The Pasteboard hero
   =========================================================================== */

.hero.hero--c {
	--hero-min-height: 0;
	display: block;
	min-height: 0;
	padding: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.75rem)) 0 0;
	overflow: visible;
	background: var(--color-blue);
	color: #ffffff;
}

.hero--c .hero__head {
	display: grid;
	grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 72px);
	align-items: end;
	width: min(100%, var(--content-max));
	margin-inline: auto;
	padding: 0 var(--gutter) clamp(26px, 2.8vw, 42px);
}

.hero--c .hero__eyebrow::before {
	display: none;
}

.hero--c .hero__eyebrow {
	margin: 0 0 var(--space-xs);
	padding: 0;
	font: 500 0.8125rem / 1.3 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-blue-soft);
}

.hero--c .hero__heading {
	margin: 0;
	font: 700 var(--size-hero-b) / 0.9 var(--font-display);
	letter-spacing: -0.035em;
	color: #ffffff;
	text-wrap: balance;
}

.hero--c .hero__heading .hero__emphasis,
.hero--c .hero__heading .hero__stop {
	color: inherit;
}

.hero--c .hero__copy {
	margin: 0 0 26px;
	max-width: 34ch;
	font: 400 clamp(1.1875rem, 1.6vw, 1.5rem) / 1.42 var(--font-body);
	color: #ffffff;
}

/* The pasteboard: the selected artboard, its layers, and the strip. */
.c-canvas {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	width: min(calc(100% - 2 * var(--gutter)), calc(var(--content-max) - 2 * var(--gutter)));
	margin-inline: auto;
	background: var(--color-blue-deep);
}

.c-canvas__board {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	padding: 18px clamp(16px, 2vw, 28px);
}

.c-canvas__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.c-canvas__file {
	margin: 0;
	font: 500 0.9375rem / 1.35 var(--font-body);
	color: var(--color-blue-soft);
}

.c-canvas__file b {
	color: #ffffff;
	font-weight: 650;
}

.c-focus {
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(340px, calc(100svh - 430px), 560px);
	padding: 40px 0 34px;
}

.c-focus__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.c-sel {
	position: relative;
	display: inline-block;
	line-height: 0;
	outline: 1.5px solid #ffffff;
}

.c-sel i {
	position: absolute;
	z-index: 2;
	width: 9px;
	height: 9px;
	background: #ffffff;
	border: 1.5px solid var(--color-blue);
}

.c-sel i:nth-child(1) { left: -5px; top: -5px; }
.c-sel i:nth-child(2) { right: -5px; top: -5px; }
.c-sel i:nth-child(3) { left: -5px; bottom: -5px; }
.c-sel i:nth-child(4) { right: -5px; bottom: -5px; }

.c-sel__name {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	font: 600 0.875rem / 1 var(--font-body);
	color: #ffffff;
	white-space: nowrap;
}

.c-sel__size {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 7px;
	background: #ffffff;
	color: var(--color-blue-deep);
	font: 500 0.8125rem / 1 var(--font-mono);
	white-space: nowrap;
}

/* A supplied file on the artboard (pasteboard.js, mountFiles()): its still
   and, once Play is pressed, the file itself, native-sized and scaled as one
   from the corner — the same box, so the still gives way to the playing file
   without a move. The still stays until the file has loaded. */
.c-file {
	position: relative;
	overflow: hidden;
}

.c-file__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.c-file iframe {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	border: 0;
	transform-origin: 0 0;
}

.c-file.is-live .c-file__poster {
	visibility: hidden;
}

/* Loading, the file runs out of sight behind the poster. */
.c-file:not(.is-live) iframe {
	opacity: 0;
}

/* A supplied file's control row (pasteboard.js): under the artboard, the
   size at its left and Play at its right edge, so it is plain which file
   Play starts. Never narrower than the two need, centred on a narrow
   format rather than crowding it. */
.c-sel__foot {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: max(100%, 13.5rem);
	transform: translateX(-50%);
	line-height: normal;
}

.c-sel__foot .c-sel__size {
	position: static;
	transform: none;
}

.c-thumb .lc-frame img {
	display: block;
	width: 100%;
	height: 100%;
}

/* Supplied files carry their own small type, so their artboard gets more of
   the screen than a layered one: a half page reads at most of its true size
   on a laptop, and at its true size on a phone. */
.c-canvas[data-kind="html5"] .c-focus {
	height: clamp(420px, calc(100svh - 300px), 680px);
	/* Room under the artboard for its control row (.c-sel__foot). */
	padding-bottom: 72px;
}

/* Without JavaScript the artboard is the still, sized to the focus box. */
.c-sel noscript img,
.c-sel .lc-fallback {
	display: block;
	max-height: clamp(260px, calc(100svh - 520px), 470px);
	width: auto;
	height: auto;
}

.lc-fallback--text {
	display: block;
	max-width: 30ch;
	padding: 18px;
	font: 400 0.9375rem / 1.45 var(--font-body);
	line-height: 1.45;
	white-space: normal;
}

/* The layers panel: the decisions, in reading type. */
.c-layers {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 22px 24px;
	background: #ffffff;
	color: var(--color-fg);
}

.c-layers__head h2 {
	margin: 0;
	font: 700 1.5rem / 1.1 var(--font-display);
	letter-spacing: -0.015em;
}

.c-layers__head p {
	margin: 6px 0 0;
	font: 400 0.8125rem / 1.3 var(--font-mono);
	color: var(--color-fg-dim);
}

.c-layers ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-line);
}

.c-layers li {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--color-line);
	transition: background-color 500ms ease;
}

.c-layers li b {
	font: 650 0.9375rem / 1.35 var(--font-body);
}

.c-layers li span {
	font: 400 0.84375rem / 1.45 var(--font-mono);
}

.c-layers li.is-out {
	color: var(--color-fg-dim);
}

.c-layers li.is-out span {
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

.c-layers li.is-new {
	background: var(--color-blue-tint);
}

.c-layers__note {
	margin: 16px 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

.c-layers__actions {
	margin-top: auto;
}

.c-layers details > summary {
	display: none;
}

/* The strip: every format at true relative size, straddling the edge between
   the file and the page — two flat fields, not a gradient. */
.c-strip-band {
	margin-top: 0;
	background: linear-gradient(var(--color-blue) 0 58%, var(--color-bg) 58% 100%);
}

.c-strip {
	display: flex;
	gap: 26px;
	align-items: flex-start;
	width: min(100%, var(--content-max));
	margin-inline: auto;
	padding: 22px var(--gutter) 18px;
	overflow-x: auto;
	scrollbar-width: thin;
}

/* The one line of instruction above the strip: on the blue half of the band,
   white and a step up from the strip's own grey labels, so it is read first. */
.c-strip__hint {
	width: min(100%, var(--content-max));
	margin: 0 auto;
	padding: 18px var(--gutter) 0;
	font: 600 clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem) / 1.35 var(--font-body);
	color: #ffffff;
}

.c-strip__hint[hidden] {
	display: none;
}

.c-strip__hint + .c-strip {
	padding-top: 12px;
}

.c-strip__group {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 10px;
}

.c-strip__group > p {
	margin: 0;
	font: 500 0.875rem / 1.3 var(--font-body);
	color: var(--color-blue-soft);
}

.c-strip__row {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	min-height: 182px;
}

.c-thumb {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	padding: 6px;
	margin: -6px;
	border: 0;
	background: transparent;
	color: var(--color-fg);
	text-align: left;
	cursor: pointer;
	transition: transform 140ms var(--ease-out);
}

.c-thumb:active {
	transform: scale(0.97);
}

.c-thumb .lc-frame {
	outline: 1px solid rgba(255, 255, 255, 0.4);
}

.c-thumb[aria-pressed="true"] .lc-frame {
	outline: 3px solid var(--color-fg);
	outline-offset: 3px;
}

.c-thumb__name {
	font: 650 0.875rem / 1.2 var(--font-body);
	white-space: nowrap;
}

.c-thumb__size {
	display: block;
	margin-top: 2px;
	font: 400 0.8125rem / 1.2 var(--font-mono);
	color: var(--color-fg-dim);
}

@media (hover: hover) and (pointer: fine) {
	.c-thumb:hover .lc-frame {
		outline: 2px solid #ffffff;
	}
}

/* The section after the strip starts closer: the strip is its lead-in. */
.hero--c + * {
	padding-top: calc(var(--group) * 0.6);
}

/* Demonstration placement "After the next section" (template-parts/home/
   hero.php): the hero ends after its statement and the demonstration is a
   cobalt section of its own further down. The statement gets a foot of cobalt
   under it, since nothing follows it on the blue any more; the demonstration
   section has no header to clear, and no rule above its heading, because the
   change of ground already separates it from what precedes it. */
.hero.hero--c.hero--split {
	padding-bottom: clamp(24px, 3vw, 48px);
}

.hero.hero--c.hero--demo {
	padding-top: 0;
}

.hero--demo .hero__demo {
	padding-top: calc(var(--group) * 0.6);
	border-top: 0;
}

/* ===========================================================================
   Grounds
   =========================================================================== */

/* Project Content's three grounds, as Direction C's: Default is paper,
   Light the blue tint that leads back into cobalt, Dark cobalt itself. */
.project-block--bg-light {
	background: var(--color-blue-tint);
	color: var(--color-fg);
}

.project-block--bg-dark {
	background: var(--color-blue);
	color: #ffffff;
}

/* ===========================================================================
   Campaign rows (timeline, rollout)
   =========================================================================== */

.c-campaign-row {
	padding-block: var(--group);
}

.c-feature-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 96px);
	align-items: end;
	margin-bottom: var(--head);
}

.c-feature-head .c-lede {
	max-width: 38ch;
}

.project-block--bg-dark .c-feature-head,
.project-block--bg-dark .c-eyebrow {
	color: #ffffff;
}

/* ===========================================================================
   Work: presentation boards on the pasteboard
   =========================================================================== */

/* The work is laid out where artwork is laid out: the grey pasteboard. On the
   homepage the intro and the run of boards are one band; the archive and
   every list of cards sit on it too. */
.work-intro,
.work-intro + .b-board-run,
.b-archive,
.service-work {
	background: var(--color-paste);
}

.b-archive {
	box-shadow: 0 0 0 100vmax var(--color-paste);
	clip-path: inset(0 -100vmax);
	padding-block: var(--head) var(--group);
}

.work-intro {
	padding-top: var(--group);
	padding-bottom: var(--head);
}

.work-intro__label {
	font-family: var(--font-display);
	font-size: var(--size-section);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--color-fg);
}

.work-intro__spec {
	font: 500 0.8125rem / 1.3 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-fg-dim);
}

.work-intro__copy {
	font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
	line-height: 1.42;
	color: var(--color-fg);
}

.work-intro + .b-board-run {
	padding-bottom: var(--group);
}

/* A card is a white presentation board: the creative on its own ground, its
   label bar, then the project in reading type. No frame line; the board is
   the edge. */
.b-card {
	background: #ffffff;
	border: 0;
}

.b-card:hover,
.b-card:focus-within {
	border-color: transparent;
}

.b-card:focus-within {
	outline: 3px solid var(--color-blue);
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.b-card:hover {
		box-shadow: 0 0 0 2px var(--color-blue);
	}
}

/* No frame lines. A transparent border would still show the creative's
   ground through it, so the width goes. */
.b-card__media,
.b-fmt,
.b-fmt__frame,
.work-intro__spec {
	border-width: 0;
}

.b-fmt__bar {
	background: #ffffff;
	border-top: 0;
	font: 500 0.8125rem / 1.3 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-fg-dim);
}

.b-fmt__bar--live span {
	color: var(--color-fg-dim);
}

.b-fmt__play,
.b-card .service-work__play {
	min-height: 2.25rem;
	padding: 0 0.9rem;
	border: 0;
	border-radius: 0;
	background: var(--color-blue);
	color: #ffffff;
	font: 650 0.875rem / 1 var(--font-body);
	letter-spacing: 0;
	text-transform: none;
}

.b-card__spec {
	font: 500 0.8125rem / 1.3 var(--font-mono);
	letter-spacing: 0;
	color: var(--color-fg-dim);
}

.b-card__spec span:first-child {
	color: var(--color-blue);
}

.b-card__title {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.b-card__title a {
	color: var(--color-fg);
	text-decoration: none;
}

.b-card__desc {
	color: var(--color-fg-dim);
	font-size: 1rem;
}

/* WebKit sizes a flex item with an aspect ratio from its height, so a wide
   frame in a column tile came out wider than the tile (1035px in 679px). The
   frame is always the tile's width; its height follows from the ratio. */
.b-fmt > .b-fmt__frame {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Tags read as a line of kinds of work, not as boxes. */
.b-card__tags {
	gap: 0 0.5em;
}

.b-card__tags li {
	padding: 0;
	border: 0;
	font: 500 0.8125rem / 1.5 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-fg-dim);
}

.b-card__tags li + li::before {
	content: "·";
	margin-right: 0.5em;
}

.b-card__cta {
	justify-content: flex-start;
	gap: 0.4em;
	font: 650 1rem / 1 var(--font-body);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-fg);
}

.b-card__cta > span:first-child {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.b-card__arrow {
	width: auto;
	height: auto;
	border: 0;
	background: transparent;
	color: var(--color-fg);
}

.b-card:hover .b-card__arrow,
.b-card:focus-within .b-card__arrow {
	background: transparent;
	color: var(--color-blue);
}

/* ===========================================================================
   Homepage sections
   =========================================================================== */

/* The homepage's two heading steps, set here and nowhere else.

   Section headings — "A new name.", "From the first build…", "One partner.",
   the QA heading — are one statement at --size-section, the token the
   Etihad row and the closing CTA already used, so all of them match and all
   sit clearly below the hero (--size-hero-b).

   Work titles — the WEC demonstration, Network Rail, Etihad — are one step
   down at --size-h2 (.hero__demo-heading and .project-feature__heading set
   it in their own rules below): they name an example inside the story, so
   they read as subordinate to the section headings at every width. Each keeps
   its own layout; only the scale is shared. */
.experience__heading,
.produce__heading,
.qa-check__heading,
.home .project-block--text .project-text__heading {
	font-size: var(--size-section);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.home .c-campaign-row .c-h2 {
	max-width: 20ch;
	font-size: var(--size-h2);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

/* On the homepage the Text row introduces the two campaigns after it, so it
   starts on the same edge as their titles. The ruled, inset start belongs to
   text set between pieces of work in a case study, where it still applies. */
.home .project-block--text .project-text:not(.project-text--centre) {
	padding-left: 0;
	border-left: 0;
}

/* The homepage's text row ("From the first build to the full campaign.") sits
   on the blue tint, edge to edge (owner, 9 November 2026). Background only:
   the row's own Light setting would also re-scope the text colours, which
   this deliberately leaves as they are. The section is already full width;
   its inner container, padding and type are untouched.
   Targeted as the text row directly after the experience row, not every
   homepage text row: another text row added later stays on paper. If the
   rows are reordered, move this selector with them. Since 10 November the
   WEC demonstration sits between the two ("After the next section" on the
   Hero row), so the same row is also reached through that section. */
.home .experience + .project-block--text,
.home .experience + .hero--demo + .project-block--text {
	background-color: var(--color-blue-tint);
}

/* Section headings: one statement size, Funnel Display. */
.produce__heading,
.process__heading,
.qa-check__heading,
.reasons__heading,
.experience__heading,
.company-transition__heading,
.services-page__closing-heading,
.service-section__heading {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.03em;
	color: var(--color-fg);
	text-transform: none;
}

.produce__copy,
.process__copy p,
.qa-check__copy,
.reasons__copy,
.experience__copy,
.company-transition__copy {
	font-size: clamp(1.1875rem, 1.6vw, 1.5rem);
	line-height: 1.42;
	color: var(--color-fg);
}

/* What we produce: one list, one colour. The names are the links. */
.produce__item {
	border-color: var(--color-line);
}

.produce__item-index {
	font: 500 0.8125rem / 1 var(--font-mono);
	color: var(--color-fg-dim);
}

.produce__item-name,
.produce__item:nth-child(n) .produce__item-name {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--color-fg);
}

a.produce__item-name {
	text-decoration: none;
	transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	a.produce__item-name:hover {
		color: var(--color-blue);
	}
}

.produce__supporting {
	color: var(--color-fg-dim);
}

.produce__cta,
.company-transition__cta,
.text-page a.text-page__cta {
	color: var(--color-fg);
	font-family: var(--font-body);
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
	border-bottom: 2px solid currentColor;
}

/* Process, the campaign rollout and QA are one passage on the blue tint:
   built once, carried to every market, checked. Sections that follow one
   another on the tint start closer, so the passage reads as one. */
.process,
.process + .c-campaign-row,
.qa-check {
	background: var(--color-blue-tint);
}

.process + .c-campaign-row,
.process + .c-campaign-row + .qa-check,
.process + .qa-check {
	padding-top: calc(var(--group) * 0.35);
}

.process__stage {
	background: #ffffff;
	border: 0;
}

.qa-check__index,
.qa-check__label,
.qa-check__sheet-bar {
	font-family: var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-blue);
}

/* The step number sits on Direction B's blue chip, so it is white. */
.process__stage-index {
	font-family: var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: #ffffff;
}

.process__stage-label {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--color-fg);
}

.process__stage-desc {
	color: var(--color-fg-dim);
}

.qa-check__body {
	background: #ffffff;
	border: 0;
	box-shadow: none;
}

.qa-check__sheet-bar {
	border-color: var(--color-line);
	color: var(--color-fg-dim);
}

.qa-check__item {
	border-color: var(--color-line);
}

.qa-check__item-label {
	color: var(--color-fg);
}

/* Reasons: four plain panels; the closing statement keeps its answer in
   the selection blue. */
.reasons__item {
	background: #ffffff;
	border: 0;
	border-top: 2px solid var(--color-fg);
}

.reasons__item:nth-child(n) {
	border-top-color: var(--color-fg);
}

.reasons__item-heading {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.reasons__item-desc {
	color: var(--color-fg-dim);
}

.statement-line {
	font-family: var(--font-display);
	letter-spacing: -0.035em;
	color: var(--color-fg);
}

.statement-line--answer {
	color: var(--color-blue);
}

/* Service pages: reasons as the homepage's, actions and steps in mono. */
.service-reasons__item {
	background: #ffffff;
	border: 0;
	border-top: 2px solid var(--color-fg);
}

.service-reasons__item h3,
.service-actions__name,
.service-process__name {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* Experience: names as reading text, not cells. */
.experience__label {
	font: 500 0.8125rem / 1.3 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-fg-dim);
}

.experience__names .b-cell,
.b-cells .b-cell {
	border: 0;
	background: transparent;
	padding: 0;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--color-fg);
}

.experience__names {
	gap: 0.35em 1.1em;
}

/* A Service's capabilities ("What we build", "Included in every build").
   They share the client list's cells, and the rule above strips those cells
   to bare words — right for a run of names separated by a gap, but this list
   has no gap of its own (layout-b.css), so the items ran together as one
   line of text. Here each capability is its own ruled row, in as many
   columns as fit, one column on a phone: the same thin rules the QA sheet
   and the homepage services list use, no cards. */
.service-capabilities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: 0 var(--space-md);
	margin-top: var(--space-md);
	border-bottom: 1px solid var(--color-line-strong);
}

.service-capabilities .b-cell {
	align-items: flex-start;
	min-height: 0;
	padding: 0.85rem 0;
	border-top: 1px solid var(--color-line-strong);
	font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
	line-height: 1.25;
}

.experience__disclaimer {
	width: 100%;
	max-width: none;
	color: var(--color-fg-dim);
	font-family: var(--font-body);
	letter-spacing: 0;
	text-transform: none;
}

.company-transition {
	border-top: 1px solid var(--color-line);
}

/* The tint passage: no rules between its sections, and the section before
   the rollout hands over with less space. */
.process:has(+ .c-campaign-row),
.c-campaign-row:has(+ .qa-check) {
	padding-bottom: calc(var(--group) * 0.5);
}

.process + .c-campaign-row + .qa-check,
.process + .qa-check {
	border-top: 0;
}

/* ===========================================================================
   Responsive: Direction C's own compositions
   =========================================================================== */

@media (max-width: 1120px) {
	.c-canvas {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

@media (max-width: 900px) {
	.hero--c .hero__head,
	.c-feature-head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	/* --size-hero-b-narrow, with a lower floor: below 400px the size follows
	   13vw instead of holding at 52px, so the widest word pair the heading
	   keeps together ("the campaign.", inc/direction-b.php) fits a 320px
	   screen. 400px and up is unchanged. */
	.hero--c .hero__heading {
		font-size: clamp(2.625rem, 13vw, 5.625rem);
	}

	.c-canvas {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	/* Phone: the artboard first, the layers folded under it; the strip
	   scrolls inside its own band. */
	.c-canvas {
		width: 100%;
	}

	.c-focus {
		height: 400px;
		padding: 36px 0 30px;
	}

	.c-canvas[data-kind="html5"] .c-focus {
		height: min(calc(100svh - 120px), 680px);
	}

	.c-layers {
		padding: 14px 16px 18px;
	}

	.c-layers details > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		font: 650 1rem / 1.3 var(--font-body);
		cursor: pointer;
		list-style: none;
	}

	.c-layers details > summary::-webkit-details-marker {
		display: none;
	}

	.c-layers details > summary::after {
		content: "Show";
		color: var(--color-blue);
	}

	.c-layers details[open] > summary::after {
		content: "Hide";
	}

	.c-layers__head {
		display: none;
	}

	.c-strip-band {
		background: linear-gradient(var(--color-blue) 0 52%, var(--color-bg) 52% 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.c-btn,
	.button-pill,
	.c-thumb,
	.c-layers li {
		transition: none;
	}
}

/* ===========================================================================
   WORK INDEX — archive-project.php, template-parts/work/cover-card.php
   Two campaigns across on a wide screen, one on a phone. Each cover is the
   Project's own creatives as their opening frames, composed at one shared
   scale on the Project's colour (positions from bannerjoy_project_cover()),
   so every banner keeps its proportions and their sizes compare truthfully.
   =========================================================================== */

.w-preview-note {
	display: inline-block;
	margin: 0 0 var(--space-sm);
	padding: 0.4rem 0.7rem;
	background: #ffffff;
	color: var(--color-blue-deep);
	font: 500 0.8125rem / 1.3 var(--font-mono);
}

.w-index {
	padding-bottom: calc(var(--space-lg) * 2);
}

/* Service filter (archive-project.php; behaviour in main.js). Links, so a
   filter works and shares without JavaScript; the case studies' collection
   chips are the model: 44px targets, the current one in solid ink, a quiet
   count. They wrap, so no width ever scrolls sideways. */
.w-filter {
	padding: var(--space-md) 0 clamp(2rem, 3.5vw, 3rem);
}

.w-filter__label {
	margin: 0 0 0.75rem;
	font: 500 0.8125rem / 1.3 var(--font-mono);
	color: var(--color-fg-dim);
}

.w-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w-filter__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.4rem 0.85rem;
	background: var(--color-paste);
	color: var(--color-fg);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms var(--ease-out);
}

.w-filter__count {
	color: var(--color-fg-faint);
	font-size: 0.875rem;
}

.w-filter__link[aria-current="page"] {
	background: var(--color-fg);
	color: #ffffff;
	font-weight: 650;
}

.w-filter__link[aria-current="page"] .w-filter__count {
	color: #c9ccd4;
	font-weight: 400;
}

.w-filter__link:focus-visible {
	outline: 3px solid var(--color-blue);
	outline-offset: 2px;
}

.w-filter__link:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.w-filter__link:not([aria-current="page"]):hover {
		background: #d6d9e0;
	}
}

@media (max-width: 479px) {
	.w-filter__link {
		padding: 0.4rem 0.7rem;
		font-size: 0.875rem;
	}
}

/* Phones and small tablets: one row that scrolls sideways inside itself,
   rather than seven chips wrapping into three or four rows above the work.
   The row, not the page, scrolls (no page overflow); the fade on the
   trailing edge says there is more; the current filter is kept in view
   (main.js). Every chip stays a link, so it works the same without
   JavaScript and by keyboard: focusing a chip scrolls it into view. */
@media (max-width: 767px) {
	.w-filter__list {
		/* The containing block of a chip's visually hidden full name (DOOH):
		   without it, that absolutely positioned text escapes the row and
		   widens the page in Chromium and WebKit. */
		position: relative;
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 0.25rem;
		scrollbar-width: none;
		padding: 0.25rem 2rem 0.25rem 0.25rem;
		margin: -0.25rem;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
	}

	.w-filter__list::-webkit-scrollbar {
		display: none;
	}

	.w-filter__list > li {
		flex: none;
		scroll-snap-align: start;
	}

	.w-filter__link {
		white-space: nowrap;
	}
}

/* A filter with nothing to show (a direct link to a Service no published
   Project carries yet). */
.w-empty {
	padding: var(--space-md) 0;
}

.w-empty__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.w-empty__link {
	color: var(--color-blue);
	font-weight: 600;
}

.w-empty__link:focus-visible {
	outline: 3px solid var(--color-blue);
	outline-offset: 2px;
}

.w-empty[hidden],
.w-card[hidden] {
	display: none;
}

.w-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 4rem) clamp(1.25rem, 2.5vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.w-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.w-card__cover {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--project-bg, var(--color-blue-deep));
	transition: box-shadow 160ms var(--ease-out);
}

.w-card__piece {
	position: absolute;
	display: block;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.w-card__draft {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3rem 0.55rem;
	background: #ffffff;
	color: var(--color-blue-deep);
	font: 600 0.75rem / 1 var(--font-mono);
}

.w-card__text {
	display: grid;
	gap: 0.45rem;
}

.w-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.w-card__link {
	color: var(--color-fg);
	text-decoration: none;
}

/* One link per card, stretched over it: the cover and text lead there too. */
.w-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.w-card__link:focus-visible {
	outline: none;
}

.w-card:has(.w-card__link:focus-visible) .w-card__cover,
.w-card:hover .w-card__cover {
	box-shadow: 0 0 0 3px var(--color-blue);
}

/* The production discipline under a Project's name (inc/project-discipline.php):
   the spec voice of the card's facts, set in the text colour, not dimmed, so
   it reads as part of the name, not a footnote. Wraps like text; never
   truncated. */
.w-card__discipline,
.b-card__discipline {
	margin: 0;
	font: 600 0.8125rem / 1.35 var(--font-mono);
	letter-spacing: 0;
	color: var(--color-fg);
	overflow-wrap: anywhere;
}

.w-card__desc {
	max-width: 56ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-fg-dim);
}

.w-card__facts {
	margin: 0;
	font: 500 0.8125rem / 1.3 var(--font-mono);
	color: var(--color-fg-dim);
}

@media (max-width: 899px) {
	.w-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.w-card__cover,
	.w-filter__link {
		transition: none;
	}

	.w-filter__link:active {
		transform: none;
	}
}

/* ===========================================================================
   Homepage revision (docs/homepage-revision/): each creative example beside
   the copy it supports, with its own way to the work
   =========================================================================== */

/* A section's link to its work (bannerjoy_homepage_section_link()), in the
   services link's style, always apart from any playback controls. */
.section-link {
	margin: var(--space-md) 0 0;
}

.c-campaign-row .section-link {
	margin-top: var(--space-md);
}

/* Hero: the channel line under the copy, in the spec voice. */
.hero--c .hero__descriptor {
	margin: 0;
	max-width: 38ch;
	font: 500 0.8125rem / 1.5 var(--font-mono);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-blue-soft);
}

/* Hero: the demonstration names itself before it is shown, on the
   Pasteboard's own measure, its link at the right. */
.hero__demo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--space-sm) var(--space-lg);
	width: min(calc(100% - 2 * var(--gutter)), calc(var(--content-max) - 2 * var(--gutter)));
	margin-inline: auto;
	padding: clamp(28px, 3vw, 44px) 0 clamp(18px, 1.6vw, 24px);
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__demo-heading {
	margin: 0 0 0.35em;
	font: 700 var(--size-h2) / 1.02 var(--font-display); /* a work title */
	letter-spacing: -0.025em;
	color: #ffffff;
	text-wrap: balance;
}

.hero__demo-intro {
	margin: 0;
	max-width: 56ch;
	font: 400 clamp(1rem, 0.92rem + 0.35vw, 1.1875rem) / 1.45 var(--font-body);
	color: var(--color-blue-soft);
}

.hero__demo .section-link {
	margin: 0;
}

/* Featured Projects, "Copy beside the creative"
   (template-parts/home/project-feature.php). */
.project-feature {
	padding-block: var(--space-lg) var(--space-xl);
}

.project-feature__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 96px);
	align-items: center;
}

.project-feature__heading {
	margin: 0 0 var(--space-sm);
	max-width: 16ch;
	font: 700 var(--size-h2) / 1.02 var(--font-display); /* a work title */
	letter-spacing: -0.025em;
	color: var(--color-fg);
	text-wrap: balance;
}

.project-feature__intro,
.project-feature__note {
	margin: 0;
	max-width: 40ch;
	font: 400 clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem) / 1.5 var(--font-body);
	color: var(--color-fg-dim);
}

.project-feature__note {
	margin-top: var(--space-xs);
	font-size: var(--size-small);
}

/* The creative on the pasteboard: one ground, the file at its own size. */
.project-feature__media {
	display: flex;
	justify-content: center;
	padding: clamp(20px, 3.5vw, 56px);
	background: var(--color-paste);
}

.project-feature__media .b-single__stage {
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Experience: an intro in more than one paragraph keeps to one column. */
.experience__copies {
	max-width: 44ch;
}

.experience__copies .experience__copy + .experience__copy {
	margin-top: 0.9em;
}

/* Homepage experience ("A new name. An experienced team."): one editorial
   column instead of the shared split head. The headline, the explanation and
   the experience rows read top to bottom from one left edge, so the copy is
   read as the headline's explanation rather than a separate aside. The copy
   keeps its size and colour but gets a reading measure (~700px) instead of the
   split head's narrow column; the rows below keep the full section width.
   Scoped to the homepage: landing pages share the component and keep the
   split head. */
.home .experience__intro {
	display: grid;
	justify-items: start;
	gap: clamp(1.25rem, 0.9rem + 0.9vw, 2rem);
}

/* Two lines, as written, wherever the width allows. */
.home .experience__heading {
	max-width: none;
}

.home .experience__intro > .experience__copy,
.home .experience__copies {
	max-width: 44rem;
}

.home .experience__copies .experience__copy {
	max-width: none;
}

/* The rows follow the explanation a little more closely than the split head
   did, so the three parts hold together as one section. */
.home .experience__intro + .experience__list-wrap {
	margin-top: clamp(2.5rem, 1.9rem + 1.6vw, 3.5rem);
}

/* QA: the closing line and the link to About sit with the sheet. */
.qa-check__body > .section-link {
	margin: 0;
	padding: var(--space-xs) 18px 18px;
}

@media (max-width: 899px) {
	.hero__demo {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.project-feature__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Homepage refinement: the creative first ------------------------------ */

/* A supplied campaign on the Pasteboard (data-kind="html5"): the file is
   the subject. The artboard takes the full width, and the file's facts fold
   under it as a quiet disclosure on the cobalt, closed until asked for
   (pasteboard.js). Layered campaigns keep their layers panel. */
.c-canvas[data-kind="html5"] {
	grid-template-columns: minmax(0, 1fr);
}

.hero--c .c-canvas[data-kind="html5"] .c-layers {
	--color-fg: #ffffff;
	--color-fg-dim: var(--color-blue-soft);
	--color-line: rgba(255, 255, 255, 0.22);
	gap: 0;
	margin: 0;
	padding: 0 clamp(16px, 2vw, 28px);
	background: transparent;
	color: #ffffff;
}

.c-canvas[data-kind="html5"] .c-layers__head {
	display: none;
}

.c-canvas[data-kind="html5"] .c-layers details {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.c-canvas[data-kind="html5"] .c-layers details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	font: 600 0.9375rem / 1.3 var(--font-body);
	color: var(--color-blue-soft);
	cursor: pointer;
	list-style: none;
}

.c-canvas[data-kind="html5"] .c-layers details > summary::-webkit-details-marker {
	display: none;
}

.c-canvas[data-kind="html5"] .c-layers details > summary::after {
	content: "Show";
	color: #ffffff;
	font-weight: 650;
}

.c-canvas[data-kind="html5"] .c-layers details[open] > summary::after {
	content: "Hide";
}

.c-canvas[data-kind="html5"] .c-layers ol {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	column-gap: 32px;
	padding-bottom: 14px;
	border-top: 0;
}

.c-canvas[data-kind="html5"] .c-layers li {
	border-bottom-color: rgba(255, 255, 255, 0.18);
}

.c-canvas[data-kind="html5"] .c-layers li span {
	color: var(--color-blue-soft);
}

/* Network Rail: the creative beside its copy on the editorial grid, at its
   own size, without a ground of its own. */
.project-feature__media {
	justify-content: flex-start;
	padding: 0;
	background: none;
}

.project-feature__media .b-single__stage {
	justify-content: flex-start;
}

/* The live figure centres itself everywhere else; here it starts on the
   column line, next to its copy. */
.project-feature__media figure.b-fmt.b-fmt--html5 {
	margin-inline: 0;
}

/* With more of the campaign beside it, the lead and its formats form one
   set at their own sizes, bottom-aligned like ads on a page, wrapping to a
   second row where the column is narrow. On a phone the set would be three
   full-height creatives in a row of scrolling, so it is the lead alone there,
   as before; the hidden formats are never loaded (preview.js plays only
   what is on screen). */
.project-feature__media--set {
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px 20px;
}

.project-feature__media--set .b-single__stage {
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
}

.project-feature__media--set figure.b-fmt.b-fmt--html5 {
	width: var(--b-w);
	max-width: 100%;
}

/* The set needs about 800px at its own sizes; at desktop the copy gives up
   one twelfth of the row for it (the copy's measure is 40ch either way). */
@media (min-width: 900px) {
	.project-feature__grid:has(> .project-feature__media--set) {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}
}

@media (max-width: 599px) {
	.project-feature__media--set .project-feature__more {
		display: none;
	}
}

/* Etihad on the homepage: what it is first (the file count and how it
   breaks down), then the two filters, each lined up with what it filters —
   markets and languages are the rows, formats the columns. */
.home .cmp-ro__controls {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 18px;
	padding-top: 22px;
}

.home .cmp-ro__tally {
	order: -1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	text-align: left;
}

.home .cmp-ro__count {
	font-size: clamp(28px, 2.4vw, 40px);
}

.home .cmp-ro__count-note {
	margin-top: 0;
	font-size: 15px;
	color: var(--cmp-on);
}

.home .cmp-ro__filters {
	gap: 12px;
}

.home .cmp-ro__scroll {
	padding-top: 24px;
}

@media (min-width: 641px) {
	.home .cmp-ro__filters legend {
		width: 124px;
		margin-right: 4px;
		padding-top: 2px;
		line-height: 1.25;
	}

	.home .cmp-ro__grid {
		grid-template-columns: 124px repeat(var(--cols, 9), minmax(0, 1fr));
		min-width: calc(124px + var(--cols, 9) * 108px);
	}
}

/* ===========================================================================
   Editorial review refinements (November 2026)
   =========================================================================== */

/* ---- Services overview: every row says it opens a service ---------------
   The name's link is stretched over the row (block-service_index.php), so the
   whole row is one target; "Explore service" says so at rest, on every screen,
   rather than an underline that only a pointer ever saw. */
.services-page__item--link {
	position: relative;
}

.services-page__item-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.services-page__item-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.875rem;
	padding-bottom: 0.2rem;
	border-bottom: 2px solid currentColor;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-fg);
}

.services-page__item-arrow {
	transition: transform var(--duration-fast, 160ms) var(--ease-out);
}

/* Keyboard focus keeps the site's own ring, on the service name. */

@media (hover: hover) and (pointer: fine) {
	.services-page__item--link:hover .services-page__item-name a {
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 0.18em;
	}

	.services-page__item--link:hover .services-page__item-more {
		color: var(--color-blue);
	}

	.services-page__item--link:hover .services-page__item-arrow {
		transform: translateX(4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.services-page__item-arrow {
		transition: none;
	}
}

/* ---- The closing CTA's note ---------------------------------------------
   A Service's "Already have a master?" answer, beside the invitation it
   qualifies (template-parts/home/final-cta.php) — no longer a second panel
   above it. Under the actions on a phone; in the column the heading leaves
   empty from a laptop up. */
.final-cta__note {
	max-width: 46ch;
	margin-top: var(--space-lg);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.final-cta__note-heading {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.final-cta__note-copy,
.final-cta__note-copy p {
	margin-top: 0.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-blue-soft);
}

@media (min-width: 64rem) {
	.final-cta--with-note > .container {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		column-gap: clamp(3rem, 7vw, 8rem);
		align-items: end;
	}

	.final-cta--with-note .final-cta__heading,
	.final-cta--with-note .final-cta__copy,
	.final-cta--with-note .final-cta__actions,
	.final-cta--with-note .section-eyebrow {
		grid-column: 1;
	}

	.final-cta--with-note .final-cta__note {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: end;
		margin-top: 0;
	}
}

/* ---- The closing invitation on near-black (owner, 9 November 2026) --------
   The final CTA (template-parts/home/final-cta.php: homepage, About, Services
   and every Service) is set apart from the light sections above it and the
   cobalt footer below on the site's own ink, so it reads as its own moment
   rather than the top of the footer. Copy, button and destination unchanged;
   white headline, muted grey support, white pill with ink text. Placed after
   the cobalt token re-scope above, which it narrows for this section only.
   Other calls to action (case-study close, landing pages) are not this
   component and keep their own grounds. */
.final-cta {
	--cta-ground: #121318;
	--cta-muted: #b9bdc7;
	--color-fg-dim: var(--cta-muted);
	--color-fg-faint: var(--cta-muted);
	--color-label: var(--cta-muted);
	--color-line: rgba(255, 255, 255, 0.18);
	--color-line-strong: rgba(255, 255, 255, 0.3);
	background: var(--cta-ground);
	border-top: 0;
	/* Its own field now, not the top of the footer's: equal space above and
	   below. */
	padding-block: var(--group);
}

.final-cta__copy,
.final-cta__copy p,
.final-cta__note-copy,
.final-cta__note-copy p {
	color: var(--cta-muted);
}

.final-cta__note {
	border-top-color: rgba(255, 255, 255, 0.24);
}

/* White pill, ink text: about 18:1. */
.final-cta .button-pill,
.final-cta__cta.button-pill:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--cta-ground);
}

/* Hover: light grey, ink text. Unconditional, and specific enough to beat
   Direction B's transparent hover (layout-b.css), which would otherwise leave
   ink text on the near-black ground wherever :hover applies without a fine
   pointer (a tapped button on a phone, some browsers). */
.final-cta .final-cta__cta.button-pill:hover {
	background: #dfe1e6;
	border-color: #dfe1e6;
	color: var(--cta-ground);
}

/* White ring, offset from the white pill so the two never merge. The
   `a:focus-visible` form outranks Direction B's `.final-cta a:focus-visible`
   (layout-b.css), which set a deep-blue ring: about 2.4:1 on near-black. */
.final-cta :focus-visible,
.final-cta a:focus-visible,
.page-template-page-about .final-cta a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}

/* ---- QA checklist: the outcome reads as one -----------------------------
   "Final files are named, packaged and ready to traffic" is where the eight
   checks lead, so it closes the sheet as the result — the checklist's own
   tick, filled, at the weight of the items above — instead of a small grey
   footnote under them. Same words; no new emphasis inside the sentence. */
.qa-check__closing {
	display: grid;
	grid-template-columns: 1.25rem minmax(0, 1fr);
	align-items: center;
	column-gap: 0.75rem;
	padding: 1.125rem;
	background: var(--color-blue-tint);
	border-bottom: 1px solid var(--color-line);
	font-family: var(--font-display);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--color-fg);
}

.qa-check__closing::before {
	content: "✓" / "";
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--color-blue);
	font-family: var(--font-body, inherit);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
}

/* ---- Contact: the address, and a way to copy it --------------------------
   Every closing "Get in touch" lands on this page, so the address is its one
   action. "Copy address" (main.js, only where the clipboard works) sits
   beside it for anyone whose mailto: opens nothing. */
.contact-page__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: var(--space-lg);
}

.contact-page__actions .contact-page__email {
	margin-top: 0;
}

.contact-page__copy {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	color: #ffffff;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.contact-page__copy:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.contact-page__copy:hover {
		background: #ffffff;
		color: var(--color-blue-deep);
	}
}
