/* Inner pages: services, industries, how it works, about, book, legal.
   Builds on precision.css tokens; nothing here restyles the homepage. */

.page {
	position: relative;
}

/* ---------- Page hero ---------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: calc(var(--topbar-h) + clamp(48px, 7vw, 104px)) clamp(48px, 6vw, 88px);
	border-bottom: 1px solid var(--line);
}
.page-hero .backdrop {
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.page-hero-in {
	position: relative;
}
.page-hero-text {
	display: grid;
	justify-items: start;
	gap: 24px;
}
/* Service pages: headline left, system art right. */
.page-hero-in.has-art {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.has-art .page-h1 {
	font-size: clamp(44px, 4.8vw, 76px);
}
@media (max-width: 960px) {
	.page-hero-in.has-art {
		grid-template-columns: 1fr;
	}
	.page-hero-art {
		max-width: 560px;
	}
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-size: 14px;
	color: var(--soft);
}
.crumbs li + li::before {
	content: "/";
	margin-right: 10px;
	color: var(--line-strong);
}
.crumbs a:hover {
	color: var(--text);
}
.crumbs li:last-child a {
	color: var(--muted);
}
.page-h1 {
	max-width: 18ch;
	font-size: clamp(44px, 5.6vw, 88px);
	text-wrap: balance;
}
.page-lede {
	max-width: 52ch;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	color: var(--muted);
}
.page-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.keys {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 760px;
}
.keys li {
	padding: 7px 14px;
	border: 1px solid var(--accent-line);
	border-radius: 999px;
	background: var(--accent-pale);
	color: var(--accent-deep);
	font-size: 14px;
	font-weight: 500;
}

/* ---------- Sections ---------- */

.section {
	padding-block: clamp(64px, 8vw, 120px) 0;
}
/* A page that ends on a section rather than the call-to-action band. */
.wp-block-post-content > .section:last-child {
	padding-bottom: clamp(64px, 8vw, 120px);
}
.section-title {
	font-size: clamp(44px, 5.6vw, 80px);
	text-wrap: balance;
}
.section-title.small {
	font-size: clamp(36px, 4vw, 56px);
	margin-bottom: clamp(24px, 3vw, 40px);
}
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: start;
}
.split-body {
	font-size: clamp(18px, 1.5vw, 20px);
	line-height: 1.65;
	color: var(--muted);
	max-width: 56ch;
}
.lead-copy {
	max-width: 52ch;
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.65;
	color: var(--muted);
}

.points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 5vw, 80px);
}
.points li {
	padding-block: 28px;
	border-top: 1px solid var(--line);
}
.points h3,
.hear h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}
.points p {
	margin-top: 10px;
	max-width: 52ch;
	color: var(--muted);
	line-height: 1.65;
}

/* ---------- Stage strip ---------- */

.stage-strip {
	margin-top: clamp(40px, 5vw, 64px);
}
.stage-strip ol {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
}
.stage-strip li {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 18px 20px 20px;
	border-left: 1px solid var(--line);
}
.stage-strip li:first-child {
	border-left: 0;
}
.stage-strip li.on {
	background: var(--accent-pale);
}
.stage-strip li.on .stage-name {
	color: var(--accent-deep);
}
.stage-n {
	font-size: 12px;
	color: var(--accent-deep);
}
.stage-name {
	font-weight: 600;
}
.stage-svcs {
	display: grid;
	gap: 2px;
	font-size: 14px;
}
.stage-svcs a {
	color: var(--muted);
	padding-block: 2px;
}
.stage-svcs a:hover {
	color: var(--text);
	text-decoration: underline;
}
.stage-svcs a[aria-current="page"] {
	color: var(--accent-deep);
	font-weight: 600;
}

/* ---------- Service cards ---------- */

.svc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}
.svc-cards li {
	display: grid;
}
.svc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 28px 72px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s,
		box-shadow 0.3s,
		transform 0.3s var(--ease);
}
.svc-card:hover {
	border-color: var(--accent-line);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.svc-name {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(30px, 2.6vw, 38px);
	line-height: 0.95;
}
.svc-card p {
	color: var(--muted);
	line-height: 1.6;
}
.svc-go {
	position: absolute;
	left: 28px;
	bottom: 24px;
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accent-pale);
	color: var(--accent-deep);
	transition: transform 0.3s var(--ease);
}
.svc-card:hover .svc-go {
	transform: translateX(4px);
}

