/**
 * Component layout carried over from Direction B.
 *
 * The shared templates' B-era markup (work cards, the checklist sheet, case
 * study sections, the format strip) gets its structure here. Every colour
 * resolves through variables.css, so under Direction C's tokens this file
 * lays things out and direction-c.css, loaded after it, gives them
 * Direction C's look. Kept as one file, apart from direction-c.css, so the
 * two directions stay comparable.
 */

/**
 * Direction B — Digital Production Playground. The presentation layer.
 *
 * Loaded after every other stylesheet (inc/direction-b.php), so each rule here
 * restyles a component the BannerJoy theme already owns rather than editing
 * the file that owns it. Colour, type and spacing values are tokens from
 * variables.css; the few literal values are the prototype's (b-refined.css)
 * where no token says the same thing.
 *
 * What does not change, deliberately: the parallax contract (the reveal
 * system was later rebuilt as item-level reveals — base.css / main.js,
 * "Scroll reveal" — and owns `translate`, not `transform`), transform ownership, the showcase's inert/aria-hidden state, the
 * one-link project sections, the nav overlay's focus handling, and every
 * reduced-motion rule. See the theme README, "Before changing the theme".
 *
 * Breakpoints are ones the theme already uses: 900 (hero and services split),
 * 640 and 500/560 (small phones).
 */

/* ---------------------------------------------------------------------------
   Labels — the specification voice.
   Every small uppercase label on the site becomes a monospaced spec line in
   the prototype's label colour. Same sizes as before; only the face, the
   tracking and the colour change.
   --------------------------------------------------------------------------- */

.section-eyebrow,
.hero__eyebrow,
.qa-check__label,
.project-text__eyebrow,
.project-section__index,
.project-section__meta,
.project-showcase__label,
.site-footer__col-heading,
.experience__label,
.services-page__eyebrow,
.text-page__eyebrow,
.format-explorer__top,
.format-explorer__status {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
}

.section-eyebrow,
.hero__eyebrow,
.qa-check__label,
.project-text__eyebrow,
.site-footer__col-heading,
.experience__label {
	color: var(--color-label);
}

::selection {
	background: var(--color-accent);
	color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

/* The protection gradient, re-based on the canvas. Same geometry and stops as
   header.css; only the colour, which was hard-coded black. */
.site-header::before {
	background: linear-gradient(
		to bottom,
		rgba(18, 17, 22, 0.86) 0%,
		rgba(18, 17, 22, 0.6) 42%,
		rgba(18, 17, 22, 0) 100%
	);
}

/* Past the hero the header becomes a solid bar on the canvas (main.js sets
   .is-solid). The scrim only softens what passes beneath, and that is not
   enough once content scrolls: 72px headings ran under the logo, and over the
   lime closing CTA the white logo met its black headline and the gradient
   muddied the lime. A solid bar keeps the logo, Let's talk and Menu on the
   one ground they were designed for, wherever the page is. The scrim gives
   way to it, so nothing below the bar is dimmed. Over the hero the header is
   unchanged.

   Not while the menu is open or closing: the overlay is the same canvas with
   its grid, and a bar would cover the grid there. */
.site-header {
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--duration-fast) var(--ease-out),
		border-color var(--duration-fast) var(--ease-out);
}

.site-header::before {
	transition: opacity var(--duration-fast) var(--ease-out);
}

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

.site-header.is-solid::before {
	opacity: 0;
}

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

/* Without JavaScript nothing can tell the header where the hero ends, so it
   scrolls away with the page instead of riding over it: at the top it sits
   exactly where the fixed header would, and it can never cover content. */
.no-js .site-header {
	position: absolute;
}

.site-header__logo {
	margin-right: auto;
}

/* The header's one call to action, in the prototype's lime underline. Sits
   between the logo and the toggle. */
.site-header__cta {
	position: relative;
	z-index: 2;
	margin-right: var(--space-md);
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--color-accent);
	font-size: var(--size-small);
	font-weight: 600;
	color: var(--color-fg);
	transition: color var(--duration-fast) var(--ease-out);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
	color: var(--color-accent);
}

/* While the overlay is open it carries its own Contact link; a second CTA
   floating above it would compete with the menu. */
body.nav-open .site-header__cta,
body.nav-closing .site-header__cta {
	visibility: hidden;
}

/* The logo hover/focus tint, regenerated for lime as header.css asks whenever
   the accent changes. Measured output rgb(198, 242, 30) against the token's
   rgb(200, 243, 29). Same selectors, so it replaces the orange chain. */
.site-header__logo:focus-visible img {
	filter: brightness(0) saturate(100%) invert(94%) sepia(34%) saturate(1631%)
		hue-rotate(25deg) brightness(134%) contrast(90%);
}

@media (hover: hover) and (pointer: fine) {
	.site-header__logo:hover img {
		filter: brightness(0) saturate(100%) invert(94%) sepia(34%) saturate(1631%)
			hue-rotate(25deg) brightness(134%) contrast(90%);
	}
}

/* The overlay sits on the same production grid as the hero. */
.site-nav {
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

.site-nav__link {
	font-weight: 900;
	letter-spacing: -0.015em;
}

/* Keyboard fix, carried in this copy only. The closed overlay is moved
   off-screen with a transform, which leaves its links in the tab order: in the
   BannerJoy theme, Tab from the menu toggle walks Home, Work, Services… on an
   invisible menu before it reaches the page. Hidden overlays take no focus.

   visibility switches instantly on open (so main.js can focus the first link
   in the same frame) and only after the slide on close (so the exit still
   animates). The transform transition — and the transitionend main.js waits
   for — is unchanged. */
.site-nav {
	visibility: hidden;
	transition:
		transform var(--duration-base) var(--ease-out),
		visibility 0s linear var(--duration-base);
}

.site-nav.is-open {
	visibility: visible;
	transition:
		transform var(--duration-base) var(--ease-out),
		visibility 0s;
}

/* On a phone the prototype keeps "Let’s talk" in the header. With the logo
   and Menu it fits one row with clear space at 380px and wider (measured at
   390: 29px to the logo, 24px to the toggle). Narrower, it meets the logo, so
   it steps aside; Contact is one tap inside the menu. */
@media (max-width: 560px) {
	.site-header__cta {
		margin-right: var(--space-sm);
		font-size: 0.8125rem;
	}
}

@media (max-width: 379px) {
	.site-header__cta {
		display: none;
	}
}

/* ---------------------------------------------------------------------------
   Buttons
   The hero and closing calls to action are the prototype's filled pill; every
   other pill keeps the theme's outline, which is what works over a Project's
   own colour in the work panels.
   --------------------------------------------------------------------------- */

.button-pill {
	letter-spacing: 0;
}

.hero__cta.button-pill,
.final-cta__cta.button-pill {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-accent-contrast);
	padding: 1.15em 1.75em 1.05em;
	font-size: var(--size-small);
	letter-spacing: 0;
	text-transform: none;
}

.hero__cta.button-pill:hover,
.hero__cta.button-pill:focus-visible {
	background: var(--color-fg);
	border-color: var(--color-fg);
}

.hero__cta.button-pill:hover span,
.hero__cta.button-pill:focus-visible span {
	color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------------------
   Hero — the production canvas
   --------------------------------------------------------------------------- */

/* Measurements are the prototype's (b-refined.css), translated to this
   theme: its header sits in the flow, this one is fixed, so the hero's top
   padding is the header's own height plus the prototype's 45px. The header
   height is the same expression header.css builds it from — the logo's line
   box plus its padding — so the two cannot drift apart. */
.hero.hero--b {
	--hero-min-height: auto;
	--b-header-h: var(--header-h);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	column-gap: 5%;
	min-height: 0;
	padding: calc(var(--b-header-h) + 3.125rem) var(--gutter) 3.4375rem;
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

/* The text starts at the top of its row, as the prototype's grid rows place
   it, rather than centring against the taller explorer. The 17px offset is
   the prototype's measured gap between the explorer's top and the H1's. */
.hero--b .hero__body {
	align-self: start;
	min-width: 0;
	padding-top: 1.0625rem;
}

/* The label row: spans both columns, so headline and explorer start level
   beneath it. A spec line, so the theme's accent dot goes. */
.hero--b .hero__eyebrow {
	grid-column: 1 / -1;
	display: block;
	margin: 0 0 1.875rem;
	font-size: 0.75rem;
	color: var(--color-label);
}

.hero--b .hero__eyebrow::before {
	content: none;
}

.hero--b .hero__heading {
	font-size: var(--size-hero-b);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.015em;
	/* The column is the measure; a ch cap here set one word per line. */
	max-width: none;
	margin: 0 0 1.5625rem;
}

/* The prototype's lime word. Which word is a presentation rule, not markup:
   the first word after the heading's comma (bannerjoy_b_heading_html()).
   Lime on the canvas is 14.6:1, so the emphasis costs no contrast. */
.hero__emphasis {
	color: var(--color-accent);
}

/* The prototype's pink full stop. Wrapped only when the editor's heading
   already ends in one (bannerjoy_b_heading_stop()). */
.hero__stop {
	color: var(--color-format-pink);
}

/* Full foreground, 16px, as in the prototype: 17.1:1 on the canvas. */
.hero--b .hero__copy {
	margin: 1rem 0 0;
	max-width: 30.625rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--color-fg);
}

/* The prototype's button: regular weight, 14px, 16 × 24 padding. */
.hero--b .hero__body .hero__cta {
	margin: 1.625rem 0 0;
	padding: 1rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 400;
}

/* Sentence case in the body face, as the editor wrote it — the descriptor is
   copy, not a spec label. Label colour, 8.9:1. */
.hero--b .hero__descriptor {
	margin: 1.625rem 0 0;
	max-width: none;
	font-family: var(--font-body);
	font-size: var(--size-micro);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.8;
	text-transform: none;
	color: var(--color-label);
}

/* ---------------------------------------------------------------------------
   Format Explorer
   --------------------------------------------------------------------------- */

.format-explorer {
	min-width: 0;
}

/* The tilt lives on the frame, never on .format-explorer or anything with
   .reveal — transform ownership, as everywhere else in the theme. */
.format-explorer__frame {
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-line-strong);
	box-shadow: 12px 12px 0 #08080a;
	transform: rotate(1deg);
}

.format-explorer__top {
	display: flex;
	justify-content: space-between;
	padding: 0.875rem 1.125rem;
	border-bottom: 1px solid var(--color-line-strong);
	font-size: var(--size-micro);
	color: var(--color-label);
}

.format-explorer__picker {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--color-line-strong);
	font-size: var(--size-label);
	color: var(--color-fg-soft);
}

.format-explorer__picker select {
	max-width: 60%;
	min-height: 44px;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	font: inherit;
	color: var(--color-fg);
	background: #28242f;
	border: 1px solid #70667d;
	border-radius: 0;
}

.format-explorer__picker select:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.format-explorer__stage {
	height: 25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm);
	overflow: hidden;
	background-image: radial-gradient(#5b5568 1px, transparent 1px);
	background-size: 16px 16px;
}

/* The placement. Its width and ratio are the format; the artwork fills it
   with object-fit, which is exactly what a crop study is. */
.format-explorer__unit {
	position: relative;
	width: 300px;
	max-width: 100%;
	aspect-ratio: 300 / 250;
	overflow: hidden;
	background: var(--color-accent);
	border: 1px solid #eeeeee;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.33);
	transition:
		width var(--duration-base) var(--ease-out),
		aspect-ratio var(--duration-base) var(--ease-out);
}

.format-explorer__unit[data-format="social"] {
	width: 175px;
	aspect-ratio: 9 / 16;
}

