/**
 * The redesigned Work pages (Ben, 24-26 Nov 2026): Hantec Markets, Saxo Bank, Cerus, Delinea EDGE, Gentek, INFINOX, Minitab, SHI, Thomson Reuters. Markup in inc/work-edge.php.
 *
 * Loaded after work.css on these pages only. Rules that hold across the site, kept here:
 *
 *  - Type is the site's: Rethink Sans headings, Inter body. Every eyebrow takes `.eyebrow` (13.2px, 800, uppercase, 0.18em) and every
 *    paragraph, lead and list takes `--fs-body` (17.8px). No pixel size is written for copy (docs/verification/type-rules-check.py).
 *  - One vertical rhythm, the site's panel system (tokens.css `--panel-*`, panel-headings.css). Every panel's text sits `--edge-pad-y`
 *    (`--panel-space-bottom`: 100px, 76px on a laptop) from the panel's top and bottom edges, and the same gap separates a heading from
 *    its copy and a panel's introduction from the pictures or steps under it. The panel system's own 92 above / 100 below is made equal
 *    here, as Ben asked for this page; the panel titles are its tokens unchanged. The older Work panels each carry their own padding
 *    (78/86, 92, 100/108, 106); this page does not inherit them.
 *  - Square edges on full-bleed pictures and bands (they run to the page edge, so there is nothing to round). Buttons keep the 16px
 *    button radius (`--r-button`); nothing here is a pill.
 *  - No `!important`. Selectors carry one more class than the older rules they settle.
 *  - Colour: each page's accent and hero night tone are the ones in Ben's previews (orange #ff6600, cyan #00cafa, yellow #f5dc25, pink #ee4896),
 *    the dark teal (#123840) is the client band's on every page, and `--ink`, `--white`, `--sand` are the site's. The night tone is taken from the
 *    artwork so the picture fades into it.
 */

.work-edge {
	/* Each page's own colours arrive from its data as `--edge-*-base` (inc/work-edge-pages.php, from Ben's previews); these are what they fall back to. */
	--edge-accent: var(--edge-accent-base, #ff6600);
	/* The accent as small text on the dark hero: lightened by the template only where the brand colour would not reach 4.6:1 (inc/work-edge.php). */
	--edge-accent-text: var(--edge-accent-text-base, var(--edge-accent));
	--edge-night: var(--edge-night-base, #120d20);
	--edge-strip-bg: var(--edge-strip-base, #231556);
	/* The client band's dark teal, being introduced for it (Ben, 24 Nov 2026). */
	--edge-teal: #123840;
	/* The site's own panel system (tokens.css, panel-headings.css, Ben 1 Oct 2026): one space above and below every panel's text, one gap from a heading to its copy. */
	--edge-pad-y: var(--panel-space-bottom);
	--edge-gap-text: var(--panel-copy-gap);
	--edge-gap-block: var(--panel-head-gap);
	--edge-gutter: clamp(28px, 6vw, 100px);
	--edge-rule-on-night: rgba(255, 255, 255, 0.36);
	/* A text column starts where the shared .wrap's text starts, even where its picture runs to the page edge. */
	--edge-edge: max(var(--pad-x), calc((100cqw - var(--content-max)) / 2));
}

/* High contrast keeps one flat surface (contrast.css): the accent bands go white, the client band goes black. */
html[data-contrast="high"] .work-edge {
	--edge-accent: var(--white);
	--edge-accent-text: var(--white);
	--edge-teal: var(--ink);
}

/* ------------------------------------------------------------ copy rhythm */
/* Only the new sections: the related work and the journey links that follow them are the site's own and keep their own type and spacing. */
.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) p {
	margin: 0;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--work-body);
}

/*
 * Body copy is Inter, as everywhere on the site (Ben, 26 Nov 2026: "any body text outside of titles is Inter"). The shared base sets the page's running text in Rethink Sans, which is the
 * headings' face; paragraphs, list items and captions here take the body face explicitly. Headings inside a list item keep their own face; the quote is the site's display quote.
 */
.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) :is(p, li, figcaption) {
	font-family: var(--font-body);
}

.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) p + p {
	margin-top: 18px;
}

.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) :is(h2, h3) + p {
	margin-top: var(--edge-gap-text);
}

.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) .eyebrow {
	margin-bottom: var(--panel-eyebrow-gap);
}

