/*
 * TEP 2026: Home page and the shared saved rows built with it ("TEP – …" saved rows).
 * Figma: Home 2625:11793. Values come from the "TEP Group 2026" design system tokens (--ds-*).
 * Card shells for posts (.tep-pcard / .tep-ecard / .tep-card__*) live in tep-templates.css and are reused here.
 */

/* ---------- Split hero + nav cards (2625:11795) ---------- */
/* Figma: 64px title on a 96px line, 562px text column, 15px to the lead. BugHerd 103 (2026-11-14, client):
   a little tighter than Figma, 1.3 (83px), on the Home, Services and Industries heroes, which share this class */
.tep-hero .bb-display {
	max-width: 562px;
	margin-bottom: 15px !important;
	font-size: var(--ds-text-display);
	line-height: var(--ds-line-snug);
}

.tep-hero .fl-module-rich-text {
	max-width: 562px;
}

/* Figma buttons are 47px tall */
.tep-hero .fl-button-wrap a.fl-button,
.tep-featured-event .fl-button-wrap a.fl-button {
	padding-top: 12.5px;
	padding-bottom: 12.5px;
}

/* Glow at the top of the network background (Figma fill; BB's photo background hides .bb-network-bg's gradient).
   Figma 2625:11795 / 2744:4970. */
.tep-hero > .fl-row-content-wrap::before,
.tep-stats > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 75% 600px at 50% 0, var(--ds-color-glow), rgba(135, 185, 216, 0));
}

.tep-stats > .fl-row-content-wrap::before {
	background: radial-gradient(ellipse 75% 100% at 50% 0, var(--ds-color-glow), rgba(135, 185, 216, 0));
}

.tep-hero > .fl-row-content-wrap > .fl-row-content,
.tep-stats > .fl-row-content-wrap > .fl-row-content {
	position: relative;
	z-index: 1;
}

.tep-navcard {
	position: relative;
}

.tep-navcard > .fl-col-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 25px;
	min-height: 399px;
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	box-shadow: var(--ds-shadow-card);
	overflow: hidden;
	transition: box-shadow var(--ds-transition-base), transform var(--ds-transition-base);
}

.tep-navcard:hover .tep-navcard__title::after,
.tep-navcard:focus-within .tep-navcard__title::after {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
	background-size: 32px 32px;
}

.tep-navcard .tep-navcard__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-surface);
}

/* Red arrow box (Figma 2610:3775) */
.tep-navcard .tep-navcard__title::before {
	display: none;
}

.tep-navcard .tep-navcard__title::after {
	content: "";
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: var(--ds-radius-sm);
	transition: width var(--ds-transition-base), height var(--ds-transition-base), flex-basis var(--ds-transition-base);
	background: var(--ds-color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M8 20 20 8M13.25 8H20v6.75' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
}

.tep-navcard .tep-navcard__title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is the link. BB gives every module position:relative, which trapped the stretched
   ::after inside the 31px heading; making the heading static lets it fill .fl-col-content (the card).
   BB's overlay-column rule (.fl-col-bg-overlay .fl-col-content > * { z-index: 2 }) gives the heading
   a z-index, and in the flex card that alone makes the heading its own stacking context. z-index 3
   puts that context (title text + the stretched link layer inside it) above the description module (2)
   and the photo overlay (::after, 0). With z-index:auto the overlay covered the white title text
   (review feedback 2026-11-02: "h2s are now too dark"). */
.tep-navcard .fl-module-heading.tep-navcard__title {
	position: static;
	z-index: 3;
}

.tep-navcard .tep-navcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: var(--ds-radius-sm);
}

/* Keyboard focus outlines the whole card, not just the title text */
.tep-navcard .tep-navcard__title a:focus-visible {
	outline: none;
}

.tep-navcard .tep-navcard__title a:focus-visible::after {
	outline: 3px solid var(--ds-color-surface);
	outline-offset: -6px;
}

.tep-navcard .tep-navcard__text,
.tep-navcard .tep-navcard__text p {
	margin: 0;
	color: var(--ds-color-surface);
}

