/**
 * client-detail.css — the /clients/<slug>/ client-detail layout.
 *
 * Loaded by ALL client detail pages via the `styles:` cascade in
 * src/clients/clients.json (directory data file). Every .md file
 * under src/clients/ inherits this CSS plus _partials/case-study-
 * overlay.css automatically — no per-file frontmatter needed.
 *
 * Seven sections, mirroring the case-study-detail (#40) cadence:
 * client info bar, blurb, years/scope, related case studies (via
 * `fwCard` filter), industry/tech rollup, CTA banner.
 *
 * Class prefix: `innov8-cd-` (client-detail, mirrors `innov8-cs-`
 * convention for case-study-detail).
 *
 * Extracted from src/assets/css/app.css CLIENT DETAIL section as
 * part of #147 PR 3 — CSS file split: complex pages. Content byte-
 * for-byte preserved.
 */

/* ─────────────────────────────────────────────────────────────────────
	CLIENT DETAIL
	─────────────────────────────────────────────────────────────────────
	The `/clients/<slug>/` long-form per-client page. Markup in
	`src/_includes/layouts/client.njk`. Composed by every `.md` file
	under `src/clients/` via the directory data file (`clients.json`).

	Seven sections, mirroring the case-study-detail (#40) cadence:

		1. Hero            — breadcrumb + h1 + optional blurb
		2. Big logo strip  — full-bleed logo display
		3. Meta strip      — industry / relationship / engagements / external
		4. Two-column overview — scope (chips) + quote (pull-quote card)
		5. Markdown body   — optional, renders only if content present
		6. Related case studies — pulled from case_study_keys array
		7. CTA banner      — inline conversion prompt

	Sections requiring Sprint 4 frontmatter (blurb, years, scope,
	quote, tone, body) wrap in `{% if %}` guards — they render
	nothing until the data lands, no further markup work needed.

	Class prefix: `innov8-cd-` (client-detail, mirrors `innov8-cs-`
	for case-study).
	───────────────────────────────────────────────────────────────────── */

