/**
 * About Us page styles — matches Figma node 1679:27255 (Desktop About Us).
 */

/* ─── Break out of the default .site box (same approach as homepage) ────── */
body.hypro-about-page {
	background: #f7f7f8;
}

body.hypro-about-page #page.site {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

body.hypro-about-page .site-main {
	padding: 0;
	width: 100%;
}

body.hypro-about-page .hypro-about {
	overflow-x: hidden;
}

/* Hero header: body.hypro-unified-nav — inner-nav-unified.css */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
.hypro-about {
	--about-navy:       #1a1e28;
	--about-navy-light: #313644;
	--about-navy-mid:   #262a35;
	--about-gray:       #bdc2cc;
	--about-gray-light: #f7f7f8;
	--about-gray-dark:  #7b8ca7;
	--about-cyan:       #2ec4e6;
	--about-cyan-dark:  #0b9cbc;
	--about-cyan-light: #73d7ed;
	--about-ink-80:     rgba(49, 54, 68, 0.8);
	--about-pad:        clamp(1.25rem, 5.56vw, 5rem);   /* overridden by inner-nav-unified when .hypro-unified-nav */
	--about-max:        90rem;
}

/* ─── 1. BANNER ──────────────────────────────────────────────────────────── */
.about-banner {
	position: relative;
	height: var(--hypro-page-hero-height);   /* 600px at 1440 — token in style.css */
	overflow: hidden;
	background: var(--about-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.about-banner__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* hero.png — bottom layer; gradient + tint stay as brand wash / fallback */
.about-banner__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--about-navy);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.about-banner--has-photo .about-banner__gradient {
	z-index: 1;
	opacity: 0.55;
}

.about-banner--has-photo .about-banner__tint {
	z-index: 2;
	opacity: 0.45;
	mix-blend-mode: normal;
	background: linear-gradient(
		180deg,
		rgba(26, 30, 40, 0.25) 0%,
		rgba(26, 30, 40, 0.65) 100%
	);
}

/* Radial gradient background */
.about-banner__gradient {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: radial-gradient(
		ellipse 110% 130% at 50% 110%,
		rgba(46, 196, 230, 1)   0%,
		rgba(44, 158, 186, 1)   12.38%,
		rgba(42, 119, 142, 1)   24.76%,
		rgba(40, 81, 97, 1)     37.14%,
		rgba(38, 42, 53, 1)     49.52%,
		rgba(26, 30, 40, 1)     100%
	);
}

/* Colour-blend tint overlay (no photo, or under .about-banner--has-photo overrides) */
.about-banner__tint {
	position: absolute;
	inset: 0;
	z-index: 2;
	mix-blend-mode: color;
	opacity: 0.8;
	background: radial-gradient(
		ellipse 90% 65% at 50% 55%,
		rgba(115, 215, 237, 0.85)  0%,
		rgba(71, 123, 139, 0.9)   35%,
		rgba(37, 53, 65, 0.95)    70%,
		rgba(26, 30, 40, 1)      100%
	);
}

.about-banner__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
	padding: 0 var(--about-pad);
	max-width: 60rem;
}

.about-banner__headline {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(2.5rem, 4.44vw, 4rem);
	line-height: 1.1;
	letter-spacing: -0.04em;
	background: radial-gradient(
		ellipse 200% 80% at 20% 40%,
		rgba(46, 196, 230, 1)   22.58%,
		rgba(85, 168, 199, 1)   54.26%,
		rgba(123, 140, 167, 1)  85.94%,
		rgba(49, 54, 68, 0)    100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.about-banner__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
	color: #dbdde1;
}

/* ─── 2. OVERVIEW ────────────────────────────────────────────────────────── */
.about-overview {
	background: var(--about-gray);
	padding: clamp(3.5rem, 6.25vw, 6.25rem) 0;
}

.about-overview__inner {
	max-width: var(--about-max);
	margin: 0 auto;
	padding: 0 var(--about-pad);
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: clamp(2rem, 5.56vw, 5rem); /* up to 80px at 1440 */
	align-items: start;
}

.about-overview__left {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.about-overview__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-left: 0.75rem; /* 12px */
	border-left: 3px solid #0b9cbc;
	font-family: Saira, Inter, sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #313644;
}

.about-overview__heading {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.75rem, 2.78vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: -0.04em;
	color: var(--about-navy-mid);
}

.about-overview__right {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px between lead and body */
}

.about-overview__lead {
	margin: 0;
	font-size: clamp(1rem, 1.39vw, 1.25rem);
	font-weight: 500;
	line-height: 1.5;
	color: var(--about-ink-80);
}

.about-overview__body {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--about-ink-80);
}

