/* ===========================================================================
   About — the editorial composition (page-about.php, loaded only there)

   The body's sections are the shared components (Text Section, Reasons,
   Final CTA); this sheet only composes them for this page. Every section
   shares one axis — its label or heading in the left column, its copy in the
   right — so the eye follows a single edge down the page. The close is one
   cobalt field from the call to action through the footer.
   =========================================================================== */

.page-template-page-about {
	--about-split: minmax(0, 5fr) minmax(0, 7fr);
	--about-gap: clamp(2rem, 4vw, 5rem);
	--about-measure: 40ch;
	--about-heading: clamp(2.25rem, 1.5rem + 2.6vw, 4rem);
	--about-copy: clamp(1.125rem, 0.98rem + 0.55vw, 1.375rem);
	--about-lead: clamp(1.5rem, 1.05rem + 1.6vw, 2.5rem);
}

/* ---- 1 Hero: the same head; its copy given a measure and a size that
   answers the headline rather than reading as a caption. */
.page-template-page-about .text-page__copy {
	max-width: 40ch;
	font-size: var(--about-copy);
	line-height: 1.5;
}

.page-template-page-about .text-page__copy p + p {
	margin-top: 0.85em;
}

/* ---- The body is the one frame. The components inside it each carry a
   frame of their own for use elsewhere; here they give it up. */
.page-template-page-about .text-page__body {
	padding-block: 0;
}

.page-template-page-about .text-page__body .flex-block,
.page-template-page-about .text-page__body .reasons > .container,
.page-template-page-about .text-page__body .reasons__closing,
.page-template-page-about .text-page__body .final-cta > .container {
	padding-inline: 0;
}

/* Rhythm: every section opens on a rule, after the same space. */
.page-template-page-about .text-page__body .flex-block,
.page-template-page-about .text-page__body .reasons {
	padding-block: var(--space-xl);
	border-top: 1px solid var(--color-line);
}

/* ---- 2 Positioning: the two labelled rows read as one section. */
.page-template-page-about .text-page__block,
.page-template-page-about .text-page__block + .text-page__block {
	margin: 0;
	padding-block: var(--space-lg);
	border-top: 1px solid var(--color-line);
}

.page-template-page-about .flex-stack > .text-page__block:first-child {
	margin-top: var(--space-xl);
}

.page-template-page-about .flex-stack > .text-page__block:has(+ :not(.text-page__block)) {
	padding-bottom: var(--space-xl);
}

.page-template-page-about .text-page__block-label {
	margin: 0;
	color: var(--color-fg-dim);
}

.page-template-page-about .text-page__block-copy {
	max-width: var(--about-measure);
	font-size: var(--about-copy);
	line-height: 1.5;
	color: var(--color-fg);
}

/* ---- Section headings: the site's statement voice, at one size. */
.page-template-page-about .flex-block__heading,
.page-template-page-about .reasons__heading {
	max-width: 15ch;
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--about-heading);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--color-fg);
	text-wrap: balance;
}

/* ---- 3 Our story and 5 Quality: a heading and a short text column. */
.page-template-page-about .flex-block__body {
	max-width: var(--about-measure);
	font-size: var(--about-copy);
	line-height: 1.55;
	color: var(--color-fg-dim);
}

.page-template-page-about .flex-block__body p + p {
	margin-top: 1em;
}

/* Quality (the section before the close): its first sentence is the
   position, so it is set as the lead and the method follows in body type. */
.page-template-page-about .flex-block:has(+ .final-cta) .flex-block__body p:first-child {
	max-width: 22ch;
	margin-bottom: 0.5em;
	font-family: var(--font-display);
	font-size: var(--about-lead);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--color-fg);
}

/* ---- 4 Production capabilities: three disciplines in a ruled row rather
   than panels; the volume line sums them up in the selection blue. */
.page-template-page-about .reasons__copy {
	max-width: var(--about-measure);
	margin: 0;
	font-size: var(--about-copy);
	line-height: 1.5;
}

