/*
 * GPIPL About and Certifications (Phase 8). Loaded only on those pages, in the "pages" layer.
 *
 * Visual role: company credibility. Distinct from products (datasheet), solutions (dark
 * capability) and industries (light application): a light hero with a dark instrument-panel
 * readout of the verified trust facts, a lifecycle track, a ledger of reasons, text-only
 * certificates (no logos).
 */
@layer pages {
	/* ============================================================ Hero + readout panel */
	.about-hero { padding-block: var(--space-m) var(--section-pad); border-bottom: var(--border); }
	.about-hero .breadcrumbs { margin-bottom: var(--space-xl); }
	.about-hero--compact { padding-bottom: var(--space-xl); }
	.about-hero__grid { display: grid; gap: var(--space-xl); align-items: center; }
	@media (min-width: 64em) {
		.about-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-3xl); }
	}
	.about-hero__title { font-size: var(--step-6); max-width: 14ch; }
	@media (max-width: 29.99em) {
		.about-hero__title { font-size: var(--step-5); }
	}
	.about-hero__lead { margin-top: var(--space-m); max-width: 50ch; font-size: var(--step-1); line-height: var(--lh-snug); color: var(--color-text-muted); }
	.about-hero__actions { margin-top: var(--space-l); }

	.about-readout {
		display: grid;
		gap: var(--space-l);
		padding: var(--space-l) var(--space-l) var(--space-m);
		border-radius: var(--radius-m);
	}
	.about-readout__list { margin: 0; }
	.about-readout__row {
		display: grid;
		grid-template-columns: max-content minmax(0, 1fr); /* value column fits its longest value */
		gap: var(--space-s);
		align-items: baseline;
		padding-block: var(--space-s);
		border-bottom: var(--border);
	}
	.about-readout__row:first-child { padding-top: 0; }
	.about-readout__value {
		font-size: var(--step-3);
		font-weight: var(--wght-semibold);
		font-stretch: var(--wdth-display);
		letter-spacing: var(--tracking-heading);
		line-height: 1.1;
		white-space: nowrap; /* readout values never break (e.g. "After-sales") */
		color: var(--color-heading);
	}
	.about-readout__label { margin: 0; color: var(--color-text-muted); line-height: var(--lh-snug); }
	@media (max-width: 29.99em) {
		.about-readout__row { grid-template-columns: 1fr; gap: 0.15rem; }
	}
	.about-readout .spectral-band { --band-height: 1.75rem; }

	/* ============================================================ On this page */
	.about-toc { border-bottom: var(--border); }
	.about-toc__list { display: flex; flex-wrap: wrap; gap: 0 var(--space-l); margin: 0; padding: 0; }
	.about-toc__list a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--color-text-muted); font-size: var(--step--1); font-weight: var(--wght-medium); text-decoration: none; }
	.about-toc__list a:hover { color: var(--color-link); text-decoration: underline; }

	/* ============================================================ Sections */
	.about-section { scroll-margin-top: 6rem; }
	.about-section__title { font-size: var(--step-4); }
	.about-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-l); }
	.about-section__link { display: inline-flex; align-items: center; min-height: var(--tap); }
	.about-section__intro { margin-top: var(--space-s); max-width: var(--measure-narrow); color: var(--color-text-muted); font-size: var(--step-1); line-height: var(--lh-snug); }
	.about-section .container > .about-section__title + :not(.about-section__intro),
	.about-section .container > .about-section__head + *,
	.about-section .container > .about-section__intro + * { margin-top: var(--space-xl); }

	/* Story: heading in its own column like a company profile. */
	.about-story__grid { display: grid; gap: var(--space-m); }
	@media (min-width: 64em) {
		.about-story__grid { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
		.about-story__grid:has(.about-story__media) { grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 20rem); }
	}
	.about-story .about-section__title { font-size: var(--step-3); }
	/* The story grid spaces its own children; cancel the generic "space after a title" rule here. */
	.about-section .container.about-story__grid > .about-section__title + * { margin-top: 0; }
	.about-story__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m); }
	.about-story__media img { width: 100%; height: 100%; object-fit: cover; }

	/* ============================================================ Lifecycle track
	   Ordered: these are the stages GPIPL covers, in sequence. Desktop: horizontal track with a
	   node per stage; small screens: vertical track. The line draws once when first visible. */
	.about-lifecycle {
		position: relative;
		display: grid;
		gap: 0;
		margin: 0;
		padding: 0;
		counter-reset: stage;
	}
	.about-lifecycle::before {
		content: "";
		position: absolute;
		left: 5px;
		top: 0.5rem;
		bottom: 0.5rem;
		width: 2px;
		background: var(--color-accent);
		transform-origin: top;
		transition: transform var(--dur-draw) var(--ease-out);
	}
	.about-lifecycle.is-armed:not(.is-revealed)::before { transform: scaleY(0); }
	.about-lifecycle__stage {
		position: relative;
		display: grid;
		gap: 0.2rem;
		padding: 0 0 var(--space-l) var(--space-xl);
	}
	.about-lifecycle__stage::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.35rem;
		width: 12px;
		height: 12px;
		border-radius: 50%;
		background: var(--color-bg);
		border: 2px solid var(--color-accent);
	}
	.about-lifecycle__index { font-size: var(--step--1); font-stretch: var(--wdth-data); font-variant-numeric: tabular-nums; color: var(--color-accent-strong); }
	.about-lifecycle__title { font-size: var(--step-1); overflow-wrap: normal; }
	.about-lifecycle__text { color: var(--color-text-muted); font-size: var(--step--1); max-width: 32ch; }

	@media (min-width: 64em) {
		.about-lifecycle { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
		.about-lifecycle::before {
			left: 0;
			right: 0;
			top: 5px;
			bottom: auto;
			width: auto;
			height: 2px;
			transform-origin: left;
		}
		.about-lifecycle.is-armed:not(.is-revealed)::before { transform: scaleX(0); }
		.about-lifecycle__stage { padding: var(--space-l) var(--space-s) 0 0; }
		.about-lifecycle__stage::before { top: 0; }
	}

	/* ============================================================ Ledger (reasons) */
	.about-ledger { margin: 0; border-top: 2px solid var(--color-text); max-width: 64rem; }
	.about-ledger__row {
		display: grid;
		gap: 0.25rem var(--space-xl);
		padding-block: var(--space-m);
		border-bottom: var(--border);
	}
	@media (min-width: 48em) {
		.about-ledger__row { grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); }
	}
	.about-ledger__term { font-size: var(--step-1); font-weight: var(--wght-semibold); font-stretch: 106%; line-height: var(--lh-snug); color: var(--color-heading); }
	.about-ledger__desc { margin: 0; color: var(--color-text-muted); max-width: 60ch; }

	/* ============================================================ Certificates (text only) */
	.about-certs {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
		gap: var(--space-s);
		margin: 0;
		padding: 0;
	}
	.about-cert {
		display: grid;
		align-content: start;
		gap: var(--space-2xs);
		padding: var(--space-l);
		border: var(--border);
		border-top: 3px solid var(--color-accent);
		border-radius: var(--radius-m);
		background: var(--color-bg);
	}
	.about-cert__icon { color: var(--color-accent); margin-bottom: var(--space-2xs); }
	.about-cert__name { font-size: var(--step-2); font-stretch: var(--wdth-display); font-variant-numeric: tabular-nums; }
	.about-cert__scope { color: var(--color-text-muted); }
	.about-cert__file {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2xs);
		min-height: var(--tap);
		margin-top: var(--space-2xs);
		color: var(--color-link);
		font-weight: var(--wght-medium);
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
	.about-cert__file > span { display: inline-flex; flex-wrap: wrap; gap: 0 0.4em; }
	.about-cert__meta { color: var(--color-text-muted); font-weight: var(--wght-body); text-decoration: none; }

	/* ============================================================ Testimonials */
	.about-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--space-l); margin: 0; padding: 0; }
	.about-quote { margin: 0; padding-left: var(--space-m); border-left: 2px solid var(--color-accent); display: grid; gap: var(--space-s); }
	.about-quote__text { margin: 0; font-size: var(--step-1); line-height: var(--lh-snug); }
	.about-quote__by { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
	.about-quote__by strong { color: var(--color-text); }

	@media (forced-colors: active) {
		.about-lifecycle::before { background: CanvasText; forced-color-adjust: none; }
		.about-lifecycle__stage::before { border-color: CanvasText; }
		.about-readout { border: 1px solid CanvasText; }
	}
	@media print {
		.about-hero__actions, .about-toc { display: none !important; }
		.about-lifecycle::before { transform: none !important; }
	}
}