/* ─── 3. FEATURES BAR — Figma 1516:12068 ─────────────────────────────────── */
.about-features {
	border-top: 1px solid rgba(144, 154, 173, 0.5);
	background: var(--about-gray);
}

.about-features__grid {
	max-width: var(--about-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2.5rem; /* 40px icon → copy */
	padding: clamp(2.5rem, 4.17vw, 3.75rem) var(--about-pad); /* up to 60px × 80px @ 1440 */
	border-right: 1px solid rgba(144, 154, 173, 0.5);
	box-sizing: border-box;
}

.about-feature:last-child {
	border-right: none;
}

.about-feature__icon {
	width: 5rem;
	height: 5rem;
	object-fit: contain;
	object-position: left center;
	display: block;
	flex-shrink: 0;
}

.about-feature__content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* 12px title → body */
	width: 100%;
}

.about-feature__title {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 1.25rem; /* 20px Title/20 Sb */
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--about-navy-mid);
}

.about-feature__text {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 1rem; /* 16px Body/16 */
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--about-ink-80);
}

/* ─── 4. VISION IMAGE ────────────────────────────────────────────────────── */
.about-vision {
	background: #fff;
	overflow: hidden;
	height: clamp(20rem, 44.93vw, 40.4375rem);
}

.about-vision__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
}

/* ─── 5. FOUNDING STORY ──────────────────────────────────────────────────── */
.about-founding {
	background: var(--about-navy);
	padding: clamp(4rem, 8.33vw, 7.5rem) 0;
}

.about-founding__inner {
	max-width: var(--about-max);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 8.33vw, 7.5rem);
}

.about-founding__text {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 2.78vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: -0.04em; 
}

.about-founding__text .founder-names,
.about-founding__text .founder-names--inline {
	color: #f7f7f8;
}

.about-founding__text .founder-continuation {
	color: #909aad;
}

/* ─── 6. TIMELINE ────────────────────────────────────────────────────────── */
.about-timeline {
	background: var(--about-navy);
	padding: clamp(4rem, 8.33vw, 7.5rem) 0;
}

.about-timeline__inner {
	max-width: var(--about-max);
	margin: 0 auto;
	padding: 0 var(--about-pad);
}

.about-timeline__header {
	display: grid;
	grid-template-columns: 5fr 8fr;
	gap: clamp(2rem, 5.56vw, 5rem);
	margin-bottom: clamp(3rem, 5.56vw, 5rem);
	align-items: start;
}

.about-timeline__heading {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.75rem, 2.78vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: -0.04em;
	color: #f7f7f8;
}

.about-timeline__intro {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #bdc2cc;
}

/* Timeline track — Figma 1815:9416: line | year | body, top-aligned */
.about-timeline__track {
	position: relative;
	--timeline-fill: 0;
	--timeline-inset: clamp(1.5rem, 5vw, 5rem);
	--timeline-marker-col: 1.25rem;
	/* Vertical line through centre of marker column */
	--timeline-line-x: calc(var(--timeline-inset) + (var(--timeline-marker-col) / 2));
	padding: 0 0 0 var(--timeline-inset);
	margin: 0;
	list-style: none;
}

.about-timeline__track::before {
	content: '';
	position: absolute;
	left: var(--timeline-line-x);
	top: 0;
	bottom: 0;
	width: 1px;
	z-index: 0;
	transform: translateX(-50%);
	background: linear-gradient(
		180deg,
		rgba(123, 140, 167, 0.55) 0%,
		rgba(123, 140, 167, 0.15) 100%
	);
}

