/**
 * About page — premium corporate profile.
 *
 * Loaded only on the About template (see hifocus_about_assets() in
 * functions.php). Every rule is scoped under .about-page, and the page reuses
 * main.css components wholesale — .sw-hero, .section-head, .sw-audience,
 * .sw-benefit, .kpi-card and .cta-panel. This sheet adds only the five patterns
 * main.css has no equivalent for:
 *
 *   1. .ab-split    — the two-column "Who We Are" intro
 *   2. .ab-mv       — the mission / vision pair
 *   3. .ab-ind      — the industries grid
 *   4. .ab-stack    — the technology-expertise columns
 *   5. .ab-process  — the horizontal process timeline
 *
 * All colours, radii, spacing and easing come from the existing :root tokens,
 * so nothing here forks the design system.
 */

/* -------------------------------------------------- *
 * 2. Who we are — two-column intro
 * -------------------------------------------------- */

.about-page .ab-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.about-page .ab-split__text .section-head {
	margin-bottom: var(--space-md);
}

/* Technology graphic placeholder: a glass panel of specialism icons on navy. */
.about-page .ab-split__media {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: 320px;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	overflow: hidden;
	border-radius: var(--radius-xl);
	border: 1px solid rgba(34, 211, 238, 0.25);
	background:
		radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, 0.16) 0%, transparent 55%),
		linear-gradient(150deg, var(--navy-800) 0%, var(--navy-900) 100%);
	box-shadow: var(--shadow-md);
}

.about-page .ab-split__glow {
	position: absolute;
	inset: auto -20% -40% -20%;
	z-index: -1;
	height: 80%;
	background: radial-gradient(50% 100% at 50% 100%, rgba(22, 102, 232, 0.35) 0%, transparent 70%);
	pointer-events: none;
}

.about-page .ab-split__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.75rem, 2vw, 1.15rem);
}

.about-page .ab-split__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(64px, 9vw, 88px);
	height: clamp(64px, 9vw, 88px);
	border-radius: 18px;
	border: 1px solid rgba(120, 170, 255, 0.18);
	background-color: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--cyan-400);
}

.about-page .ab-split__chip svg {
	width: 32px;
	height: 32px;
}

/* -------------------------------------------------- *
 * 3. Mission & vision — two glass cards on navy
 * -------------------------------------------------- */

.about-page .ab-mv {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

.about-page .ab-mv__card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border-radius: var(--radius-xl);
	border: 1px solid rgba(34, 211, 238, 0.22);
	background-color: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		box-shadow 0.35s var(--ease-out);
}

.about-page .ab-mv__card:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.5);
	box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45);
}

.about-page .ab-mv__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--space-sm);
	border-radius: var(--radius-md);
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--cyan-400);
}

.about-page .ab-mv__icon svg {
	width: 28px;
	height: 28px;
}

.about-page .ab-mv__label {
	margin: 0;
	color: var(--color-inverse);
	font-size: var(--fs-xl);
	font-weight: 800;
}

.about-page .ab-mv__text {
	margin: 0.7rem 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-lg);
	line-height: 1.7;
}

/* -------------------------------------------------- *
 * 7. Industries — compact glass cards (5 per row = 10 balances to 5 + 5)
 * -------------------------------------------------- */

.about-page .ab-ind-grid {
	--g: clamp(0.8rem, 1.6vw, 1.2rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--g);
}

.about-page .ab-ind {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	flex: 0 0 calc((100% - 4 * var(--g)) / 5);
	max-width: calc((100% - 4 * var(--g)) / 5);
	padding: 1.5rem 1rem;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(120, 170, 255, 0.16);
	background-color: rgba(255, 255, 255, 0.04);
	text-align: center;
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		background-color var(--transition);
}

.about-page .ab-ind:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.5);
	background-color: rgba(255, 255, 255, 0.07);
}

.about-page .ab-ind__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--cyan-400);
	transition: background-image var(--transition), color var(--transition);
}

.about-page .ab-ind:hover .ab-ind__icon {
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
}

.about-page .ab-ind__icon svg {
	width: 24px;
	height: 24px;
}

.about-page .ab-ind__name {
	margin: 0;
	color: var(--color-inverse);
	font-size: 0.95rem;
	font-weight: 700;
}

/* -------------------------------------------------- *
 * 8. Technology expertise — three columns of tag lists
 * -------------------------------------------------- */

.about-page .ab-stack {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.about-page .ab-stack__col {
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--radius-xl);
	border: 1px solid var(--color-border);
	background-color: var(--color-inverse);
	box-shadow: var(--shadow-md);
	transition: transform 0.35s var(--ease-out), border-color var(--transition),
		box-shadow 0.35s var(--ease-out);
}

.about-page .ab-stack__col:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.45);
	box-shadow: 0 26px 56px rgba(0, 0, 0, 0.12);
}

