/**
 * Home team section (2-column grid + pulled quote)
 * Ported from Claude Design export 2026-04-23.
 * Source: reports/design_handoffs/p0-3-team-section-2026-04-23/team-section.html
 *
 * Scoped under .team to avoid leaking custom props into parent theme.
 * Uses logical CSS properties (padding-block, margin-inline, inset-inline-start)
 * so the layout mirrors correctly on [dir="rtl"] pages (Hebrew).
 */

.team {
	--bg:            oklch(0.975 0.005 70);
	--bg-inset:      oklch(0.955 0.006 70);
	--ink:           oklch(0.22 0.01 60);
	--ink-soft:      oklch(0.38 0.01 60);
	--mute:          oklch(0.55 0.01 60);
	--rule:          oklch(0.85 0.01 60);
	--rule-soft:     oklch(0.90 0.008 60);
	--accent:        oklch(0.45 0.02 50);

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--maxw: 1240px;

	padding-block: clamp(72px, 10vw, 144px);
	padding-inline: clamp(20px, 5vw, 56px);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.team *,
.team *::before,
.team *::after { box-sizing: border-box; }

.team img { max-width: 100%; display: block; }

.team__inner {
	max-width: var(--maxw);
	margin-inline: auto;
}

/* ---------- Section header ---------- */
.team__eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
}
.team__eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--accent);
	display: inline-block;
}

.team__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(40px, 5.2vw, 68px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
	color: var(--ink);
}
.team__title em {
	font-style: italic;
	font-weight: 400;
	color: var(--ink-soft);
}

.team__lede {
	font-family: var(--sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.65;
	color: var(--mute);
	max-width: 56ch;
	margin: 0 0 64px;
}

/* ---------- Grid ---------- */
.team__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 56px;
	border-block-start: 1px solid var(--rule);
	padding-block-start: 56px;
}

@media (min-width: 900px) {
	.team__grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 80px;
		row-gap: 64px;
	}
}

/* ---------- Card ---------- */
.team .member {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 0;
}

@media (min-width: 560px) {
	.team .member {
		grid-template-columns: 220px 1fr;
		gap: 32px;
		align-items: start;
	}
}

.team .member__figure {
	margin: 0;
	position: relative;
}

.team .member__photo-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	max-width: 300px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-inset);
}
.team .member__photo-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px oklch(0.22 0.01 60 / 0.08);
	border-radius: inherit;
	pointer-events: none;
}
.team .member__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.92) contrast(1.02);
	transition: transform 900ms cubic-bezier(.2,.6,.2,1);
}
.team .member:hover .member__photo { transform: scale(1.03); }

.team .member__index {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: oklch(1 0 0 / 0.92);
	text-transform: uppercase;
	mix-blend-mode: difference;
}

/* Empty-state placeholder for alma crest when data is pending */
.team .alma__crest--empty {
	background:
		repeating-linear-gradient(
			135deg,
			oklch(0.92 0.008 60) 0 1px,
			transparent 1px 6px
		);
	color: transparent;
}

/* ---------- Body ---------- */
.team .member__body { min-width: 0; }

.team .member__meta {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mute);
	margin: 0 0 14px;
}

.team .member__name {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.08;
	letter-spacing: -0.005em;
	color: var(--ink);
	margin: 0 0 6px;
}

.team .member__role {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 400;
	color: var(--mute);
	margin: 0 0 22px;
}

.team .member__bio {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 24px;
	text-wrap: pretty;
	max-width: 42ch;
}

.team .member__bio--pending {
	min-height: 4.8em;
	display: flex;
	align-items: center;
	padding-inline: 18px;
	border-inline-start: 1px solid var(--rule);
	color: var(--mute);
	font-style: italic;
}

/* "pending data" inline marker — used on role + alma_inst */
.team .is-pending {
	color: var(--mute);
	font-style: italic;
	font-weight: 400;
}

/* ---------- Alma mater row ---------- */
.team .alma {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-block-start: 18px;
	border-block-start: 1px solid var(--rule-soft);
}

.team .alma__crest {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 2px;
	display: grid;
	place-items: center;
	background: var(--bg-inset);
	color: var(--ink-soft);
	font-family: var(--serif);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border: 1px solid var(--rule);
}

.team .alma__text {
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink-soft);
}
.team .alma__inst {
	display: block;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: 0.005em;
}
.team .alma__note {
	display: block;
	font-size: 11px;
	color: var(--mute);
	font-weight: 400;
	margin-block-start: 1px;
}

.team .alma--pending .alma__text { color: var(--mute); }

/* ---------- Pulled quote ---------- */
.team__quote-wrap {
	margin-block-start: clamp(72px, 9vw, 128px);
	padding-block: clamp(48px, 6vw, 88px);
	padding-inline: clamp(24px, 5vw, 72px);
	background: var(--bg-inset);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}
.team__quote-wrap::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: clamp(24px, 5vw, 72px);
	width: 56px;
	height: 1px;
	background: var(--accent);
}

.team__quote {
	margin: 0;
	max-width: 52ch;
	margin-inline: auto;
	text-align: start;
}

.team__quote-mark {
	font-family: var(--serif);
	font-style: italic;
	font-size: 72px;
	line-height: 0.6;
	color: var(--accent);
	display: block;
	margin-block-end: 18px;
	height: 28px;
}

.team__quote-text {
	font-family: var(--serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--ink);
	margin: 0 0 28px;
	text-wrap: balance;
}

.team__quote-cite {
	font-family: var(--sans);
	font-style: normal;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	gap: 14px;
}
.team__quote-cite::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--ink-soft);
	display: inline-block;
}
.team__quote-cite span {
	color: var(--mute);
	font-weight: 400;
}
