/**
 * Single team member — Figma node 1301:10465.
 */

body.hypro-team-member-page {
	background: #fff;
}

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

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

.hypro-team-member {
	overflow-x: hidden;
	--tm-pad: clamp(1.25rem, 5.56vw, 5rem);
	--tm-content: 80.0625rem; /* 1281px — Figma “The minds behind magnet” inner */
	--tm-navy: #1a1e28;
	--tm-cyan: #2ec4e6;
}

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

/* ─── Hero — white top; bluish gradient only at bottom (Figma Rectangle 4698) ─ */
.hypro-team-member-hero {
	position: relative;
	min-height: clamp(28rem, 52vw, 40rem);
	overflow: hidden;
	padding-top: 5.25rem; /* ~84px below fixed 72px header */
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	background: #fff;
}

.hypro-team-member-hero__bg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: min(52%, 28rem);
	top: auto;
	pointer-events: none;
}

.hypro-team-member-hero__gradient {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 95% 85% at 50% 100%, rgba(46, 196, 230, 0.22) 0%, transparent 58%),
		radial-gradient(ellipse 80% 55% at 70% 100%, rgba(115, 215, 237, 0.35) 0%, transparent 55%),
		linear-gradient(
			0deg,
			rgba(200, 229, 236, 0.95) 0%,
			rgba(232, 246, 250, 0.65) 35%,
			rgba(255, 255, 255, 0) 100%
		);
}

.hypro-team-member-hero__wash {
	display: none;
}

.hypro-team-member-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 90rem;
	margin: 0 auto;
	padding-top: clamp(4.5rem, 7vw, 6rem);
	padding-left: var(--tm-pad);
	padding-right: var(--tm-pad);
}

.hypro-team-member-hero .hypro-team-breadcrumb {
	padding: 0;
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

body.hypro-team-member-page .hypro-team-member-hero .hypro-team-breadcrumb__link {
	color: #5a6570;
}

body.hypro-team-member-page .hypro-team-member-hero .hypro-team-breadcrumb__link:hover {
	color: var(--tm-navy);
}

body.hypro-team-member-page .hypro-team-member-hero .hypro-team-breadcrumb__sep {
	color: rgba(26, 30, 40, 0.45);
}

body.hypro-team-member-page .hypro-team-member-hero .hypro-team-breadcrumb__current {
	color: var(--tm-navy);
	font-weight: 500;
}

.hypro-team-member-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 32.625rem) minmax(0, 1fr);
	gap: clamp(2rem, 4.5vw, 3.125rem);
	align-items: start;
}

.hypro-team-member-hero__figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #262a35;
	box-shadow: 0 24px 48px rgba(26, 30, 40, 0.12);
	max-width: min(32.625rem, 100%); /* ~522px Figma portrait */
	width: 100%;
}

.hypro-team-member-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 42% 0;
}

.hypro-team-member-hero__column {
	min-width: 0;
}

.hypro-team-member-hero__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 0.75rem;
}

.hypro-team-member-hero__title {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(2rem, 3.5vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tm-navy);
}

.hypro-team-member-hero__linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #0a66c2;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
	flex-shrink: 0;
}

.hypro-team-member-hero__linkedin:hover,
.hypro-team-member-hero__linkedin:focus {
	background: #004182;
	transform: translateY(-1px);
}

.hypro-team-member-hero__role {
	margin: 0 0 1.25rem;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #3d4654;
}

.hypro-team-member-hero__bio {
	font-family: Inter, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	color: #262a35;
}

.hypro-team-member-hero__bio > *:first-child {
	margin-top: 0;
}

.hypro-team-member-hero__bio > *:last-child {
	margin-bottom: 0;
}

.hypro-team-member-hero__bio p {
	margin: 0 0 1rem;
}

.hypro-team-member-hero__bio a {
	color: #0b9cbc;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hypro-team-member-hero__bio a:hover {
	color: var(--tm-navy);
}

/* ─── Related leaders — Figma node 1301:10486 (pl/pr ~80px, py 100px, inner 1281px) ─ */
.hypro-team-member-related {
	background: var(--tm-navy);
	padding: 6.25rem var(--tm-pad);
}

.hypro-team-member-related__inner {
	max-width: var(--tm-content);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		'title cta'
		'carousel carousel';
	gap: 2.5rem 1rem;
	align-items: center;
	width: 100%;
}

.hypro-team-member-related__head {
	grid-area: title;
	min-width: 0;
}

.hypro-team-member-related__all {
	grid-area: cta;
}

.hypro-team-member-related .leaders-carousel {
	grid-area: carousel;
	min-width: 0;
	width: 100%;
}

.hypro-team-member-related__title {
	margin: 0;
	font-family: Saira, Inter, sans-serif;
	font-weight: 500;
	font-size: clamp(1.75rem, 2.5vw, 2.5rem); /* Figma 40px */
	line-height: 1.3;
	letter-spacing: -0.05em;
	color: #f7f7f8;
}

.hypro-team-member-related__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem; /* Figma ~12px × 32px */
	border-radius: 1000px;
	border: none;
	background: linear-gradient(117.77deg, #0b9cbc 22.041%, #73d7ed 83.22%);
	color: #262a35;
	font-family: Saira, Inter, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.hypro-team-member-related__all:hover,
.hypro-team-member-related__all:focus {
	opacity: 0.92;
}

.hypro-team-member-related__grid.leaders__grid.hypro-team-grid {
	width: 100%;
	max-width: 80.0625rem;
	margin: 0 auto;
}

/* Allow horizontal carousel track when `.leaders-carousel--active` (leader-card.css). */
.hypro-team-member-related .leaders-carousel--active .hypro-team-member-related__grid.leaders__grid.hypro-team-grid {
	width: max-content;
	max-width: none;
}

.hypro-team-member-related__empty {
	grid-area: carousel;
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #bdc2cc;
	max-width: 36rem;
}

@media (max-width: 900px) {
	.hypro-team-member-hero__layout {
		grid-template-columns: 1fr;
	}

	.hypro-team-member-hero__figure {
		max-width: 100%;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}

	.hypro-team-member-hero__img {
		aspect-ratio: 306 / 400;
		width: 100%;
	}
}

@media (max-width: 520px) {
	.hypro-team-member-related__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			'title'
			'carousel'
			'cta';
		gap: 1.75rem;
	}

	.hypro-team-member-related__all {
		justify-self: center;
		width: 100%;
		max-width: 20rem;
	}
}