.format-explorer__unit[data-format="wide"] {
	width: 100%;
	aspect-ratio: 970 / 250;
}

.format-explorer__art {
	position: absolute;
	inset: 0;
}

.format-explorer__art[hidden] {
	display: none;
}

.format-explorer__art img,
.format-explorer__art video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
	background-color: var(--color-bg);
}

.format-explorer__caption {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem;
	background: linear-gradient(0deg, rgba(18, 17, 22, 0.91), transparent);
	color: var(--color-fg);
}

.format-explorer__caption span {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
}

.format-explorer__caption strong {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.format-explorer__unit[data-format="wide"] .format-explorer__caption {
	padding: 0.625rem 1.25rem;
}

.format-explorer__unit[data-format="wide"] .format-explorer__caption strong {
	font-size: 1.75rem;
}

.format-explorer__cross {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	font-size: 1.5rem !important;
	color: var(--color-accent);
}

.format-explorer__controls {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--color-line-strong);
}

.format-explorer__controls button {
	min-height: 60px;
	padding: 0.875rem 0.3rem;
	border-right: 1px solid var(--color-line-strong);
	font-size: var(--size-label);
	font-weight: 600;
	text-align: center;
	color: var(--color-fg);
	transition: background-color var(--duration-fast) var(--ease-out),
		box-shadow var(--duration-fast) var(--ease-out);
}

.format-explorer__controls button:last-child {
	border-right: 0;
}

.format-explorer__controls button span {
	display: block;
	margin-top: 0.375rem;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	font-weight: 400;
}

.format-explorer__controls button[aria-pressed="true"] {
	background: var(--color-accent);
	color: var(--color-accent-contrast);
}

.format-explorer__controls button:hover {
	box-shadow: inset 0 -3px var(--color-format-pink);
}

/* Inset so the ring is never clipped by the frame, and pink so it shows on
   the lime of a pressed button as well as on the canvas. */
.format-explorer__controls button:focus-visible {
	outline: 3px solid var(--color-format-pink);
	outline-offset: -4px;
}

.format-explorer__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs);
	min-height: 2.75rem;
	padding: 0 0.875rem;
	border-top: 1px solid var(--color-line-strong);
}

.format-explorer__status {
	margin: 0;
	padding-block: 0.625rem;
	font-size: var(--size-micro);
	line-height: 1.5;
	color: var(--color-label);
}

.format-explorer__pause {
	flex-shrink: 0;
	min-height: 44px;
	padding: 0 0.25rem;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg);
	border-bottom: 1px solid var(--color-accent);
}

.format-explorer__pause[hidden] {
	display: none;
}

/* Without the script the explorer is a still: no control is shown that would
   do nothing. */
.no-js .format-explorer__controls,
.no-js .format-explorer__picker {
	display: none;
}

/* ---------------------------------------------------------------------------
   Format strip — the descriptor as a colour-coded band
   --------------------------------------------------------------------------- */

.format-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	border-block: 1px solid var(--color-line-strong);
}

.format-strip span {
	display: flex;
	justify-content: space-between;
	gap: var(--space-xs);
	padding: var(--space-sm);
	border-right: 1px solid var(--color-line-strong);
	font-size: clamp(0.75rem, 0.45rem + 1.25vw, 1.5rem);
	font-weight: 750;
	letter-spacing: -0.015em;
	text-transform: none; /* Direction C: no capitals */
}

.format-strip span:last-child {
	border-right: 0;
}

/* Each name carries a mark, as in the prototype's colour-coded band. The marks
   are decoration only — the strip is aria-hidden, nothing in it is a link —
   so none of them points anywhere: an arrow (↗) read as "this goes
   somewhere" on a band you cannot click. Plain shapes instead: the
   explorer's own window chrome (＋ □), a ring, and the ✳ already here. */
.format-strip span::after {
	font-weight: 400;
}

.format-strip span:nth-child(4n + 1) {
	color: var(--color-accent);
}

.format-strip span:nth-child(4n + 1)::after {
	content: "□";
}

.format-strip span:nth-child(4n + 2) {
	color: var(--color-format-pink);
}

.format-strip span:nth-child(4n + 2)::after {
	content: "✳";
}

.format-strip span:nth-child(4n + 3) {
	color: var(--color-format-tangerine);
}

.format-strip span:nth-child(4n + 3)::after {
	content: "○";
}

.format-strip span:nth-child(4n + 4) {
	color: var(--color-format-blue);
}

.format-strip span:nth-child(4n + 4)::after {
	content: "＋";
}

/* ---------------------------------------------------------------------------
   Section headings — compact, heavy, tight, as in the prototype
   --------------------------------------------------------------------------- */

.work-intro__label,
.produce__heading,
.process__heading,
.reasons__heading,
.experience__heading,
.qa-check__heading,
.company-transition__heading,
.service-section__heading,
.project-text__heading,
.section-intro__heading {
	font-weight: 800;
}

.work-intro__label {
	font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
}

.produce__heading,
.process__heading,
.reasons__heading,
.experience__heading {
	font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem);
}

/* ---------------------------------------------------------------------------
   Selected work
   The full-viewport panels stay as they are — live formats on the Project's
   own ground are already the most Direction B thing on the page. They gain
   the spec voice for their index and meta, and a lime index.
   --------------------------------------------------------------------------- */

.work-intro {
	border-top: 0;
}

.project-section__index {
	color: var(--color-accent);
	opacity: 1;
	letter-spacing: 0;
}

/* A Project on a light ground has dark text; lime would vanish on it. */
.project-section[style*="--project-fg: #000000"] .project-section__index {
	color: inherit;
	opacity: 0.75;
}

.project-section__title {
	font-weight: 900;
	letter-spacing: -0.015em;
}


/* ---------------------------------------------------------------------------
   Capabilities — the colour-coded service list
   --------------------------------------------------------------------------- */

.produce {
	border-top: 0;
}

/* An <ol>, and base.css resets only <ul>: without this the list kept the
   browser's 40px indent and sat out of line with its own heading. */
.produce__list {
	padding-left: 0;
	border-top: 0;
}

.produce__item {
	gap: var(--space-sm);
	padding-block: var(--space-md);
	border-top: 1px solid var(--color-line);
	border-bottom: 0;
}

.produce__item-index {
	font-family: var(--font-mono);
	font-weight: 400;
	color: var(--color-label);
}

.produce__item-name {
	font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.625rem);
	font-weight: 500;
	letter-spacing: -0.015em;
}

/* Colour by kind of work, in list order — lime, lime, pink, pink, tangerine,
   blue, then round again. It labels; the name still says what it is. */
.produce__item:nth-child(6n + 1),
.produce__item:nth-child(6n + 2) {
	color: var(--color-accent);
}

.produce__item:nth-child(6n + 3),
.produce__item:nth-child(6n + 4) {
	color: var(--color-format-pink-soft);
}

.produce__item:nth-child(6n + 5) {
	color: var(--color-format-tangerine-soft);
}

.produce__item:nth-child(6n + 6) {
	color: var(--color-format-blue);
}

/* The theme's hover turned the name accent; on a list that is already
   colour-coded the signal is the underline instead. The nudge is unchanged. */
.produce__item:hover .produce__item-name,
.produce__item:focus-within .produce__item-name {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

@media (min-width: 900px) {
	.produce__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 3.125rem;
	}
}

.produce__supporting {
	font-size: var(--size-body);
	color: var(--color-fg-soft);
}

/* ---------------------------------------------------------------------------
   Section heads — the prototype's split head
   Heading left, the supporting line right at body size, both on one baseline
   band. Shared by every homepage-style section so they read as one system.
   --------------------------------------------------------------------------- */

.produce__intro,
.process__intro,
.reasons__intro,
.experience__intro {
	align-items: flex-end;
	gap: var(--space-sm) var(--space-lg);
}

.produce__heading,
.process__heading,
.reasons__heading,
.experience__heading {
	max-width: 14ch;
	line-height: 1;
}

.produce__copy,
.process__copy,
.reasons__copy,
.experience__copy {
	max-width: 27.5rem;
	font-size: var(--size-body);
	line-height: 1.6;
	color: var(--color-fg-soft);
}

.process__copy {
	max-width: 32rem;
}

/* ---------------------------------------------------------------------------
   Process — the production pipeline
   Each stage is a framed card with its stage number on a lime tab, joined to
   the next by an arrow: the order is the content, so it is drawn. One row on
   desktop whatever the number of stages; a column on narrow screens, with
   the arrows turned down.
   --------------------------------------------------------------------------- */

.process__stages {
	margin-top: var(--space-lg);
	padding-top: 0;
	border-top: 0;
	gap: var(--space-md);
	grid-template-columns: minmax(0, 1fr);
}

/* `.process__stages >` matches the specificity of commercial.css's
   responsive `:nth-child(2)` and `:first-child` rules, which indent and rule
   individual stages; loading later, these frames win at every width. */
.process__stages > .process__stage {
	position: relative;
	gap: 0.75rem;
	padding: var(--space-sm) var(--space-sm) var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: none;
}

.process__stage-index {
	align-self: flex-start;
	padding: 0.35em 0.6em;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-accent-contrast);
	background: var(--color-accent);
}

.process__stage-label {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.process__stage-desc {
	max-width: none;
	font-size: var(--size-small);
	line-height: 1.55;
	color: var(--color-fg-soft);
}

/* The connector. Decorative: the alternative text is empty. */
.process__stages > .process__stage:not(:last-child)::after {
	content: "↓" / "";
	position: absolute;
	left: var(--space-sm);
	bottom: calc(-0.5 * var(--space-md));
	transform: translateY(50%);
	font-size: 1.125rem;
	line-height: 1;
	color: var(--color-accent);
}

@media (min-width: 900px) {
	.process__stages {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}

	.process__stages > .process__stage:not(:last-child)::after {
		content: "→" / "";
		left: auto;
		right: calc(-0.5 * var(--space-lg));
		top: 50%;
		bottom: auto;
		transform: translate(50%, -50%);
		font-size: 1.375rem;
	}
}

/* ---------------------------------------------------------------------------
   QA — the inspection sheet
   The proposition stays left; the checks become a framed sheet with a header
   bar and a ticked box per row, two columns where there is room.
   --------------------------------------------------------------------------- */

.qa-check__label::before {
	width: 0.75rem;
	height: 0.75rem;
	border: 1px solid var(--color-accent);
	background: transparent;
}

.qa-check__heading {
	line-height: 1;
}

.qa-check__copy {
	color: var(--color-fg-soft);
}

.qa-check__body {
	min-width: 0;
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: none;
}

.qa-check__sheet-bar {
	display: flex;
	justify-content: space-between;
	gap: var(--space-xs);
	padding: 0.875rem 1.125rem;
	border-bottom: 1px solid var(--frame-border);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.qa-check__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-top: 0;
}

.qa-check__item {
	--qa-index: 2.5ch;
	grid-template-columns: 1.25rem var(--qa-index) minmax(0, 1fr);
	align-items: center;
	column-gap: 0.75rem;
	padding: 0.95rem 1.125rem;
	border-bottom: 1px solid var(--color-line);
}

/* The tick. Decorative; the row's text says what was checked. */
.qa-check__item::before {
	content: "✓" / "";
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid var(--color-accent);
	font-size: 0.75rem;
	line-height: 1;
	color: var(--color-accent);
}

.qa-check__index {
	font-size: 0.75rem;
	color: var(--color-label);
}

.qa-check__item-label {
	font-weight: 600;
}

.qa-check__closing {
	margin: 0;
	padding: 1rem 1.125rem 1.125rem;
	font-size: var(--size-small);
	color: var(--color-fg-soft);
}

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

	.qa-check__item:nth-child(odd) {
		border-right: 1px solid var(--color-line);
	}

	/* An odd number of checks: the last one takes the full width of the
	   sheet rather than leaving an empty half-row. */
	.qa-check__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		border-right: 0;
	}
}