/* ---------- Client logo strip (2750:13549) ---------- */
/* 2026-11-10: the strip is a PowerPack Logos Grid in Ticker layout (class tep-logo-ticker, all 10 approved logos,
   scripts/logo-ticker-20261110.php) that scrolls left continuously at every width. Logos are wide wordmarks and
   stacked marks (1.9:1 to 6.7:1), so each fits a shared 210x64 box (Figma's fixed 150px width left the widest
   ~23px tall). The edges fade out, the ticker pauses on hover and keyboard focus, and visitors who turn off
   motion get a still row they can swipe instead (PowerPack's copies of the logos hidden). */
.tep-logo-ticker .pp-logos-content.is-ticker {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.tep-logo-ticker .pp-logos-ticker .pp-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tep-logo-ticker .pp-logos-ticker img.logo-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 210px;
	max-height: 64px;
	object-fit: contain;
}

.tep-logo-ticker:hover .pp-logos-ticker,
.tep-logo-ticker:focus-within .pp-logos-ticker {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.tep-logo-ticker .pp-logos-content.is-ticker {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.tep-logo-ticker .pp-logos-ticker {
		animation: none;
	}

	.tep-logo-ticker .pp-logo-clone {
		display: none;
	}
}

/* 2026-11-09 (BugHerd 11, 40): Figma leaves ~120px between the hero's lowest card and the logos (2625:11793).
   Industries' hero row had 110px bottom padding (+ the strip's 10px top); Home and Services had 50px, so their
   logos sat 60px under the cards. Every hero directly above a logo strip now gets 110px. Desktop only: the phone
   layout sets its own hero/strip spacing in tep-global.css. */
@media (min-width: 993px) {
	.fl-row.tep-hero:has(+ .fl-row.tep-logo-strip) > .fl-row-content-wrap {
		padding-bottom: 110px;
	}
}

/* ---------- Section intros ---------- */
.tep-eyebrow,
.tep-eyebrow p {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: var(--ds-line-heading);
	text-transform: uppercase;
	color: var(--ds-color-primary);
}

h2.tep-eyebrow-dark {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: var(--ds-line-heading);
	text-transform: uppercase;
	color: var(--ds-color-black);
}

/* ---------- Industries: cards over a photo (2625:11797) ---------- */
.tep-intro-narrow {
	max-width: 720px;
	margin-inline: auto !important;
}

.tep-industries-stage > .fl-row-content-wrap {
	background-size: 700px 900px;
	background-repeat: no-repeat;
	background-position: center top;
}

.tep-infocard .pp-infobox {
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: 0 4px 25px 5px rgba(var(--ds-color-shadow-rgb), 0.1);
}

.tep-infocard .layout-3-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.tep-infocard .pp-icon-wrapper {
	flex: 0 0 50px;
	margin: 0;
}

.tep-infocard .pp-infobox-image img {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.tep-infocard .pp-heading-wrapper {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.tep-infocard .pp-infobox-title {
	margin: 0 0 20px !important;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-black);
}

.tep-infocard .pp-description-wrap,
.tep-infocard .pp-description-wrap p {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-infocard .pp-more-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-sm);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ds-color-black);
}

.tep-infocard .pp-more-link::after,
.tep-link-arrow::after {
	content: "";
	width: 22px;
	height: 14.72px;
	background: var(--tep-arrow-red) center / contain no-repeat;
	transition: transform var(--ds-transition-base);
}

.tep-infocard .pp-more-link:hover::after,
.tep-infocard .pp-more-link:focus-visible::after,
.tep-link-arrow:hover::after,
.tep-link-arrow:focus-visible::after {
	transform: translateX(4px);
}

/* Hover (Figma Info Box Variant3 → Variant5, 787:973 / 2623:7061): the card fills with the black → blue
   gradient and everything on it turns white. */
.tep-infocard .pp-infobox:hover,
.tep-infocard .pp-infobox:focus-within {
	background: linear-gradient(180deg, var(--ds-color-black) 0%, var(--ds-color-secondary) 100%);
}

.tep-infocard .pp-infobox-title,
.tep-infocard .pp-description-wrap,
.tep-infocard .pp-description-wrap p,
.tep-infocard .pp-more-link {
	transition: color var(--ds-transition-base);
}

