/* ===========================================================================
   /our-team/ page template — page-our-team.php + fragments/our-team/content.php
   High-fidelity build from design_handoff_our_team (README + JSX prototype).
   Tokens scoped to .lecm-team so they don't leak into other pages.
=========================================================================== */

.lecm-team {
	--lecm-team-green:      #00A94F;
	--lecm-team-green-hov:  #008C40;
	--lecm-team-green-tint: #E6F6EC;
	--lecm-team-green-dark: #1F4D2E;
	--lecm-team-ink:        #1F2A1A;
	--lecm-team-ink-cool:   #14202A;
	--lecm-team-text-2:     #3A4A2E;
	--lecm-team-muted:      #7A7A7A;
	--lecm-team-rule-soft:  #B5BCAE;
	--lecm-team-border:     #E5E7E0;
	--lecm-team-surface:    #FFFFFF;
	--lecm-team-bg:         #FAFAF7;

	display: block;
	color: var(--lecm-team-ink);
	font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
	-webkit-font-smoothing: antialiased;
}

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

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

.lecm-team__shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 48px;
	width: 100%;
}

.lecm-team__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lecm-team-green);
	line-height: 1.4;
}

/* =========================================================================
   1. Hero
========================================================================= */

.lecm-team__hero {
	position: relative;
	background: linear-gradient(135deg, #1F2A1A 0%, #2D3D24 100%);
	color: #fff;
	padding: 84px 0 56px;
	overflow: hidden;
}

.lecm-team__hero-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 84% 16%, rgba(0,169,79,0.16), transparent 55%);
	pointer-events: none;
}

.lecm-team__hero-shell {
	position: relative;
}

.lecm-team__breadcrumb {
	font-size: 12px;
	color: rgba(255,255,255,0.85);
	margin: 0 0 32px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.lecm-team__breadcrumb a {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	transition: color .14s ease;
}

.lecm-team__breadcrumb a:hover {
	color: #fff;
}

.lecm-team__crumb-sep {
	opacity: 0.5;
}

.lecm-team__breadcrumb > span:last-of-type {
	color: #fff;
}

/* Hero vertical rhythm — match the JSX prototype: breadcrumb 32 → eyebrow,
   eyebrow 22 → H1, H1 0 → intro 28 → end. Astra/Gutenberg margin defaults
   on h1/p need !important to defeat. */
.lecm-team__hero .lecm-team__eyebrow {
	margin: 0 0 22px !important;
}

/* All H1/H2/H3 inside .lecm-team need !important on font-size, font-weight,
   line-height, and letter-spacing because the parent Astra theme ships
   element-targeted heading rules with !important that otherwise force
   font-weight 600 and an oversized H3. */
.lecm-team__hero-title {
	margin: 0 0 0 !important;
	font-size: clamp(40px, 8vw, 84px) !important;
	font-weight: 800 !important;
	line-height: 0.95 !important;
	letter-spacing: -0.028em !important;
	color: #fff !important;
	font-family: 'Manrope', system-ui, sans-serif !important;
}

.lecm-team__hero-accent {
	color: var(--lecm-team-green);
}

.lecm-team__hero-intro {
	margin: 28px 0 0 !important;
	font-size: 19px;
	line-height: 1.6;
	color: rgba(255,255,255,0.78);
	max-width: 640px;
	font-weight: 400;
}

@media (prefers-reduced-motion: no-preference) {
	.lecm-team__hero .lecm-team__breadcrumb,
	.lecm-team__hero .lecm-team__eyebrow,
	.lecm-team__hero-title,
	.lecm-team__hero-intro {
		animation: lecm-team-rise 380ms cubic-bezier(.2,.7,.25,1) both;
	}
	.lecm-team__hero .lecm-team__breadcrumb { animation-delay:   0ms; }
	.lecm-team__hero .lecm-team__eyebrow    { animation-delay:  60ms; }
	.lecm-team__hero-title                  { animation-delay: 120ms; }
	.lecm-team__hero-intro                  { animation-delay: 200ms; }
}

@keyframes lecm-team-rise {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

/* =========================================================================
   2. Team Photo band
========================================================================= */

.lecm-team__photo {
	position: relative;
	background: var(--lecm-team-ink);
	overflow: hidden;
	height: 440px;
}

.lecm-team__photo-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	/* At wide widths the image overflows vertically (~640px at 1920w); a low
	   percentage would crop at the team's legs. Skew slightly above center so
	   heads/torsos stay in frame across breakpoints. */
	object-position: center 40%;
}

.lecm-team__photo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
		rgba(15,22,16,0.78) 0%,
		rgba(15,22,16,0.05) 36%,
		transparent 60%);
	pointer-events: none;
}