.work-edge :is(.edge-split, .edge-text, .edge-context, .edge-steps, .edge-outcome, .edge-video, .edge-quote, .edge-close, .edge-hero) h2.display-sm {
	margin-bottom: 0;
}

.work-edge-page main {
	overflow-x: clip;
}

/* A highlighted phrase: the square callout from the Home headline, in the page's accent. */
.work-edge .edge-mark {
	display: inline-block;
	max-width: 100%;
	padding: 0.06em 0.1em 0.02em;
	background: var(--edge-accent);
	color: var(--ink);
}

/* ------------------------------------------------------------------ header */
/* Transparent over the dark hero, as on Home (home.css), and the shared header once scrolled. */
body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .logo img {
	filter: brightness(0) invert(1);
}

body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .nav a {
	color: var(--white);
	opacity: 1;
}

body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .nav .nav-cta {
	background: var(--white);
	color: var(--ink);
}

body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) :is(.viewing-trigger, .viewing-menu-trigger) {
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--white);
}

body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) :is(.viewing-trigger, .viewing-menu-trigger):hover {
	border-color: var(--white);
}

body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .menu-icon,
body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .menu-icon::before,
body.work-edge-page:not(.work-edge-solid-header) .site-header:not(.is-scrolled) .menu-icon::after {
	background: var(--white);
}

body.work-edge-page.nav-open .site-header:not(.is-scrolled) .menu-icon {
	background: transparent;
}

/* ------------------------------------------------------------------- hero */
.work-edge .edge-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: clamp(580px, 73svh, 840px);
	background: var(--edge-night);
	color: var(--white);
}

.work-edge .edge-hero-grid {
	display: block;
	padding-top: max(calc(var(--header-h) + 24px), clamp(64px, 8vw, 124px));
	padding-bottom: var(--edge-pad-y);
}

.work-edge .edge-hero-media {
	position: absolute;
	z-index: -2;
	inset: 0 0 0 36%;
	margin: 0;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, #000 29%);
}

.work-edge .edge-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 49%;
}

.work-edge .edge-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(18, 13, 32, 0.92), rgba(18, 13, 32, 0.76) var(--header-h), transparent calc(var(--header-h) + 92px)),
		linear-gradient(0deg, var(--edge-night) 0%, rgba(18, 13, 32, 0.68) 13%, transparent 38%),
		/* The copy column sits on the page's own dark tone, not on the picture's edge, so the accent label keeps its contrast whatever the picture is. */
		linear-gradient(90deg, color-mix(in srgb, var(--edge-night) 94%, transparent) 0%, color-mix(in srgb, var(--edge-night) 84%, transparent) 42%, color-mix(in srgb, var(--edge-night) 40%, transparent) 58%, transparent 74%);
}

.work-edge .edge-hero-copy {
	max-width: min(640px, 55%);
}

.work-edge .edge-hero-copy .eyebrow {
	color: var(--edge-accent-text);
}

.work-edge .edge-hero-copy .display-sm {
	max-width: 760px;
	/* The Work hero's own size and ceiling (work.css), so this H1 matches the other Work pages. */
	font-size: min(clamp(50px, 5.6vw, 80px), 12.5vw);
	color: var(--white);
}

.work-edge .edge-hero-copy .lead {
	max-width: 720px;
	margin: 25px 0 0;
	color: var(--white);
}

.work-edge .edge-hero .btn {
	background: var(--edge-accent);
	border-color: var(--edge-accent);
	color: var(--ink);
}

/*
 * Plain service labels along the foot of the hero. A divider sits in the gap between two labels on a line and never at the start of one
 * (Ben, 24 Nov 2026): the dividers hang in the gap (absolute, so they take no width and cannot change where a line breaks), and the one that
 * would belong to the first label of a wrapped line falls outside the list's left edge, where `overflow: hidden` clips it.
 */
.work-edge .edge-hero-services {
	--edge-divider: clamp(9px, 1.4vw, 22px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px calc(var(--edge-divider) * 2 + 1px);
	margin: clamp(32px, 5vw, 72px) 0 0;
	padding: 20px 0 0;
	overflow: hidden;
	border-top: 1px solid var(--edge-rule-on-night);
	color: var(--white);
	list-style: none;
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow-label);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: var(--ls-eyebrow-label);
	text-transform: uppercase;
}

.work-edge .edge-hero-services li {
	position: relative;
	margin: 0;
}

.work-edge .edge-hero-services li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(-1 * var(--edge-divider) - 1px);
	width: 1px;
	height: 1em;
	margin-top: -0.5em;
	background: rgba(255, 255, 255, 0.6);
}

