/* v2-global: "The Matchday Programme". Implements build/docs/DESIGN-V2.md section 2.
   Loaded after base/sections/fixes, before header.css and page CSS. */

/* ---------- 2.1 Tokens ---------- */
:root {
	--c-paper: #fff;
	--c-paper-2: #f4f3f1;
	--c-ink: #0b0b0b;
	--c-ink-2: #161616;
	--c-graphite: #5e5e5e;
	--c-fog: rgb(255 255 255 / .72);
	--c-red: #b5121b;
	--c-red-deep: #8e0e16;
	--c-rule: #0b0b0b;
	--c-hair: rgb(11 11 11 / .14);

	--fs-mega: clamp(5rem, 1rem + 16vw, 16rem);
	--fs-display: clamp(3.25rem, 1.2rem + 8vw, 10rem);
	--fs-h1: clamp(2.75rem, 1.5rem + 4.6vw, 6rem);
	--fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.75rem);
	--fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
	--fs-stand: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
	--fs-body: 1.0625rem;
	--fs-small: .9375rem;
	--fs-kicker: .75rem;
	--fs-caption: .875rem;

	--sp-section: clamp(5rem, 3rem + 8vw, 11rem);
	--sp-block: clamp(2.5rem, 1.5rem + 3vw, 5rem);
	--gutter: clamp(1rem, .5rem + 2vw, 2.5rem);
	--wide: 1440px;
	--text: 68ch;

	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--t-fast: 180ms;
	--t-mid: 420ms;
	--t-slow: 900ms;

	/* Radius is the exception: V1 radii collapse to square, UI chips keep 6px. */
	--r-0: 0;
	--r-s: 6px;
	--r-m: 0;
	--r-l: 0;
	--r-pill: 999px;

	/* Aliases so older rules follow the new palette. */
	--c-base: var(--c-paper);
	--c-base-2: var(--c-paper-2);
	--c-muted: var(--c-graphite);
	--c-red-hover: var(--c-red-deep);
	--section: var(--sp-section);
	--ease: var(--ease-out);

	/* One static grain tile: noise as white alpha, baked in at ~6%. */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .22 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Context flip: inside an ink section rules, hairlines and secondary text invert. */
:is(.is-ink, .on-dark) {
	--c-rule: rgb(255 255 255 / .55);
	--c-hair: rgb(255 255 255 / .18);
	--c-graphite: var(--c-fog);
}
.is-ink {
	position: relative;
	background-color: var(--c-ink);
	background-image: var(--grain);
	background-size: 180px;
	color: #fff;
}
.is-ink :is(h1, h2, h3, h4) { color: #fff; }
.is-ink a:where(:not(.wp-block-button__link)) { color: inherit; }

/* Grid: 12 columns with named full/wide lines. Children sit on wide by default. */
.p42-grid {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--gutter), 1fr)
		[wide-start] repeat(12, minmax(0, calc(var(--wide) / 12)))
		[wide-end] minmax(var(--gutter), 1fr) [full-end];
}
.p42-grid > * { grid-column: wide-start / wide-end; margin-block: 0; }
.p42-grid > :is(.alignfull, .is-full) { grid-column: full-start / full-end; }

/* ---------- 2.2 Type with character ---------- */
body { font-size: var(--fs-body); line-height: 1.65; font-optical-sizing: auto; }
.wp-site-blocks :is(h1, h2, h3) { font-optical-sizing: auto; }
.wp-block-post-content h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }

.t-display, .t-h1, .t-h2 { font-family: inherit; text-wrap: balance; font-variation-settings: "opsz" 32; }
.t-display { font-size: var(--fs-display); font-weight: 650; letter-spacing: -.055em; line-height: .86; }
.t-h1 { font-size: var(--fs-h1); font-weight: 650; letter-spacing: -.045em; line-height: .95; }
.t-h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.t-h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.t-display em, .t-h1 em, .t-h2 em { font-style: italic; font-weight: inherit; }
.t-display .is-last { display: block; }

.t-num, .t-mega { font-weight: 300; font-feature-settings: "tnum", "ss01"; font-variant-numeric: tabular-nums; letter-spacing: -.06em; line-height: .8; }
.t-mega { font-size: var(--fs-mega); }
.t-num.is-outline, .p42-numeral.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--c-ink); }
.is-ink :is(.t-num, .p42-numeral).is-outline { -webkit-text-stroke-color: var(--c-red); }
.t-num.is-red, .p42-numeral.is-red { color: var(--c-red); }
.t-num.is-outline.is-red, .p42-numeral.is-outline.is-red { color: transparent; -webkit-text-stroke-color: var(--c-red); }