.lecm-team__photo-noise {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
	opacity: 0.06;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.lecm-team__photo-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding-top: 0;
	padding-bottom: 32px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	color: #fff;
}

.lecm-team__photo-caption-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lecm-team__photo-caption-title {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.lecm-team__photo-caption-right {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.7);
	line-height: 1.5;
}

/* =========================================================================
   3. Team Directory
========================================================================= */

.lecm-team__directory {
	background: var(--lecm-team-bg);
	padding: 104px 0;
}

.lecm-team__directory-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Member card --------------------------------------------------------- */

.lecm-team-member {
	background: var(--lecm-team-surface);
	border: 1px solid var(--lecm-team-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lecm-team-member:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -20px rgba(31,42,26,0.35);
	border-color: rgba(0,169,79,0.30);
}

.lecm-team-member__photo {
	position: relative;
	height: 240px;
	min-height: 240px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--lecm-team-bg);
	border-bottom: 1px solid var(--lecm-team-border);
}

.lecm-team-member__photo > img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	display: block !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center top;
}

/* Jesse's source photo has more sky above his head than the others, so
   the default `center top` clipped at face level. Shift down a touch. */
.lecm-team-member--jesse-pentland .lecm-team-member__photo > img {
	object-position: center 22% !important;
}

.lecm-team-member__photo--placeholder {
	display: grid;
	place-items: center;
	height: 240px;
	min-height: 240px;
	border-bottom: 1px solid var(--lecm-team-border);
}

.lecm-team-member__photo--placeholder {
	background-size: cover;
	background-position: center;
	display: grid;
	place-items: center;
	color: #fff;
}

.lecm-team-member__photo-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(0,0,0,0.22);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 4px 8px;
	border-radius: 4px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	z-index: 2;
}

.lecm-team-member__photo-initials {
	font-size: 62px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	z-index: 1;
	font-family: 'Manrope', system-ui, sans-serif;
}

.lecm-team-member__photo-highlight {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 22%, rgba(255,255,255,0.18), transparent 55%);
	pointer-events: none;
}

.lecm-team-member__photo-noise {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
	opacity: 0.10;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.lecm-team-member__body {
	padding: 20px 22px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.lecm-team-member__name {
	margin: 0;
	font-size: 19px !important;
	font-weight: 800 !important;
	letter-spacing: -0.015em !important;
	color: var(--lecm-team-ink) !important;
	line-height: 1.2 !important;
	font-family: 'Manrope', system-ui, sans-serif !important;
}

.lecm-team-member__title {
	margin: 4px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--lecm-team-green);
	line-height: 1.35;
}

.lecm-team-member__meta {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.lecm-team-member__dept {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lecm-team-muted);
}

.lecm-team-member__dot {
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background: var(--lecm-team-rule-soft);
	display: inline-block;
}

.lecm-team-member__years {
	background: var(--lecm-team-green-tint);
	color: var(--lecm-team-green-dark);
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 13px;
	font-weight: 800;
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	line-height: 1.2;
}

.lecm-team-member__years-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lecm-team-member__spec {
	margin-top: 14px;
	margin-bottom: 18px;
}

.lecm-team-member__spec-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--lecm-team-muted);
	margin-bottom: 10px;
}

.lecm-team-member__chips {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lecm-team-member__chip {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--lecm-team-text-2);
	background: var(--lecm-team-bg);
	border: 1px solid var(--lecm-team-border);
	border-radius: 999px;
	padding: 5px 11px;
	line-height: 1.3;
}