.work-edge .edge-hero-services li:first-child::before {
	display: none;
}

/* A service that links to its service page reads as it did unlinked. */
.work-edge .edge-hero-services a {
	display: inline-block;
	/* A 24px-high target (WCAG 2.2 target size) without moving the row: the extra height is padding and a matching negative margin. */
	padding-block: 4px;
	margin-block: -4px;
	color: inherit;
	text-decoration: none;
}

.work-edge .edge-hero-services a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* The hero's other buttons (the case study) sit beside the main one, outlined on the dark ground. */
.work-edge .edge-hero .btn.edge-btn-secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.65);
	color: var(--white);
}

.work-edge .edge-hero .btn.edge-btn-secondary:is(:hover, :focus-visible) {
	background: var(--white);
	color: var(--ink);
}

/* One entrance, in order; none for anyone who has asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
	html:not([data-motion="reduced"]) .work-edge .edge-hero-copy > .eyebrow {
		animation: edge-enter 380ms ease-out both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-copy > h1 {
		animation: edge-enter 540ms cubic-bezier(0.2, 0.7, 0.25, 1) 80ms both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-copy .edge-mark {
		animation: edge-wipe 480ms cubic-bezier(0.22, 0.7, 0.22, 1) 390ms both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-copy > .lead {
		animation: edge-enter 400ms ease-out 640ms both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-copy > .btn-row {
		animation: edge-enter 320ms ease-out 760ms both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-services > li {
		animation: edge-enter 320ms ease-out 820ms both;
	}

	html:not([data-motion="reduced"]) .work-edge .edge-hero-media img {
		animation: edge-pan 5s ease-out both;
	}
}

@keyframes edge-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes edge-wipe {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

@keyframes edge-pan {
	from {
		transform: translate(0, 0) scale(1);
	}

	to {
		transform: translate(-1.4%, 0.8%) scale(1.08);
	}
}

/* ------------------------------------------------------------ panel tones */
.work-edge .edge-tone-sand {
	background: var(--sand);
}

.work-edge .edge-tone-white {
	background: var(--white);
}

/* ------------------------------------------- copy beside a full-bleed picture */
.work-edge :is(.edge-split, .edge-outcome) {
	container-type: inline-size;
}

.work-edge .edge-split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: stretch;
}

.work-edge .edge-outcome .edge-split-grid {
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.work-edge .edge-split-copy {
	align-self: center;
	padding-block: var(--edge-pad-y);
}

/* A button in the copy ("View the case study") keeps the site's button row spacing. */
.work-edge .edge-split-copy .btn-row {
	margin-top: var(--edge-gap-text);
}

.work-edge .edge-split-copy > :last-child {
	margin-bottom: 0;
}

.work-edge .edge-split--media-first .edge-split-copy {
	padding-inline: var(--edge-gutter) var(--edge-edge);
}

.work-edge .edge-outcome .edge-split-copy {
	padding-inline: var(--edge-edge) var(--edge-gutter);
}

.work-edge .edge-split-media {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.work-edge .edge-split-media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A picture framed tighter than the box (INFINOX's challenge), from a point of its own. */
.work-edge .edge-split-media--zoom > img {
	scale: var(--edge-zoom, 1);
	transform-origin: var(--edge-zoom-origin, center);
}

/* A picture shown whole on a light ground (a storyboard), not cropped. */
.work-edge .edge-split-media--contain {
	background: var(--edge-contain-bg, #e4e4e2);
}

.work-edge .edge-split-media--contain > img {
	object-fit: contain;
}

/* A loop is shown whole, at its own proportions, centred in the panel. */
.work-edge .edge-split--video .edge-split-media {
	display: grid;
	align-items: center;
	min-height: 0;
	overflow: visible;
}

.work-edge .edge-loop {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}

.work-edge .edge-outcome-media figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 40px var(--edge-gutter) 18px;
	background: linear-gradient(transparent, rgba(10, 7, 19, 0.95));
	color: var(--white);
	font-size: var(--fs-card-meta);
}

.work-edge .edge-outcome .section-action {
	margin-top: var(--edge-gap-text);
}

.work-edge .edge-outcome .section-action + .section-action {
	margin-top: 12px;
}

.work-edge .edge-outcome-media figcaption a {
	display: inline-block;
	padding-block: 3px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/* ------------------------------------------------- heading left, copy right */
.work-edge .edge-text {
	padding-block: var(--edge-pad-y);
}

.work-edge .edge-text-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edge-gap-text);
	align-items: center;
}

.work-edge .edge-text-copy {
	max-width: 800px;
}

/* --------------------------------------- an introduction, then the evidence */
.work-edge .edge-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 6vw, 96px);
	align-items: end;
	margin-bottom: var(--edge-gap-block);
}