.p42-stand { font-size: var(--fs-stand); font-weight: 400; line-height: 1.35; color: inherit; max-inline-size: 34ch; letter-spacing: -.01em; }
.p42-body-text, .p42-prose-text { max-inline-size: var(--text); text-wrap: pretty; }
.p42-graphite { color: var(--c-graphite); }

/* Kicker: a real label with a red bar. Optional span on the right is the page marker. */
.p42-kicker {
	display: flex; align-items: center; gap: .75rem;
	font-size: var(--fs-kicker); font-weight: 600; line-height: 1.2;
	letter-spacing: .14em; text-transform: uppercase;
	font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
	color: inherit;
}
.p42-kicker::before { content: ""; flex: none; inline-size: 24px; block-size: 2px; background: var(--c-red); }
.p42-kicker > span { margin-inline-start: auto; color: var(--c-graphite); text-align: end; }

/* Legacy eyebrows follow the kicker look; their numerals are retired. */
.eyebrow {
	display: flex; align-items: center; gap: .75rem;
	font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-ink);
}
.eyebrow::before { inline-size: 24px; block-size: 2px; border-radius: 0; background: var(--c-red); }
.eyebrow b { display: none; }
.is-ink .eyebrow, .on-dark .eyebrow { color: #fff; }

/* Numeral (G3) */
.p42-numeral {
	font-size: var(--fs-mega); font-weight: 200; line-height: .8; letter-spacing: -.06em;
	font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; margin: 0;
	user-select: none;
}
@media (max-width: 47.99rem) { .p42-numeral { font-size: min(var(--fs-mega), 7rem); } }

/* ---------- 2.3 Editorial details ---------- */
.p42-rule, .p42-shead {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	border-block-start: 1px solid var(--c-rule); padding-block-start: .75rem;
	font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.p42-rule.is-red { border-block-start: 4px solid var(--c-red); }
.p42-pagemark { margin-inline-start: auto; text-align: end; color: var(--c-graphite); font-weight: 500; }
hr.p42-hr, .wp-block-separator.p42-hr { border: 0; border-block-start: 1px solid var(--c-rule); opacity: 1; background: none; inline-size: 100%; margin-block: var(--sp-block); }

/* Section head (G2): kicker 3 cols, H2 7 cols from col 4 at >=1024 */
.p42-shead { display: grid; grid-template-columns: 1fr; gap: 1rem var(--gutter); align-items: start; text-transform: none; letter-spacing: normal; font-size: inherit; font-weight: inherit; }
.p42-shead > * { margin: 0; }
.p42-shead h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; max-inline-size: 18ch; }
@media (min-width: 64rem) {
	.p42-shead { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.p42-shead > .p42-kicker { grid-column: 1 / span 3; }
	.p42-shead > h2 { grid-column: 4 / span 7; }
	.p42-shead > :is(p:not(.p42-kicker), .p42-stand) { grid-column: 4 / span 6; }
}

/* Margin notes: boxed aside by default; the long-read layout places it in the margin on desktop. */
.p42-margin-note, .p42-note-margin {
	font-size: var(--fs-caption); line-height: 1.5; color: var(--c-graphite);
	padding: .75rem 1rem; background: var(--c-paper-2); border-inline-start: 3px solid var(--c-ink);
	max-inline-size: 36ch;
}
@media (min-width: 64rem) {
	.p42-margin-note, .p42-note-margin { background: none; padding: .6rem 0 0; border-inline-start: 0; border-block-start: 2px solid var(--c-red); }
}

/* Folio: small footer line inside long pages */
.p42-folio {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
	border-block-start: 1px solid var(--c-rule); padding-block: .75rem 0;
	font-size: var(--fs-caption); color: var(--c-graphite); font-feature-settings: "tnum";
}

/* Figures and captions (G4) */
.p42-fig, figure.wp-block-image { margin: 0; }
:is(.p42-fig, .wp-block-image) :is(img, picture) { border-radius: 0; }
.p42-cap, :is(.p42-fig, .wp-block-image) > figcaption, .wp-block-image figcaption.wp-element-caption {
	display: flex; flex-wrap: wrap; gap: .25rem .75rem;
	margin: 0; padding-block-start: .6rem;
	font-size: var(--fs-caption); line-height: 1.4; color: var(--c-graphite);
	font-feature-settings: "tnum"; text-align: start;
}
.p42-cap b, .p42-cap strong, figcaption b, figcaption strong { color: var(--c-ink); font-weight: 600; }
.is-ink :is(.p42-cap, figcaption) :is(b, strong) { color: #fff; }

/* ---------- 2.5 Photo treatments ---------- */
.ph-ink, .ph-red, .ph-natural { position: relative; isolation: isolate; overflow: clip; }
.ph-ink :is(img, video), .ph-ink.wp-block-cover .wp-block-cover__image-background { filter: grayscale(1) contrast(1.15) brightness(.82); }
.ph-ink::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(11 11 11 / .25) var(--grain); background-size: 180px; pointer-events: none; }
.ph-red :is(img, video), .ph-red.wp-block-cover .wp-block-cover__image-background { filter: grayscale(1) contrast(1.1); }
.ph-red::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(11 11 11 / .2); mix-blend-mode: screen; pointer-events: none; }
.ph-red::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--c-red); mix-blend-mode: multiply; opacity: .85; pointer-events: none; }
.ph-natural :is(img, video) { filter: none; }
/* Overlay layers must not swallow clicks or sit above cover content */
.wp-block-cover.ph-ink > .wp-block-cover__inner-container, .wp-block-cover.ph-red > .wp-block-cover__inner-container { position: relative; z-index: 3; }