.lecm-team-member__actions {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--lecm-team-border);
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

/* Per the design: soft mint pill with dark-green text and icons. Fills to
   solid brand green + white on hover. */
.lecm-team-member__articles {
	flex: 1;
	background: var(--lecm-team-green-tint);
	color: var(--lecm-team-green-dark) !important;
	text-decoration: none;
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 12.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color .14s ease, color .14s ease;
	line-height: 1;
}

.lecm-team-member__articles:hover,
.lecm-team-member__articles:focus-visible {
	background: var(--lecm-team-green);
	color: #fff !important;
}

.lecm-team-member__articles-arrow {
	transition: transform .18s ease;
}

.lecm-team-member__articles:hover .lecm-team-member__articles-arrow {
	transform: translateX(3px);
}

.lecm-team-member__icon-btn {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--lecm-team-border);
	border-radius: 6px;
	color: var(--lecm-team-text-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: border-color .14s ease, color .14s ease;
}

.lecm-team-member__icon-btn:hover {
	border-color: var(--lecm-team-green);
	color: var(--lecm-team-green);
}

.lecm-team-member__icon-btn--linkedin {
	color: #0A66C2 !important;
}

.lecm-team-member__icon-btn--linkedin:hover {
	color: #0A66C2 !important;
	border-color: #0A66C2;
}

/* LinkedIn glyph reads stronger at a slightly larger size, matching design.
   fill is also forced because Astra link rules win over currentColor on svgs. */
.lecm-team-member__icon-btn--linkedin svg {
	width: 20px;
	height: 20px;
	fill: #0A66C2 !important;
}

/* "We're hiring" callout ---------------------------------------------- */

.lecm-team__hiring {
	margin-top: 56px;
	background: var(--lecm-team-surface);
	border: 1px solid var(--lecm-team-border);
	border-radius: 12px;
	padding: 40px 44px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}

.lecm-team__hiring-text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lecm-team__hiring-line {
	margin: 0;
	font-size: 26px !important;
	font-weight: 800 !important;
	color: var(--lecm-team-ink) !important;
	line-height: 1.25 !important;
	letter-spacing: -0.018em !important;
}

.lecm-team__hiring-cta {
	background: var(--lecm-team-green);
	color: #fff !important;
	text-decoration: none !important;
	padding: 16px 26px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: background .14s ease;
}

.lecm-team__hiring-cta:hover,
.lecm-team__hiring-cta:focus-visible {
	background: var(--lecm-team-green-hov);
	color: #fff !important;
	text-decoration: none !important;
}

.lecm-team__hiring-cta svg {
	transition: transform .18s ease;
}

.lecm-team__hiring-cta:hover svg {
	transform: translateX(3px);
}

/* =========================================================================
   4. Values band
========================================================================= */

.lecm-team__values {
	position: relative;
	background: var(--lecm-team-ink-cool);
	color: #fff;
	padding: 104px 0;
	overflow: hidden;
}

.lecm-team__values-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 0%, rgba(0,169,79,0.16), transparent 55%);
	pointer-events: none;
}

