/* Services motion hero. Native Divi section, text and button stay editable.
 * Keep the poster in the section's native background settings; this stylesheet
 * deliberately does not set background-image. Loaded after the shared styles.
 */
body #page-container .et_pb_section.pp-services-motion-hero {
	--pp-services-hero-gutter: 56px;
	background-color: var(--pp-dark, #121212) !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	border-radius: 0 !important;
	color: #fff;
	isolation: isolate;
	margin: 0 !important;
	max-width: none !important;
	min-height: 720px;
	overflow: hidden;
	padding: 0 !important;
	position: relative;
	width: 100% !important;
}

body #page-container .pp-services-motion-hero::before {
	background:
		linear-gradient(90deg, rgba(18, 18, 18, .91) 0%, rgba(18, 18, 18, .75) 29%, rgba(18, 18, 18, .26) 62%, rgba(18, 18, 18, .06) 100%),
		linear-gradient(0deg, rgba(18, 18, 18, .48), transparent 35%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

body #page-container .pp-services-motion-hero .pp-services-hero-media {
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

body #page-container .pp-services-motion-hero .pp-services-hero-media :is(picture, img, video) {
	border: 0;
	border-radius: 0;
	display: block;
	height: 100%;
	inset: 0;
	margin: 0;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	padding: 0;
	position: absolute;
	width: 100%;
}

body #page-container .pp-services-motion-hero .pp-services-hero-media video {
	opacity: 0;
	transition: opacity .5s ease;
	z-index: 1;
}

body #page-container .pp-services-motion-hero.is-video-ready .pp-services-hero-media video {
	opacity: 1;
}

body #page-container .pp-services-motion-hero > .et_pb_row {
	max-width: 1320px !important;
	position: relative;
	width: min(1320px, calc(100% - var(--pp-services-hero-gutter) * 2)) !important;
	z-index: 2;
}

