/**
 * Variant CSS: team--solo-framed-portrait-caption
 * Layer 2 — Path B team role (2026-06-10).
 *
 * One key person as a framed gallery print: a 4:5 portrait set inside a generous
 * passe-partout mat (a thick light card border around the photo) with a centered
 * museum-label caption beneath — name, role, then a thin divider and the bio.
 * Unlike centered-statement (round portrait + manifesto bio), overlay-name
 * (caption on the photo), round-expertise-tags (competence chips) and the 2-col
 * panels, here the photograph is an "exhibit" in a mat and the text is its label.
 * Mat = --background-card; all text polarity-aware (--text-primary/-secondary).
 * Portrait swapped by the photo system (team_1).
 */

body.aibt-universal .universal-team--solo-framed-portrait-caption {
	background: var(--background);
	color: var(--text-primary);
	padding-block: calc(clamp(var(--space-xl), 7vw, var(--space-2xl)) * var(--density, 1));
}

/* === Centered stack ======================================================== */
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__stack {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(var(--space-md), 3.5vw, var(--space-lg));
}

/* === Passe-partout frame =================================================== */
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__frame {
	width: 100%;
	max-width: 380px;
	margin-inline: auto;
	/* The light mat surrounding the photo. */
	background: var(--background-card);
	padding: clamp(var(--space-md), 3vw, var(--space-lg));
	border: var(--decor-border-width, 1px) solid var(--divider-primary);
	border-radius: var(--decor-radius);
	box-shadow: var(--decor-shadow-elevated);
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__photo {
	margin: 0;
	overflow: hidden;
	/* Thin inner line separating the print from its mat. */
	border: var(--decor-border-width, 1px) solid var(--divider-primary);
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-medium) var(--ease-elegant);
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__frame:hover .universal-team__photo img {
	transform: scale(1.035);
}

/* === Caption — museum label =============================================== */
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__caption {
	max-width: 52ch;
	margin-inline: auto;
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__name {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 auto var(--space-3xs) auto !important;
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__role {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-md) auto !important;
	/* Thin divider beneath the identity, before the bio. */
	padding-bottom: var(--space-md);
	border-bottom: var(--decor-border-width, 1px) solid var(--divider-primary);
}
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__bio {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 auto !important;
}

/* === Keyboard focus — visible ring on the focusable portrait (a11y) ======== */
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__photo:focus-visible,
body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__photo img:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: var(--focus-offset, 4px);
}

/* === Reduced motion — neutralise the portrait zoom ========================= */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__photo img {
		transition: none;
	}
	body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__frame:hover .universal-team__photo img {
		transform: none;
	}
}

/* === Responsive =========================================================== */
@media (max-width: 640px) {
	body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__frame {
		max-width: 320px;
		padding: var(--space-sm);
	}
	body.aibt-universal .universal-team--solo-framed-portrait-caption .universal-team__bio {
		font-size: var(--text-base) !important;
	}
}
