/**
 * Variant CSS: team--founder-offset-accent
 * Layer 2 — Path B team role (2026-06-10).
 *
 * One key person with a depth treatment: a 4:5 portrait with an offset coloured
 * accent panel peeking out from behind it (a CSS ::before layer), and a body column
 * beside with kicker, name, role and a fuller bio. Unlike the flat single-founder-
 * spotlight, the dark founder-stat-panel and the centered statement, the portrait
 * "lifts" off the page via the offset accent block, giving a gallery-like, layered
 * feel. Text stays --ink (polarity-aware) so it works on every theme; kicker + role
 * take --accent. Portrait swapped by the photo system (team_1). Part of the `team`
 * role.
 */

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

/* === Split layout ========================================================= */
body.aibt-universal .universal-team--founder-offset-accent .universal-team__split {
	gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
	align-items: center;
}

/* === Portrait + offset accent panel ======================================= */
/* The aside is the positioning context; the ::before accent block is offset down
   and to the left, sitting BEHIND the portrait for a layered, gallery feel. */
body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside {
	position: relative;
	isolation: isolate;
}
body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: calc(-1 * clamp(var(--space-sm), 2.5vw, var(--space-lg)));
	bottom: calc(-1 * clamp(var(--space-sm), 2.5vw, var(--space-lg)));
	width: 62%;
	height: 78%;
	border-radius: var(--decor-radius);
	/* Soft accent wash so it reads as a deliberate panel on any theme bg. */
	background: var(--accent-fade);
	border: var(--decor-border-width, 1px) solid var(--accent);
}

body.aibt-universal .universal-team--founder-offset-accent .universal-team__photo {
	position: relative;
	margin: 0;
	border-radius: var(--decor-radius);
	overflow: hidden;
	box-shadow: var(--decor-shadow-elevated);
}
body.aibt-universal .universal-team--founder-offset-accent .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--founder-offset-accent .universal-team__aside:hover .universal-team__photo img {
	transform: scale(1.035);
}

/* === Body column ========================================================== */
body.aibt-universal .universal-team--founder-offset-accent .universal-team__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}
body.aibt-universal .universal-team--founder-offset-accent .universal-team__name {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 0 var(--space-2xs) 0 !important;
}
body.aibt-universal .universal-team--founder-offset-accent .universal-team__role {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-md) 0 !important;
}
body.aibt-universal .universal-team--founder-offset-accent .universal-team__bio {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.86;
	margin: 0 !important;
	max-width: 54ch;
}

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

/* === Reduced motion ======================================================= */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__photo img {
		transition: none;
	}
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside:hover .universal-team__photo img {
		transform: none;
	}
}

/* === Responsive =========================================================== */
/* Tablet (641–959): trim the bio scale; keep the offset accent visible. */
@media (max-width: 959px) {
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__bio {
		font-size: var(--text-base) !important;
	}
}

/* Mobile (≤640 — WP stacks columns at 781): portrait above, cap width, shrink the
   offset so the accent panel never bleeds off-screen (0 horizontal overflow). */
@media (max-width: 781px) {
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__split {
		flex-wrap: wrap;
	}
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside,
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__body {
		flex-basis: 100% !important;
		width: 100%;
	}
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside {
		max-width: 360px;
		margin-bottom: clamp(var(--space-md), 5vw, var(--space-lg));
	}
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__aside::before {
		left: calc(-1 * var(--space-xs));
		bottom: calc(-1 * var(--space-xs));
	}
}

@media (max-width: 640px) {
	body.aibt-universal .universal-team--founder-offset-accent .universal-team__kicker {
		letter-spacing: var(--tracking-wider) !important;
	}
}