.tep-infocard .pp-infobox:hover .pp-infobox-title,
.tep-infocard .pp-infobox:hover .pp-description-wrap,
.tep-infocard .pp-infobox:hover .pp-description-wrap p,
.tep-infocard .pp-infobox:hover .pp-more-link,
.tep-infocard .pp-infobox:focus-within .pp-infobox-title,
.tep-infocard .pp-infobox:focus-within .pp-description-wrap,
.tep-infocard .pp-infobox:focus-within .pp-description-wrap p,
.tep-infocard .pp-infobox:focus-within .pp-more-link {
	color: var(--ds-color-surface);
}

/* The line icons are opaque PNGs (blue lines on white). Inverted and brightened, the background goes black
   and the lines white; "screen" then drops the black, leaving white lines on the gradient. */
.tep-infocard .pp-infobox:hover .pp-infobox-image img,
.tep-infocard .pp-infobox:focus-within .pp-infobox-image img {
	filter: grayscale(1) invert(1) brightness(2.6);
	mix-blend-mode: screen;
}

.tep-infocard .pp-infobox:hover .pp-more-link::after,
.tep-infocard .pp-infobox:focus-within .pp-more-link::after {
	background-image: var(--tep-arrow-white);
}

/* ---------- Stats band (2653:4401) ---------- */
.tep-stats .tep-eyebrow-dark {
	margin-bottom: 40px !important;
}

.tep-stat .bb-stat-label {
	margin-top: 19px;
}

.tep-stats-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px 40px;
}

.tep-stat p {
	margin: 0;
}

.tep-stat .bb-stat-label {
	white-space: nowrap;
}

/* ---------- Notable Projects grid (2723:4750) ---------- */
.tep-np-intro {
	padding: 58px 50px 60px;
	border-radius: var(--ds-radius-sm);
}

.tep-np-intro h2 {
	margin: 0 0 23px;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-6xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-surface);
}

.tep-np-intro p {
	margin: 0;
	color: var(--ds-color-surface);
}

.tep-projcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 25px;
	height: 100%;
	min-height: 300px;
	padding: 35px 25px;
	border-radius: var(--ds-radius-sm);
	box-shadow: 0 4px 25px 0 rgba(var(--ds-color-shadow-rgb), 0.15);
	background: var(--ds-color-black);
	overflow: hidden;
	isolation: isolate;
	color: var(--ds-color-surface);
	text-decoration: none;
}

.tep-projcard__img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.tep-projcard__img img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 400ms ease;
}

.tep-projcard::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, var(--ds-color-black) 100%);
}

.tep-projcard:hover,
.tep-projcard:focus-visible {
	color: var(--ds-color-surface);
	text-decoration: none;
}

.tep-projcard:hover::before,
.tep-projcard:focus-visible::before {
	background: var(--tep-card-hover-overlay);
}

/* .tep-projcard prefix: .fl-ds-page h3 would otherwise win (36px instead of Figma's 30px) */
.tep-projcard .tep-projcard__title {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-2xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-surface);
}

.tep-projcard .bb-tag-outline {
	color: var(--ds-color-surface);
}

.tep-projcard--featured {
	min-height: 620px;
}

/* Small cards: image only (Figma); the title fades in on hover/focus */
.tep-projcard--small {
	min-height: 0;
	padding: 20px;
}

.tep-projcard--small::before {
	opacity: 0;
	transition: opacity var(--ds-transition-base);
}

.tep-projcard.tep-projcard--small .tep-projcard__title {
	font-size: var(--ds-text-lg);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--ds-transition-base), transform var(--ds-transition-base);
}

.tep-projcard--small:hover::before,
.tep-projcard--small:focus-visible::before,
.tep-projcard--small:hover .tep-projcard__title,
.tep-projcard--small:focus-visible .tep-projcard__title {
	opacity: 1;
	transform: none;
}

/* Small-card hover (Figma project 2645:4768 → 4770): the project's service tags, then its title,
   fade in at the bottom over the blue → black overlay. */
.tep-projcard__hover {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tep-projcard--small .tep-tags {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--ds-transition-base), transform var(--ds-transition-base);
}

.tep-projcard--small:hover .tep-tags,
.tep-projcard--small:focus-visible .tep-tags {
	opacity: 1;
	transform: none;
}

.tep-projcard.tep-projcard--small .tep-projcard__title {
	font-size: var(--ds-text-xl);
}