.work-edge .edge-intro > p {
	max-width: 50ch;
}

.work-edge .edge-context {
	padding-top: var(--edge-pad-y);
	background: var(--edge-accent);
	color: var(--ink);
}

/* The pictures run to the panel's foot, so the introduction's space below is the panel's space above: the same gap at the top and the bottom (Ben, 26 Nov 2026: "top and bottom ... equal"). */
.work-edge .edge-context .edge-intro {
	margin-bottom: var(--edge-pad-y);
}

.work-edge .edge-context .edge-intro {
	align-items: center;
}

.work-edge .edge-context :is(.eyebrow, h2, p, li, strong) {
	color: var(--ink);
}

.work-edge .edge-context .edge-intro p {
	max-width: 50ch;
}

.work-edge .edge-points {
	margin: 0;
	padding-left: 1.25em;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.work-edge .edge-points li + li {
	margin-top: 16px;
}

/* Three pictures share one strip, edge to edge, and end the panel. */
.work-edge .edge-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-edge .edge-strip-item {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--edge-strip-bg);
}

.work-edge .edge-strip-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--edge-pos, center);
}

/* ------------------------------------------------------------------ steps */
.work-edge .edge-steps {
	padding-block: var(--edge-pad-y);
}

.work-edge .edge-step-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.work-edge .edge-step-list li {
	padding-top: 20px;
	font-size: var(--fs-body);
	border-top: 1px solid var(--line);
}

.work-edge .edge-step-list h3 {
	margin: 0;
	font-size: var(--fs-h3);
	/* The site's card-title leading and tracking (the related-work cards' h3): 1.0 and -0.012em. */
	line-height: 1;
	letter-spacing: -0.012em;
	color: var(--ink);
}

/* ------------------------------------------------------------- film cards */
/* The site's panel rule sets 92 above and 100 below at three classes' weight (panel-headings.css); this page takes the same value on both sides, so it is stated at the same weight. */
main .work-edge .edge-video:not(.panel-weight):not(.panel-weight):not(.panel-weight) {
	padding-top: var(--edge-pad-y);
	padding-bottom: var(--edge-pad-y);
	background: var(--edge-accent);
}

.work-edge .edge-video .work-detail-section-head {
	margin-bottom: var(--edge-gap-block);
}

.work-edge .edge-video :is(.eyebrow, h2, .copy) {
	color: var(--ink);
}

.work-edge .edge-video .copy {
	margin: var(--edge-gap-text) 0 0;
}

/* Films that are files (Minitab) are 16:9 cards of their own height. */
.work-edge .edge-video--film .work-video-card {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

/*
 * A film played in place, in a phone frame (Ben, 26 Nov 2026): the title and the film's summary in the left column, the phone in the right with its edge on the content's right edge, so the
 * panel is one phone tall and no more. The frame is an illustration of a device, so its corners are its own and not the site's radius scale.
 */
.work-edge .edge-device-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: var(--edge-gap-text) clamp(32px, 6vw, 96px);
	align-items: center;
}

.work-edge .edge-device-copy .work-detail-section-head {
	margin-bottom: var(--edge-gap-text);
}

.work-edge .edge-device-stage {
	display: flex;
	justify-content: flex-end;
}

.work-edge .edge-phone {
	position: relative;
	width: min(100%, 300px);
	margin: 0;
	padding: 20px 10px 16px;
	background: #101318;
	border: 3px solid #45515c;
	border-radius: 38px;
	box-shadow: 0 18px 36px rgba(23, 35, 45, 0.22);
}

.work-edge .edge-phone-speaker {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 42px;
	height: 4px;
	transform: translateX(-50%);
	background: #40454b;
	border-radius: 4px;
}

.work-edge .edge-phone video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: contain;
	background: #000;
	border-radius: 23px;
}

/* A written summary under each film. */
.work-edge .edge-film-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--edge-gap-text) clamp(16px, 2vw, 32px);
	margin-top: var(--edge-gap-text);
}

.work-edge .edge-film-notes--single {
	grid-template-columns: minmax(0, 760px);
}