.page-template-page-about .reasons__grid {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-md);
	margin-top: var(--space-xl);
}

.page-template-page-about .reasons__item,
.page-template-page-about .reasons__item:nth-child(n) {
	padding: var(--space-sm) 0 0;
	background: none;
	border-top: 2px solid var(--color-fg);
}

.page-template-page-about .reasons__item-heading {
	max-width: 22ch;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	line-height: 1.08;
	text-wrap: balance;
}

.page-template-page-about .reasons__item-desc {
	max-width: 36ch;
	margin-top: 0.75rem;
	font-size: var(--size-body);
	line-height: 1.55;
}

.page-template-page-about .reasons__closing {
	margin-top: var(--space-xl);
	padding-block: 0;
	border: 0;
	text-align: left;
}

.page-template-page-about .reasons__closing .statement-line {
	display: block;
	max-width: 30ch;
	font-size: var(--about-lead);
	line-height: 1.12;
	text-wrap: balance;
}

/* ---- 6 Closing: the Final CTA runs edge to edge on near-black; the cobalt
   parent line below joins the footer. Was: the Final CTA runs edge to edge in cobalt and meets the
   footer; the parent line ends that field in the spec voice. */
.page-template-page-about .text-page__body .final-cta {
	position: relative;
	border-top: 0;
	/* The same near-black as every final CTA (direction-c.css). */
	box-shadow: 0 0 0 100vmax var(--cta-ground, #121318);
	clip-path: inset(0 -100vmax);
}

.page-template-page-about .final-cta__heading {
	max-width: 15ch;
	text-wrap: balance;
}

.page-template-page-about .final-cta__copy {
	max-width: 36ch;
	margin-top: var(--space-sm);
}

.page-template-page-about .final-cta__actions {
	margin-top: var(--space-md);
}

.page-template-page-about .text-page__closing--line {
	padding-block: 0 var(--head);
	border: 0;
	background: var(--color-blue);
	box-shadow: 0 0 0 100vmax var(--color-blue);
	clip-path: inset(0 -100vmax);
}

.page-template-page-about .text-page__closing--line .text-page__parent {
	margin: 0;
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	font-family: var(--font-mono);
	font-size: var(--size-micro);
	color: var(--color-blue-soft);
}

/* ---- From 900px: the shared axis. */
@media (min-width: 900px) {
	.page-template-page-about .text-page__block,
	.page-template-page-about .text-page__block + .text-page__block,
	.page-template-page-about .text-page__body .flex-block,
	.page-template-page-about .reasons__intro {
		display: grid;
		grid-template-columns: var(--about-split);
		gap: var(--about-gap);
		align-items: start;
	}

	.page-template-page-about .text-page__block-label {
		padding-top: 0.45em;
	}

	.page-template-page-about .flex-block__body,
	.page-template-page-about .reasons__copy {
		padding-top: 0.35em;
	}

	.page-template-page-about .reasons__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--about-gap);
	}

	/* The volume line sits on the copy column, under the row it sums up. */
	.page-template-page-about .reasons__closing {
		display: grid;
		grid-template-columns: var(--about-split);
		column-gap: var(--about-gap);
	}

	.page-template-page-about .reasons__closing > * {
		grid-column: 2;
	}
}

/* Below 900px each heading leads and its copy follows. */
@media (max-width: 899px) {
	.page-template-page-about .flex-block__heading,
	.page-template-page-about .reasons__heading {
		margin-bottom: var(--space-sm);
	}

	.page-template-page-about .text-page__block-label {
		margin-bottom: 0.75rem;
	}
}

/* The CTA's focus ring. Direction B's `.final-cta a:focus-visible` sets it to
   the accent contrast, which in Direction C is the deep blue: about 1.4:1 on
   cobalt. White, as Direction C intends for every focus on cobalt. */
.page-template-page-about .final-cta a:focus-visible {
	outline-color: #ffffff;
}