.about-page .ab-stack__head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
}

.about-page .ab-stack__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
}

.about-page .ab-stack__icon svg {
	width: 24px;
	height: 24px;
}

.about-page .ab-stack__title {
	margin: 0;
	color: var(--navy-800);
	font-size: 1.2rem;
	font-weight: 700;
}

.about-page .ab-stack__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-page .ab-stack__list li {
	padding: 0.45rem 0.85rem;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	background-color: var(--color-surface);
	color: var(--navy-800);
	font-size: 0.86rem;
	font-weight: 600;
	transition: border-color var(--transition), color var(--transition);
}

.about-page .ab-stack__list li:hover {
	border-color: rgba(34, 211, 238, 0.5);
	color: var(--blue-500);
}

/* -------------------------------------------------- *
 * 9. Process — horizontal numbered timeline
 * -------------------------------------------------- */

.about-page .ab-process {
	--pgap: clamp(1rem, 2.5vw, 1.75rem);
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--pgap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-page .ab-process__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 0.5rem;
}

/*
 * Connector: a gradient hairline from this step's badge centre to the next.
 * The badge is 52px, so its centre sits 0.5rem + 26px below the step top. The
 * line bridges the column width plus the grid gap to reach the next badge, and
 * the last step drops it.
 */
.about-page .ab-process__step::before {
	content: "";
	position: absolute;
	top: calc(0.5rem + 26px);
	left: 50%;
	z-index: 0;
	width: calc(100% + var(--pgap));
	height: 2px;
	background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.12));
}

.about-page .ab-process__step:last-child::before {
	display: none;
}

.about-page .ab-process__num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background-image: var(--gradient-brand);
	color: var(--color-inverse);
	font-size: 1rem;
	font-weight: 800;
	box-shadow: 0 8px 24px rgba(22, 102, 232, 0.4);
}

.about-page .ab-process__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: 1rem;
	border-radius: 14px;
	background-color: rgba(34, 211, 238, 0.1);
	color: var(--cyan-400);
}

.about-page .ab-process__icon svg {
	width: 22px;
	height: 22px;
}

.about-page .ab-process__title {
	margin: 0.9rem 0 0;
	color: var(--color-inverse);
	font-size: 1.05rem;
	font-weight: 700;
}

.about-page .ab-process__desc {
	max-width: 22ch;
	margin: 0.4rem 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: var(--fs-sm);
	line-height: 1.6;
}

/* -------------------------------------------------- *
 * 10. Statistics — compact value for text-only KPIs
 *
 * The shared .kpi-card__value renders at ~3rem for short numbers ("2020",
 * "10+"). A text value like "Remote & Onsite" needs a smaller size so it reads
 * on one or two lines instead of dominating the card.
 * -------------------------------------------------- */

.about-page .kpi-card__value--compact {
	font-size: clamp(1.25rem, 2.4vw, 1.65rem);
	line-height: 1.25;
}

/* -------------------------------------------------- *
 * 11. CTA contact line
 * -------------------------------------------------- */

.about-page .cta-panel__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.9rem;
	margin: var(--space-md) 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.about-page .cta-panel__contact a {
	color: var(--cyan-300);
}

.about-page .cta-panel__contact a:hover {
	color: var(--color-inverse);
}

/* -------------------------------------------------- *
 * Motion + responsive
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.about-page .ab-mv__card:hover,
	.about-page .ab-ind:hover,
	.about-page .ab-stack__col:hover {
		transform: none;
	}
}

/* Laptop / small desktop: technology columns stay three-up until they crowd. */
@media (max-width: 1024px) {
	.about-page .ab-stack {
		grid-template-columns: 1fr;
		max-width: 40rem;
		margin-inline: auto;
	}

	/* Industries: 5 → 3 per row (10 balances to 3 + 3 + 3 + 1, centred). */
	.about-page .ab-ind {
		flex-basis: calc((100% - 2 * var(--g)) / 3);
		max-width: calc((100% - 2 * var(--g)) / 3);
	}
}

/* Tablet: intro and process stack; mission/vision go one-up. */
@media (max-width: 900px) {
	.about-page .ab-split {
		grid-template-columns: 1fr;
	}

	.about-page .ab-split__media {
		order: -1;
		min-height: 240px;
	}

	.about-page .ab-mv {
		grid-template-columns: 1fr;
	}

	.about-page .ab-process {
		grid-template-columns: 1fr;
		max-width: 30rem;
		margin-inline: auto;
		gap: var(--space-md);
	}

	/* Vertical stack: the horizontal connector no longer applies. */
	.about-page .ab-process__step::before {
		display: none;
	}
}

/* Mobile: industries drop to two across. */
@media (max-width: 620px) {
	.about-page .ab-ind {
		flex-basis: calc((100% - var(--g)) / 2);
		max-width: calc((100% - var(--g)) / 2);
	}
}