/* Featured-card hover (Figma 2649:4901 → 4903): a one-line description opens under the tags. */
.tep-projcard__excerpt {
	display: block;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: -25px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-surface);
	transition: max-height var(--ds-transition-base), opacity var(--ds-transition-base), margin-top var(--ds-transition-base);
}

.tep-projcard__excerpt p {
	margin: 0;
}

.tep-projcard--featured:hover .tep-projcard__excerpt,
.tep-projcard--featured:focus-visible .tep-projcard__excerpt {
	max-height: 12em;
	opacity: 1;
	margin-top: 0;
}

/* Posts modules inside the grid: BB floats the columns; make them stretch to equal height */
.tep-np-small .fl-post-grid,
.tep-news-grid .fl-post-grid {
	display: flex;
	flex-wrap: wrap;
}

.tep-np-small .fl-post-grid::before,
.tep-np-small .fl-post-grid::after,
.tep-news-grid .fl-post-grid::before,
.tep-news-grid .fl-post-grid::after {
	display: none;
}

.tep-np-small .fl-post-column {
	padding-bottom: 0 !important;
}

.tep-np-small .fl-post-column > div {
	height: 300px;
}

.tep-np-featured,
.tep-np-featured .fl-module-content,
.tep-np-featured .fl-post-grid,
.tep-np-featured .fl-post-column,
.tep-np-featured .fl-post-column > div {
	height: 100%;
}

.tep-np-featured .fl-post-column {
	padding: 0 !important;
}

/* The featured card matches the left column (intro + 35px + 300px photos) at every width, as in Figma's
   grid; a fixed min-height left the photos 4-12px short of its bottom edge below 1366px. */
@media (min-width: 769px) {
	.tep-notable .fl-col-group {
		display: flex;
	}

	.tep-notable .fl-col-group::before,
	.tep-notable .fl-col-group::after {
		display: none;
	}

	.tep-notable .fl-col {
		float: none;
	}

	.tep-notable .fl-col > .fl-col-content {
		height: 100%;
	}

	.tep-notable .tep-projcard--featured {
		min-height: 0;
	}
}

/* ---------- Awards row (2707:9399) ---------- */
/* Home: the network pattern closes the stats → projects → awards band (Figma 2744:4970) */
body.home .tep-awards > .fl-row-content-wrap {
	background: url("../../../uploads/2016/08/tep-network-background.jpg") center bottom / 100% auto no-repeat;
}

.tep-awards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 50px;
}

.tep-award p {
	margin: 0;
	line-height: var(--ds-line-body);
}

/* ---------- Customer testimonials (desktop 3126:9044, mobile 3301:6116), saved row 6682 in the Awards slot ----------
   Same layout as the Core Values carousel: heading in a 42% column on the left, one 560px card at a time
   on the right with the next one peeking in at the screen edge, red arrows bottom right (shared rules in
   tep-about.css). Stacks at the BB medium breakpoint; phones centre the heading and arrows (mobile frame).
   Quotes come from the designer's "Customer Testimonials" sheet. */
body.home .tep-testimonials > .fl-row-content-wrap {
	background: url("../../../uploads/2016/08/tep-network-background.jpg") center bottom / 100% auto no-repeat;
}

/* ---------- Home: one background for stats → Notable Projects → testimonials (BugHerd 88, 2026-11-09) ----------
   Figma 2625:11793 runs a single background behind these three sections: a soft blue gradient at the top (stats),
   fading out behind Notable Projects, with the network-line picture lower down behind the testimonials and fading to
   white before "Services". Three rows can't share one image, so each paints its slice and the colours match where
   they meet. The stats band is saved row 6368 (also on About), so everything here is Home only. */
body.home .fl-row.tep-stats > .fl-row-content-wrap {
	background-image: linear-gradient(180deg, rgba(135, 185, 216, 0.17) 0%, rgba(135, 185, 216, 0.13) 100%);
}

body.home .fl-row.tep-notable > .fl-row-content-wrap {
	background-image: linear-gradient(180deg, rgba(135, 185, 216, 0.13) 0%, rgba(135, 185, 216, 0) 60%);
}

body.home .fl-row.tep-testimonials > .fl-row-content-wrap {
	position: relative;
}

/* The picture fades in at the top and out at the bottom, so it never starts or stops on a hard line. */
body.home .fl-row.tep-testimonials > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(180deg, var(--ds-color-surface) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 70%, var(--ds-color-surface) 100%);
}