body #page-container .pp-services-motion-hero .et_pb_row.pp-services-hero-breadcrumb {
	left: 50%;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute;
	top: 24px;
	transform: translateX(-50%);
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb > .et_pb_column {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb nav {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb__list {
	color: #d0cbc2;
	font-size: 12px;
	font-weight: 500;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb a {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #d0cbc2 !important;
	font-weight: 500;
	padding: 4px 0;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb :is([aria-current="page"], .pp-breadcrumb__current) {
	color: #fff;
	font-weight: 600;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb__list li + li::before {
	color: #a9a49b;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb a:hover,
body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb a:focus-visible {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

body #page-container .pp-services-motion-hero .pp-services-hero-breadcrumb .pp-breadcrumb a:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--pp-orange, #ff9000);
	outline-offset: 4px;
}

body #page-container .pp-services-motion-hero .et_pb_row.pp-services-hero-row {
	align-items: flex-end;
	display: flex !important;
	gap: 0 !important;
	margin: 0 auto !important;
	min-height: 720px;
	padding: 130px 0 134px !important;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row::after {
	display: none !important;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row > .et_pb_column {
	float: none;
	margin: 0 !important;
	max-width: 650px;
	min-width: 0;
	padding: 0 !important;
	width: 100% !important;
}

body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy,
body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy .et_pb_text_inner {
	color: #fff;
	font-family: var(--pp-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
	margin: 0 !important;
	max-width: 650px;
	padding: 0 !important;
	text-align: left;
}

body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy h1 {
	color: #fff !important;
	font-size: clamp(48px, 4.65vw, 68px) !important;
	font-weight: 800 !important;
	hyphens: none;
	letter-spacing: -.045em !important;
	line-height: 1.04 !important;
	margin: 0 0 24px !important;
	max-width: 650px;
	overflow-wrap: normal;
	padding: 0 !important;
	text-wrap: balance;
	word-break: normal;
}

body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy p {
	color: #ddd9d2 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.65 !important;
	margin: 0 !important;
	max-width: 560px;
	padding: 0 !important;
}

body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy .pp-divi-eyebrow {
	align-items: center;
	color: #e1ddd5 !important;
	display: flex;
	font-size: 12px !important;
	font-weight: 600 !important;
	gap: 10px;
	letter-spacing: .1em !important;
	line-height: 1.5 !important;
	margin: 0 0 21px !important;
	text-transform: uppercase;
}

body #page-container .pp-services-motion-hero .pp-divi-eyebrow::before {
	background: var(--pp-orange, #ff9000);
	content: "";
	flex: 0 0 22px;
	height: 2px;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button_module_wrapper {
	display: inline-flex;
	margin: 30px 0 0 !important;
	padding: 0 !important;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button {
	align-items: center;
	background: var(--pp-orange, #ff9000) !important;
	border: 1px solid var(--pp-orange, #ff9000) !important;
	border-radius: 6px !important;
	color: var(--pp-dark, #121212) !important;
	display: inline-flex;
	font-size: 15px !important;
	font-weight: 700 !important;
	justify-content: center;
	line-height: 1.3 !important;
	min-height: 56px;
	padding: 16px 24px !important;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button:hover {
	background: #ffa324 !important;
	border-color: #ffa324 !important;
	color: var(--pp-dark, #121212) !important;
	transform: none;
}

body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button:focus-visible,
body #page-container .pp-services-motion-hero .pp-services-hero-toggle:focus-visible {
	outline: 3px solid var(--pp-orange, #ff9000);
	outline-offset: 5px;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle {
	align-items: center;
	backdrop-filter: blur(8px);
	background: rgba(18, 18, 18, .26);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 6px;
	bottom: 28px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--pp-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
	font-size: 11px;
	font-weight: 500;
	gap: 10px;
	justify-content: center;
	line-height: 1.4;
	margin: 0;
	min-height: 44px;
	padding: 10px 14px;
	position: absolute;
	right: max(var(--pp-services-hero-gutter), calc((100% - 1320px) / 2));
	z-index: 3;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle:hover {
	background: rgba(18, 18, 18, .54);
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle[hidden] {
	display: none;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle:disabled {
	cursor: wait;
	opacity: .6;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle__icon {
	display: block;
	flex: 0 0 14px;
	height: 14px;
	position: relative;
	width: 14px;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle__icon::before {
	border-color: transparent transparent transparent currentColor;
	border-style: solid;
	border-width: 5px 0 5px 7px;
	content: "";
	height: 0;
	left: 4px;
	position: absolute;
	top: 2px;
	width: 0;
}

body #page-container .pp-services-motion-hero .pp-services-hero-toggle.is-playing .pp-services-hero-toggle__icon::before {
	border-color: currentColor;
	border-width: 0 3px;
	box-sizing: border-box;
	height: 10px;
	left: 3px;
	width: 9px;
}

/* The existing six native category buttons continue below the media section. */
body #page-container .et_pb_section.pp-services-hero-nav {
	background: var(--pp-bg, #f6f4ef) !important;
	margin: 0 !important;
	padding: 0 !important;
}

body #page-container .pp-services-hero-nav .et_pb_row.pp-divi-case-local-nav {
	border-top: 0;
	margin: 0 auto !important;
	max-width: 1320px !important;
	padding: 22px 0 !important;
	width: min(1320px, calc(100% - 112px)) !important;
}

@media (max-width: 1080px) {
	body #page-container .et_pb_section.pp-services-motion-hero {
		--pp-services-hero-gutter: 32px;
		min-height: 680px;
	}

	body #page-container .pp-services-motion-hero .et_pb_row.pp-services-hero-row {
		min-height: 680px;
		padding-top: 110px !important;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-row > .et_pb_column {
		max-width: 570px;
	}

	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy h1 {
		font-size: 54px !important;
	}

	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy p {
		max-width: 500px;
	}

	body #page-container .pp-services-hero-nav .et_pb_row.pp-divi-case-local-nav {
		width: calc(100% - 64px) !important;
	}
}

@media (max-width: 640px) {
	body #page-container .et_pb_section.pp-services-motion-hero {
		--pp-services-hero-gutter: 20px;
		min-height: 760px;
	}

	body #page-container .pp-services-motion-hero::before {
		background: linear-gradient(0deg, rgba(18, 18, 18, .94) 0%, rgba(18, 18, 18, .84) 45%, rgba(18, 18, 18, .29) 77%, rgba(18, 18, 18, .08) 100%);
	}

	body #page-container .pp-services-motion-hero .et_pb_row.pp-services-hero-row {
		min-height: 760px;
		padding: 175px 0 110px !important;
	}

	body #page-container .pp-services-motion-hero .et_pb_row.pp-services-hero-breadcrumb {
		top: 20px;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-row > .et_pb_column,
	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy {
		max-width: none;
	}

	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy h1 {
		font-size: clamp(35px, 10.5vw, 41px) !important;
		letter-spacing: -.043em !important;
		line-height: 1.06 !important;
		margin-bottom: 20px !important;
	}

	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy p {
		font-size: 14px !important;
		max-width: none;
	}

	body #page-container .pp-services-motion-hero .pp-divi-case-hero-copy .pp-divi-eyebrow {
		font-size: 9px !important;
		gap: 8px;
		letter-spacing: .07em !important;
		margin-bottom: 18px !important;
	}

	body #page-container .pp-services-motion-hero .pp-divi-eyebrow::before {
		flex-basis: 16px;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button_module_wrapper {
		margin-top: 26px !important;
		width: 100%;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button {
		min-height: 54px;
		width: 100%;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-toggle {
		bottom: 22px;
	}

	body #page-container .pp-services-motion-hero .pp-services-hero-toggle {
		font-size: 10px;
		gap: 7px;
		padding-inline: 10px;
	}

	body #page-container .pp-services-hero-nav .et_pb_row.pp-divi-case-local-nav {
		width: calc(100% - 40px) !important;
	}
}

/* Motion is enabled by the controller only after checking the user's choice.
 * Explicit playback remains available; reduced motion removes all fades.
 */
@media (prefers-reduced-motion: reduce) {
	body #page-container .pp-services-motion-hero .pp-services-hero-media video,
	body #page-container .pp-services-motion-hero .pp-services-hero-row .et_pb_button {
		transition: none;
	}
}