/* Scroll-revealed cyan progress (height driven by --timeline-fill in JS) */
.about-timeline__track::after {
	content: '';
	position: absolute;
	left: var(--timeline-line-x);
	top: 0;
	width: 2px;
	height: 100%;
	z-index: 1;
	transform: translateX(-50%) scaleY(var(--timeline-fill));
	transform-origin: top center;
	background: linear-gradient(
		180deg,
		var(--about-cyan) 0%,
		rgba(115, 215, 237, 0.65) 100%
	);
	box-shadow: 0 0 12px rgba(46, 196, 230, 0.35);
	pointer-events: none;
	transition: transform 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.about-timeline__track::after {
		transition: none;
	}
}

.about-timeline__item {
	/* Figma 1702:29356 — dot | year | body share one top edge (no vertical centering) */
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	/* Wider gutter so large year labels (e.g. 2028–29) clear the description */
	column-gap: clamp(3.5rem, 5.5vw, 7rem);
	padding-bottom: clamp(2.5rem, 4.17vw, 3.75rem);
}

.about-timeline__marker {
	--timeline-dot: 0.875rem;
	flex: 0 0 var(--timeline-marker-col);
	width: var(--timeline-marker-col);
	height: var(--timeline-dot);
	align-self: flex-start;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	border: none;
	background: transparent;
	box-shadow: none;
}

.about-timeline__marker::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	width: var(--timeline-dot);
	height: var(--timeline-dot);
	box-sizing: border-box;
	border-radius: 50%;
	border: 1.5px solid rgba(123, 140, 167, 0.45);
	background: rgba(26, 30, 40, 0.95);
	box-shadow: none;
	opacity: 0.65;
	transition:
		border-color 0.35s ease,
		background-color 0.35s ease,
		box-shadow 0.35s ease,
		opacity 0.35s ease;
}

.about-timeline__item--active .about-timeline__marker::before {
	border-color: var(--about-cyan);
	background: var(--about-cyan);
	box-shadow: 0 0 0 4px rgba(46, 196, 230, 0.18);
	opacity: 1;
}

.about-timeline__year {
	flex: 0 0 auto;
	/* Reserve width for wide labels (2028–29) at 3rem without squeezing copy */
	min-width: min(13.75rem, max(12.25rem, 10.5ch));
	max-width: none;
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 600;
	font-size: clamp(2rem, 3.2vw, 3rem);
	line-height: 1;
	letter-spacing: 0;
	color: #7b8ca7;
	opacity: 0.25;
	white-space: nowrap;
	align-self: flex-start;
	transition:
		color 0.35s ease,
		opacity 0.35s ease;
}

.about-timeline__item--active .about-timeline__year {
	color: var(--about-cyan);
	opacity: 1;
}

.about-timeline__desc {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.125rem); /* 18px at desktop */
	font-weight: 400;
	line-height: 1.6;
	color: #7b8ca7;
	opacity: 0.5;
	align-self: flex-start;
	transition:
		color 0.35s ease,
		opacity 0.35s ease;
}

.about-timeline__item--active .about-timeline__desc {
	color: #bdc2cc;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.about-timeline__marker::before,
	.about-timeline__year,
	.about-timeline__desc {
		transition: none;
	}
}

/* ─── 7. CASE STUDIES ────────────────────────────────────────────────────── */
.about-cases {
	background: var(--about-gray-light);
	padding: clamp(4rem, 8.33vw, 7.5rem) 0;
}

.about-cases__inner {
	max-width: var(--about-max);
	margin: 0 auto;
	padding: 0 var(--about-pad);
	display: flex;
	flex-direction: column;
	gap: clamp(3.5rem, 5.56vw, 5rem);
}

.about-case {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 5.56vw, 5rem); /* 80px column gap at 1440 */
	align-items: center;
}

.about-case__media {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
}

.about-case__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.about-case__content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.about-case__heading {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.75rem, 2.78vw, 2.5rem);
	line-height: 1.3;
	letter-spacing: -0.04em;
	color: var(--about-navy-mid);
}

.about-case__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.about-case__para {
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--about-ink-80);
}

