.spm-team-directory {
	--spm-blue: #0c0027;
	--spm-gold: #bd843c;
	--spm-black: #141414;
	--spm-gray: #efefef;
	--spm-white: #ffffff;
	width: 100%;
	color: var(--spm-black);
	font-family: "Century Gothic", CenturyGothic, Arial, sans-serif;
}

.spm-team-section {
	margin-block: clamp(54px, 7vw, 96px);
}

.spm-team-section-title {
	margin: 0 0 clamp(28px, 4vw, 48px);
	color: var(--spm-blue);
	font-family: inherit;
	font-size: clamp(1.3rem, 1.8vw, 1.65rem);
	font-weight: 700;
	line-height: 1.15;
}

.spm-team-partners-list {
	border-top: 1px solid var(--spm-gold);
}

.spm-team-partner {
	display: grid;
	grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(26px, 4vw, 52px);
	padding-block: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--spm-gold);
}

.spm-team-partner-media {
	width: 100%;
}

.spm-team-photo {
	display: block;
	width: 100%;
	margin: 0;
	object-fit: cover;
	background: linear-gradient(180deg, var(--spm-white) 0%, #d8d5df 45%, var(--spm-blue) 100%);
}

.spm-team-photo--partner {
	aspect-ratio: 1 / 1;
	border-radius: 8px;
}

.spm-team-photo--card {
	height: 100%;
	aspect-ratio: 4 / 4.7;
	border-radius: 9px;
}

.spm-team-photo--placeholder {
	display: grid;
	place-items: center;
	min-height: 100%;
}

.spm-team-photo--placeholder span {
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(2.1rem, 5vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.05em;
}

.spm-team-name,
.spm-team-card-name {
	margin: 0;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
}

.spm-team-name {
	color: var(--spm-blue);
	font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.spm-team-role {
	margin: 7px 0 4px;
	color: var(--spm-gold);
	font-size: 1rem;
}

.spm-team-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 5px;
}

.spm-team-contact a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.spm-team-email,
.spm-team-linkedin {
	color: var(--spm-gold);
	overflow-wrap: anywhere;
}

.spm-team-email:hover,
.spm-team-email:focus-visible,
.spm-team-linkedin:hover,
.spm-team-linkedin:focus-visible {
	color: var(--spm-blue);
}

.spm-team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.3vw, 32px);
}

.spm-team-card {
	width: 100%;
	max-width: 260px;
	min-width: 0;
	justify-self: center;
}

.spm-team-card-media {
	position: relative;
	overflow: hidden;
	min-height: 300px;
	aspect-ratio: 4 / 4.7;
	border-radius: 9px;
	background: var(--spm-gray);
	isolation: isolate;
}

.spm-team-card-media .spm-team-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 250ms ease;
}

.spm-team-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(12, 0, 39, 0.02) 25%,
		rgba(12, 0, 39, 0.45) 60%,
		rgba(12, 0, 39, 0.96) 100%
	);
}

.spm-team-card-content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 18px 17px;
	color: var(--spm-white);
	font-family: "Century Gothic", CenturyGothic, Arial, sans-serif;
}

.spm-team-directory .spm-team-card-name {
	color: var(--spm-white);
	font-family: "Century Gothic", CenturyGothic, Arial, sans-serif;
	font-size: clamp(0.95rem, 1.15vw, 1.08rem);
	line-height: 1.18;
}

.spm-team-directory .spm-team-card-role {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-family: "Century Gothic", CenturyGothic, Arial, sans-serif;
	font-size: 0.84rem;
	line-height: 1.3;
}

.spm-team-contact--card {
	display: grid;
	gap: 4px;
	margin-top: 5px;
}

.spm-team-directory .spm-team-contact--card .spm-team-email,
.spm-team-directory .spm-team-contact--card .spm-team-linkedin {
	color: rgba(255, 255, 255, 0.9);
	font-family: "Century Gothic", CenturyGothic, Arial, sans-serif;
	font-size: 0.75rem;
	line-height: 1.3;
}

.spm-team-contact--card .spm-team-email:hover,
.spm-team-contact--card .spm-team-email:focus-visible,
.spm-team-contact--card .spm-team-linkedin:hover,
.spm-team-contact--card .spm-team-linkedin:focus-visible {
	color: var(--spm-gold);
}

.spm-team-card:hover .spm-team-photo,
.spm-team-card:focus-within .spm-team-photo {
	transform: scale(1.025);
}

.spm-team-empty {
	padding: 18px 20px;
	border-left: 4px solid var(--spm-gold);
	background: var(--spm-gray);
	color: var(--spm-black);
}

@media (max-width: 1100px) {
	.spm-team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.spm-team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spm-team-partner {
		grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
	}
}

@media (max-width: 580px) {
	.spm-team-section {
		margin-block: 52px;
	}

	.spm-team-partner {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.spm-team-partner-media {
		max-width: 100%;
	}

	.spm-team-photo--partner {
		aspect-ratio: 4 / 5;
	}

	.spm-team-grid {
		grid-template-columns: 1fr;
	}

	.spm-team-card {
		max-width: 100%;
	}

	.spm-team-card-media {
		min-height: 360px;
	}

	.spm-team-card-content {
		padding: 20px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spm-team-card-media .spm-team-photo {
		transition: none;
	}

	.spm-team-card:hover .spm-team-photo,
	.spm-team-card:focus-within .spm-team-photo {
		transform: none;
	}
}