body.home .fl-row.tep-testimonials > .fl-row-content-wrap > .fl-row-content {
	position: relative;
	z-index: 1;
}

.fl-row.tep-testimonials,
.fl-row.tep-testimonials .fl-row-content-wrap {
	overflow: hidden;
}

.tep-testimonials .tep-section-title {
	margin: 0;
	text-align: left;
}

.tep-testimonials .pp-testimonials-wrap,
.tep-testimonials .pp-testimonials {
	position: relative;
}

/* room for the card shadow; the next card peeks out to the right but never over the heading */
.tep-testimonials .owl-stage-outer {
	overflow: visible;
	padding: 25px 0;
	clip-path: inset(-10px -100vw -10px 0);
}

@media (min-width: 1025px) {
	/* Figma: heading 509px, then 75 + 35px before the first card (cards start at x 739 of 1440) */
	.fl-row.tep-testimonials .fl-col-group > .fl-col:last-child > .fl-col-content {
		padding-left: clamp(40px, 8vw, 115px);
	}

	/* Figma's heading box is 509px (two lines); let it run into the 115px gutter before the cards */
	.tep-testimonials .tep-section-title {
		margin-right: -45px;
		padding-bottom: 80px;
	}

	.tep-testimonials .owl-stage-outer {
		clip-path: inset(-10px -100vw -10px -25px);
	}
}

@media (max-width: 1024px) {
	.tep-testimonials .tep-section-title {
		margin-bottom: 25px;
	}
}

.tep-testimonials .owl-stage,
.tep-testimonials .owl-item {
	display: flex;
}

.tep-testimonials .pp-testimonial {
	display: flex;
	width: 100%;
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: 0 4px 12.5px rgba(var(--ds-color-shadow-rgb), 0.15);
	text-align: left;
}

.tep-testimonials .pp-content-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 25px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.tep-testimonials .pp-testimonials-content,
.tep-testimonials .pp-testimonials-content p {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-style: normal;
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-testimonials .pp-title-wrapper {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 0;
	text-align: left;
}

.tep-testimonials .pp-testimonials-name {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: var(--ds-line-heading);
	text-transform: uppercase;
	color: var(--ds-color-primary);
}

.tep-testimonials .pp-testimonials-designation {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-weight: normal;
	line-height: var(--ds-line-body);
	color: var(--ds-color-black);
}

.tep-testimonials .pp-testimonials-nav,
.tep-testimonials .owl-nav {
	display: flex !important;
	gap: 25px;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	position: static;
}

@media (max-width: 768px) {
	.tep-testimonials .tep-section-title {
		text-align: center;
	}

	/* beats PowerPack's per-node arrow alignment */
	.fl-row.tep-testimonials .pp-testimonials-wrap .pp-testimonials-nav,
	.fl-row.tep-testimonials .pp-testimonials-wrap .owl-nav {
		justify-content: center;
	}
}

.tep-testimonials .owl-nav button.disabled {
	opacity: 0.4;
	cursor: default;
}

.tep-testimonials .owl-dots {
	display: none;
}

/* ---------- Map (2718:4932) ---------- */
.tep-map .fl-photo-content,
.tep-map img {
	width: 100%;
}

/* ---------- Featured event card (2707:8319): Figma title 42px on a 63px line, text 40px from the card edge ---------- */
@media (min-width: 769px) {
	.tep-featured-event .tep-ecard.tep-ecard--featured .tep-card__title {
		padding-left: 35px;
		line-height: var(--ds-line-body);
	}
}

/* "Learn more" long red arrow: now site-wide in tep-global.css */

/* ---------- News cards ("Updates from the Field" 2625:11806) ---------- */
/* Figma: 26px titles on a 39px line, text 25px from the red bar */
.tep-news .tep-pcard .tep-card__title {
	padding-left: 25px;
	line-height: var(--ds-line-body);
}
.tep-ncard .tep-card__body {
	justify-content: space-between;
}

.tep-ncard__top {
	display: flex;
	flex-direction: column;
	gap: 25px;
	padding-inline: 0 !important;
}

.tep-ncard__top > .tep-ncard__meta {
	padding-inline: 25px;
}

.tep-ncard__meta {
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-xs);
	line-height: var(--ds-line-snug);
	color: var(--ds-color-black);
}

