/* ============================================================================
   Homepage v5: Who you work with (VOY-2295). Pattern: patterns/home-team.php.
   Spec: docs/design/home/README.md, "Who you work with". Loaded when the
   section renders (inc/home-sections.php).

   Left (0.85fr): heading, the three facts, where we are, the call slot.
   Right (1.15fr): two people cards. Amber dashed marks are the page's
   placeholder colour: things still owed before launch (phone, photos, bio
   approval). Amber is the design system's warn colour, never brand paint.
   ============================================================================ */

.wp-block-group.vy-home-team {
	box-sizing: border-box;
	margin-block: 0;
	padding: 112px 0;
	border-top: 1px solid var(--wp--preset--color--border-hair);
	background: var(--wp--preset--color--bg-canvas);
	color: var(--wp--preset--color--fg-1);
}

.wp-block-group.vy-home-team > .vy-home-team__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 64px;
	align-items: start;
	box-sizing: border-box;
	width: min(1280px, 100% - 160px);
	max-width: none;
	margin-inline: auto;
}

.vy-home-team .vy-home-team__inner > *,
.vy-home-team .vy-home-team__left > *,
.vy-home-team .vy-home-team__how > *,
.vy-home-team .vy-home-team__people > *,
.vy-home-team .vy-home-team__card > *,
.vy-home-team .vy-home-team__body > * {
	margin: 0;
}

/* --- Left ---------------------------------------------------------------- */

.vy-home-team__left {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.vy-home-team__eyebrow {
	margin-bottom: -8px !important;
	color: var(--wp--preset--color--accent-bright);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vy-home-team .vy-home-team__title {
	color: var(--wp--preset--color--fg-1);
	font-family: var(--font-display);
	font-size: 50px;
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.035em;
	text-wrap: wrap;
}

.vy-home-team__how {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--wp--preset--color--border-hair);
}

.vy-home-team__fact {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 4px;
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--border-hair);
}

.vy-home-team__fn {
	grid-row: span 2;
	color: var(--wp--preset--color--accent-bright);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.9;
}

.vy-home-team__ft {
	color: var(--wp--preset--color--fg-1);
	font-family: var(--font-display);
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.vy-home-team__fb {
	color: var(--wp--preset--color--fg-3);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
}

.vy-home-team__where {
	color: var(--wp--preset--color--fg-4);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
}

.vy-home-team__call {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: -8px !important;
	font-family: var(--font-body);
	font-size: 15px;
}

.vy-home-team .vy-home-team__call a {
	color: var(--wp--preset--color--accent-bright);
	text-decoration: none;
}

.vy-home-team .vy-home-team__call a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* A placeholder: dashed amber, a dot, the thing that goes there. */
.vy-home-team__slot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px dashed var(--warn, var(--color-amber-500));
	border-radius: 4px;
	color: var(--wp--preset--color--fg-2);
	font-size: 13.5px;
}

.vy-home-team__slot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--warn, var(--color-amber-500));
}

/* --- People cards -------------------------------------------------------- */

.vy-home-team .vy-home-team__people {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.vy-home-team__card {
	--c: var(--wp--preset--color--accent-bright);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border-1);
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--preset--color--bg-panel) 70%, transparent);
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

/* Bennett's role reads in the board's cyan, Alexandra's in magenta. */
.vy-home-team__card.is-bennett { --c: var(--color-cyan-400); }

.vy-home-team__card:hover {
	translate: 0 -4px;
	border-color: var(--c);
	box-shadow: 0 26px 50px -30px rgb(0 0 0 / 0.85);
}

/* The photo: a core/cover an Editor fills with the portrait. Until then, the
   page's dither rising from the bottom, and the placeholder lines. */
.vy-home-team .vy-home-team__photo {
	min-height: 300px;
	padding: 24px;
	border-bottom: 1px dashed var(--warn, var(--color-amber-500));
	background: linear-gradient(160deg, var(--wp--preset--color--bg-raised), var(--wp--preset--color--bg-canvas));
}

.vy-home-team .vy-home-team__photo .wp-block-cover__image-background {
	object-position: bottom;
	opacity: 0.55;
}

.vy-home-team .vy-home-team__photo .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.vy-home-team .vy-home-team__photo .wp-block-cover__inner-container > * {
	margin: 0;
}

.vy-home-team__ph {
	color: var(--wp--preset--color--fg-2);
	font-family: var(--font-display);
	font-size: 20px;
}

.vy-home-team__owed {
	color: var(--warn, var(--color-amber-500));
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
}

.vy-home-team__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 26px 26px;
}

.vy-home-team__name {
	color: var(--wp--preset--color--fg-1);
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: -0.02em;
}

.vy-home-team__role {
	color: var(--c);
	font-family: var(--font-mono);
	font-size: 11px;
}

.vy-home-team__bio {
	margin-top: 6px !important;
	color: var(--wp--preset--color--fg-2);
	font-family: var(--font-body);
	font-size: 15.5px;
	line-height: 1.65;
}

.vy-home-team__body .vy-home-team__owed {
	margin-top: 6px !important;
}

@media (prefers-reduced-motion: reduce) {
	.vy-home-team__card {
		transition: none;
	}

	.vy-home-team__card:hover {
		translate: none;
	}
}

/* --- Narrower ------------------------------------------------------------ */

@media (max-width: 1099px) {
	.wp-block-group.vy-home-team > .vy-home-team__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* The mobile board: heading, facts, the two cards stacked, then where we are
   and the call slot. */
@media (max-width: 781px) {
	.wp-block-group.vy-home-team {
		padding: 64px 0;
	}

	.wp-block-group.vy-home-team > .vy-home-team__inner {
		display: flex;
		flex-direction: column;
		gap: 0;
		width: calc(100% - 40px);
	}

	.vy-home-team .vy-home-team__left {
		display: contents;
	}

	.vy-home-team__eyebrow {
		margin-bottom: 12px !important;
	}

	.vy-home-team .vy-home-team__title {
		font-size: 32px;
		line-height: 1.08;
	}

	.vy-home-team .vy-home-team__how {
		margin-top: 20px;
	}

	.vy-home-team__fact {
		grid-template-columns: 26px minmax(0, 1fr);
		column-gap: 10px;
		padding: 14px 0;
	}

	.vy-home-team__ft {
		font-size: 17px;
	}

	.vy-home-team__fb {
		font-size: 14.5px;
		line-height: 1.55;
	}

	.vy-home-team .vy-home-team__people {
		order: 3;
		display: flex;
		flex-direction: column;
		gap: 14px;
		margin-top: 24px;
	}

	.vy-home-team__where {
		order: 4;
		margin-top: 18px !important;
		font-size: 14px;
		line-height: 1.6;
	}

	.vy-home-team__call {
		order: 5;
		margin-top: 12px !important;
	}

	.vy-home-team .vy-home-team__photo {
		min-height: 200px !important;
	}

	.vy-home-team .vy-home-team__photo .wp-block-cover__image-background {
		opacity: 0.3;
	}

	.vy-home-team__ph {
		font-size: 18px;
	}

	.vy-home-team__body {
		gap: 6px;
		padding: 18px;
	}

	.vy-home-team__name {
		font-size: 20px;
	}

	.vy-home-team__bio {
		margin-top: 0 !important;
		font-size: 14.5px;
		line-height: 1.6;
	}
}