.work-edge .edge-film-note h3 {
	margin: 0 0 8px;
	font-size: var(--fs-h3);
	line-height: 1;
	letter-spacing: -0.012em;
	color: var(--ink);
}

.work-edge .edge-film-note p {
	color: var(--ink);
}

/* The pause control for the silent background loop (WCAG 2.2.2: moving content that starts by itself can be paused). */
.work-edge .edge-split--video .edge-split-media {
	position: relative;
}

.work-edge .edge-loop-toggle {
	position: absolute;
	z-index: 2;
	right: 12px;
	bottom: 12px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: var(--r-button);
	background: rgba(17, 17, 17, 0.78);
	color: var(--white);
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow-label);
	font-weight: 800;
	letter-spacing: var(--ls-eyebrow-label);
	text-transform: uppercase;
	cursor: pointer;
}

.work-edge .edge-loop-toggle:is(:hover, :focus-visible) {
	background: var(--white);
	color: var(--ink);
}

/* ------------------------------------------- a design in a scrollable frame */
/* The 369X design (inc/work-edge.php, `prototype`): hosted with the page, so nothing loads from Adobe. The panel takes the page's panel space and the one title-to-content gap. */
.work-edge .edge-prototype {
	padding-block: var(--edge-pad-y);
}

.work-edge .edge-prototype-head {
	margin-bottom: var(--panel-head-gap);
}

.work-edge .edge-prototype-head .eyebrow {
	margin-bottom: var(--panel-eyebrow-gap);
}

.work-edge .edge-prototype-head h2.display-sm {
	margin-bottom: 0;
}

.work-edge .edge-prototype-frame {
	max-width: 1040px;
	margin-inline: auto;
	overflow: hidden;
	background: #17232d;
	border-radius: var(--r-card-sm);
	box-shadow: 0 18px 36px rgba(23, 35, 45, 0.18);
}

.work-edge .edge-prototype-bar {
	display: flex;
	gap: 7px;
	align-items: center;
	height: 34px;
	padding-inline: 14px;
	background: #17232d;
}

.work-edge .edge-prototype-bar i {
	width: 10px;
	height: 10px;
	background: #5b6a76;
	border-radius: 50%;
}