.lecm-team__values-head {
	position: relative;
	max-width: 660px;
	margin: 0 0 56px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.lecm-team__values-title {
	margin: 0;
	font-size: 44px !important;
	font-weight: 800 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.022em !important;
	color: #fff !important;
	font-family: 'Manrope', system-ui, sans-serif !important;
}

.lecm-team__values-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.lecm-team-value {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 10px;
	padding: 30px 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.lecm-team-value:hover {
	transform: translateY(-2px);
	border-color: rgba(0,169,79,0.35);
	background: rgba(255,255,255,0.06);
}

.lecm-team-value__index {
	font-size: 13px;
	font-weight: 800;
	color: var(--lecm-team-green);
	letter-spacing: 0.04em;
}

.lecm-team-value__title {
	margin: 0;
	font-size: 19px !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1.25 !important;
	letter-spacing: -0.005em !important;
}

.lecm-team-value__body {
	margin: 0;
	font-size: 13.5px;
	color: rgba(255,255,255,0.62);
	line-height: 1.6;
}

/* =========================================================================
   5. CTA strip
========================================================================= */

.lecm-team__cta {
	background: var(--lecm-team-green);
	color: #fff;
	padding: 84px 0;
}

.lecm-team__cta-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	align-items: center;
}

.lecm-team__cta-eyebrow {
	color: rgba(255,255,255,0.75);
}

.lecm-team__cta-title {
	margin: 22px 0 24px !important;
	font-size: 44px !important;
	font-weight: 800 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.022em !important;
	color: #fff !important;
	font-family: 'Manrope', system-ui, sans-serif !important;
}

.lecm-team__cta-body {
	margin: 0;
	font-size: 16px;
	color: rgba(255,255,255,0.88);
	line-height: 1.6;
	max-width: 460px;
}

.lecm-team__cta-right {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lecm-team__cta-btn {
	border-radius: 6px;
	padding: 18px 26px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	transition: background .14s ease, border-color .14s ease, color .14s ease;
	line-height: 1.2;
}

.lecm-team__cta-btn--primary {
	background: #fff;
	color: var(--lecm-team-ink) !important;
	justify-content: space-between;
}

.lecm-team__cta-btn--primary:hover,
.lecm-team__cta-btn--primary:focus-visible {
	color: var(--lecm-team-green-dark) !important;
	background: #fff;
}

.lecm-team__cta-btn--primary svg {
	transition: transform .18s ease;
}

.lecm-team__cta-btn--primary:hover svg {
	transform: translateX(3px);
}

.lecm-team__cta-btn--secondary {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.45);
	color: #fff !important;
	justify-content: center;
}

.lecm-team__cta-btn--secondary:hover,
.lecm-team__cta-btn--secondary:focus-visible {
	background: rgba(255,255,255,0.06);
	border-color: #fff;
	color: #fff !important;
}

/* =========================================================================
   Responsive
========================================================================= */

@media (max-width: 1024px) {
	.lecm-team__hero       { padding: 64px 0 44px; }
	.lecm-team__directory  { padding: 72px 0; }
	.lecm-team__values     { padding: 72px 0; }
	.lecm-team__cta        { padding: 64px 0; }

	.lecm-team__directory-grid { grid-template-columns: repeat(2, 1fr); }
	.lecm-team__values-grid    { grid-template-columns: repeat(2, 1fr); }

	.lecm-team__values-title { font-size: 36px !important; }
	.lecm-team__cta-title    { font-size: 36px !important; }

	.lecm-team__hiring       { padding: 32px; }
	.lecm-team__hiring-line  { font-size: 22px !important; }
}

@media (max-width: 768px) {
	.lecm-team__shell { padding: 0 24px; }

	.lecm-team__hero       { padding: 48px 0 32px; }
	.lecm-team__directory  { padding: 56px 0; }
	.lecm-team__values     { padding: 56px 0; }
	.lecm-team__cta        { padding: 48px 0; }

	.lecm-team__directory-grid { grid-template-columns: 1fr; }
	.lecm-team__values-grid    { grid-template-columns: 1fr; gap: 14px; }

	.lecm-team__hero-intro { font-size: 16px; }

	.lecm-team__photo { max-height: none; }

	.lecm-team__photo-caption {
		position: relative;
		background: var(--lecm-team-ink);
		padding: 22px 0 26px;
	}
	.lecm-team__photo-caption-right { font-size: 12px; }

	.lecm-team__hiring {
		grid-template-columns: 1fr;
		padding: 28px 24px;
		gap: 20px;
	}
	.lecm-team__hiring-cta { justify-content: center; }
	.lecm-team__hiring-line { font-size: 20px !important; }

	.lecm-team__values-title { font-size: 28px !important; }
	.lecm-team__cta-title    { font-size: 28px !important; }

	.lecm-team__cta-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.lecm-team__cta-body { max-width: 100%; }
}