@layer components {
	.innov8-cd {
		position: relative;
		color: var(--fg-primary);
	}

	/* ─── 1. Hero ───────────────────────────────────────────────────── */
	/* Top padding floors at 120px so the eyebrow clears the floating
		 glass-pill nav (position: fixed; top: 28px; height: ~70px). */
	.innov8-cd-hero {
		position: relative;
		padding: clamp(120px, 11vw, 160px) 0 clamp(40px, 5vw, 64px);
		background:
			radial-gradient(80% 60% at 20% 0%, rgba(31, 86, 245, 0.16), transparent 60%),
			radial-gradient(60% 50% at 90% 20%, rgba(95, 236, 253, 0.08), transparent 60%), var(--color-ink-1000);
	}

	.innov8-cd-hero-inner {
		max-width: 1240px;
		margin: 0 auto;
		padding: 0 32px;
	}

	.innov8-cd-breadcrumb {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-bottom: clamp(20px, 2.4vw, 32px);
		font-family: var(--font-mono);
		font-size: var(--text-overline);
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--fg-tertiary);
	}

	.innov8-cd-breadcrumb-link {
		color: var(--fg-tertiary);
		text-decoration: none;
		transition: color var(--duration-base) var(--ease-out);
	}

	.innov8-cd-breadcrumb-link:hover,
	.innov8-cd-breadcrumb-link:focus-visible {
		color: var(--accent-spark);
		outline: none;
	}

	.innov8-cd-breadcrumb-sep {
		color: var(--fg-muted);
	}

	.innov8-cd-breadcrumb-current {
		color: var(--accent-spark);
	}

	.innov8-cd-title {
		margin: 0;
		max-width: 18ch;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: var(--text-h1);
		line-height: var(--leading-tight);
		letter-spacing: var(--tracking-snug);
		color: var(--fg-primary);
		text-transform: uppercase;
		text-wrap: balance;
	}

	.innov8-cd-lead {
		margin: clamp(20px, 2.4vw, 28px) 0 0;
		max-width: 64ch;
		font-family: var(--font-sans);
		font-size: var(--text-body-lg);
		line-height: var(--leading-base);
		color: var(--fg-secondary);
		text-wrap: pretty;
	}

	/* ─── 2. Metadata strip ───────────────────────────────────────────
	The client logo lives INSIDE this strip as the first column on
	the left when `logo:` frontmatter exists (see `.innov8-cd-meta-
	col--logo` below). The pre-#122 layout rendered the logo as a
	standalone section above the meta strip — that double-rendered
	the brand-mark on the same page and ate ~80-120px of vertical
	real estate before the narrative started. Folding it in honors
	DRY + reclaims the scroll. */
	.innov8-cd-meta-strip {
		padding: clamp(24px, 3vw, 36px) 0;
		background: var(--color-ink-950);
		border-bottom: 1px solid var(--border-subtle);
	}

	.innov8-cd-meta-strip-inner {
		display: flex;
		flex-wrap: wrap;
		gap: clamp(20px, 3vw, 40px);
	}

	.innov8-cd-meta-cols {
		display: flex;
		flex-wrap: wrap;
		gap: clamp(20px, 3vw, 40px);
		width: 100%;
	}

	.innov8-cd-meta-col {
		display: flex;
		flex-direction: column;
		gap: 6px;
		min-width: 0;
	}

	/* Logo column variant — overrides the label+value stack with a
		single centered logo image. Honest aspect ratios: width is
		auto-driven by the max-height cap (28px small / 32px desktop
		via the clamp). Honda's wide wordmark renders wider than EA's
		square mark; both stay within the same visual row height as
		the other meta cols so the strip reads as a single tidy
		metadata row.

		`padding-right` adds a touch of breathing room between the
		logo and the next meta col (Industry) without resorting to
		tweaking the parent's `gap:` (which would propagate to every
		col-pair, not just the logo→Industry seam). */
	.innov8-cd-meta-col--logo {
		flex-direction: row;
		align-items: center;
		padding-right: clamp(4px, 0.6vw, 12px);
	}

	.innov8-cd-meta-logo {
		display: block;
		max-height: clamp(28px, 3vw, 39px);
		max-width: 180px;
		width: auto;
		height: auto;
		object-fit: contain;
		/* Cyan-spark drop-shadow halo retained from the prior logo-
			strip style — a soft brand-accent glow around the wordmark
			so the logo doesn't read as a flat sticker. */
		filter: drop-shadow(0 0 14px rgba(95, 236, 253, 0.28));
	}

	.innov8-cd-meta-label {
		font-family: var(--font-mono);
		font-size: var(--text-overline);
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--fg-tertiary);
	}

	.innov8-cd-meta-value {
		font-family: var(--font-sans);
		font-size: var(--text-body-lg);
		font-weight: 500;
		color: var(--fg-primary);
	}

	.innov8-cd-meta-accent {
		color: var(--accent-spark);
	}

	.innov8-cd-meta-link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-family: var(--font-sans);
		font-size: var(--text-body-lg);
		font-weight: 500;
		color: var(--accent-spark);
		text-decoration: none;
		transition: gap var(--duration-base) var(--ease-out);
	}

	.innov8-cd-meta-link:hover,
	.innov8-cd-meta-link:focus-visible {
		gap: 10px;
		outline: none;
	}

	/* ─── 4. Two-column overview (scope + quote) ────────────────────── */
	.innov8-cd-overview {
		padding: clamp(56px, 7vw, 96px) 0;
		background: var(--color-ink-1000);
	}

	.innov8-cd-overview-grid {
		display: grid;
		gap: clamp(32px, 4vw, 56px);
		grid-template-columns: 1fr;
		align-items: start;
	}

	@media (min-width: 880px) {
		.innov8-cd-overview-grid {
			grid-template-columns: 1.1fr 1fr;
		}
	}

	.innov8-cd-eyebrow {
		margin-bottom: 18px;
	}

	.innov8-cd-overview-title {
		margin: 0 0 24px;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: clamp(28px, 3.4vw, 44px);
		line-height: 1.1;
		letter-spacing: var(--tracking-snug);
		color: var(--fg-primary);
		text-transform: uppercase;
		text-wrap: balance;
	}

	.innov8-cd-overview-accent {
		color: var(--accent-spark);
	}

	.innov8-cd-scope-chips {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.innov8-cd-scope-chip {
		display: inline-flex;
		align-items: center;
		padding: 8px 14px;
		border-radius: var(--radius-sm);
		background: rgba(95, 236, 253, 0.06);
		border: 1px solid rgba(95, 236, 253, 0.25);
		font-family: var(--font-mono);
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 0.04em;
		color: var(--accent-spark);
	}

	.innov8-cd-quote-figure {
		margin: 0;
	}

	.innov8-cd-quote {
		position: relative;
		margin: 0;
		padding: 32px 28px 32px 56px;
		background: rgba(95, 236, 253, 0.06);
		border: 1px solid rgba(95, 236, 253, 0.25);
		border-radius: var(--radius-lg);
		font-family: var(--font-display);
		font-weight: 500;
		font-size: 22px;
		line-height: 1.4;
		letter-spacing: 0.005em;
		color: var(--fg-primary);
		text-wrap: balance;
	}

	.innov8-cd-quote p {
		margin: 0;
	}

	.innov8-cd-quote-mark {
		position: absolute;
		top: 12px;
		left: 18px;
		font-family: Georgia, serif;
		font-size: 56px;
		line-height: 1;
		color: var(--accent-spark);
		opacity: 0.4;
	}

	.innov8-cd-quote-attribution {
		margin: 12px 0 0;
		font-family: var(--font-mono);
		font-size: var(--text-body-sm);
		letter-spacing: 0.04em;
		color: var(--fg-tertiary);
	}

	/* ─── 5. Markdown body ──────────────────────────────────────────── */
	.innov8-cd-body-section {
		padding: clamp(48px, 6vw, 80px) 0;
		background: var(--color-ink-1000);
	}

	.innov8-cd-main {
		max-width: 72ch;
		font-family: var(--font-sans);
		font-size: var(--text-body-lg);
		line-height: var(--leading-loose);
		color: var(--fg-secondary);
	}

	.innov8-cd-main > * + * {
		margin-top: 1.25em;
	}

	.innov8-cd-main h2,
	.innov8-cd-main h3 {
		font-family: var(--font-display);
		font-weight: 700;
		color: var(--fg-primary);
		letter-spacing: var(--tracking-snug);
		text-transform: uppercase;
	}

	.innov8-cd-main a:not(.heading-anchor) {
		color: var(--accent-spark);
		text-decoration: underline;
		text-decoration-color: rgba(95, 236, 253, 0.4);
		text-underline-offset: 3px;
	}

	/* ─── 6. Related case studies grid ──────────────────────────────── */
	.innov8-cd-related {
		padding: clamp(56px, 7vw, 96px) 0 0;
		background: var(--color-ink-1000);
	}

	.innov8-cd-related-header {
		margin-bottom: clamp(28px, 3.6vw, 48px);
	}

	.innov8-cd-related-title {
		margin: 14px 0 0;
		max-width: 24ch;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: clamp(28px, 3.2vw, 40px);
		line-height: var(--leading-snug);
		letter-spacing: var(--tracking-snug);
		color: var(--fg-primary);
		text-transform: uppercase;
		text-wrap: balance;
	}

	.innov8-cd-related-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
	}

	@media (min-width: 640px) {
		.innov8-cd-related-grid {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	@media (min-width: 1024px) {
		.innov8-cd-related-grid {
			grid-template-columns: repeat(3, 1fr);
		}
	}

	/* ─── 7. CTA banner ─────────────────────────────────────────────── */
	.innov8-cd-cta {
		padding: clamp(56px, 7vw, 88px) 0;
		background:
			radial-gradient(60% 80% at 0% 50%, rgba(31, 86, 245, 0.18), transparent 60%),
			radial-gradient(60% 80% at 100% 50%, rgba(95, 236, 253, 0.12), transparent 60%), var(--color-ink-950);
		border-top: 1px solid var(--border-subtle);
		margin-top: clamp(56px, 7vw, 96px);
	}

	.innov8-cd-cta-inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: clamp(24px, 3vw, 40px);
	}

	.innov8-cd-cta-text {
		flex: 1 1 360px;
		min-width: 0;
	}

	.innov8-cd-cta-title {
		margin: 0 0 12px;
		max-width: 24ch;
		font-family: var(--font-display);
		font-weight: 700;
		font-size: clamp(28px, 3.2vw, 40px);
		line-height: var(--leading-snug);
		letter-spacing: var(--tracking-snug);
		color: var(--fg-primary);
		text-transform: uppercase;
		text-wrap: balance;
	}

	.innov8-cd-cta-lead {
		margin: 0;
		max-width: 56ch;
		font-family: var(--font-sans);
		font-size: var(--text-body-lg);
		line-height: var(--leading-base);
		color: var(--fg-secondary);
		text-wrap: pretty;
	}

	/* .innov8-cd-cta-button removed by #124 — consolidated into the global
		.innov8-cta-pill primitive. The client-detail layout's CTA button
		in src/_includes/layouts/client.njk now uses the primitive class
		directly. The .innov8-cd-meta-link reduced-motion rule (sibling
		selector in the pre-#124 @media block) preserved below. */

	@media (prefers-reduced-motion: reduce) {
		.innov8-cd-meta-link,
		.innov8-cd-meta-link:hover {
			transition: none;
			gap: 10px;
		}
	}
}