/* ---------------------------------------------------------------------------
   Why agencies use us — brief cards
   Each reason is a framed brief; a coloured top edge cycles through the
   format colours so the grid reads as distinct jobs, not a table. The closing
   statement becomes a large left-set band whose last line — the answer — is
   lime (bannerjoy_b_statement_lines()).
   --------------------------------------------------------------------------- */

.reasons__grid {
	gap: var(--space-md);
	grid-template-columns: minmax(0, 1fr);
}

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

.reasons__item {
	--brief: var(--color-accent);
	padding: var(--space-sm) var(--space-sm) var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	border-top: 1px solid var(--brief);
}

.reasons__item:nth-child(4n + 2) {
	--brief: var(--color-format-pink);
}

.reasons__item:nth-child(4n + 3) {
	--brief: var(--color-format-tangerine);
}

.reasons__item:nth-child(4n + 4) {
	--brief: var(--color-format-blue);
}

.reasons__item-heading {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.reasons__item-desc {
	margin-top: 0.75rem;
	color: var(--color-fg-soft);
}

.reasons__closing {
	margin-top: var(--space-xl);
	border-top: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
	text-align: left;
	font-size: clamp(2.5rem, 1.2rem + 4.8vw, 5.5rem);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.015em;
}

.statement-line {
	display: block;
}

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

/* ---------------------------------------------------------------------------
   Experience / client logos — the credits wall
   Each group is a row: its label in the spec voice on the left, the names on
   the right as ruled cells (bannerjoy_b_names_list()). Logos take the same
   cells, so the two presentations share one grid.
   --------------------------------------------------------------------------- */

.experience__list-wrap,
.experience__list-wrap + .experience__list-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xs);
	margin-top: var(--space-lg);
}

.experience__list-wrap + .experience__list-wrap {
	margin-top: var(--space-md);
}

@media (min-width: 900px) {
	.experience__list-wrap,
	.experience__list-wrap + .experience__list-wrap {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: var(--space-md);
		align-items: start;
	}
}

.experience__label {
	margin: 0;
	padding-top: 0.9rem;
	font-size: var(--size-label);
}

