
:root {
	--yw-blue: #6b8fe8;
	--yw-ink: #1a1a1a;
	--yw-muted: #5c5c5c;
	--yw-line: #e6e6e6;
	--yw-bg: #f5f5f5;
	--yw-white: #ffffff;
}

.page-our_team {
	background: var(--yw-white) !important;
}

.page-our_team.yw-team-ready > .block-header,
.page-our_team.yw-team-ready > .block-our-team,
.page-our_team.yw-team-ready > .block-animated-dynamic-text,
.page-our_team .block-animated-dynamic-text,
.page-content:has(.page-our_team) > .block-animated-dynamic-text {
	display: none !important;
}

/* =========================================================
   HERO
   ========================================================= */
.yw-team-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(280px, 36vw, 380px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #1a1a1a;
}

.yw-team-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.yw-team-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-team-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(12, 12, 12, 0.62) 0%,
		rgba(12, 12, 12, 0.38) 42%,
		rgba(12, 12, 12, 0.18) 100%
	);
}

.yw-team-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 3.25rem clamp(1.25rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.yw-team-hero h1 {
	margin: 0 0 0.75rem;
	max-width: 16em;
	color: #fff;
	font-size: clamp(1.7rem, 2.8vw, 2.45rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.yw-team-hero__sub {
	margin: 0 0 1.4rem;
	max-width: 32rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.95rem, 1.15vw, 1.05rem);
	line-height: 1.55;
}

.yw-team-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.yw-team-hero__ctas .yw-team-btn {
	background: var(--yw-blue);
	border-color: var(--yw-blue);
	color: #fff !important;
}

.yw-team-hero__ctas .yw-team-btn:hover {
	background: #5a7fdc;
	border-color: #5a7fdc;
}

/* =========================================================
   INTRO + GRID
   ========================================================= */
.yw-team {
	background: var(--yw-white);
}

.yw-team__intro {
	max-width: calc(3 * 300px + 2 * 1.25rem);
	margin: 0 auto;
	padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem) 0.5rem;
	text-align: center;
	box-sizing: border-box;
}

.yw-team-label {
	display: inline-block;
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yw-blue);
}

.yw-team__intro h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	letter-spacing: -0.02em;
	color: var(--yw-ink);
}

.yw-team__intro p {
	margin: 0;
	color: var(--yw-muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

.yw-team-grid-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.yw-team-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 300px));
	justify-content: center;
	gap: 1.25rem;
	align-items: stretch;
}

.yw-team-card {
	border: 1px solid var(--yw-line);
	border-radius: 10px;
	background: #fff;
	padding: 1.6rem 1.25rem 1.35rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center !important;
	min-height: 100%;
	height: auto;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.yw-team-card.is-expanded {
	height: auto !important;
	min-height: 0;
	align-self: start;
}

.yw-team-card:hover {
	border-color: #d0d0d0;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.yw-team-card__photo {
	width: 7.5rem;
	height: 7.5rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--yw-bg);
	border: 1px solid var(--yw-line);
	margin: 0 auto 1rem;
	flex-shrink: 0;
}

.yw-team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-team-card__photo.is-empty {
	background: #e8e8e8;
}

.yw-team-card h3 {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--yw-ink);
	letter-spacing: -0.015em;
	text-align: center;
	width: 100%;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.yw-team-card__role {
	margin: 0 0 0.85rem;
	font-size: 0.86rem;
	line-height: 1.35;
	color: var(--yw-muted);
	text-align: center;
	width: 100%;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.yw-team-card__bio {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	box-sizing: border-box;
}

.yw-team-card.is-expanded .yw-team-card__bio {
	flex: 0 0 auto;
}

.yw-team-card__desc {
	margin: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--yw-muted);
	text-align: center !important;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
	/* max-height clamp is more reliable than -webkit-line-clamp on mobile */
	display: block;
	max-height: calc(0.88rem * 1.55 * 4);
	overflow: hidden;
}

.yw-team-card.is-expanded .yw-team-card__desc {
	display: block !important;
	max-height: none !important;
	overflow: visible !important;
	height: auto !important;
}

.yw-team-card__more {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.65rem 0 0;
	margin-top: auto;
	align-self: center;
	flex-shrink: 0;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--yw-ink);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	line-height: 1;
}

.yw-team-card__more:hover {
	color: var(--yw-blue);
}

.yw-team-card__more[hidden] {
	display: none !important;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.yw-team-band {
	background: #151515;
	color: #fff;
	text-align: center;
	padding: 3.5rem 1.25rem;
}

.yw-team-band h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.yw-team-band p {
	margin: 0 auto 1.35rem;
	max-width: 34rem;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.yw-team-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.85rem 1.35rem;
	border-radius: 5px;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	min-height: 44px;
	background: var(--yw-blue);
	border: 1px solid var(--yw-blue);
	color: #fff !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.yw-team-btn:hover {
	background: #5a7fdc;
	border-color: #5a7fdc;
	transform: translateY(-1px);
}

@media (max-width: 960px) {
	.yw-team-grid {
		grid-template-columns: repeat(2, minmax(0, 300px));
	}
}

@media (max-width: 560px) {
	.yw-team-hero {
		min-height: min(58vh, 420px);
	}

	.yw-team-hero__media::after {
		background: linear-gradient(
			180deg,
			rgba(12, 12, 12, 0.35) 0%,
			rgba(12, 12, 12, 0.58) 55%,
			rgba(12, 12, 12, 0.72) 100%
		);
	}

	.yw-team-hero h1 {
		max-width: none;
	}

	.yw-team-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.yw-team-grid {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		width: 100%;
		max-width: 320px;
		margin: 0 auto;
	}

	.yw-team-card,
	.yw-team-card.is-expanded {
		width: 100%;
		max-width: 100%;
		min-height: 0;
		height: auto !important;
		align-self: stretch;
	}

	.yw-team-card__bio,
	.yw-team-card__desc {
		min-width: 0;
		max-width: 100%;
	}

}

@media (prefers-reduced-motion: reduce) {
	.yw-team-card,
	.yw-team-btn {
		transition: none !important;
	}

	.yw-team-card:hover,
	.yw-team-btn:hover {
		transform: none;
	}
}