.stage-group {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 24px clamp(24px, 4vw, 64px);
	align-items: start;
}
.stage-group + .stage-group {
	margin-top: clamp(40px, 5vw, 72px);
	padding-top: clamp(40px, 5vw, 72px);
	border-top: 1px solid var(--line);
}
.stage-group .stage-head {
	position: sticky;
	top: calc(var(--topbar-h) + 24px);
	margin-bottom: 0;
}
.stage-head {
	margin-bottom: 28px;
}
.stage-head .section-title.small {
	margin-bottom: 0;
}
.stage-head p {
	color: var(--muted);
}

/* ---------- Proof ---------- */

.proof-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.proof-band > :only-child {
	grid-column: 1 / -1;
}
.proof-band > .proof-nums:only-child {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px clamp(24px, 5vw, 80px);
}
.proof-nums {
	display: grid;
	gap: 28px;
}
.proof-nums div {
	display: grid;
	gap: 6px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}
.proof-nums dt {
	font-size: clamp(56px, 6vw, 88px);
	color: var(--accent-text);
}
.proof-nums dd {
	font-size: 17px;
	color: var(--text);
}
.proof-nums dd span {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: var(--soft);
}
.pull-quote {
	padding: clamp(28px, 3vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.pull-quote blockquote p {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1.05;
	text-wrap: pretty;
}
.pull-quote figcaption {
	margin-top: 18px;
	font-size: 15px;
	color: var(--muted);
}
.pull-quote figcaption strong {
	color: var(--text);
}

/* ---------- Industries ---------- */

.hear {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.hear li {
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: 18px;
	line-height: 1.5;
}
.ind-sites {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}
.ind-sites a {
	display: grid;
	gap: 12px;
}
.ind-sites img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.ind-sites strong {
	font-weight: 600;
}
.ind-sites span {
	display: block;
	font-size: 14px;
	color: var(--soft);
}
.ind-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.ind-card {
	display: grid;
	gap: 12px;
	align-content: start;
	min-height: 260px;
	padding: 32px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s,
		box-shadow 0.3s,
		transform 0.3s var(--ease);
}
.ind-card:hover {
	border-color: var(--accent-line);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.ind-card h2 {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(40px, 4vw, 60px);
	line-height: 0.95;
}
.ind-card p {
	color: var(--muted);
	line-height: 1.6;
	max-width: 46ch;
}
.ind-card .ind-go {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent-deep);
}

/* ---------- About ---------- */

.stats {
	display: grid;
	/* Four across unless the row sets its own count (cols-3 on the About page). */
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 20px;
}
.stats div {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}
.stats dt {
	font-size: clamp(56px, 6vw, 88px);
	color: var(--accent-text);
}
.stats dd {
	margin-top: 6px;
	color: var(--muted);
	line-height: 1.5;
}
.vs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
}
.vs > div {
	padding: 28px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
}
.vs .us {
	border-color: var(--accent-edge);
	background: var(--accent-pale);
}
.vs h3 {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	line-height: 1;
	color: var(--text);
}
.vs .us h3 {
	color: var(--accent-deep);
}
.vs ul {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	font-size: 18px;
}
.vs .them li {
	color: var(--soft);
}
.vs .us li {
	font-weight: 600;
}
.team {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 16px;
}
.team li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
}
.team strong {
	display: block;
	font-weight: 600;
}
.team span:not(.avatar) {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--muted);
	line-height: 1.4;
}
.fit-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 5vw, 80px);
}
.fit-list li {
	padding-block: 18px;
	border-top: 1px solid var(--line);
	font-size: 18px;
}
.ratings {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ratings a {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 14px 18px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.2s;
}
.ratings a:hover {
	border-color: var(--accent-edge);
}
.ratings strong {
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	line-height: 1;
}

/* ---------- CTA band ---------- */

.cta-band {
	padding-block: clamp(80px, 10vw, 140px);
}
.cta-band-in {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 64px);
	border-radius: 24px;
	background: radial-gradient(ellipse 60% 70% at 0% 0%, rgb(0 71 171 / 0.45), transparent 70%), #001737;
	color: #fff;
	text-align: center;
}
/* One look in both themes: the navy already stands off the light and the night ground. */
.cta-band-in .btn-primary {
	background: #fff;
	color: #0047ab;
}
.cta-band h2 {
	font-size: clamp(48px, 6.4vw, 96px);
	text-wrap: balance;
}
.cta-band-in > p:not(.cta-band-note) {
	max-width: 52ch;
	font-size: 18px;
	line-height: 1.6;
	color: rgb(255 255 255 / 0.84);
}
.cta-band-note {
	font-size: 14px;
	color: rgb(255 255 255 / 0.64);
}

