/*
 * TPF — Our Team Grid
 * Full-bleed navy section: large intro headline + body, optional section
 * heading, then a responsive grid of team-member cards.
 */

.tpf-otg {
	background-color: #293c7b;
	color: #ffffff;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
	padding: 4rem 0 4rem;
	font-family: proxima-nova, "Proxima Nova", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tpf-otg__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---------- Intro ---------- */

.tpf-otg__intro {
	margin-bottom: 3rem;
}

.tpf-otg__heading {
	font-size: 56px;
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 27px;
	padding: 0;
	max-width: 1056px;
}

.tpf-otg__body {
	font-size: 24px;
	line-height: 34px;
	font-weight: 500;
	color: #ffffff;
	max-width: 921px;
}

.tpf-otg__body p {
	margin: 0 0 1rem;
}

.tpf-otg__body p:last-child {
	margin-bottom: 0;
}

/* ---------- Section heading ---------- */

.tpf-otg__section-heading {
	font-size: 48px;
	line-height: 1.2;
	font-weight: 700;
	color: #00b3f1;
	margin: 0 0 2rem;
	padding: 0;
}

/* ---------- Grid ---------- */

.tpf-otg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 4.25rem;
	row-gap: 3rem;
}

.tpf-otg[data-columns="2"] .tpf-otg__grid {
	grid-template-columns: repeat(2, 1fr);
}

.tpf-otg[data-columns="4"] .tpf-otg__grid {
	grid-template-columns: repeat(4, 1fr);
}

/* ---------- Member card ---------- */

.tpf-otg__member {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	display: block;
	width: 100%;
}

.tpf-otg__member-photo {
	display: block;
	width: 100%;
	aspect-ratio: 341 / 371;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-color: #1f2d5e;
	transition: filter 0.3s ease, transform 0.3s ease;
}

.tpf-otg__member:hover .tpf-otg__member-photo,
.tpf-otg__member:focus-visible .tpf-otg__member-photo {
	filter: brightness(0.85);
}

.tpf-otg__member:focus-visible {
	outline: 2px solid #57aee6;
	outline-offset: 4px;
}

.tpf-otg__member-name {
	display: block;
	font-size: 24px;
	line-height: 1;
	font-weight: 600;
	color: #ffffff;
	margin: 17px 0 10px;
}

.tpf-otg__member-title {
	display: block;
	font-size: 18px;
	line-height: calc(1em + 3px);
	font-weight: 600;
	color: #57aee6;
	margin: 0;
}

/* ---------- Modal ---------- */

.tpf-otg__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.tpf-otg__modal[hidden] {
	display: none;
}

.tpf-otg__modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.65);
	cursor: pointer;
}

.tpf-otg__modal-panel {
	position: relative;
	display: grid;
	grid-template-columns: 299px 1fr;
	gap: 2.5rem;
	align-items: start;
	width: min(1302px, 100%);
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	background-color: #293c7b;
	color: #ffffff;
	padding: 3.25rem 4rem 3rem 3.25rem;
	font-family: proxima-nova, "Proxima Nova", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tpf-otg__modal-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	cursor: pointer;
	padding: 0.5rem;
	font-family: inherit;
}

.tpf-otg__modal-close:hover,
.tpf-otg__modal-close:focus-visible {
	color: #57aee6;
	outline: none;
}

.tpf-otg__modal-photo {
	width: 100%;
	aspect-ratio: 299 / 324;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-color: #1f2d5e;
}

.tpf-otg__modal-content {
	min-width: 0;
}

.tpf-otg__modal-name {
	font-size: 36px;
	line-height: 1.1;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 11px;
	padding: 0;
}

.tpf-otg__modal-title {
	font-size: 27px;
	line-height: 1.2;
	font-weight: 600;
	color: #57aee6;
	margin: 0 0 16px;
	padding: 0;
}

.tpf-otg__modal-bio {
	font-size: 24px;
	line-height: 34px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 24px;
	padding: 0;
}

.tpf-otg__modal-bio p {
	margin: 0 0 1rem;
	padding: 0;
}

.tpf-otg__modal-bio p:last-child {
	margin-bottom: 0;
}

.tpf-otg__modal-clients {
	font-size: 24px;
	line-height: 34px;
	font-weight: 500;
	color: #00b3f1;
	margin: 0 0 20px;
	padding: 0;
}

.tpf-otg__modal-clients-label {
	font-weight: 700;
}

.tpf-otg__modal-clients:not(.is-shown) {
	display: none;
}

.tpf-otg__modal-bio:empty {
	display: none;
}

.tpf-otg__modal-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background-color: #00b3f1;
	color: #ffffff;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	min-height: 64px;
	min-width: 240px;
	font-size: 20px;
	font-weight: 400;
	transition: background-color 0.2s ease;
}

.tpf-otg__modal-linkedin:hover,
.tpf-otg__modal-linkedin:focus-visible {
	background-color: #57aee6;
	color: #ffffff;
	outline: none;
}

.tpf-otg__modal-linkedin-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.tpf-otg__modal-linkedin:not(.is-shown) {
	display: none;
}

body.tpf-otg-locked {
	overflow: hidden;
}

@media (max-width: 900px) {
	.tpf-otg__modal-panel {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 4.25rem 1.5rem 2rem;
	}
	.tpf-otg__modal-photo {
		max-width: 280px;
		aspect-ratio: 299 / 324;
	}
	.tpf-otg__modal-name {
		font-size: 28px;
	}
	.tpf-otg__modal-title {
		font-size: 20px;
	}
	.tpf-otg__modal-bio,
	.tpf-otg__modal-clients {
		font-size: 18px;
		line-height: 28px;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.tpf-otg__heading {
		font-size: 44px;
	}
	.tpf-otg__body {
		font-size: 20px;
		line-height: 30px;
	}
	.tpf-otg__section-heading {
		font-size: 36px;
	}
	.tpf-otg[data-columns="4"] .tpf-otg__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.tpf-otg {
		padding: 3rem 0 3rem;
	}
	.tpf-otg__heading {
		font-size: 32px;
		margin-bottom: 1.25rem;
	}
	.tpf-otg__body {
		font-size: 18px;
		line-height: 26px;
	}
	.tpf-otg__intro {
		margin-bottom: 2rem;
	}
	.tpf-otg__section-heading {
		font-size: 28px;
		margin-bottom: 1.5rem;
	}
	.tpf-otg__grid,
	.tpf-otg[data-columns="3"] .tpf-otg__grid,
	.tpf-otg[data-columns="4"] .tpf-otg__grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 1.5rem;
		row-gap: 2rem;
	}
	.tpf-otg__member-name {
		font-size: 20px;
	}
	.tpf-otg__member-title {
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.tpf-otg__grid,
	.tpf-otg[data-columns="2"] .tpf-otg__grid,
	.tpf-otg[data-columns="3"] .tpf-otg__grid,
	.tpf-otg[data-columns="4"] .tpf-otg__grid {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 1rem;
	}
}