.crop-tall :is(img, video), img.crop-tall { aspect-ratio: 3 / 4; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 25%); inline-size: 100%; block-size: auto; }
.crop-letter :is(img, video), img.crop-letter { aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 30%); inline-size: 100%; block-size: auto; }
.crop-face :is(img, video), img.crop-face { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; inline-size: 100%; block-size: auto; }
.crop-detail :is(img, video), img.crop-detail { aspect-ratio: 1; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); inline-size: 100%; block-size: auto; }
@media (min-width: 48rem) {
	.crop-letter :is(img, video), img.crop-letter { aspect-ratio: 21 / 9; }
}
/* Full-bleed letterbox between two paper sections: no padding above or below */
.p42-letterbox { margin-block: 0 !important; padding: 0 !important; inline-size: 100%; max-inline-size: none; }

/* UI thumbnails keep a small radius; editorial images stay square. */
.p42-inthumb { display: inline-block; inline-size: 1.6em; block-size: 1em; border-radius: var(--r-pill); overflow: clip; vertical-align: -.1em; }
.p42-inthumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .p42-inthumb { display: none; } }

/* ---------- 2.6 Section transitions ---------- */
.has-seam-red { border-block-start: 4px solid var(--c-red); }
.has-seam-red > .p42-kicker:first-child { margin-block-start: -.2rem; }
@media (min-width: 64rem) {
	.has-pullup { margin-block-start: calc(var(--sp-block) * -1.5) !important; position: relative; z-index: 2; }
}
/* Type bridge: a display line that continues straight out of the seam */
.p42-bridge { padding-block-start: 0 !important; }
/* No grey bands as rhythm: V1 band sections render as paper. */
.p42-section.is-band { background: var(--c-paper); }
.is-band .p42-card, .is-band .p42-step { border-color: var(--c-hair); }
.is-band .wp-block-details { background: transparent; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
	min-block-size: 52px; padding: .85rem 1.6rem;
	border-radius: var(--r-s); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
	background: var(--c-red); color: #fff; border: 1px solid var(--c-red);
	text-decoration: none;
	transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), scale .15s;
}
.wp-block-button .wp-block-button__link:hover { background: var(--c-red-deep); border-color: var(--c-red-deep); color: #fff; }
.wp-block-button.is-style-fill .wp-block-button__link { background: var(--c-red); color: #fff; }
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.wp-block-button.is-style-ink .wp-block-button__link:hover { background: var(--c-red); border-color: var(--c-red); }
.is-ink .wp-block-button.is-style-ink .wp-block-button__link { background: #fff; border-color: #fff; color: var(--c-ink); }
.is-ink .wp-block-button.is-style-ink .wp-block-button__link:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.is-ink .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--c-ink); }
/* Arrow slides 4px on hover (arrow style and fill with an icon) */
.wp-block-button.is-style-arrow .wp-block-button__link::after, .wp-block-button .wp-block-button__link .icon { transition: translate var(--t-fast) var(--ease-out); }
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after, .wp-block-button .wp-block-button__link:hover .icon { translate: 4px 0; }
/* Line: text link with a 2px underline that grows from the left */
.wp-block-button.is-style-line .wp-block-button__link {
	min-block-size: 44px; padding: .6rem 0; border: 0; border-radius: 0;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px, linear-gradient(var(--c-hair), var(--c-hair)) no-repeat 0 100% / 100% 2px;
	background-color: transparent; color: inherit;
	transition: background-size .4s var(--ease-out);
}
.wp-block-button.is-style-line .wp-block-button__link::after { content: "→"; transition: translate var(--t-fast) var(--ease-out); }
.wp-block-button.is-style-line .wp-block-button__link:hover { background-color: transparent; background-size: 100% 2px, 100% 2px; color: inherit; }
.wp-block-button.is-style-line .wp-block-button__link:hover::after { translate: 4px 0; }
.is-ink .wp-block-button.is-style-line .wp-block-button__link { background-image: linear-gradient(#fff, #fff), linear-gradient(rgb(255 255 255 / .3), rgb(255 255 255 / .3)); color: #fff; }
.btn { border-radius: var(--r-s); min-block-size: 52px; font-weight: 600; }
.chip { border-radius: var(--r-s); }
/* Pills are retired; chips that must stay round are filter tabs only. */
.chip--glass, .p42-num { backdrop-filter: none; background: rgb(11 11 11 / .7); border-color: rgb(255 255 255 / .35); }
.video-toggle { backdrop-filter: none; border-radius: var(--r-s); }
.p42-hero h1 { text-shadow: none; }

/* ---------- Final whistle (G10) ---------- */
.p42-whistle {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem;
	inline-size: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto;
	border-block-start: 1px solid var(--c-rule); padding-block: var(--sp-block);
}
.p42-whistle > * { margin: 0 !important; }
.p42-whistle :is(h2, .p42-whistle__text) { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; max-inline-size: 20ch; flex: 1 1 18rem; }
.p42-whistle .wp-block-buttons { flex: none; }
@media (max-width: 47.99rem) { .p42-whistle { flex-direction: column; align-items: stretch; gap: 1.5rem; min-block-size: 0; } .p42-whistle :is(h2, .p42-whistle__text) { flex: none; } .p42-whistle .wp-block-button, .p42-whistle .wp-block-button__link { inline-size: 100%; justify-content: center; } }

/* ---------- Q&A (S7) base styles shared by every page that has one ---------- */
.p42-qa > .wp-block-details { background: none; border-radius: 0; border-block-start: 1px solid var(--c-rule); max-inline-size: 52rem; }
.p42-qa > .wp-block-details:last-child { border-block-end: 1px solid var(--c-rule); }
.p42-qa .wp-block-details summary { padding: 1.25rem 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; min-block-size: 56px; }
.p42-qa .wp-block-details summary::after { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E"); border-radius: 0; inline-size: 1.5rem; block-size: 1.5rem; background-size: 100%; }
.wp-block-details[open] > summary::after { background-color: transparent; }
.p42-qa .wp-block-details > :not(summary) { padding: 0 0 1.5rem; color: var(--c-ink); }

/* ---------- 2.7 Motion system ----------
   Default state is the final state. Effects exist only for no-preference, scroll-driven
   ones behind @supports. Utility classes: .ln (E1) .m-curtain (E2) .m-rule (E3)
   .m-expand (E4) .m-parallax (E5) .m-marquee (E6) .p42-progress (E8). Max 3 per page. */
.m-rule { position: relative; border-block-start: 1px solid transparent; }
.m-rule::before { content: ""; position: absolute; inset: 0 0 auto 0; block-size: 1px; background: var(--c-rule); transform-origin: left center; }
.m-marquee { overflow: clip; }
.m-marquee__track { display: flex; inline-size: max-content; white-space: nowrap; }
.m-marquee__track > * { flex: none; padding-inline-end: .5em; margin: 0; }
.ln { display: block; }

@media (prefers-reduced-motion: no-preference) {
	@keyframes p42-ln { from { translate: 0 105%; } }
	@keyframes p42-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
	@keyframes p42-curtain-img { from { scale: 1.12; } to { scale: 1; } }
	@keyframes p42-draw { from { scale: 0 1; } to { scale: 1 1; } }
	@keyframes p42-expand { from { clip-path: inset(6% 8% 6% 8%); } to { clip-path: inset(0); } }
	@keyframes p42-par { from { translate: 0 12%; } to { translate: 0 -12%; } }
	@keyframes p42-mq { to { translate: -50% 0; } }
	@keyframes p42-prog { from { scale: 0 1; } to { scale: 1 1; } }
	@keyframes p42-up { from { opacity: 0; translate: 0 1.25rem; } }

	/* E1: line rise on load (hero) */
	.ln { overflow: clip; padding-block-end: .12em; margin-block-end: -.12em; }
	.ln > span { display: inline-block; animation: p42-ln 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
	.ln:nth-child(2) > span { animation-delay: 60ms; }
	.ln:nth-child(3) > span { animation-delay: 120ms; }
	.ln:nth-child(4) > span { animation-delay: 180ms; }
	.ln:nth-child(5) > span { animation-delay: 240ms; }

	/* E6 marquee: constant speed, pause on hover, focus or .is-paused */
	.m-marquee__track { animation: p42-mq 40s linear infinite; }
	.m-marquee:is(:hover, :focus-within) .m-marquee__track, .m-marquee.is-paused .m-marquee__track { animation-play-state: paused; }

	@supports (animation-timeline: view()) {
		/* E1 on entry for blocks of lines (manifesto) */
		.m-view .ln > span { animation: p42-ln linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; animation-delay: 0s; }
		/* E2 curtain reveal */
		.m-curtain { animation: p42-curtain linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; overflow: clip; }
		.m-curtain :is(img, video) { animation: p42-curtain-img linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
		/* E3 rule draw */
		.m-rule::before { animation: p42-draw linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
		/* E4 scroll expand */
		.m-expand { animation: p42-expand linear both; animation-timeline: view(); animation-range: cover 0% cover 50%; }
		/* E5 numeral parallax */
		.m-parallax { animation: p42-par linear both; animation-timeline: view(); animation-range: cover; }
		/* generic rise on entry for text blocks */
		.m-rise { animation: p42-up linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
		/* E8 reading progress: long-read and article only */
		.p42-progress, body:is(.p42-kind-work, .p42-kind-article)::after {
			content: ""; position: fixed; inset: 0 0 auto 0; block-size: 2px; z-index: 150;
			background: var(--c-red); transform-origin: left center;
			animation: p42-prog linear both; animation-timeline: scroll(root);
			pointer-events: none;
		}
		.p42-progress { content: none; }
	}
}
@media (prefers-reduced-motion: reduce) {
	.m-marquee { overflow: visible; }
	.m-marquee__track { inline-size: auto; flex-wrap: wrap; white-space: normal; }
	.m-marquee__track > [aria-hidden="true"] { display: none; }
}

/* Marquee pause button (injected or authored) */
.m-marquee__toggle, .p42-loop__toggle {
	display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px;
	border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font-size: .75rem; font-weight: 600;
}

/* ---------- 2.8 Video components ---------- */
.p42-video, .p42-video-cover { margin: 0; position: relative; overflow: clip; background: var(--c-ink); }
.p42-video video, .p42-video-cover video { inline-size: 100%; block-size: 100%; object-fit: cover; }
.p42-video figcaption { background: var(--c-paper); }

.p42-video-bg { position: relative; isolation: isolate; overflow: clip; color: #fff; background-color: var(--c-ink); }
.p42-video-bg__inner { position: relative; z-index: 1; }
.p42-video-bg > .p42-video-bg__media::after { background: linear-gradient(180deg, rgb(11 11 11 / .45), rgb(11 11 11 / .85)); }

/* G7 background loop: poster img behind, video above it, ink gradient so text holds 4.5:1 */
.p42-loop { position: relative; isolation: isolate; overflow: clip; background: var(--c-ink); color: #fff; }
.p42-loop > :is(.wp-block-image, .wp-block-video, figure):not(.p42-loop__inner) { position: absolute !important; inset: 0; margin: 0 !important; z-index: -2; inline-size: auto !important; }
.p42-loop > .p42-loop__video, .p42-loop > .wp-block-video { z-index: -1; }
.p42-loop :is(img, video) { inline-size: 100%; block-size: 100%; object-fit: cover; }
.p42-loop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(11 11 11 / .85), rgb(11 11 11 / .25) 60%, rgb(11 11 11 / .35)); pointer-events: none; }
.p42-loop__inner { position: relative; z-index: 1; }
.p42-loop__toggle { position: absolute; inset: auto 1rem 1rem auto; z-index: 5; background: rgb(11 11 11 / .6); color: #fff; border-color: rgb(255 255 255 / .5); }
.p42-loop__toggle:hover { background: var(--c-red); border-color: var(--c-red); }

/* G8 feature film: poster, round play button, duration label */
.p42-film { position: relative; margin: 0; background: var(--c-ink); }
.p42-film :is(.wp-block-image, figure) { margin: 0; }
.p42-film :is(img, video) { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.p42-film .wp-block-buttons { position: absolute; inset: 0; margin: 0 !important; display: grid; place-content: center; justify-items: center; gap: .75rem; pointer-events: none; }
.p42-film .wp-block-button { pointer-events: auto; }
.p42-film .wp-block-button__link, .p42-film__play {
	inline-size: 72px; block-size: 72px; min-block-size: 0; padding: 0; border-radius: 50%;
	display: grid; place-items: center; font-size: 0; line-height: 0;
	background: var(--c-ink); border: 2px solid #fff; color: #fff;
	transition: background-color var(--t-fast), scale var(--t-mid) var(--ease-out);
}
.p42-film .wp-block-button__link::before, .p42-film__play::before { content: ""; inline-size: 22px; block-size: 24px; background: #fff; clip-path: polygon(20% 0, 100% 50%, 20% 100%); margin-inline-start: 4px; }
.p42-film .wp-block-button__link::after { content: none !important; }
.p42-film .wp-block-button__link:hover, .p42-film__play:hover { background: var(--c-red); border-color: var(--c-red); scale: 1.06; }
.p42-film__label { position: absolute; inset: auto auto 1rem 1rem; margin: 0; padding: .35rem .75rem; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .04em; background: rgb(11 11 11 / .75); color: #fff; }

/* ---------- Footer: ink programme back page, contact line instead of a CTA panel ---------- */
.site-footer {
	margin: var(--sp-section) 0 0; border-radius: 0; border-block-start: 4px solid var(--c-red);
	background-color: var(--c-ink); background-image: var(--grain); background-size: 180px;
	--c-rule: rgb(255 255 255 / .35); --c-graphite: var(--c-fog);
}
.site-footer__bg { opacity: .55; }
.site-footer__bg img { filter: grayscale(1) contrast(1.15) brightness(.7); }
.site-footer__bg::after { background: linear-gradient(180deg, rgb(11 11 11 / .7), rgb(11 11 11 / .94)); }
.site-footer__panel {
	inline-size: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto;
	padding: var(--sp-block) 0 1.5rem; border: 0; border-radius: 0; background: none; backdrop-filter: none;
}
.footer-contact {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem;
	padding-block: 0 2rem; border-block-end: 1px solid rgb(255 255 255 / .35);
}
.footer-contact .p42-kicker { color: #fff; }
.footer-contact__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; margin: 0; font-size: var(--fs-stand); font-weight: 500; letter-spacing: -.02em; }
.footer-contact__line a { color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-decoration-thickness: 2px; text-underline-offset: .25em; min-block-size: 44px; display: inline-flex; align-items: center; }
.footer-contact__line a:hover { text-decoration-color: var(--c-red); }
.footer-grid h3 { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-fog); }
.footer-social a { border-radius: var(--r-s); }
.footer-word { font-size: 16.45cqi; line-height: .85; margin-block: 1.5rem .5rem; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--c-red); font-weight: 300; font-style: normal; letter-spacing: -.06em; }
.footer-word span { color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .8); }
@media (max-width: 39.99rem) {
	.site-footer { margin: var(--sp-section) 0 0; border-radius: 0; }
	.site-footer__panel { inline-size: min(100% - 2 * var(--gutter), var(--wide)); margin: 0 auto; padding-inline: 0; }
}

/* ---------- Never do (V2): neutralise V1 leftovers ---------- */
.p42-cta::after { content: none; }
.p42-cta { border-radius: 0; }
.p42-card:hover { translate: none; box-shadow: none; }
.p42-service::before { background: linear-gradient(180deg, rgb(11 11 11 / .05) 30%, rgb(11 11 11 / .78)); }
:is(.p42-problems, .p42-promises) { border-radius: 0; }
:where(h1, h2, h3, h4) :where(span, em, strong) { background-clip: border-box; }

/* Print-like focus on paper: keep the 3px ink outline from base.css; ink sections get white. */
.is-ink :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--c-ink); }

@media (forced-colors: active) {
	.p42-kicker::before, .m-rule::before { background: CanvasText; }
	.ph-red::after, .ph-red::before, .ph-ink::after { display: none; }
}