.b-cells,
.experience__logos {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.b-cell,
.experience__logo {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 3.25rem;
	padding: 0.65rem 1.1rem;
	border-right: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
}

.b-cell {
	font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.experience__logo {
	min-height: 4.5rem;
	padding-inline: 1.5rem;
}

.experience__logo-image {
	height: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
	opacity: 1;
}

.experience__logo-name {
	font-size: var(--size-body);
	font-weight: 700;
	color: var(--color-fg);
}

.experience__disclaimer {
	margin-top: var(--space-md);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

/* ---------------------------------------------------------------------------
   Compact CTA (company transition) — a band on the production grid
   The same canvas the hero sits on, ruled top and bottom, so a compact CTA
   reads as a pause in the run rather than another section. The link becomes
   an arrow action with the arrow in a lime square.
   --------------------------------------------------------------------------- */

.company-transition {
	border-block: 1px solid var(--color-line-strong);
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
	align-items: center;
}

.company-transition__heading {
	font-size: clamp(2rem, 1.2rem + 2.8vw, 3.75rem);
	line-height: 1;
	max-width: 15ch;
}

.company-transition__copy {
	color: var(--color-fg-soft);
}

.company-transition__cta {
	gap: 0.75rem;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: var(--size-small);
	letter-spacing: 0;
}

.company-transition__arrow {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--color-accent);
	color: var(--color-accent-contrast);
}

.company-transition__cta:hover,
.company-transition__cta:focus-visible {
	color: var(--color-accent);
}

/* The panel's meta, as spec chips. */
.project-section__meta {
	gap: 0.5rem;
	flex-wrap: wrap;
	opacity: 1;
}

.project-section__meta span {
	padding: 0.4em 0.65em;
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	font-size: var(--size-micro);
}

/* ---------------------------------------------------------------------------
   Closing CTA — the lime ground
   The ramp flips with the ground, the same way a light Project section flips
   it, so everything inside reads its colour from the usual tokens. Canvas on
   lime is 14.6:1.
   --------------------------------------------------------------------------- */

.final-cta {
	--color-fg: var(--color-accent-contrast);
	--color-fg-soft: rgba(18, 17, 22, 0.86);
	--color-fg-dim: rgba(18, 17, 22, 0.78);
	--color-fg-faint: rgba(18, 17, 22, 0.6);
	--color-line: rgba(18, 17, 22, 0.24);
	--color-label: rgba(18, 17, 22, 0.78);
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	border-top: 0;
}

.final-cta__heading {
	font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6.25rem);
	font-weight: 900;
	letter-spacing: -0.015em;
	max-width: 16ch;
}

/* Filled pill, inverted for the lime ground: canvas pill, lime text. */
.final-cta__cta.button-pill {
	background: var(--color-accent-contrast);
	border-color: var(--color-accent-contrast);
	color: var(--color-accent);
}

.final-cta__cta.button-pill span {
	color: inherit;
}

.final-cta__cta.button-pill:hover,
.final-cta__cta.button-pill:focus-visible {
	background: transparent;
}

.final-cta__cta.button-pill:hover span,
.final-cta__cta.button-pill:focus-visible span {
	color: inherit;
}

/* A lime focus ring on a lime ground would be invisible. */
.final-cta a:focus-visible {
	outline-color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------------------
   Light Project grounds
   Lime on the light surface is 1.1:1, so inside a light section the accent
   becomes the ink, for rules, links and focus rings alike.
   --------------------------------------------------------------------------- */

.project-block--bg-light {
	--color-accent: var(--color-fg-on-light);
	--color-label: var(--color-fg-on-light-dim);
	--color-line-strong: rgba(17, 17, 17, 0.3);
	--frame-bg: var(--color-surface-light-raised);
	--frame-border: rgba(17, 17, 17, 0.3);
	--frame-shadow: 12px 12px 0 rgba(17, 17, 17, 0.12);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer {
	background: var(--color-bg);
	border-top-color: var(--color-line-strong);
}

.site-footer__nav a {
	font-weight: 900;
	letter-spacing: -0.015em;
}

.site-footer__nav a:hover {
	color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (min-width: 1600px) {
	.format-explorer__stage {
		height: 30rem;
	}
}

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

	/* One column: the text no longer sits beside the explorer, so the
	   desktop offset that levels the two does not apply. */
	.hero--b .hero__body {
		padding-top: 0;
	}

	.hero--b .hero__heading {
		font-size: var(--size-hero-b-narrow);
	}

	.hero--b .hero__copy {
		max-width: 38.75rem;
	}

	.format-explorer {
		margin: 1.875rem 6px 0.625rem 0;
	}

	/* Upright on a narrow screen: a tilted frame at full width clips at the
	   viewport edge. */
	.format-explorer__frame {
		transform: none;
	}

	.format-explorer__stage {
		height: 23.125rem;
	}
}



@media (max-width: 500px) {
	.hero.hero--b {
		padding-top: calc(var(--b-header-h) + 1.875rem);
		padding-bottom: 1.875rem;
	}

	.hero--b .hero__eyebrow {
		font-size: var(--size-micro);
		line-height: 1.8;
	}

	.hero--b .hero__descriptor {
		font-size: var(--size-micro);
	}

	.format-explorer__stage {
		height: 21.5rem;
		padding: 1.25rem;
	}

	.format-explorer__unit {
		width: 270px;
	}

	.format-explorer__unit[data-format="social"] {
		width: 160px;
	}

	.format-explorer__caption strong {
		font-size: 2.0625rem;
	}

	.format-explorer__unit[data-format="wide"] .format-explorer__caption strong {
		font-size: 1.3125rem;
	}

	.format-explorer__unit[data-format="wide"] .format-explorer__caption span {
		font-size: var(--size-micro);
	}

	.format-strip {
		grid-template-columns: 1fr 1fr;
	}

	.format-strip span {
		padding: 1.125rem;
		font-size: 0.8125rem;
		border-bottom: 1px solid var(--color-line-strong);
	}

	/* The strip holds as many formats as the descriptor names. An odd count
	   would leave the last one in half a row, so it takes the whole row. */
	.format-strip span:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------------------
   Reduced motion
   The crop still changes; it just does not animate there. The theme's own
   duration tokens already collapse to 1ms — this removes the transition
   outright so a crop never interpolates at all.
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.format-explorer__unit,
	.format-explorer__controls button,
	.site-header__cta {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
   Selected work — intro spec line and showcase labels
   --------------------------------------------------------------------------- */

.work-intro {
	align-items: end;
}

.work-intro__spec {
	display: inline-block;
	margin: 0 0 var(--space-xs);
	padding: 0.4em 0.65em;
	border: 1px solid var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-accent);
}

.work-intro__copy {
	color: var(--color-fg-soft);
}

/* A format label belongs to its creative. With the prototype's narrower
   margins a right-anchored satellite's one-line label ran past the panel and
   was clipped, so labels now wrap within their creative's width. */
.project-showcase__label {
	right: 0;
	white-space: normal;
	line-height: 1.35;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	opacity: 0.75;
}

/* ===========================================================================
   INNER PAGES
   One page-head, one list voice, one set of panels for every page that is
   not the homepage, so Services, a Service, About, Contact, Privacy, Work,
   search and 404 read as the same production system as the homepage.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Page head — the production canvas, framed
   The hero's grid canvas, ruled at the foot. These heads sit in `.container`,
   so beyond 1440px they stop growing; the side rules make that edge a frame
   rather than a background that runs out.
   --------------------------------------------------------------------------- */

.b-page-head,
.services-page__intro,
.service-hero,
.text-page__intro,
.privacy-page__header {
	padding-block: calc(var(--header-h) + var(--space-lg)) var(--space-lg);
	border: 1px solid var(--color-line-strong);
	border-top: 0;
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

/* At and below the container's width the side rules sit on the viewport's
   edges, where they would only read as a stray hairline. */
@media (max-width: 1440px) {
	.b-page-head,
	.services-page__intro,
	.service-hero,
	.text-page__intro,
	.privacy-page__header {
		border-inline: 0;
	}
}

.b-page-head__label,
.services-page__eyebrow,
.service-hero__eyebrow,
.text-page__eyebrow {
	display: block;
	margin: 0 0 1.875rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.services-page__eyebrow::before,
.service-hero__eyebrow::before,
.text-page__eyebrow::before {
	content: none;
}

.b-page-head__title,
.services-page__heading,
.service-hero__heading,
.text-page__heading {
	max-width: 14ch;
	font-size: var(--size-hero-b);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

@media (max-width: 899px) {
	.b-page-head__title,
	.services-page__heading,
	.service-hero__heading,
	.text-page__heading {
		font-size: var(--size-hero-b-narrow);
	}
}

.b-page-head__copy,
.services-page__copy,
.service-hero__statement,
.text-page__copy {
	margin-top: 1.5625rem;
	max-width: 46ch;
	font-size: var(--size-body);
	line-height: 1.65;
	color: var(--color-fg);
}

/* A spec line under a head: counts, dates, the search term. */
.b-page-head__spec {
	display: inline-block;
	margin-top: var(--space-sm);
	padding: 0.4em 0.65em;
	border: 1px solid var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Section heads on inner pages
   --------------------------------------------------------------------------- */

.service-section__heading,
.text-page__closing h2 {
	max-width: 15ch;
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
	line-height: 1;
}

.service-section__copy {
	max-width: 46ch;
	font-size: var(--size-body);
	line-height: 1.65;
	color: var(--color-fg-soft);
}

/* ---------------------------------------------------------------------------
   Ruled index lists — Services index (detailed), a Service's actions
   The homepage Services list's voice: mono index, tight name, the kind of
   work colour-coded in list order. The index is real order, so it stays.
   --------------------------------------------------------------------------- */

.services-page__item {
	gap: var(--space-md);
	padding-block: var(--space-md);
	border-bottom-color: var(--color-line);
}

.services-page__item-index,
.service-actions__index {
	width: 3ch;
	padding-top: 0.35em;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-label);
}

.services-page__item-name {
	margin-bottom: 0.5rem;
	font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.625rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.05;
}

.services-page__item:nth-child(6n + 1) .services-page__item-name,
.services-page__item:nth-child(6n + 2) .services-page__item-name {
	color: var(--color-accent);
}

.services-page__item:nth-child(6n + 3) .services-page__item-name,
.services-page__item:nth-child(6n + 4) .services-page__item-name {
	color: var(--color-format-pink-soft);
}

.services-page__item:nth-child(6n + 5) .services-page__item-name {
	color: var(--color-format-tangerine-soft);
}

.services-page__item:nth-child(6n + 6) .services-page__item-name {
	color: var(--color-format-blue);
}

.services-page__item-name a:hover,
.services-page__item-name a:focus-visible {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.services-page__item-desc {
	max-width: 58ch;
	color: var(--color-fg-soft);
}

.service-actions {
	border-top-color: var(--color-line);
}

.service-actions__item {
	gap: var(--space-sm);
	padding-block: 1.1rem;
}

.service-actions__label {
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.015em;
}

/* ---------------------------------------------------------------------------
   Service process — the homepage pipeline
   Same frames, tabs and connectors as Process. With five or more stages the
   cards wrap, so the arrows go and the numbered tabs carry the order.
   --------------------------------------------------------------------------- */

.service-process {
	margin-top: var(--space-lg);
	padding-top: 0;
	border-top: 0;
	gap: var(--space-md);
	grid-template-columns: minmax(0, 1fr);
}

.service-process > .service-process__step {
	position: relative;
	gap: 0.75rem;
	padding: var(--space-sm) var(--space-sm) var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: none;
}

.service-process__index {
	align-self: flex-start;
	padding: 0.35em 0.6em;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-accent-contrast);
	background: var(--color-accent);
}

.service-process__label {
	font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.service-process__desc {
	max-width: none;
	line-height: 1.55;
	color: var(--color-fg-soft);
}

.service-process > .service-process__step:not(:last-child)::after {
	content: "↓" / "";
	position: absolute;
	left: var(--space-sm);
	bottom: calc(-0.5 * var(--space-md));
	transform: translateY(50%);
	font-size: 1.125rem;
	line-height: 1;
	color: var(--color-accent);
}

@media (min-width: 900px) {
	.service-process {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}

	.service-process > .service-process__step:not(:last-child)::after {
		content: "→" / "";
		left: auto;
		right: calc(-0.5 * var(--space-lg));
		top: 50%;
		bottom: auto;
		transform: translate(50%, -50%);
		font-size: 1.375rem;
	}

	/* Five or more stages: a wrapping grid, numbered tabs, no arrows. */
	.service-process:has(> :nth-child(5)),
	.process__stages:has(> :nth-child(5)) {
		grid-auto-flow: row;
		grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
		gap: var(--space-md);
	}

	.service-process:has(> :nth-child(5)) > .service-process__step::after,
	.process__stages:has(> :nth-child(5)) > .process__stage::after {
		content: none;
	}
}

/* ---------------------------------------------------------------------------
   Capabilities, reasons, related services
   --------------------------------------------------------------------------- */

.service-capabilities {
	margin-top: var(--space-md);
	max-width: none;
	font-size: inherit;
	color: inherit;
}

.service-capabilities + .service-section__heading {
	margin-top: var(--space-xl);
}

/* A Service's reasons are the homepage's brief cards. */
.service-reasons {
	gap: var(--space-md);
}

.service-reasons__item {
	--brief: var(--color-accent);
	padding: var(--space-sm) var(--space-sm) var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	border-top: 1px solid var(--brief);
}

.service-reasons__item:nth-child(4n + 2) {
	--brief: var(--color-format-pink);
}

.service-reasons__item:nth-child(4n + 3) {
	--brief: var(--color-format-tangerine);
}

.service-reasons__item:nth-child(4n + 4) {
	--brief: var(--color-format-blue);
}

.service-reasons__heading {
	font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.service-reasons__desc {
	margin-top: 0.75rem;
	color: var(--color-fg-soft);
}

.service-related__label {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.service-related__link {
	font-weight: 700;
	letter-spacing: -0.015em;
}

.service-related__arrow {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--color-line-strong);
	color: var(--color-accent);
	transition: background-color var(--duration-fast) var(--ease-out),
		color var(--duration-fast) var(--ease-out);
}

.service-related__link:hover .service-related__arrow,
.service-related__link:focus-visible .service-related__arrow {
	background: var(--color-accent);
	color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------------------
   Mid-page CTA — the exchange, on a frame
   The band sits on the grid canvas and the exchange is a production frame,
   the Format Explorer's panel, so it still reads as an aside the eye stops at.
   --------------------------------------------------------------------------- */

.service-mid-cta {
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
	border-block-color: var(--color-line-strong);
}

.service-mid-cta__inner {
	padding: var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: none;
}

.service-mid-cta__heading {
	font-size: clamp(1.75rem, 1.2rem + 1.9vw, 3rem);
	line-height: 1;
	letter-spacing: -0.015em;
}

.service-mid-cta__statement {
	color: var(--color-accent);
}

.service-mid-cta__copy {
	color: var(--color-fg-soft);
}

/* ---------------------------------------------------------------------------
   Closing bands — Services page closing, About closing
   The homepage's compact CTA: left-set on the grid canvas, ruled, with the
   filled lime pill.
   --------------------------------------------------------------------------- */

.services-page__closing,
.text-page__closing {
	text-align: left;
	border-block: 1px solid var(--color-line-strong);
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

.services-page__closing-heading {
	margin-inline: 0;
	max-width: 15ch;
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.015em;
}

.services-page__closing-copy {
	color: var(--color-fg-soft);
}

.services-page__closing .button-pill,
.text-page__closing .button-pill {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-accent-contrast);
	padding: 1rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.services-page__closing .button-pill:hover,
.services-page__closing .button-pill:focus-visible,
.text-page__closing .button-pill:hover,
.text-page__closing .button-pill:focus-visible {
	background: var(--color-fg);
	border-color: var(--color-fg);
}

.services-page__closing .button-pill span,
.text-page__closing .button-pill span {
	color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------------------------
   Text pages — About, Contact; Page Text Section "labelled"
   Each block is a row: the label in the spec voice on the left, the copy on
   the right — the client list's row, so labelled content reads the same
   everywhere.
   --------------------------------------------------------------------------- */

.text-page__block,
.text-page__block + .text-page__block {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-xs);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-line);
}

.text-page__block + .text-page__block {
	margin-top: var(--space-lg);
}

@media (min-width: 900px) {
	.text-page__block,
	.text-page__block + .text-page__block {
		grid-template-columns: 11rem minmax(0, 1fr);
		gap: var(--space-md);
	}
}

.text-page__block-label {
	margin: 0;
	padding-top: 0.35em;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.text-page__block-copy {
	max-width: 52ch;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.55;
	color: var(--color-fg);
}

.text-page__parent {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.contact-page__email {
	color: var(--color-accent);
	letter-spacing: -0.015em;
	border-bottom-color: var(--color-accent);
}

.contact-page__email:hover,
.contact-page__email:focus-visible {
	color: var(--color-fg);
	border-bottom-color: var(--color-fg);
}

.contact-page__list {
	gap: 0;
	max-width: none;
	font-size: var(--size-body);
	color: var(--color-fg);
	border-top: 1px solid var(--color-line-strong);
	border-left: 1px solid var(--color-line-strong);
}

.contact-page__list li {
	padding: 0.65rem 1.1rem 0.65rem 2.1rem;
	border-right: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
}

.contact-page__list li::before {
	left: 1.1rem;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	transform: translateY(-50%);
	background: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Long-form prose — Privacy, standard pages, single posts
   --------------------------------------------------------------------------- */

.privacy-page__title {
	font-weight: 900;
	letter-spacing: -0.015em;
	line-height: 1;
}

.privacy-page__updated {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.privacy-page__body h2,
.b-prose h2,
.b-prose h3 {
	font-weight: 800;
	letter-spacing: -0.015em;
}

.privacy-page__body a,
.b-prose a {
	color: var(--color-fg);
	border-bottom: 1px solid var(--color-accent);
}

.privacy-page__body a:hover,
.privacy-page__body a:focus-visible,
.b-prose a:hover,
.b-prose a:focus-visible {
	color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Listings — search results, archives, pagination, empty states
   --------------------------------------------------------------------------- */

.b-listing {
	padding-block: var(--space-lg) var(--space-xl);
}

.b-results {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
	border-top: 1px solid var(--color-line);
}

.b-results__item {
	display: grid;
	gap: 0.5rem;
	padding-block: var(--space-md);
	border-bottom: 1px solid var(--color-line);
}

.b-results__type {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.b-results__title {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.05;
}

.b-results__title a:hover,
.b-results__title a:focus-visible {
	color: var(--color-accent);
}

.b-results__excerpt {
	max-width: 62ch;
	color: var(--color-fg-soft);
}

.b-pagination {
	margin-top: var(--space-lg);
}

.b-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-top: 1px solid var(--color-line-strong);
	border-left: 1px solid var(--color-line-strong);
	width: fit-content;
	max-width: 100%;
}

.b-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: 0.85rem;
	border-right: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
}

.b-pagination .page-numbers.current {
	background: var(--color-accent);
	color: var(--color-accent-contrast);
}

.b-pagination a.page-numbers:hover {
	color: var(--color-accent);
}

.b-empty {
	display: grid;
	gap: var(--space-md);
	padding: var(--space-md);
	background: var(--frame-bg);
	border: 1px dashed var(--frame-border);
}

.b-empty__title {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

/* WordPress's own visually-hidden text (pagination headings, core forms). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
   Search form
   A spec label, a ruled field and a lime submit, at the 44px target. The
   field is required (searchform.php); the invalid state shows only after the
   viewer has interacted, never on load.
   --------------------------------------------------------------------------- */

.search-form {
	display: grid;
	gap: 0.6rem;
	max-width: 34rem;
}

.search-form__label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.search-form__row {
	display: flex;
	min-width: 0;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.6rem 0.9rem;
	font: inherit;
	color: var(--color-fg);
	background: var(--color-bg-elevated);
	border: 1px solid #70667d;
	border-right: 0;
	border-radius: 0;
}

.search-form__field:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.search-form__field:user-invalid {
	border-color: var(--color-format-pink);
}

.search-form__submit {
	min-height: 2.75rem;
	padding: 0.6rem 1.25rem;
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	font-size: 0.875rem;
}

.search-form__submit:hover,
.search-form__submit:focus-visible {
	background: var(--color-fg);
}

.b-page-head__search {
	margin-top: var(--space-md);
}

/* ---------------------------------------------------------------------------
   404 — the error frame
   --------------------------------------------------------------------------- */

.b-error {
	position: relative;
	overflow: hidden;
	min-height: 70dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* The status as an outlined numeral on the canvas — the hero's old "bj."
   device, reused for the one page where a big number is the content. */
.b-error__code {
	position: absolute;
	top: calc(var(--header-h) + var(--space-sm));
	right: var(--gutter);
	font-size: clamp(6rem, 2rem + 18vw, 20rem);
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -0.015em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--color-accent);
	pointer-events: none;
	user-select: none;
}

.b-error > :not(.b-error__code) {
	position: relative;
}

.b-error__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-md);
}

.b-error__actions .button-pill:first-child {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-accent-contrast);
}

.b-error__actions .button-pill:first-child span {
	color: var(--color-accent-contrast);
}

.b-error__search {
	margin-top: var(--space-lg);
}

/* ---------------------------------------------------------------------------
   Prose — standard pages, single posts
   --------------------------------------------------------------------------- */

.b-prose {
	padding-block: var(--space-lg) var(--space-xl);
	max-width: none;
}

.b-prose > * {
	max-width: 68ch;
}

.b-prose > * + * {
	margin-top: 1em;
}

.b-prose p,
.b-prose li {
	line-height: 1.7;
	color: var(--color-fg-soft);
}

.b-prose ul,
.b-prose ol {
	padding-left: 1.25em;
}

.b-prose ul {
	list-style: square;
}

.b-prose ol {
	list-style: decimal;
}

.b-prose li::marker {
	color: var(--color-accent);
}

/* ===========================================================================
   CASE STUDIES AND CONTENT LAYOUTS
   Project Content, the homepage library that shares it, the legacy
   case-study layouts and the Page layouts that use the same classes.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Project hero — the Project's own ground, B's spec voice on top
   --------------------------------------------------------------------------- */

.project-hero__top {
	padding-top: calc(var(--header-h) + var(--space-md));
}

.project-hero__back,
.project-hero__eyebrow,
.project-hero__demo-note,
.project-hero__scroll-cue {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0;
}

.project-hero__back {
	font-size: 0.75rem;
	opacity: 1;
}

.project-hero__back:hover,
.project-hero__back:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.project-hero__eyebrow {
	padding: 0.4em 0.65em;
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	font-size: var(--size-micro);
}

.project-hero__title {
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -0.015em;
}

.project-hero__demo-note {
	font-size: 0.75rem;
	letter-spacing: 0;
}

.project-hero__desc {
	opacity: 1;
}

/* ---------------------------------------------------------------------------
   Text, Text + Media, eyebrows
   --------------------------------------------------------------------------- */

.project-text__eyebrow,
.project-bgvideo__eyebrow {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.project-text__heading,
.flex-block__heading,
.project-bgvideo__heading {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem);
	font-weight: 800;
	line-height: 1;
}

.project-text__body,
.flex-block__body {
	color: var(--color-fg-soft);
	line-height: 1.65;
}

.project-text__body a,
.flex-block__body a {
	text-decoration: none;
	border-bottom: 1px solid var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Stats — ruled cells with lime figures
   Production Stats, Page Statistics and the legacy Statistics block share
   the format strip's cells. Production Scenario keeps its own sequence.
   --------------------------------------------------------------------------- */

.project-stats:not(.project-stats--scenario),
.flex-block__stats {
	gap: 0;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	border-top: 1px solid var(--color-line-strong);
	border-left: 1px solid var(--color-line-strong);
}

.project-stats:not(.project-stats--scenario) .project-stats__item,
.flex-block__stats > * {
	padding: var(--space-sm);
	border-right: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
}

.project-stats__value,
.flex-block__stat-value {
	font-size: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
	font-weight: 900;
	letter-spacing: -0.015em;
	color: var(--color-accent);
	font-variant-numeric: tabular-nums;
}

.project-stats__label,
.flex-block__stat-label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

/* Scenario: the sequence's figures in the foreground, the last in lime. */
.project-stats--scenario .project-stats__value {
	color: var(--color-fg);
	font-size: clamp(1.75rem, 1.2rem + 1.9vw, 3rem);
}

.project-stats--scenario .project-stats__item:last-child .project-stats__value {
	color: var(--color-accent);
}

.project-stats--scenario .project-stats__label {
	font-family: var(--font-body);
	color: var(--color-fg-soft);
}

.scenario__closing {
	font-weight: 900;
}

/* Light ground: lime figures would vanish; ink takes the figure. */
.project-block--bg-light .project-stats__value {
	color: var(--color-fg-on-light);
}

/* ---------------------------------------------------------------------------
   Quotes — Quote, legacy Quote, Page Large Statement
   Left-set, heavy, with a lime opening mark; attribution in the spec voice.
   --------------------------------------------------------------------------- */

.project-quote,
.flex-block--quote {
	text-align: left;
}

.project-quote__text,
.flex-block__quote-text {
	max-width: 30ch;
	margin-inline: 0;
	padding-left: var(--space-sm);
	border-left: 4px solid var(--color-accent);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.015em;
}

/* Editors type their own quotation marks, so the mark here is a lime rule,
   not a generated glyph that would double theirs. On a light ground the
   accent is ink (see Light Project grounds). */
.project-quote__attribution,
.flex-block__quote-attribution {
	padding-left: calc(var(--space-sm) + 4px);
}

.project-quote__attribution,
.flex-block__quote-attribution {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

/* ---------------------------------------------------------------------------
   Credits — cells, like the client list
   --------------------------------------------------------------------------- */

/* The cells draw their own top edge; the section's rule would double it. */
.project-credits {
	border-top: 0;
}

.project-credits__heading {
	font-family: var(--font-mono);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.project-credits__list {
	gap: 0;
	border-top: 1px solid var(--color-line-strong);
	border-left: 1px solid var(--color-line-strong);
}

.project-credits__item {
	padding: 0.55rem 0.9rem;
	border-right: 1px solid var(--color-line-strong);
	border-bottom: 1px solid var(--color-line-strong);
	color: var(--color-fg);
}

.project-credits__item:not(:last-child)::after {
	content: none;
}

/* ---------------------------------------------------------------------------
   Media items and HTML5 frames
   Labels and captions in the spec voice; Replay as a square spec control.
   --------------------------------------------------------------------------- */

.media-item__label,
.ad-frame__label {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.media-item__caption,
.flex-block--image figcaption {
	color: var(--color-fg-soft);
}

.ad-frame__replay {
	min-height: 2.25rem;
	padding: 0.35em 0.9em;
	border-radius: 0;
	border-color: var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	color: var(--color-fg);
}

.ad-frame__replay:hover,
.ad-frame__replay:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.project-block--bg-light .media-item__label,
.project-block--bg-light .ad-frame__label {
	color: var(--color-fg-on-light-dim);
}

/* Before / After: each half labelled by a chip. */
.project-before-after .media-item__label {
	display: inline-block;
	padding: 0.35em 0.6em;
	border: 1px solid var(--color-line-strong);
	color: var(--color-fg);
}

/* ---------------------------------------------------------------------------
   Campaign Rollout — master, arrow, wall
   --------------------------------------------------------------------------- */

.rollout__arrow {
	color: var(--color-accent);
}

.rollout__master .media-item__media,
.rollout__master .ad-frame__inner {
	outline: 1px solid var(--color-accent);
	outline-offset: 6px;
}

/* ---------------------------------------------------------------------------
   Next project — the hand-off
   The Project's own ground; the eyebrow becomes a lime chip and the client
   name a heavy display line with the site's "goes somewhere" arrow.
   --------------------------------------------------------------------------- */

.next-project__eyebrow {
	display: inline-block;
	padding: 0.4em 0.65em;
	border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	opacity: 1;
}

.next-project__title {
	font-weight: 900;
	letter-spacing: -0.015em;
	line-height: 0.95;
}

.next-project__title::after {
	content: " ↗" / "";
	font-weight: 400;
}

.next-project a:hover .next-project__title,
.next-project a:focus-visible .next-project__title {
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.12em;
}

.next-project a:focus-visible {
	outline-offset: 8px;
}

/* ===========================================================================
   CAMPAIGN LANDING PAGES
   =========================================================================== */

/* The hero on the production canvas, under the fixed header. */
.landing-hero {
	padding-block: calc(var(--header-h) + var(--space-lg)) var(--space-lg);
	border-bottom: 1px solid var(--color-line-strong);
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

.landing-hero__eyebrow,
.landing-video__eyebrow {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.landing-hero__eyebrow::before,
.landing-video__eyebrow::before {
	content: none;
}

.landing-hero__heading {
	margin-top: 1.875rem;
	max-width: 14ch;
	font-size: var(--size-hero-b);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.015em;
}

@media (max-width: 899px) {
	.landing-hero__heading {
		font-size: var(--size-hero-b-narrow);
	}
}

/* The theme's accent bar, slimmed to a rule: the heading carries the weight. */
.landing-hero__rule {
	height: 4px;
	width: 4rem;
	margin-block: var(--space-sm);
}

.landing-hero__copy {
	font-size: var(--size-body);
	line-height: 1.65;
	color: var(--color-fg);
}

.landing-hero__actions .button-pill,
.landing-conversion__cta.button-pill {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-accent-contrast);
	padding: 1rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.landing-hero__actions .button-pill span,
.landing-conversion__cta.button-pill span {
	color: var(--color-accent-contrast);
}

.landing-hero__actions .button-pill:hover,
.landing-hero__actions .button-pill:focus-visible,
.landing-conversion__cta.button-pill:hover,
.landing-conversion__cta.button-pill:focus-visible {
	background: var(--color-fg);
	border-color: var(--color-fg);
}

.landing-hero__proof {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.landing-hero__media img {
	border: 1px solid var(--color-line-strong);
}

/* Conversion: the compact-CTA band. */
.landing-conversion {
	border-block: 1px solid var(--color-line-strong);
	background-color: var(--color-bg);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
}

.landing-conversion__heading,
.send-receive__heading,
.landing-video__heading {
	font-weight: 800;
	line-height: 1;
}

.landing-conversion__heading {
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
	font-weight: 900;
}

.landing-conversion__copy,
.landing-video__copy {
	color: var(--color-fg-soft);
}

/* Send / Receive: two production sheets. The agency's side in the label
   colour, BannerJoy's in lime — one side emphasised, as before. */
.send-receive__column {
	min-width: 0;
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: none;
}

.send-receive__label {
	margin: 0;
	padding: 0.875rem 1.125rem;
	border-bottom: 1px solid var(--frame-border);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-label);
}

.send-receive__column--receive {
	border-top: 4px solid var(--color-accent);
}

.send-receive__column--receive .send-receive__label {
	border-bottom-color: var(--frame-border);
}

.send-receive__item {
	padding: 0.85rem 1.125rem;
	font-weight: 600;
}

.send-receive__item:last-child {
	border-bottom: 0;
}

/* Video: the film in a frame, caption in the spec voice. */
.landing-video__el {
	border: 1px solid var(--color-line-strong);
}

.landing-video__caption {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--color-label);
}

/* Selected Work's poster-first play control: square, lime when active. */
.landing .service-work__play-icon {
	border-radius: 0;
}

/* ===========================================================================
   FOOTER — finishing
   =========================================================================== */

.site-footer__tagline {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.site-footer__email {
	color: var(--color-fg);
	border-bottom-color: var(--color-accent);
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
	color: var(--color-accent);
	border-color: var(--color-accent);
}

.site-footer__grid,
.site-footer__bottom {
	border-color: var(--color-line-strong);
}

.site-footer__bottom {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	color: var(--color-label);
}

.site-footer__parent a {
	border-bottom-color: var(--color-accent);
}

/* Small standalone links, given a hit area of at least 24px (WCAG 2.5.8)
   without growing the text: an invisible box around each link takes the tap.
   Layout, underline and the focus ring are the link's own and do not move.
   The extension (8px above and below) stays inside the space these links
   already have around them, so no two areas meet. Links inside running copy
   are left alone — the line they sit on is their target. */
.site-footer__parent a,
.site-footer__legal a,
.b-case__back,
.b-case-end__all {
	position: relative;
}

.site-footer__parent a::before,
.site-footer__legal a::before,
.b-case__back::before,
.b-case-end__all::before {
	content: "";
	position: absolute;
	inset: -0.5rem -0.25rem;
}

/* ===========================================================================
   PAGE FLEXIBLE LAYOUTS — the remainder
   Text Section (editorial), Split Media, Image Grid, Full-width Image and
   the Page Background Video share the case-study classes above; these give
   their frames and captions the same treatment.
   =========================================================================== */

.flex-block__grid img,
.flex-block--split img,
.flex-block--image:not(.flex-block--full-bleed) img {
	border: 1px solid var(--color-line-strong);
}

.flex-block--image figcaption {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.flex-block--full-bleed .flex-block__heading,
.flex-block--full-bleed p {
	letter-spacing: -0.015em;
}

/* Page-head titles can carry a visitor's search term or an editor's long
   word; at display size an unbroken one must wrap rather than widen the page. */
.b-page-head__title,
.services-page__heading,
.service-hero__heading,
.text-page__heading,
.landing-hero__heading {
	overflow-wrap: anywhere;
}

/* The strip holds as many formats as the descriptor names — eight on the QA
   page. A grid item will not shrink below its longest word by default, so a
   long term pushed the band past the viewport; cells may now shrink and
   wrap, and the symbol keeps its own space. */
.format-strip {
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}

.format-strip span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.format-strip span::after {
	flex-shrink: 0;
}


/* A section eyebrow takes its own row above the split head. home-content.css
   pulls it back towards the heading by the old row gap; the head's gap is
   now --space-sm, so the pull matches that. */
.produce__intro > .section-eyebrow,
.process__intro > .section-eyebrow,
.reasons__intro > .section-eyebrow,
.experience__intro > .section-eyebrow {
	margin-bottom: calc(var(--space-2xs) - var(--space-sm));
}

/* On narrow screens the outlined status sits in the flow, between its label
   and the heading, instead of overlapping them. */
@media (max-width: 899px) {
	.b-error__code {
		position: static;
		margin: 0 0 var(--space-xs);
		font-size: clamp(5rem, 1rem + 20vw, 9rem);
	}
}

/* ---------------------------------------------------------------------------
   Focus on embedded media
   An HTML5 creative is a focusable iframe and a landing film a focusable
   video; neither showed where focus was. :focus rather than :focus-visible,
   because browsers do not apply the latter to these elements consistently.
   --------------------------------------------------------------------------- */

:is(iframe, video):focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.project-block--bg-light :is(iframe, video):focus {
	outline-color: var(--color-fg-on-light);
}

/* ---------------------------------------------------------------------------
   Navigation without JavaScript
   The overlay opens only from script. Without it the toggle can do nothing,
   so the menu is shown in the page instead: a plain row of links under the
   header, and no toggle. (The BannerJoy theme leaves its links off-screen
   but focusable in this state; this copy makes them visible and usable.)
   --------------------------------------------------------------------------- */

.no-js .menu-toggle {
	display: none;
}

.no-js .site-nav {
	position: relative;
	inset: auto;
	z-index: auto;
	display: block;
	padding: calc(var(--header-h) + var(--space-2xs)) var(--gutter) var(--space-sm);
	transform: none;
	visibility: visible;
	border-bottom: 1px solid var(--color-line-strong);
}

.no-js .site-nav__list {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
	text-align: left;
}

.no-js .site-nav__link {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.no-js .site-nav__meta {
	position: static;
	justify-content: flex-start;
	margin-top: 0.5rem;
}

/* Set by main.js while keyboard focus is inside a creative's iframe: the
   Direction B frames, the homepage's live file (.c-file) and a case study's
   piece (.cs-piece__frame). */
.ad-frame__inner.has-focus,
.media-item__media.has-focus,
.b-fmt__frame.has-focus,
.c-file.has-focus,
.cs-piece__frame.has-focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.project-block--bg-light .has-focus {
	outline-color: var(--color-fg-on-light);
}

/* These two sit on blue, navy and light grounds alike; the ring takes the
   ground's own text colour so it always reads against it. */
.c-file.has-focus,
.cs-piece__frame.has-focus {
	outline-color: currentColor;
}

/* A film with native controls: tabbing moves through the controls inside the
   player, where the video element itself no longer matches :focus. Its frame
   does match :focus-within, so the ring is drawn there, around the film and
   its controls together. */
.landing-video__figure:focus-within,
.media-item__media:has(> video[controls]):focus-within {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
}

.landing-video__figure:focus-within .landing-video__el:focus {
	outline: 0;
}

/* ===========================================================================
   WORK CARDS — global/b-work-card.php
   One card everywhere a Project is listed as a card. A framed object: the
   media with its format chip, then the spec line, the client, what was done
   and where it goes. The client name is the card's only link, stretched over
   the card; the whole card takes the hover and the focus ring.
   =========================================================================== */

.b-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-lg) var(--space-md);
	margin: var(--space-lg) 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.b-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.b-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	transition: border-color var(--duration-fast) var(--ease-out);
}

/* Media: the Project's own ground behind it, so a loading film or a
   creative smaller than the frame sits on the client's colour. */
.b-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	overflow: hidden;
	background: var(--project-bg, var(--frame-bg));
	border-bottom: 1px solid var(--frame-border);
}

.b-card__media img,
.b-card__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--duration-base) var(--ease-out);
}

.b-card__format {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	padding: 0.35em 0.6em;
	background: rgba(18, 17, 22, 0.86);
	border: 1px solid var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg);
}

/* An HTML5-led Project: its lead creative, whole, on the client's colour. */
.b-card__creative {
	position: absolute;
	inset: 10% 8%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* As large as the card allows, never past the creative's own pixels: capping
   the height caps the width with it, since the width follows the ratio. */
.b-card__creative .ad-frame {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: var(--ad-h);
	aspect-ratio: var(--ad-ratio);
}

.b-card__creative .ad-frame__inner {
	height: 100%;
}

.b-card__creative .ad-frame__label,
.b-card__creative .ad-frame__controls {
	display: none;
}

.b-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.b-card__spec {
	display: flex;
	justify-content: space-between;
	gap: var(--space-xs);
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	color: var(--color-label);
}

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

.b-card__title {
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.015em;
}

/* The stretched link: the whole card is the target. */
.b-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.b-card__link:focus-visible {
	outline: 0;
}

.b-card:focus-within {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
}

.b-card__desc {
	max-width: 48ch;
	font-size: var(--size-small);
	line-height: 1.55;
	color: var(--color-fg-soft);
}

.b-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.b-card__tags li {
	padding: 0.3em 0.55em;
	border: 1px solid var(--color-line-strong);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg-soft);
}

.b-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-xs);
	margin-top: auto;
	padding-top: var(--space-xs);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg);
}

.b-card__arrow {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--color-line-strong);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-accent);
	transition: background-color var(--duration-fast) var(--ease-out),
		color var(--duration-fast) var(--ease-out);
}

.b-card:hover,
.b-card:focus-within {
	border-color: var(--color-accent);
}

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

@media (hover: hover) and (pointer: fine) {
	.b-card:hover .b-card__media img,
	.b-card:hover .b-card__media video {
		transform: scale(1.03);
	}
}

/* The Landing Play control sits above the stretched link. */
.b-card .service-work__play {
	z-index: 2;
}

/* Light Project grounds: the frame inverts with everything else. */
.project-block--bg-light .b-card__format {
	background: rgba(242, 240, 237, 0.92);
}

/* ---------------------------------------------------------------------------
   Work archive — a lead card, then pairs
   --------------------------------------------------------------------------- */

.b-archive {
	padding-block: var(--space-lg) var(--space-xl);
}

.b-cards--archive {
	margin-top: 0;
}

@media (min-width: 700px) {
	.b-card--lead {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1000px) {
	.b-card--lead {
		display: grid;
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	}

	.b-card--lead .b-card__media {
		aspect-ratio: auto;
		min-height: 26rem;
		border-bottom: 0;
		border-right: 1px solid var(--frame-border);
	}

	.b-card--lead .b-card__body {
		padding: var(--space-md);
	}

	.b-card--lead .b-card__title {
		font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.5rem);
		letter-spacing: -0.015em;
	}

	.b-card--lead .b-card__desc {
		font-size: var(--size-body);
	}
}

@media (prefers-reduced-motion: reduce) {
	.b-card,
	.b-card__media img,
	.b-card__media video,
	.b-card__arrow {
		transition: none;
	}

	.b-card:hover .b-card__media img,
	.b-card:hover .b-card__media video {
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
   Case-study hero — the story and the production sheet
   On the Project's own ground. Below 1000px the sheet follows the story.
   --------------------------------------------------------------------------- */

.project-hero__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-md);
	align-items: end;
}

@media (min-width: 1000px) {
	.project-hero__content {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		column-gap: var(--space-lg);
	}

	.project-hero__content > :not(.project-hero__sheet) {
		grid-column: 1;
	}

	.project-hero__sheet {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: end;
	}
}

.project-hero__content > * {
	margin-top: 0;
}

.project-hero__title {
	font-size: clamp(3.375rem, 1rem + 8vw, 8rem);
}

.project-hero__desc {
	max-width: 40ch;
	font-size: var(--size-body-lg);
	line-height: 1.4;
}

/* The sheet carries its own dark ground, so its text never depends on the
   client colour or the frame of film behind it. */
.project-hero__sheet {
	margin: 0;
	background: rgba(18, 17, 22, 0.86);
	border: 1px solid var(--color-line-strong);
	box-shadow: none;
	color: var(--color-fg);
}

.project-hero__sheet-row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: var(--space-xs);
	padding: 0.9rem 1.1rem;
	border-bottom: 1px solid var(--color-line-strong);
}

.project-hero__sheet-row:last-child {
	border-bottom: 0;
}

.project-hero__sheet dt {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.project-hero__sheet dd {
	margin: 0;
	font-size: var(--size-small);
}

.project-hero__formats {
	display: grid;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
}

/* ---------------------------------------------------------------------------
   Case-study body — rhythm and framing
   Images and films in a Media Layout get the frame every other piece of work
   has; HTML5 creatives already sit in theirs.
   --------------------------------------------------------------------------- */

.media-item--image .media-item__media img,
.media-item--video .media-item__media video,
.project-text-media__media .media-item__media img,
.project-text-media__media .media-item__media video {
	border: 1px solid var(--color-line-strong);
}

.media-item__caption {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	color: var(--color-label);
}

.project-block--bg-light .media-item__caption {
	color: var(--color-fg-on-light-dim);
}

/* Text between pieces of work: a measure, a mono eyebrow, a ruled start. */
.project-text:not(.project-text--centre) {
	padding-left: var(--space-sm);
	border-left: 1px solid var(--color-line-strong);
}

/* ---------------------------------------------------------------------------
   More work
   --------------------------------------------------------------------------- */

.b-more-work {
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-line-strong);
}

.b-more-work__heading {
	font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.015em;
}

/* The Work / Case study bar is absolutely placed at the top of the hero.
   The hero's content is bottom-aligned, and on a narrow screen — title,
   description and production sheet stacked — it grew up into that bar. The
   bar's height is now reserved, so the content can only grow the hero. */
.project-hero {
	padding-top: calc(var(--header-h) + var(--space-md) + 3rem);
}

/* ===========================================================================
   CAMPAIGN BOARDS — option 2 (global/b-work-card.php)
   A board: the key visual large, up to two delivered formats beside it, the
   caption. Height is set by the key visual's own 16:9, so a board is a fixed,
   bounded object — no viewport-height panels, nothing floating. Formats are
   shown whole (contained) with their label in a bar beneath, never over them.
   =========================================================================== */

.b-board {
	padding: 0.75rem;
	gap: 0;
}

.b-board__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
}

.b-board .b-board__key {
	aspect-ratio: 16 / 9;
	border-bottom: 0;
}

.b-board__side {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 0.5rem;
}

/* A delivered HTML5 format beside the key visual: its own shape (see "A live
   HTML5 format"), each at most a short column tall. */
.b-board__side .b-fmt--html5 {
	--b-max-h: 14rem;
}

/* A delivered format: frame + bar. */
.b-fmt {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	margin: 0;
	aspect-ratio: 6 / 5;
	background: var(--project-bg, var(--frame-bg));
	border: 1px solid var(--frame-border);
}

.b-fmt__frame {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.b-fmt__frame > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0.5rem;
	object-fit: contain;
}

.b-fmt__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 0.5rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.25rem 0.25rem 0.55rem;
	background: var(--color-bg);
	border-top: 1px solid var(--frame-border);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg-soft);
}

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

/* The HTML5 slot until Play: the creative's own proportion and size. */
.b-fmt__slot {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	width: auto;
	height: 78%;
	max-width: 90%;
	transform: translate(-50%, -50%);
	border: 1px dashed color-mix(in srgb, var(--project-fg, #fff) 45%, transparent);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	color: var(--project-fg, var(--color-fg));
}

.b-fmt__slot span:first-child {
	font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 1.125rem);
	font-weight: 600;
}

.b-fmt__play {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.7rem;
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
}

.b-fmt__play[hidden] {
	display: none;
}

.b-fmt__play:focus-visible {
	outline: 2px solid var(--color-fg);
	outline-offset: 2px;
}

/* The real creative, once Play is pressed, scaled to fit the frame. */
.b-fmt__frame iframe {
	position: absolute;
	left: 50%;
	top: 50%;
	border: 0;
	transform: translate(-50%, -50%) scale(var(--b-scale, 1));
	transform-origin: center;
}

.b-fmt.is-live .b-fmt__slot {
	display: none;
}

/* ---- A live HTML5 format (global/b-live-format.php) -----------------------
   The frame is the creative. Its proportion is the creative's (--b-ratio),
   its width is the smallest of the space available, the creative's native
   width (--b-w: never enlarged) and the context's height cap times the
   proportion (--b-max-h). The poster, the slot and the playing creative all
   fill that same box, so Play changes nothing about the layout. A context
   sets --b-max-h and nothing else; the 6:5, 16:9 and fixed-height frames the
   other formats use do not apply here (nor do the landscape tiles' 8rem
   floor or 30rem ceiling, which padded a leaderboard out to a box). The
   figure has no border in Direction C (direction-c.css), so its width is
   the frame's. */
figure.b-fmt.b-fmt--html5 {
	flex: none;
	width: min(100%, var(--b-w, 300px), calc(var(--b-max-h, 100vh) * var(--b-ratio, 6 / 5)));
	max-width: 100%;
	aspect-ratio: auto;
	margin-inline: auto;
}

figure.b-fmt.b-fmt--html5 > .b-fmt__frame {
	flex: none;
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	aspect-ratio: var(--b-ratio, 6 / 5);
}

figure.b-fmt--html5 > .b-fmt__frame > img.b-fmt__poster {
	padding: 0;
	object-fit: contain;
}

figure.b-fmt.b-fmt--html5 .b-fmt__slot {
	inset: 0;
	width: auto;
	height: auto;
	max-width: none;
	transform: none;
}

/* The creative at its native size, scaled from the frame's corner by the one
   factor that fits it (main.js); the frame already has its proportion, so
   that factor fills it edge to edge. */
figure.b-fmt--html5 .b-fmt__frame iframe {
	left: 0;
	top: 0;
	transform: scale(var(--b-scale, 1));
	transform-origin: 0 0;
}

.b-board .b-card__body {
	padding: var(--space-sm) 0.25rem 0.5rem;
}

/* Landing Pages: the poster-first Play covers the key visual itself. */
.b-board .service-work__play {
	inset: 0;
	right: auto;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

/* No side formats: the key visual alone. */
.b-board--solo .b-board__stage {
	grid-template-columns: minmax(0, 1fr);
}

/* ---------------------------------------------------------------------------
   Wide boards — homepage Featured Projects, Selected Work "full"
   --------------------------------------------------------------------------- */

.b-board-run {
	padding-bottom: var(--space-xl);
}

.b-boards {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.b-boards--wide {
	padding-inline: var(--gutter);
}

@media (min-width: 980px) {
	.b-boards--wide .b-board {
		display: grid;
		grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
		gap: var(--space-sm);
		padding: 1rem;
	}

	.b-boards--wide .b-board__stage {
		grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
	}

	.b-boards--wide .b-board--solo .b-board__stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.b-boards--wide .b-board__key {
		align-self: start;
	}

	.b-boards--wide .b-board__side {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}

	.b-boards--wide .b-board__side:has(> :only-child) {
		grid-template-rows: minmax(0, 1fr);
	}

	.b-boards--wide .b-fmt {
		aspect-ratio: auto;
	}

	.b-boards--wide .b-card__body {
		padding: 0.25rem 0 0;
	}

	.b-boards--wide .b-card__title {
		font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
	}
}

/* ---------------------------------------------------------------------------
   Two-up boards — archive, cards, related work, More work, Landing Pages
   --------------------------------------------------------------------------- */

@media (min-width: 700px) {
	.b-cards .b-fmt {
		aspect-ratio: 2 / 1;
	}
}

@media (max-width: 699px) {
	.b-board {
		padding: 0.5rem;
	}
}

/* Boards on a light Project ground: the format bar takes the light surface
   (its text has already flipped to ink), and the controls invert — ink
   button, light text — since the accent is ink here. */
.project-block--bg-light .b-fmt__bar {
	background: var(--color-surface-light-raised);
}

.project-block--bg-light .b-fmt__play {
	background: var(--color-fg-on-light);
	color: var(--color-surface-light-raised);
}

.project-block--bg-light .b-card:hover .b-card__arrow,
.project-block--bg-light .b-card:focus-within .b-card__arrow {
	color: var(--color-surface-light-raised);
}

/* ===========================================================================
   SINGLE MEDIA — global/b-single-media.php
   The Project's one creative, large: a 16:9 frame on the Project's colour
   with the creative whole inside it at its own proportions, the label in a
   bar beneath, the caption beside it on a wide row and below it otherwise.
   The same bounded object as a board — no viewport-height panels.
   =========================================================================== */

.b-single {
	padding: 0.75rem;
	gap: 0;
}

.b-fmt.b-single__media {
	z-index: auto;
	aspect-ratio: auto;
}

.b-single__media .b-fmt__frame {
	flex: none;
	aspect-ratio: 16 / 9;
}

/* An HTML5 creative is its own shape, not the 16:9 frame (see "A live HTML5
   format"), no taller than that frame would have been on a wide card. */
.b-single__media.b-fmt--html5 {
	--b-max-h: min(70vh, 33rem);
}

.b-single__media .b-fmt__frame > img {
	padding: 0;
}

.b-single__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* The media lets the card's link through, so the creative itself leads to
   the case study; only the controls — and a creative once it is live —
   sit above the link. */
.b-single__media .b-fmt__play {
	position: relative;
	z-index: 2;
}

.b-fmt--html5.b-single__media.is-live {
	z-index: 2;
}

.b-single .b-card__body {
	padding: var(--space-sm) 0.25rem 0.5rem;
}

@media (min-width: 980px) {
	.b-boards--wide .b-single {
		display: grid;
		grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr);
		gap: var(--space-sm);
		padding: 1rem;
	}

	.b-boards--wide .b-single__stage {
		align-self: start;
	}

	.b-boards--wide .b-single .b-card__body {
		padding: 0.25rem 0 0;
	}

	.b-boards--wide .b-single .b-card__title {
		font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
	}
}

@media (max-width: 699px) {
	.b-single {
		padding: 0.5rem;
	}
}

/* ===========================================================================
   CASE STUDY — Option 3, "Production showcase" (single-project.php)
   A compact introduction and production sheet, the lead contained on the
   Project colour, the formats grouped by shape, the body in its own order,
   one compact ending. Nothing full-viewport, nothing cropped, nothing tiny
   floating alone. Films and creatives wait for Play.
   =========================================================================== */

.b-case {
	--b-case-max-h: 34rem;
	background: var(--color-bg);
}

.b-case__label {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-accent);
}

/* ---- Introduction --------------------------------------------------------- */

.b-case__mast {
	display: grid;
	gap: var(--space-sm);
	padding-block: calc(var(--header-h) + var(--space-md)) var(--space-lg);
}

.b-case__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.b-case__back {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg-soft);
	text-decoration: none;
}

.b-case__back:hover {
	color: var(--color-fg);
}

.b-case__title {
	margin: 0;
	font-size: clamp(3.25rem, 1.6rem + 6.4vw, 8rem);
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.015em;
	overflow-wrap: anywhere;
}

.b-case__intro {
	display: grid;
	gap: 0.75rem;
	align-content: end;
}

.b-case__lede {
	max-width: 36ch;
	margin: 0;
	font-size: clamp(1.1875rem, 0.95rem + 0.9vw, 1.625rem);
	line-height: 1.4;
	color: var(--color-fg);
}

.b-case__demo-note {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	color: var(--color-label);
}

.b-case__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--space-sm) var(--space-md);
	margin: var(--space-xs) 0 0;
	padding-top: var(--space-sm);
	border-top: 1px solid var(--color-line);
}

.b-case__facts > div {
	display: grid;
	align-content: start;
	gap: 0.4rem;
	min-width: 0;
}

.b-case__facts dt {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.b-case__facts dd {
	margin: 0;
	font-size: var(--size-small);
	color: var(--color-fg);
}

.b-case__facts-formats {
	grid-column: span 2;
}

.b-case__facts-formats ul {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 980px) {
	.b-case__mast {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--space-sm) var(--space-xl);
	}

	.b-case__top,
	.b-case__facts {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599px) {
	.b-case__facts-formats {
		grid-column: 1 / -1;
	}
}

/* ---- Lead ----------------------------------------------------------------- */

.b-case__lead-wrap {
	padding-bottom: var(--space-xl);
}

.b-fmt.b-case__lead {
	z-index: auto;
	aspect-ratio: auto;
}

.b-case__lead .b-fmt__frame {
	flex: none;
	aspect-ratio: 16 / 9;
	max-height: 78vh;
}

.b-case__lead .b-fmt__frame > img,
.b-case__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: contain;
}

.b-case__lead .b-fmt__slot {
	height: 72%;
}

/* An HTML5 lead is its own shape (see "A live HTML5 format"), no taller than
   the 16:9 frame's limit, centred in the lead's space. */
.b-case__lead.b-fmt--html5 {
	--b-max-h: 78vh;
}

.b-case__film-link {
	color: var(--color-fg);
}

/* ---- Formats -------------------------------------------------------------- */

.b-case__formats {
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-line);
}

.b-case__chapter-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 0.5rem var(--space-md);
	margin-bottom: var(--space-md);
}

.b-case__chapter-title {
	margin: 0.5rem 0 0;
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.015em;
}

.b-case__note {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.b-case__groups {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-md) var(--space-sm);
}

.b-case__group {
	--tile-h: 17rem;
	flex: 1 1 16rem;
	min-width: 0;
}

/* Landscape pieces take the full row, so a single leaderboard never sits
   beside a column of empty space; square and portrait share the row below. */
.b-case__group--landscape {
	--tile-h: 12rem;
	flex: 1 1 100%;
}

.b-case__group--landscape .b-case__tiles {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

/* Square and portrait share the row below by how many pieces each holds,
   so one 300×250 doesn't sit alone in a wide tile beside two squeezed
   skyscrapers. */
.b-case__group--square {
	flex: var(--pieces, 1) 1 14rem;
}

.b-case__group--portrait {
	flex: var(--pieces, 1) 1 12rem;
}

.b-case__group--portrait {
	--tile-h: 24rem;
}

.b-case__group-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.b-case__tiles {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.b-case__group--square .b-case__tiles,
.b-case__group--portrait .b-case__tiles {
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.b-case__tile-wrap {
	min-width: 0;
}

.b-fmt.b-case__tile {
	z-index: auto;
	aspect-ratio: auto;
}

.b-case__tile .b-fmt__frame {
	flex: none;
	height: var(--tile-h);
}

/* An HTML5 piece is its own shape instead (see "A live HTML5 format"): the
   group's tile height is only its ceiling, and it sits at the start of its
   cell, above its caption, so nothing pads it out to the tile. */
figure.b-fmt.b-fmt--html5.b-case__tile {
	--b-max-h: var(--tile-h);
	margin-inline: 0;
}

.b-case__tiles {
	align-items: start;
}

/* A static piece is shown whole and never past its own pixels: a 728×90
   file in a wide tile stays a sharp 728×90 rather than a blurred enlargement. */
.b-case__tile .b-fmt__frame > img {
	padding: 0.75rem;
	object-fit: scale-down;
}

.b-case__tile .b-case__video {
	z-index: 1;
	padding: 0.75rem;
}

/* A film's slot shows until its first frame does. */
.b-fmt--film.is-playing .b-fmt__slot {
	display: none;
}

/* A film's slot keeps the film's shape inside a frame sized for its group. */
.b-case__tile .b-fmt__slot {
	height: auto;
	width: min(88%, calc((var(--tile-h) - 1.5rem) * var(--wh, 1)));
	max-width: none;
}

@media (max-width: 699px) {
	.b-case__group {
		flex-basis: 100%;
	}

	.b-case__group--landscape {
		--tile-h: 9rem;
	}

	.b-case__group--square {
		--tile-h: 15rem;
	}

	/* Portrait formats regroup two across, so a skyscraper never takes a
	   whole phone screen to itself. */
	.b-case__group--portrait {
		--tile-h: 20rem;
	}

	.b-case__group--portrait .b-case__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Body ----------------------------------------------------------------- */

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

/* No body (a Project with no sections yet): no rule for nothing. */
.b-case__body:not(:has(> *)) {
	border-top: 0;
}

/* Creatives at a sensible size: never wider than the column, never taller
   than --b-case-max-h, and never past their own native pixels — a small
   format is shown at its true size, not blown up. main.js scales the iframe
   to whatever width this gives (scaleAdFrames()). */
.b-case__body .ad-frame {
	width: min(100%, calc(var(--b-case-max-h) * var(--ad-wh, 1)), var(--ad-w));
	max-width: 100%;
}

/* A creative standing alone sits on a stage, not in empty page. */
.b-case__body .media-item--html5 .media-item__media,
.b-case__body .flex-block--iframe {
	padding: var(--space-md) var(--space-sm);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
}

/* Natural-shape images: whole, and no taller than a screen's worth. */
.b-case__body .media-item__media:not([class*="ratio-"]) > .media-item__image {
	width: auto;
	max-width: 100%;
	max-height: 40rem;
	margin-inline: auto;
	object-fit: contain;
}

/* An HTML5 creative waiting for Play: its slot, at its own proportion. */
.ad-frame__slot {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	border: 1px dashed color-mix(in srgb, var(--color-fg) 40%, transparent);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	color: var(--color-fg-soft);
}

.ad-frame__slot span:first-child {
	font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 1.125rem);
	font-weight: 600;
	color: var(--color-fg);
}

.ad-frame.is-live .ad-frame__slot {
	display: none;
}

/* Until Play the frame has no document: it simply fills the box, so nothing
   at native size can push past it (the scale is only applied to a creative). */
.ad-frame--on-request iframe:not([src]) {
	width: 100%;
	height: 100%;
	transform: none;
}

/* Played on request, the file loads out of sight behind its poster and
   appears once it starts its sequence (assets/js/preview.js). */
.ad-frame--on-request:not(.is-live) iframe {
	opacity: 0;
}

/* The poster and the live creative share one box: absolute, so the iframe
   added on Play sits over the poster rather than below it. */
.ad-frame--on-request .ad-frame__inner > iframe {
	position: absolute;
	top: 0;
	left: 0;
}

/* The caption sits on the stage, not on the creative's own ground colour. */
.b-case__body .ad-frame__label {
	background: var(--frame-bg);
	color: var(--color-fg-soft);
}

/* Film sections: the film whole, at the content width — a contained band on
   the Project colour, not a cropped full-viewport panel. The legacy section
   carries its geometry inline, hence the !important on those two rules. */
.b-case__body .project-bgvideo {
	width: min(100% - 2 * var(--gutter), var(--content-max) - 2 * var(--gutter));
	min-height: 0;
	height: auto;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	max-height: 78vh;
	background: var(--project-bg, var(--frame-bg));
	border: 1px solid var(--frame-border);
}

.b-case__body .project-bgvideo .project-bgvideo__video {
	object-fit: contain;
}

.b-case__body .flex-block--full-bleed[style*="min-height"] {
	width: min(100% - 2 * var(--gutter), var(--content-max) - 2 * var(--gutter));
	min-height: 0 !important;
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	max-height: 78vh;
	background: var(--project-bg, var(--frame-bg));
	border: 1px solid var(--frame-border);
}

.b-case__body .flex-block--full-bleed > video {
	object-fit: contain !important;
}

/* Legacy full-width image and film: whole, at the content width, on the
   Project colour — not a 100vh crop. */
.b-case__body .flex-block--image.flex-block--full-bleed {
	width: min(100% - 2 * var(--gutter), var(--content-max) - 2 * var(--gutter));
	margin-inline: auto;
	background: var(--project-bg, var(--frame-bg));
	border: 1px solid var(--frame-border);
}

.b-case__body .flex-block--image.flex-block--full-bleed img,
.b-case__body .flex-block--image.flex-block--full-bleed video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 78vh;
	object-fit: contain;
}

/* Play / Pause over a film that has no caption bar. */
.b-req-host {
	position: relative;
}

.b-req {
	position: absolute;
	left: var(--gutter);
	bottom: 1rem;
	z-index: 5;
}

.b-req .b-fmt__play {
	min-height: 2.75rem;
	padding: 0 1rem;
	font-size: var(--size-micro);
}

.b-req-controls {
	justify-content: flex-start;
}

.b-req-controls .b-fmt__play {
	min-height: 2.75rem;
}

.b-fmt__play.b-req__play:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* ---- Ending --------------------------------------------------------------- */

.b-case-end {
	display: grid;
	gap: var(--space-md);
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-line);
}

.b-case-end__next {
	display: grid;
	gap: 0.6rem;
	padding: var(--space-md);
	background: var(--frame-bg);
	border: 1px solid var(--frame-border);
	box-shadow: inset 0.375rem 0 0 var(--project-bg, var(--color-line-strong));
	color: var(--color-fg);
	text-decoration: none;
	transition: border-color var(--duration-fast) var(--ease-out);
}

.b-case-end__next:hover,
.b-case-end__next:focus-visible {
	border-color: var(--color-accent);
}

.b-case-end__next:focus-visible,
.b-case-end__list a:focus-visible,
.b-case-end__all:focus-visible,
.b-case__back:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* The next Project's campaign cover, as its Work card composes it
   (bannerjoy_project_cover(): percentages of a 16:10 box), on its colour. */
.b-case-end__cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--project-bg, var(--color-line-strong));
}

