/* ==========================================================================
   Services — Chapters 02–07: shared styles ("The Unfolding Business")
   Markup: sections/partials/service-chapter.php
   One reading order everywhere: number, label, heading, intro, artwork,
   service groups, scope note, CTA. This file sets the shared typography,
   spacing and the stacked layout used below 1024px. Each chapter's own
   file (services-<slug>.css) arranges the same parts on desktop.
   ========================================================================== */

.el-ch {
	--el-ch-bg: #fff;
	position: relative;
	padding-block: clamp(4.5rem, 8vw, 7rem);
	background-color: var(--el-ch-bg);
	color: var(--el-ink, #070816);
	overflow-x: clip;
}

.el-ch p,
.el-ch h2,
.el-ch h3,
.el-ch ul,
.el-ch figure {
	margin: 0;
}

.el-ch__wrap {
	max-width: var(--el-wide, 1240px);
	margin: 0 auto;
	padding-inline: var(--el-gutter, 1.25rem);
	box-sizing: content-box;
}

/* ---------- Heading block ---------- */

.el-ch__num {
	margin-bottom: 1.25rem !important;
	color: transparent;
	font-size: clamp(5rem, 8.5vw, 8rem);
	font-weight: 800;
	line-height: 0.74;
	letter-spacing: -0.07em;
	-webkit-text-stroke: 1.5px var(--el-ink, #070816);
	user-select: none;
}

.el-ch__label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--el-muted, #555a6b);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.el-ch__label span {
	width: 28px;
	height: 2px;
	background-color: var(--el-ink, #070816);
}

.el-ch__title {
	margin-top: 1rem !important;
	font-size: clamp(2.25rem, 4.2vw, 3.75rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.el-ch__intro {
	max-width: 28rem;
	margin-top: 1.25rem !important;
	font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Artwork: 4:3 by default, edges blend into the section ---------- */

.el-ch__art {
	position: relative;
	margin-top: 2rem !important;
	aspect-ratio: 1448 / 1086;
	background-color: var(--el-ch-bg);
}

.el-ch__art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.el-ch__art::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 36px 22px var(--el-ch-bg);
}

/* ---------- Service groups ---------- */

.el-ch__body {
	margin-top: 2rem;
}

.el-ch__kicker {
	margin-bottom: 1rem !important;
	color: var(--el-muted, #555a6b);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.el-ch__cluster-title {
	margin: 1.5rem 0 0.75rem !important;
	color: var(--el-blue, #003dfa);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.el-ch__cluster:first-of-type .el-ch__cluster-title {
	margin-top: 0 !important;
}

.el-ch__groups {
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--el-ink, #070816);
}

.el-ch__group {
	display: grid;
	grid-template-columns: 2.125rem minmax(0, 1fr);
	padding: 1rem 0;
	border-bottom: 1px solid var(--el-line, #e6e8ed);
}

.el-ch__gnum {
	grid-row: span 2;
	padding-top: 0.25rem;
	color: #6b7080;
	font-size: 0.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.el-ch__gtitle {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.el-ch__gtext {
	margin-top: 0.375rem !important;
	color: #3d4150;
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* ---------- Scope note and CTA ---------- */

.el-ch__close {
	margin-top: 1.5rem;
}

.el-ch__note {
	max-width: 36rem;
	color: var(--el-muted, #555a6b);
	font-size: 0.9375rem;
	font-style: italic;
	font-weight: 700;
	line-height: 1.5;
}

.el-ch__actions {
	margin-top: 1.375rem;
}

/* Ink CTA; magnetic movement comes from the site-wide script */
.el-ch__actions .wp-block-button__link,
.el-ch__actions .wp-block-button__link:hover {
	background-color: var(--el-ink, #070816);
	color: #fff;
}

.el-ch__actions .wp-block-button__link:focus-visible {
	outline: 2px solid var(--el-blue, #003dfa);
	outline-offset: 3px;
}

@media (max-width: 1023px) {
	.el-ch__art {
		margin-inline: calc(-1 * var(--el-gutter, 1.25rem));
	}
}

@media (max-width: 600px) {
	.el-ch__actions .wp-block-button,
	.el-ch__actions .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* ---------- Desktop: shared rhythm ---------- */

@media (min-width: 1024px) {
	.el-ch__wrap {
		display: grid;
		column-gap: clamp(3rem, 5vw, 5rem);
	}

	.el-ch__head {
		grid-area: head;
	}

	.el-ch__art {
		grid-area: art;
		margin-top: 0 !important;
	}

	.el-ch__body {
		grid-area: body;
	}

	.el-ch__close {
		grid-area: close;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1.5rem;
		margin-top: 2.75rem;
		padding-top: 1.75rem;
		border-top: 1px solid var(--el-line, #e6e8ed);
	}

	.el-ch__actions {
		flex: none;
		margin-top: 0;
	}
}