.tep-ncard__meta .tep-event-meta__sep {
	margin-inline: 4px;
	color: var(--ds-color-primary);
}

.tep-ncard .tep-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.tep-news-grid .fl-post-column:nth-last-child(-n + 2) {
	padding-bottom: 0;
}

.tep-news-grid .tep-pcard {
	min-height: 257px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.tep-notable .tep-np-featured > .fl-module-content {
		margin-top: 35px !important;
	}

	.tep-industries-stage > .fl-row-content-wrap {
		background-size: cover;
		background-position: center;
	}

	.tep-projcard--featured {
		min-height: 480px;
	}
}

/* ---------- Mobile (Figma page "mobile" 878:3305, Homepage 3301:6098 at 320px) ----------
 * Type and spacing come from the design-system tokens, re-fitted on 2026-10-28 to hit the Figma mobile values at 320px.
 * The rules below are the layout changes the mobile frame makes. */
@media (max-width: 768px) {
	/* Hero: the button → first nav card gap equals the gap between the cards (BugHerd 85, 2026-11-09; Figma 3302:12138
	   had 75px / 50px, which read as uneven). Cards keep the 399px desktop height. */
	.tep-hero .tep-navcard + .tep-navcard {
		margin-top: 40px;
	}

	/* The text column above already ends with 40px of space, so the first card adds none */
	.tep-hero .fl-col:not(.tep-navcard) + .tep-navcard {
		margin-top: 0;
	}

	.tep-navcard > .fl-col-content {
		padding: 25px !important;
	}

	/* Logo ticker: smaller logos 40px apart (Figma mobile "Logos Grid/Carousel" uses 150px logos). The shorter row
	   gets a shorter loop (28s instead of the module's 40s) so logos move at the desktop pace, about 60px a second. */
	.fl-module.tep-logo-ticker .pp-logos-wrapper.pp-logos-ticker {
		gap: 40px;
		animation-duration: 28s;
	}

	.tep-logo-ticker .pp-logos-ticker img.logo-image {
		max-width: 150px;
		max-height: 48px;
	}

	/* Industries (3302:12636): white band (no photo), cards 50px apart, icon beside the text as on desktop
	   (PowerPack stacks layout 3 on phones) */
	.tep-industries-stage > .fl-row-content-wrap {
		background-image: none !important;
	}

	/* 40px from the intro, 25px between cards, 80px to the stats: the row's 32px top and bottom margins and each
	   card's 12px module margin were adding to all three (BugHerd 77, 2026-11-09) */
	.tep-industries-stage > .fl-row-content-wrap {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.tep-industries-stage .tep-infocard > .fl-module-content {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	/* 25px between cards (BugHerd 77, 2026-11-09; was the 50–55px section gap) */
	.tep-industries-stage .fl-col + .fl-col .tep-infocard,
	.tep-industries-stage .tep-infocard + .tep-infocard {
		margin-top: 25px !important;
	}

	.tep-industries-stage .fl-col:first-child .tep-infocard:first-child {
		margin-top: 0 !important;
	}

	.tep-infocard .pp-infobox {
		padding: 25px;
	}

	.tep-infocard .layout-3-wrapper {
		flex-direction: row !important; /* PowerPack's ≤480px node rule stacks it */
		gap: 40px;
	}

	.tep-infocard .pp-infobox-title {
		margin-bottom: 15px !important;
	}

	/* Stats (3302:12200): one centred column, 35px apart, number 5px above its label */
	.tep-stats .tep-eyebrow-dark {
		margin-bottom: 25px !important;
	}

	.tep-stats-grid {
		flex-direction: column;
		align-items: center;
		gap: 35px;
		text-align: center;
	}

	.tep-stat .bb-stat-label {
		margin-top: 5px;
		white-space: normal;
	}

	/* Notable Projects (3302:12247): intro card, featured project (2 × 300px rows + 35px gap), then the two photos
	   full width at 300px. The columns dissolve so the three modules can be reordered. */
	.tep-notable .fl-col-group {
		display: flex;
		flex-direction: column;
		gap: 25px;
	}

	.tep-notable .fl-col,
	.tep-notable .fl-col > .fl-col-content {
		display: contents;
	}

	/* BugHerd 79 (2026-11-09): with the columns dissolved, BB's clearfix ::before/::after on the group, columns and column
	   contents became six empty flex items ahead of the intro, each adding the flex gap (210px of blank space). */
	.tep-notable .fl-col-group::before,
	.tep-notable .fl-col-group::after,
	.tep-notable .fl-col::before,
	.tep-notable .fl-col::after,
	.tep-notable .fl-col-content::before,
	.tep-notable .fl-col-content::after {
		display: none;
	}

	.tep-notable .tep-np-intro {
		order: 1;
		padding: 25px;
		margin-bottom: 0 !important; /* the 25px flex gap is the only space below it */
	}

	/* The featured card itself is Figma's 635px (2 × 300px + 35px); the module sizes to it. The module used to be fixed
	   at 635px around a 480px card, leaving a 155px empty band under it (BugHerd 79, 2026-11-09). */
	.tep-notable .tep-np-featured {
		order: 2;
		height: auto;
	}

	.tep-notable .tep-np-featured .tep-projcard--featured {
		min-height: 635px;
	}

	.tep-notable .tep-np-small {
		order: 3;
	}

	.tep-notable .fl-module > .fl-module-content,
	.tep-notable .tep-np-featured > .fl-module-content {
		margin: 0 !important;
	}

	.tep-np-small .fl-post-grid {
		flex-direction: column;
		gap: 25px;
		margin: 0;
	}

	.tep-np-small .fl-post-column {
		width: 100%;
		padding: 0 !important;
	}

	.tep-news-grid .fl-post-column:nth-last-child(2) {
		padding-bottom: 25px;
	}

	.tep-awards-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Phones up to 480px (BugHerd 76, 78; 2026-11-09) ---------- */
@media (max-width: 480px) {
	/* Industry cards: icon above the title so the title gets the card's full width. Beside the icon the title column was
	   ~150px at 320px and "Telecommunications" broke mid-word (Figma's 320px frame does the same). Hyphenation is
	   the fallback on the narrowest phones. */
	.tep-infocard .layout-3-wrapper {
		flex-direction: column !important;
		gap: 15px;
	}

	.tep-infocard .pp-infobox-title {
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: auto;
	}
}

/* ---------- Design review 2026-10-09: desktop proportions from Figma ---------- */
@media (min-width: 993px) {
	/* Split hero: nav cards (499px stack) centered against the 515px text column (Figma 2625:11795) */
	.tep-hero .fl-col-group {
		display: flex;
		align-items: center;
	}

	/* The shorter Industries card column takes the Projects card's 100px offset as bottom margin,
	   so both cards keep Figma's staggered tops while the pair is centered */
	.tep-hero .fl-col-group > .fl-col.tep-navcard:nth-child(2) {
		margin-bottom: 100px;
	}

	/* Notable Projects: 600px intro column, 35px gap, 565px feature (Figma 2723:4750) */
	.tep-notable .fl-col:first-child > .fl-col-content {
		padding-right: 0 !important;
	}

	.tep-notable .fl-col:last-child > .fl-col-content {
		padding-left: 35px !important;
	}
}

@media (min-width: 1400px) {
	/* Industries: 550px cards that overhang the 1200px container by 50px (Figma 2625:11797) */
	.tep-industries-stage .fl-col:first-child .tep-infocard {
		width: 550px;
		margin-left: -20px !important;
	}

	.tep-industries-stage .fl-col:last-child .tep-infocard {
		width: 550px;
		max-width: none;
	}
}

@media (max-width: 768px) {
	/* tep-templates.css sets .tep-post-cards .fl-post-grid-post { height: auto !important } here;
	   the Notable Projects small cards are image-only, so they need a fixed height */
	.tep-np-small .fl-post-column > .fl-post-grid-post {
		height: 300px !important;
	}

	/* News card titles: Figma's 1.5 line is for the 26px desktop size */
	.tep-news .tep-pcard .tep-card__title {
		line-height: var(--ds-line-snug);
	}

	/* Tighter again on narrow screens, where the title wraps to more lines (BugHerd 103: 1.3 → 1.2) */
	.tep-hero .bb-display {
		line-height: var(--ds-line-heading);
	}
}