.b-case-end__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);
}

.b-case-end__hero {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b-case-end__next-text {
	display: grid;
	align-content: start;
	gap: 0.6rem;
	min-width: 0;
}

.b-case-end__next-title {
	overflow-wrap: anywhere;
	font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.015em;
}

.b-case-end__next-desc {
	max-width: 46ch;
	font-size: var(--size-small);
	line-height: 1.55;
	color: var(--color-fg-soft);
}

.b-case-end__more {
	display: grid;
	align-content: start;
	gap: 0.75rem;
}

.b-case-end__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--color-line);
}

.b-case-end__list a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding-block: 0.9rem;
	border-bottom: 1px solid var(--color-line);
	color: var(--color-fg);
	text-decoration: none;
}

.b-case-end__list a:hover .b-case-end__client {
	color: var(--color-accent);
}

.b-case-end__client {
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.b-case-end__meta {
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-label);
}

.b-case-end__all {
	justify-self: start;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0;
	text-transform: none; /* Direction C: no capitals */
	color: var(--color-fg);
}

@media (min-width: 900px) {
	.b-case-end {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* Cover beside the name once the hand-off is wide enough for both. */
@media (min-width: 600px) {
	.b-case-end__next {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: var(--space-md);
	}
}

@media (max-width: 699px) {
	.b-case {
		--b-case-max-h: 26rem;
	}

	.b-case__body .project-bgvideo {
		aspect-ratio: 4 / 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	.b-case-end__next {
		transition: none;
	}
}

/* ---- Gallery tiles: opening posters ----------------------------------------- */

.b-fmt__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0.75rem;
	object-fit: contain;
}

.b-fmt.is-live .b-fmt__poster {
	display: none;
}

/* While the file loads it runs out of sight behind its poster, so a blank or
   half-loaded frame never shows; it appears the moment it starts its
   sequence (assets/js/preview.js). */
.b-fmt:not(.is-live) .b-fmt__frame iframe {
	opacity: 0;
}

/* An HTML5 still sits exactly where Play will put the creative: main.js scales
   it to fit the whole frame, centred, with no inset — so the still does the
   same, and pressing Play swaps frame for creative without a jump. Outranks
   the generic and tile image rules (padding, scale-down), which are for
   static files shown at their own pixels. */
.b-fmt--html5 .b-fmt__frame > .b-fmt__poster {
	padding: 0;
	object-fit: contain;
}

/* Landscape creatives: the frame takes the piece's own shape, between a
   leaderboard's strip and 30rem, so a 2:1 takeover reads as large as a 728×90
   reads wide. */
.b-case__group--landscape .b-case__tile .b-fmt__frame {
	height: auto;
	aspect-ratio: var(--wh, 2);
	min-height: 8rem;
	max-height: 30rem;
}

.b-case__group--landscape .b-case__tile .b-fmt__slot {
	width: auto;
	height: 84%;
	max-width: 92%;
}

/* With the creatives in the gallery, a run of text sections reads as one
   production explanation rather than separate full-height bands. */
.b-case__body .project-block--text + .project-block--text,
.b-case__body .flex-block--intro + .flex-block--text,
.b-case__body .flex-block--text + .flex-block--text {
	padding-block-start: 0;
}

/* Where a repeated film section was left out, its words stay as a statement. */
.b-case__statement {
	padding-block: var(--space-lg) var(--space-xl);
}

.b-case__statement-heading {
	margin: 0.5rem 0 0;
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.b-case__statement-body {
	max-width: 46ch;
	margin: 0.75rem 0 0;
	font-size: var(--size-body);
	line-height: 1.55;
	color: var(--color-fg-soft);
}