/* ---------- Book, legal, 404 ---------- */

.book-page .book {
	padding-top: calc(var(--topbar-h) + 48px);
}
/* Contact: intro beside the HubSpot form, which precision.js draws in an iframe
   styled by hs-form.css. */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
.contact-intro {
	position: sticky;
	top: calc(var(--topbar-h) + 32px);
}
.contact-intro .lead-copy {
	margin-top: 20px;
}
.contact-alt {
	margin-top: 20px;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.contact-alt a,
.contact-form-note a {
	color: var(--accent-text);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.contact-form {
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.contact-form iframe {
	display: block;
	width: 100%;
	border: 0;
}
.contact-form-note {
	color: var(--soft);
	font-size: 15px;
}
@media (max-width: 960px) {
	.contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.contact-intro {
		position: static;
	}
}

.legal {
	max-width: 760px;
	padding-block: clamp(48px, 6vw, 88px) clamp(80px, 10vw, 120px);
}
.legal h2 {
	margin-top: 40px;
	font-size: 22px;
	font-weight: 600;
}
.legal p,
.legal li {
	margin-top: 14px;
	color: var(--muted);
	line-height: 1.7;
}
.legal ul {
	padding-left: 20px;
	list-style: disc;
}
.legal a {
	color: var(--accent-deep);
	text-decoration: underline;
}
.legal .updated {
	font-size: 14px;
	color: var(--soft);
}

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

@media (max-width: 960px) {
	.stage-group {
		grid-template-columns: 1fr;
	}
	.stage-group .stage-head {
		position: static;
	}
	.split,
	.proof-band,
	.points,
	.fit-list,
	.vs,
	.ind-cards {
		grid-template-columns: 1fr;
	}
	.stage-strip ol,
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.stage-strip li:nth-child(3) {
		border-left: 0;
	}
	.stage-strip li:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}
	.hear {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.stage-strip ol,
	.stats {
		grid-template-columns: 1fr;
	}
	.stage-strip li {
		border-left: 0;
		border-top: 1px solid var(--line);
	}
	.stage-strip li:first-child {
		border-top: 0;
	}
}

/* ---------- Blog ---------- */

.post-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.post-cards li {
	display: grid;
}
.post-card {
	display: grid;
	gap: 12px;
	align-content: start;
	padding: 32px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s,
		box-shadow 0.3s,
		transform 0.3s var(--ease);
}
.post-card:hover {
	border-color: var(--accent-line);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.post-meta,
.post-byline {
	font-size: 14px;
	color: var(--soft);
}
.post-card h2 {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.05;
	text-wrap: balance;
}
.post-card p {
	color: var(--muted);
	line-height: 1.6;
}
.post-go {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent-deep);
}
.post-byline {
	margin-top: 16px;
	font-size: 15px;
}
/* Post titles run long; size them down from the inner-page display h1. */
.page-hero:has(.post-byline) .page-h1 {
	max-width: 22ch;
	font-size: clamp(40px, 5vw, 76px);
}

/* Long-form post body: one readable column. */
.prose,
.container.prose {
	max-width: calc(52ch + 2 * var(--gutter)); /* ~75 characters of body text */
	font-size: clamp(17px, 1.3vw, 18px);
	line-height: 1.75;
	color: var(--muted);
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose h2,
.prose h3,
.prose h4 {
	color: var(--text);
	line-height: 1.2;
	text-wrap: balance;
}
.prose h2 {
	margin-top: 2em;
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.05;
}
.prose h3 {
	margin-top: 1.6em;
	font-size: 1.3em;
	font-weight: 700;
}
.prose h4 {
	margin-top: 1.6em;
	font-size: 1.1em;
	font-weight: 700;
}
.prose strong {
	color: var(--text);
}
.prose a {
	color: var(--accent-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.prose ul,
.prose ol {
	padding-left: 1.4em;
}
.prose ul {
	list-style: disc;
}
.prose ol {
	list-style: decimal;
}
.prose li + li {
	margin-top: 0.5em;
}
.prose blockquote {
	position: relative;
	margin-block: 1.6em;
	padding-left: 1.4em;
	color: var(--text);
	font-size: 1.2em;
	font-weight: 500;
	line-height: 1.45;
}
.prose blockquote::before {
	content: "\201C";
	position: absolute;
	left: -0.05em;
	top: -0.18em;
	font-family: var(--font-display);
	font-size: 2.4em;
	line-height: 1;
	color: var(--accent-text);
}

@media (max-width: 760px) {
	.post-cards {
		grid-template-columns: 1fr;
	}
	.post-card {
		padding: 24px;
	}
}

/* ---------- Case studies ---------- */

.case-card-line {
	font-weight: 600;
	color: var(--text);
}
.case-next {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin-top: 32px;
}
.case-next a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent-deep);
}

/* Case study template. Text and images alternate: an image of the work beside
   the project, under the steps, and beside the results, with the challenges and
   the results on white bands so the page breaks into visible chapters. */

.case-cover,
.case-fig {
	display: grid;
	gap: 12px;
}
.case-cover img,
.case-fig img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
}
/* Tall screenshots: show the top of the page, not all of it. */
.case-cover img {
	aspect-ratio: 5 / 4;
	object-fit: cover;
	object-position: top;
}
/* Diagrams drawn for a case study are 16:9: show all of them. */
.case-cover.is-wide img {
	aspect-ratio: 16 / 9;
}
.case-side .case-fig img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top;
}
.case-fig.is-bare img {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.case-cover figcaption,
.case-fig figcaption {
	font-size: 14px;
	line-height: 1.5;
	color: var(--soft);
}
.case-band {
	margin-top: clamp(64px, 8vw, 120px);
	padding-block: clamp(64px, 8vw, 120px);
	background: var(--surface);
	border-block: 1px solid var(--line);
}
.case-side {
	display: grid;
	gap: 32px;
	align-content: start;
}
@media (min-width: 961px) {
	.case-side {
		position: sticky;
		top: calc(var(--topbar-h) + 32px);
	}
}

/* Results band at the top, with the project snapshot. */
.case-glance {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
/* The first result is the headline: its own row, larger; the rest share the row below. */
.case-nums {
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 32px clamp(24px, 4vw, 56px);
}
.case-nums dt {
	white-space: nowrap;
}
.case-lead {
	grid-column: 1 / -1;
}
.case-lead dt {
	font-size: clamp(72px, 9vw, 136px);
}
.case-nums div:not(.case-lead) dt {
	font-size: clamp(44px, 4.4vw, 64px);
}
.case-nums-sm {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	margin-top: clamp(32px, 4vw, 48px);
}
.case-nums-sm div:not(.case-lead) dt {
	font-size: clamp(40px, 3.6vw, 52px);
}
.case-facts {
	display: grid;
	gap: 24px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.case-facts dl div {
	display: grid;
	grid-template-columns: 7.5em minmax(0, 1fr);
	gap: 12px;
	padding-block: 12px;
	border-top: 1px solid var(--line);
}
.case-facts dl div:first-child {
	border-top: 0;
	padding-top: 0;
}
.case-facts dt {
	font-size: 14px;
	color: var(--soft);
}
.case-facts dd {
	font-weight: 500;
	line-height: 1.45;
}
.case-services a:hover {
	color: var(--text);
}

/* Quote: a long testimonial leads with its first paragraph; the rest reads as body. */
.case-quote {
	max-width: 980px;
}
.case-quote.is-long blockquote {
	display: grid;
	gap: 14px;
}
.case-quote.is-long blockquote p {
	font-size: clamp(26px, 2.4vw, 34px);
}
.case-quote.is-long blockquote p + p {
	font-family: var(--font-body);
	font-weight: 400;
	letter-spacing: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--muted);
}
.needs-signoff {
	outline: 2px dashed var(--accent-2);
	outline-offset: 6px;
}
.signoff-note {
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--accent-2-ink);
}

/* Copy columns and lists. */
.case-copy {
	display: grid;
	gap: 20px;
}
.case-list {
	margin-top: 8px;
	border-top: 1px solid var(--line);
}
.case-list li {
	padding-block: 14px;
	border-bottom: 1px solid var(--line);
	line-height: 1.5;
}
.case-goals {
	display: grid;
	gap: 32px;
	margin-top: 8px;
}
.case-goals h3 {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 600;
}
/* Secondary goals: the same list, a step down. */
.case-goals > div + div h3 {
	font-size: 16px;
	color: var(--muted);
}
.case-goals > div + div .case-list li {
	padding-block: 10px;
	font-size: 15px;
	color: var(--muted);
}

/* Numbered cards: challenges and steps. */
.case-cards,
.case-steps {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 20px;
	margin-top: clamp(32px, 4vw, 48px);
}
.case-cards > li,
.case-steps > li {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
/* On a white band the cards sit on the page ground instead. */
.case-band .case-cards > li {
	background: var(--bg);
	box-shadow: none;
}
.case-step-n {
	font-size: 12px;
	color: var(--accent-text);
}
.case-card-h,
.case-steps h3 {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}
.case-cards > li > p:not(.case-card-h),
.case-steps > li > p {
	color: var(--muted);
	line-height: 1.65;
}
.case-step-items {
	display: grid;
	gap: 8px;
	padding-left: 1.1em;
	list-style: disc;
	color: var(--muted);
	line-height: 1.55;
}
.case-step-items li::marker {
	color: var(--accent-text);
}
/* The work the steps produced, in one even row. */
.case-shots {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.case-shots img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top;
}

/* Results band: the outcome and what comes next, beside the finished work. */
.case-results.has-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.case-results .section-title.small {
	margin-bottom: 0;
}
.case-after h3:not(.display) {
	margin-top: 12px;
	font-size: 20px;
	font-weight: 600;
}
.case-after .case-copy,
.case-after .lead-copy + .lead-copy {
	margin-top: 0;
}
.case-results .case-after {
	display: grid;
	gap: 12px;
}
.split.case-after {
	margin-top: clamp(48px, 6vw, 88px);
}
.case-more {
	margin-top: clamp(32px, 4vw, 48px);
}

/* Suggested case studies at the foot of the page. */
.case-suggest {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.case-suggest-card {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s,
		box-shadow 0.3s,
		transform 0.3s var(--ease);
}
.case-suggest-card:hover {
	border-color: var(--accent-line);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}
.case-suggest-img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}
.case-suggest-img picture,
.case-suggest-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
/* Text-only cards: the body fills the card and the link sits at the bottom. */
.case-suggest-body:only-child {
	grid-row: 1 / -1;
}
.case-suggest-body {
	display: grid;
	gap: 8px;
	align-content: start;
	grid-template-rows: auto auto auto 1fr;
	padding: 24px;
}
/* The client is the headline; the result sits under a hairline, a step down. */
.case-suggest-name {
	font-size: clamp(34px, 3vw, 44px);
	line-height: 1.05;
	color: var(--text);
}
.case-suggest-line {
	color: var(--soft);
	font-size: 15px;
	line-height: 1.5;
}
.case-suggest-stat {
	display: grid;
	gap: 4px;
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.case-suggest-n {
	font-size: 20px;
	line-height: 1.2;
	color: var(--accent-text);
}
.case-suggest-label {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}
.case-suggest-body .ind-go {
	display: inline-flex;
	align-items: center;
	align-self: end;
	gap: 8px;
	margin-top: 8px;
	font-weight: 600;
	color: var(--accent-deep);
}

@media (max-width: 960px) {
	.case-glance,
	.case-results.has-image {
		grid-template-columns: 1fr;
	}
	.case-cards,
	.case-steps,
	.case-shots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.case-suggest {
		grid-template-columns: 1fr;
		max-width: 520px;
	}
}
@media (max-width: 560px) {
	.case-nums,
	.case-cards,
	.case-steps,
	.case-shots {
		grid-template-columns: 1fr;
	}
	.case-lead dt {
		font-size: clamp(56px, 16vw, 72px);
	}
	.case-facts {
		padding: 22px;
	}
}