/* ============================================================ About content from gpipl.com (0.21.0)
   Expertise (dark numbered tiles), portfolio (icon grid), featured product (dark panel),
   commitment (text + principle tiles) and the closing tagline. */
@layer pages {
	.about-expertise { position: relative; overflow: hidden; }
	.about-expertise::before {
		content: "";
		position: absolute;
		inset: 0;
		background:
			radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--palette-green) 35%, transparent), transparent 70%),
			linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 32px 32px,
			linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 32px 32px;
		pointer-events: none;
	}
	.about-expertise .container { position: relative; }
	.about-expertise__head { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-xl); }
	.about-expertise__list {
		display: grid;
		gap: var(--space-s);
		margin: 0;
		padding: 0;
		list-style: none;
	}
	@media (min-width: 40em) { .about-expertise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (min-width: 64em) { .about-expertise__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
	.about-expertise__item {
		position: relative;
		display: grid;
		align-content: start;
		gap: var(--space-s);
		padding: var(--space-l) var(--space-m);
		border: 1px solid rgb(255 255 255 / 0.1);
		border-radius: 1rem;
		background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
		transition: transform 400ms var(--ease-out), border-color 400ms var(--ease-out), background 400ms var(--ease-out);
	}
	.about-expertise__item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-light) 60%, transparent); background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03)); }
	.about-expertise__num { font-size: var(--step--1); font-weight: var(--wght-semibold); letter-spacing: 0.12em; color: var(--accent-light); }
	.about-expertise__icon {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 0.8rem;
		background: color-mix(in srgb, var(--palette-green) 35%, transparent);
		color: var(--palette-paper);
	}
	.about-expertise__icon .icon { width: 1.35rem; height: 1.35rem; }
	.about-expertise__text { margin: 0; font-size: var(--step-0); line-height: var(--lh-snug); color: var(--color-text); }

	.about-portfolio__grid {
		display: grid;
		gap: var(--space-s);
		margin: var(--space-l) 0 0;
		padding: 0;
		list-style: none;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	}
	.about-portfolio__item {
		display: flex;
		align-items: center;
		gap: var(--space-s);
		min-height: 4.5rem;
		padding: var(--space-s) var(--space-m);
		border: var(--border);
		border-radius: 0.9rem;
		background: var(--color-bg);
		font-weight: var(--wght-semibold);
		line-height: var(--lh-snug);
		transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
	}
	.about-portfolio__item:hover { border-color: var(--color-accent); box-shadow: 0 18px 36px -24px rgb(16 32 40 / 0.35); transform: translateY(-2px); }
	.about-portfolio__icon {
		flex: none;
		display: grid;
		place-items: center;
		width: 2.5rem;
		height: 2.5rem;
		border-radius: 0.7rem;
		background: var(--color-accent-tint);
		color: var(--color-accent);
	}
	.about-portfolio__icon .icon { width: 1.25rem; height: 1.25rem; }

	.about-featured-wrap { padding-top: 0; }
	.about-featured {
		position: relative;
		overflow: hidden;
		display: grid;
		gap: var(--space-xl);
		align-items: center;
		padding: clamp(1.75rem, 1rem + 4vw, 4rem);
		border-radius: 1.5rem;
		background: linear-gradient(135deg, var(--palette-slate), color-mix(in srgb, var(--palette-green) 45%, var(--palette-slate)));
		color: var(--color-text);
	}
	@media (min-width: 56em) { .about-featured { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
	.about-featured__grid {
		position: absolute;
		inset: 0;
		background:
			linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
			linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px) 0 0 / 28px 28px;
		mask-image: linear-gradient(90deg, transparent, #000 70%);
		pointer-events: none;
	}
	.about-featured__copy, .about-featured__visual { position: relative; }
	.about-featured__title { margin-top: var(--space-2xs); font-size: var(--step-4); max-width: 22ch; }
	.about-featured__text { margin-top: var(--space-s); max-width: 48ch; font-size: var(--step-1); color: var(--color-text-muted); }
	.about-featured__uses { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: var(--space-m) 0 var(--space-l); padding: 0; list-style: none; }
	.about-featured__uses li {
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.45rem 0.85rem;
		border: 1px solid rgb(255 255 255 / 0.16);
		border-radius: 99px;
		background: rgb(255 255 255 / 0.06);
		font-size: var(--step--1);
	}
	.about-featured__uses .icon { width: 1rem; height: 1rem; color: var(--accent-light); }
	.about-featured__visual img { width: 100%; height: auto; max-height: 22rem; object-fit: contain; border-radius: 1rem; background: var(--palette-survey); padding: var(--space-m); }
	.about-featured__readout { display: grid; gap: var(--space-s); }
	.about-featured__readout span {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: var(--space-m) var(--space-l);
		border: 1px solid rgb(255 255 255 / 0.14);
		border-radius: 1rem;
		background: rgb(255 255 255 / 0.05);
		font-size: var(--step-2);
		font-weight: var(--wght-semibold);
		letter-spacing: 0.02em;
	}
	.about-featured__readout span::after {
		content: "";
		width: 0.65rem;
		height: 0.65rem;
		border-radius: 50%;
		background: var(--accent-light);
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-light) 60%, transparent);
		animation: gpipl-about-pulse 2.4s var(--ease-out) infinite;
	}
	.about-featured__readout span:nth-child(2)::after { animation-delay: 0.8s; }
	.about-featured__readout span:nth-child(3)::after { animation-delay: 1.6s; }

	.about-commitment__grid { display: grid; gap: var(--space-xl); align-items: center; }
	@media (min-width: 56em) { .about-commitment__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-3xl); } }
	.about-commitment__copy .prose { margin-top: var(--space-s); color: var(--color-text-muted); font-size: var(--step-1); }
	.about-values { display: grid; gap: var(--space-s); margin: 0; padding: 0; list-style: none; }
	.about-value {
		display: flex;
		align-items: center;
		gap: var(--space-m);
		padding: var(--space-m) var(--space-l);
		border-radius: 1rem;
		background: var(--color-bg);
		box-shadow: 0 16px 34px -26px rgb(16 32 40 / 0.4);
		font-size: var(--step-1);
		font-weight: var(--wght-semibold);
	}
	.about-value__icon {
		flex: none;
		display: grid;
		place-items: center;
		width: 3rem;
		height: 3rem;
		border-radius: 50%;
		background: var(--color-accent);
		color: var(--color-on-accent);
	}
	.about-value__icon .icon { width: 1.35rem; height: 1.35rem; }

	.about-tagline {
		padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
		border-top: var(--border);
		text-align: center;
	}
	.about-tagline__text {
		max-width: 30ch;
		margin: 0 auto;
		font-size: var(--step-4);
		font-weight: var(--wght-semibold);
		font-stretch: var(--wdth-heading);
		line-height: 1.15;
		background: linear-gradient(90deg, var(--palette-slate), var(--palette-green));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
	@media (forced-colors: active) { .about-tagline__text { color: CanvasText; background: none; } }
	@media (prefers-reduced-motion: reduce) {
		.about-featured__readout span::after { animation: none; }
		.about-expertise__item:hover, .about-portfolio__item:hover { transform: none; }
	}
}
@keyframes gpipl-about-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-light) 60%, transparent); }
	70% { box-shadow: 0 0 0 12px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