/* ─── 8. CTA PAIR ────────────────────────────────────────────────────────── */
.about-cta-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.about-cta {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(18rem, 24.24vw, 21.8125rem);
	padding: 0;
}

/* Inner body — aligns text with the 90rem content column above */
.about-cta__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 2.5rem;
	height: 100%;
	padding: clamp(3rem, 5.56vw, 5rem) var(--about-pad);
	/* Left box: shift text right so it starts at the same x-position as the 90rem content above */
	max-width: calc(var(--about-max) / 2);
}

.about-cta--dark .about-cta__body {
	margin-left: auto; /* push content toward the center-line, matching the right half of the 90rem grid */
	margin-right: 0;
}

.about-cta--light .about-cta__body {
	margin-left: 0;
	margin-right: auto;
}

.about-cta--dark {
	background: linear-gradient(
		99.87deg,
		rgba(26, 30, 40, 1)  23.68%,
		rgba(49, 54, 68, 1)  91.4%,
		rgba(38, 42, 53, 1) 111.49%
	);
}

.about-cta--light {
	background: linear-gradient(
		121.06deg,
		rgba(189, 194, 204, 1) 0%,
		rgba(247, 247, 248, 1) 100%
	);
}

.about-cta__heading {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 2.22vw, 2rem);
	line-height: 1.3;
	letter-spacing: -0.04em;
	max-width: 35rem; /* ~560px copy width */
}

.about-cta--dark .about-cta__heading {
	color: #f7f7f8;
}

.about-cta--light .about-cta__heading {
	color: var(--about-navy-mid);
}

.about-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.75rem 2rem;
	border-radius: 1000px;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	align-self: flex-start;
	transition: opacity 0.2s ease;
}

.about-cta__btn--outline:hover {
	opacity: 0.88;
}

.about-cta__btn--gradient {
	background: linear-gradient(-81deg, var(--about-cyan-dark) 0%, var(--about-cyan-light) 100%);
	color: var(--about-navy-mid);
	border: none;
}

.about-cta__btn--outline {
	background: transparent;
	color: var(--about-navy-mid);
	border: 1.5px solid var(--about-cyan);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.about-overview__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.about-features__grid {
		grid-template-columns: 1fr;
	}

	.about-feature {
		border-right: none;
		border-bottom: 1px solid rgba(144, 154, 173, 0.5);
		padding: 2rem var(--about-pad);
	}

	.about-feature:last-child {
		border-bottom: none;
	}

	.about-timeline__header {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.about-case {
		grid-template-columns: 1fr;
	}

	.about-case--reversed {
		direction: ltr;
	}

	.about-cta-pair {
		grid-template-columns: 1fr;
	}

	.about-cta {
		min-height: clamp(14rem, 30vw, 18rem);
	}
}

@media (max-width: 768px) {
	.about-banner__headline {
		font-size: clamp(2rem, 8vw, 3rem);
	}

	.about-timeline__item {
		column-gap: clamp(3.25rem, 5vw, 4.5rem);
	}

	.about-timeline__year {
		font-size: clamp(1.75rem, 5.5vw, 2.75rem);
		min-width: min(11rem, max(9rem, 10ch));
	}
}

@media (max-width: 480px) {
	.about-timeline__track {
		--timeline-inset: 1.25rem;
	}

	/* Stack copy under year; dot aligns with year top */
	.about-timeline__item {
		display: grid;
		grid-template-columns: var(--timeline-marker-col) 1fr;
		grid-template-rows: auto auto;
		column-gap: clamp(3.125rem, 6vw, 3.5rem);
		row-gap: 0.5rem;
		align-items: start;
	}

	.about-timeline__marker {
		grid-row: 1;
		grid-column: 1;
		align-self: start;
	}

	.about-timeline__year {
		grid-column: 2;
		grid-row: 1;
		font-size: clamp(1.75rem, 6.5vw, 2.25rem);
		min-width: 0;
		opacity: 0.22;
	}

	.about-timeline__item--active .about-timeline__year {
		opacity: 1;
	}

	.about-timeline__desc {
		grid-column: 2;
		grid-row: 2;
		padding-top: 0;
	}
}