.work-edge .edge-prototype-scroll {
	height: clamp(480px, 72vh, 900px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #0d0a14;
}

.work-edge .edge-prototype-scroll:focus-visible {
	outline: 3px solid var(--edge-accent);
	outline-offset: -3px;
}

.work-edge .edge-prototype-scroll img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------ client quote */
.work-edge .edge-quote {
	padding-block: var(--edge-pad-y);
	background: var(--edge-teal);
}

.work-edge .edge-quote blockquote .edge-mark {
	display: inline;
	padding: 0 0.1em;
	/*
	 * The highlight is one em tall, drawn from the top of the ascenders to the bottom of the descenders (Rethink Sans: ascent 0.985em, descent 0.309em,
	 * ascender 0.70em, descender 0.23em; the 0.85 puts the band's top 0.25em below the inline box's), so on a quote that wraps the bands of two lines
	 * never overlap: the line pitch is 1.04em. A plain background filled the whole 1.29em box and covered the line above.
	 */
	background: linear-gradient(var(--edge-accent), var(--edge-accent)) 0 85% / 100% 1em no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------------------------------------------------------- closing panel */
/* The site's own orange closing panel (components.css `.funnel`), as on every other page; only its space above and below is the page's panel space (Ben, 26 Nov 2026: the orange stays, it livens the page). */
.work-edge .edge-close {
	padding-block: var(--edge-pad-y);
}

/* ----------------------------------------------- hero variants (Delinea, SHI) */
/* The artwork fills the hero and a left-to-right scrim carries the copy, instead of fading in from the right. */
.work-edge--hero-full .edge-hero-media {
	inset: 0;
	mask-image: none;
}

.work-edge--hero-full .edge-hero-media img {
	object-position: 56% center;
}

.work-edge--hero-full .edge-hero::before {
	background:
		linear-gradient(90deg, rgba(13, 8, 23, 0.94), rgba(13, 8, 23, 0.78) 39%, rgba(13, 8, 23, 0.24) 67%, transparent 90%),
		linear-gradient(0deg, rgba(13, 8, 23, 0.56), transparent 57%);
}

.work-edge--hero-full .edge-hero-copy {
	max-width: 640px;
}

/* A page with the shared (opaque) header starts below it. */
.work-edge-solid-header main {
	padding-top: var(--header-h);
}

.work-edge-solid-header .work-edge .edge-hero-grid {
	padding-top: clamp(64px, 8vw, 124px);
}

/* ---------------------------------------------------------------- tablet and down */
@media (min-width: 781px) {
	.work-edge .edge-text-grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: clamp(32px, 6vw, 96px);
	}
}

@media (max-width: 780px) {
	.work-edge .edge-hero {
		min-height: 590px;
	}

	.work-edge .edge-hero::before {
		background:
			linear-gradient(180deg, rgba(18, 13, 32, 0.92), rgba(18, 13, 32, 0.76) var(--header-h), transparent calc(var(--header-h) + 76px)),
			linear-gradient(0deg, var(--edge-night) 0%, rgba(18, 13, 32, 0.82) 38%, transparent 74%);
	}

	.work-edge .edge-hero-media {
		inset: 0 0 auto 12%;
		height: clamp(280px, 55vw, 395px);
		mask-image: linear-gradient(to right, transparent, #000 24%), linear-gradient(to bottom, #000 76%, transparent);
		mask-composite: intersect;
	}

	.work-edge .edge-hero-grid {
		padding-top: calc(var(--header-h) + clamp(185px, 35vw, 260px));
	}

	.work-edge .edge-hero-copy {
		max-width: 640px;
	}

	.work-edge--hero-full .edge-hero::before {
		background: linear-gradient(0deg, rgba(13, 8, 23, 0.96), rgba(13, 8, 23, 0.81) 54%, rgba(13, 8, 23, 0.25) 100%);
	}

	.work-edge--hero-full .edge-hero-media {
		inset: 0;
		height: auto;
		mask-image: none;
	}

	.work-edge--hero-full .edge-hero-grid {
		padding-top: calc(var(--header-h) + 32px);
	}

	.work-edge-solid-header .work-edge .edge-hero-grid {
		padding-top: 72px;
	}

	.work-edge .edge-hero-services {
		letter-spacing: 0.1em;
	}

	.work-edge .edge-split-grid,
	.work-edge .edge-outcome .edge-split-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.work-edge .edge-split-media {
		min-height: clamp(235px, 67vw, 470px);
	}

	.work-edge .edge-split--video .edge-split-media {
		min-height: 0;
	}

	.work-edge .edge-split--media-first .edge-split-copy,
	.work-edge .edge-outcome .edge-split-copy {
		padding-inline: var(--edge-edge);
	}

	.work-edge .edge-outcome-media figcaption {
		padding-inline: var(--edge-edge);
	}
}

@media (max-width: 780px) {
	.work-edge .edge-device-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.work-edge .edge-device-stage {
		justify-content: center;
	}
}

@media (max-width: 760px) {
	.work-edge .edge-intro,
	.work-edge .edge-strip,
	.work-edge .edge-step-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.work-edge .edge-step-list {
		row-gap: 30px;
	}
}

/*
 * Alpine F1 (Ben's preview, 2 Dec 2026): the partnership film sits in a band of the page's night colour, the film edge to edge under it at 2.39:1 with square corners, its title at the
 * content's left edge. The head's text is white on the night tone.
 */
main .work-edge .edge-video--cinema:not(.panel-weight):not(.panel-weight):not(.panel-weight) {
	padding-bottom: 0;
	background: var(--edge-night);
}

.work-edge .edge-video--cinema :is(.eyebrow, h2, .copy) {
	color: var(--white);
}

.work-edge .edge-cinema .work-video-card {
	display: block;
	width: 100%;
	min-height: 0;
	aspect-ratio: 2.39 / 1;
	border-radius: 0;
}

.work-edge .edge-cinema .work-video-meta {
	left: max(var(--pad-x), calc((100% - 1220px) / 2));
	bottom: 32px;
}

@media screen and (max-width: 760px) {
	.work-edge .edge-cinema .work-video-card {
		aspect-ratio: 16 / 10;
	}

	.work-edge .edge-cinema .work-video-meta {
		bottom: 20px;
	}
}

/* A film under the rollout steps (Alpine F1's race-by-race social campaign): a 16:9 card in the content width, its caption under it. */
.work-edge .edge-steps-film {
	margin: clamp(32px, 4vw, 64px) 0 0;
}

.work-edge .edge-steps-film .work-video-card {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.work-edge .edge-steps-film figcaption {
	margin-top: 14px;
}

