/* ==========================================================================
   DMS Electronics — Homepage design system
   Scoped to #dmse-home so nothing here leaks onto other theme templates.
   ========================================================================== */

/* Strip the parent theme's default content-area padding so the homepage
 * sections butt straight up against the header and footer with no dead band. */
body.home .content-container,
body.home .site-content,
body.home #primary,
body.home .content-area,
body.home .entry-content,
body.home .site-main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

#dmse-home {
	--dmse-navy-950: #ffffff;
	--dmse-navy-900: #e9edf7;
	--dmse-navy-800: #dde3f1;
	--dmse-navy-700: #123a63;
	--dmse-blue-600: #2f6fed;
	--dmse-blue-500: #518bf5;
	--dmse-white: #ffffff;
	--dmse-off-white: #f6f8fb;
	--dmse-grey-100: #eef1f5;
	--dmse-grey-200: #e2e6ec;
	--dmse-grey-300: #d7dce3;
	--dmse-grey-500: #8a94a3;
	--dmse-grey-700: #4e5f7b;
	--dmse-grey-900: #1a202c;

	/* Light-theme text/surface tokens. The homepage is a light design now:
	 * white and #dadbe3 section backgrounds alternate, so headings/body
	 * default to dark ink everywhere and "surfaces" are near-white cards with
	 * soft ink-tinted borders. */
	--dmse-text-heading: #1a2e4b;
	--dmse-text-body: #4e5f7b;
	--dmse-text-muted: #7b879f;
	--dmse-accent-light: #2f6fed;
	--dmse-surface: #eef2fb;
	--dmse-surface-strong: #ffffff;
	--dmse-border-soft: rgba(20, 39, 63, 0.14);

	--dmse-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--dmse-container: 1280px;
	--dmse-section-y: clamp(32px, 3.5vw, 56px);

	font-family: var(--dmse-font);
	color: var(--dmse-text-body);
	background: var(--dmse-navy-950);
	overflow-x: hidden;
	position: relative;
}

/* Fine dot-grid texture across the whole page, plus soft colour glows behind
 * every section, so the light page reads as designed rather than flat panels
 * stacked on top of each other. */
#dmse-home::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(rgba(20, 39, 63, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
	pointer-events: none;
}

#dmse-home > * {
	position: relative;
	z-index: 1;
}

#dmse-home .dmse-about,
#dmse-home .dmse-solutions,
#dmse-home .dmse-why,
#dmse-home .dmse-industries,
#dmse-home .dmse-partners,
#dmse-home .dmse-insights {
	position: relative;
	overflow: hidden;
}

#dmse-home .dmse-about::before,
#dmse-home .dmse-solutions::before,
#dmse-home .dmse-why::before,
#dmse-home .dmse-industries::before,
#dmse-home .dmse-partners::before,
#dmse-home .dmse-insights::before {
	content: "";
	position: absolute;
	width: 640px;
	height: 640px;
	border-radius: 50%;
	filter: blur(10px);
	z-index: 0;
	pointer-events: none;
}

#dmse-home .dmse-about::before {
	top: -220px;
	right: -180px;
	background: radial-gradient(circle, rgba(47, 111, 237, 0.1), transparent 70%);
}

#dmse-home .dmse-solutions::before {
	top: -260px;
	left: -200px;
	background: radial-gradient(circle, rgba(47, 111, 237, 0.08), transparent 70%);
}

#dmse-home .dmse-why::before {
	bottom: -260px;
	left: -200px;
	background: radial-gradient(circle, rgba(47, 111, 237, 0.08), transparent 70%);
}

#dmse-home .dmse-industries::before {
	top: -260px;
	right: -200px;
	background: radial-gradient(circle, rgba(47, 111, 237, 0.09), transparent 70%);
}

#dmse-home .dmse-partners::before {
	top: -260px;
	left: 50%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(47, 111, 237, 0.08), transparent 70%);
}

#dmse-home .dmse-insights::before {
	bottom: -240px;
	right: -180px;
	background: radial-gradient(circle, rgba(47, 111, 237, 0.08), transparent 70%);
}

#dmse-home .dmse-about > *,
#dmse-home .dmse-solutions > *,
#dmse-home .dmse-why > *,
#dmse-home .dmse-industries > *,
#dmse-home .dmse-partners > *,
#dmse-home .dmse-insights > * {
	position: relative;
	z-index: 1;
}

#dmse-home * {
	box-sizing: border-box;
}

#dmse-home img {
	max-width: 100%;
	display: block;
}

#dmse-home .dmse-container,
.dmse-footer .dmse-container {
	max-width: var(--dmse-container, 1280px);
	margin: 0 auto;
	padding: 0 32px;
}

@media (max-width: 600px) {
	#dmse-home .dmse-container,
	.dmse-footer .dmse-container {
		padding: 0 20px;
	}
}

/* ---- Type helpers ---- */

#dmse-home .dmse-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dmse-accent-light);
	margin: 0 0 12px;
}

#dmse-home .dmse-section-title {
	font-family: var(--dmse-font);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-size: clamp(26px, 2.8vw, 38px);
	color: var(--dmse-text-heading);
	margin: 0 0 16px;
	max-width: 22ch;
}

#dmse-home .dmse-body {
	font-size: 16px;
	line-height: 1.7;
	color: var(--dmse-text-body);
	margin: 0 0 16px;
	max-width: 56ch;
}

#dmse-home .dmse-body-lg {
	font-size: 19px;
	line-height: 1.65;
	color: var(--dmse-text-heading);
	margin: 0 0 16px;
	max-width: 52ch;
}

#dmse-home .dmse-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	color: var(--dmse-text-heading);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

#dmse-home .dmse-text-link:hover,
#dmse-home .dmse-text-link:focus-visible {
	color: var(--dmse-accent-light);
	border-color: currentColor;
	gap: 12px;
}

#dmse-home a:focus-visible,
#dmse-home button:focus-visible {
	outline: 2px solid var(--dmse-blue-600);
	outline-offset: 3px;
}

#dmse-home .dmse-section-head {
	max-width: 640px;
	margin: 0 0 28px;
}

#dmse-home .dmse-section-head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

#dmse-home .dmse-section-head--center .dmse-section-title {
	max-width: none;
}

#dmse-home .dmse-section-cta {
	margin-top: 24px;
}

#dmse-home .dmse-section-cta--center {
	text-align: center;
}

/* ---- Buttons ---- */

#dmse-home .dmse-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--dmse-font);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 4px;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
	white-space: nowrap;
}

#dmse-home .dmse-btn--primary {
	background: var(--dmse-blue-600);
	color: var(--dmse-white);
}

#dmse-home .dmse-btn--primary:hover,
#dmse-home .dmse-btn--primary:focus-visible {
	background: var(--dmse-navy-700);
	transform: translateY(-1px);
}

#dmse-home .dmse-btn--ghost {
	border-color: rgba(20, 39, 63, 0.25);
	color: var(--dmse-text-heading);
	background: transparent;
}

#dmse-home .dmse-btn--ghost:hover,
#dmse-home .dmse-btn--ghost:focus-visible {
	border-color: var(--dmse-blue-600);
	background: var(--dmse-blue-600);
	color: var(--dmse-white);
}

#dmse-home .dmse-btn--ghost-light {
	border-color: rgba(20, 39, 63, 0.25);
	color: var(--dmse-text-heading);
}

#dmse-home .dmse-btn--ghost-light:hover,
#dmse-home .dmse-btn--ghost-light:focus-visible {
	border-color: var(--dmse-blue-600);
	background: var(--dmse-blue-600);
	color: var(--dmse-white);
}

#dmse-home .dmse-btn--light {
	background: var(--dmse-blue-600);
	color: var(--dmse-white);
}

#dmse-home .dmse-btn--light:hover,
#dmse-home .dmse-btn--light:focus-visible {
	background: var(--dmse-navy-700);
	color: var(--dmse-white);
	transform: translateY(-1px);
}

/* ---- Scroll reveal ---- */

/*
 * Content is visible by default (progressive enhancement): only once JS
 * confirms it can run the reveal observer does it arm the hidden/animate-in
 * state, so a slow or failed script never leaves the page blank.
 */
.dmse-reveal-armed [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dmse-reveal-armed [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.dmse-reveal-armed [data-reveal-delay="1"] { transition-delay: 0.1s; }
.dmse-reveal-armed [data-reveal-delay="2"] { transition-delay: 0.2s; }
.dmse-reveal-armed [data-reveal-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
	.dmse-reveal-armed [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   HERO — full-screen crossfading slider, styled to match the inner-page
   Prime Slider heroes (scrim, big headline, vertical 01/02/03 pager, moving
   wave divider, scroll cue). JS: [data-dmse-hero-slider] in homepage.js.
   ========================================================================== */

#dmse-home .dmse-hero-slider {
	position: relative;
	height: calc(100vh - var(--dmse-header-h, 116px));
	height: calc(100svh - var(--dmse-header-h, 116px));
	min-height: 480px;
	overflow: hidden;
	background: #0b1a2e;
	isolation: isolate;
}

#dmse-home .dmse-hero-slider__viewport {
	position: absolute;
	inset: 0;
}

#dmse-home .dmse-hero-slider__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

#dmse-home .dmse-hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease;
}

#dmse-home .dmse-hero-slider__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.04);
}

#dmse-home .dmse-hero-slider__slide.is-active .dmse-hero-slider__bg {
	transform: scale(1);
	transition: transform 7s ease-out;
}

/* Left-weighted scrim for text legibility + a faint lift into the waves. */
#dmse-home .dmse-hero-slider__slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.62) 40%, rgba(8, 16, 28, 0.24) 74%, rgba(8, 16, 28, 0.1) 100%),
		linear-gradient(0deg, rgba(233, 237, 247, 0.5) 0%, rgba(233, 237, 247, 0.12) 5%, rgba(8, 16, 28, 0) 15%);
}

#dmse-home .dmse-hero-slider__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

#dmse-home .dmse-hero-slider__eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 14px;
}

#dmse-home .dmse-hero-slider__title {
	font-family: var(--dmse-font);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	text-transform: uppercase;
	font-size: clamp(44px, 7vw, 88px);
	color: #6ea8ff;
	margin: 0;
}

/* An accent word inside a longer headline, if one is ever added. */
#dmse-home .dmse-hero-slider__title .accent {
	color: #ffffff;
}

#dmse-home .dmse-hero-slider__text {
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	max-width: 46ch;
	margin: 20px 0 0;
}

#dmse-home .dmse-hero-slider__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 30px;
}

#dmse-home .dmse-btn--ghost-on-dark {
	border-color: rgba(255, 255, 255, 0.55);
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

#dmse-home .dmse-btn--ghost-on-dark:hover,
#dmse-home .dmse-btn--ghost-on-dark:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--dmse-navy-700);
}

/* Vertical 01 / 02 / 03 pager */
#dmse-home .dmse-hero-slider__nav {
	position: absolute;
	right: clamp(18px, 4vw, 64px);
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#dmse-home .dmse-hero-slider__dot {
	position: relative;
	padding: 4px 0 4px 40px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font-family: var(--dmse-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: color 0.3s ease;
}

#dmse-home .dmse-hero-slider__dot::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 22px;
	height: 2px;
	background: rgba(255, 255, 255, 0.4);
	transform: translateY(-50%);
	transition: width 0.3s ease, background-color 0.3s ease;
}

#dmse-home .dmse-hero-slider__dot.is-active {
	color: #ffffff;
}

#dmse-home .dmse-hero-slider__dot.is-active::before {
	width: 32px;
	background: #6ea8ff;
}

/* Moving two-layer wave where the hero meets the stats strip below
   (which is --dmse-navy-900), so the seam dissolves. */
#dmse-home .dmse-hero-slider__waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 3;
	height: clamp(46px, 6vw, 74px);
	pointer-events: none;
}

#dmse-home .dmse-hero-slider__waves::before,
#dmse-home .dmse-hero-slider__waves::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 200%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20120'%20preserveAspectRatio='none'%3E%3Cpath%20fill='%23e9edf7'%20d='M0%2060%20Q300%200%20600%2060%20T1200%2060%20V120%20H0%20Z'/%3E%3C/svg%3E") repeat-x bottom / 50% 100%;
	will-change: transform;
}

#dmse-home .dmse-hero-slider__waves::before {
	height: 128%;
	opacity: 0.55;
	animation: dmse-hero-wave-b 17s linear infinite;
}

#dmse-home .dmse-hero-slider__waves::after {
	animation: dmse-hero-wave-a 11s linear infinite;
}

@keyframes dmse-hero-wave-a {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes dmse-hero-wave-b {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

#dmse-home .dmse-hero-slider__cue {
	position: absolute;
	left: 50%;
	bottom: clamp(74px, 9vw, 108px);
	z-index: 4;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-right: 2px solid rgba(255, 255, 255, 0.8);
	border-bottom: 2px solid rgba(255, 255, 255, 0.8);
	transform: rotate(45deg);
	animation: dmse-hero-cue 1.8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes dmse-hero-cue {
	0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
	50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#dmse-home .dmse-hero-slider__slide {
		transition: opacity 0.4s linear;
	}
	#dmse-home .dmse-hero-slider__bg,
	#dmse-home .dmse-hero-slider__slide.is-active .dmse-hero-slider__bg {
		transform: none;
		transition: none;
	}
	#dmse-home .dmse-hero-slider__waves::before,
	#dmse-home .dmse-hero-slider__waves::after,
	#dmse-home .dmse-hero-slider__cue {
		animation: none;
	}
}

/* ==========================================================================
   TRUST / STATS
   ========================================================================== */

#dmse-home .dmse-stats {
	padding: 40px 0;
	background: var(--dmse-navy-900);
}

#dmse-home .dmse-stats__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px 24px;
}

#dmse-home .dmse-stats__item {
	flex: 1 1 200px;
	position: relative;
	padding: 0 32px;
	text-align: center;
}

#dmse-home .dmse-stats__item:first-child {
	padding-left: 0;
}

#dmse-home .dmse-stats__item:last-child {
	padding-right: 0;
}

#dmse-home .dmse-stats__item + .dmse-stats__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: rgba(20, 39, 63, 0.15);
}

#dmse-home .dmse-stats__value {
	display: block;
	font-family: var(--dmse-font);
	font-weight: 800;
	font-size: clamp(34px, 4vw, 48px);
	color: var(--dmse-text-heading);
	line-height: 1;
}

#dmse-home .dmse-stats__unit {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dmse-blue-600);
}

#dmse-home .dmse-stats__label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--dmse-text-body);
}

@media (max-width: 640px) {
	#dmse-home .dmse-stats__row {
		flex-direction: column;
		align-items: stretch;
	}
	#dmse-home .dmse-stats__item {
		padding: 20px 0 !important;
	}
	#dmse-home .dmse-stats__item + .dmse-stats__item::before {
		left: 0;
		right: 0;
		top: 0;
		bottom: auto;
		width: auto;
		height: 1px;
	}
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

#dmse-home .dmse-about {
	padding: var(--dmse-section-y) 0;
}

/* Layout: the image floats to the right; the whole block of copy (eyebrow,
   heading, then every paragraph) flows continuously beside it and wraps
   full-width beneath it once it clears — so there's no gap between
   paragraphs. */
#dmse-home .dmse-about__grid {
	display: block;
}

#dmse-home .dmse-about__grid::after {
	content: "";
	display: block;
	clear: both;
}

#dmse-home .dmse-about__visual {
	position: relative;
	float: right;
	width: min(54%, 660px);
	margin: 4px 0 18px clamp(32px, 4.5vw, 60px);
}

/* Copy runs to the full available width — narrow beside the image, whole
   width below it — with normal paragraph spacing throughout. */
#dmse-home .dmse-about__body > .dmse-body,
#dmse-home .dmse-about__body > .dmse-body-lg {
	max-width: none;
}

#dmse-home .dmse-about__body .dmse-text-link {
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   About visual — auto-advancing photo slider, one image at a time.
   Reuses the "Why DMS" crossfade slide + dot styling (.dmse-why__slide /
   .dmse-why__dots / .dmse-why__dot), driven by [data-dmse-slider] in
   homepage.js. Only the frame is defined here.
   -------------------------------------------------------------------------- */
#dmse-home .dmse-about__slider {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3.3;
	border-radius: 18px;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 30px 60px -30px rgba(20, 39, 63, 0.5);
	background: var(--dmse-surface);
	isolation: isolate;
}

/* Bottom scrim so the dots stay legible over bright photos. */
#dmse-home .dmse-about__slider::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72px;
	background: linear-gradient(transparent, rgba(12, 30, 52, 0.42));
	pointer-events: none;
	z-index: 1;
}

/* Stack on narrower screens: image on top, copy below. */
@media (max-width: 900px) {
	#dmse-home .dmse-about__visual {
		float: none;
		width: auto;
		max-width: 620px;
		margin: 0 0 clamp(24px, 4vw, 36px);
	}
	#dmse-home .dmse-about__slider {
		aspect-ratio: 16 / 11;
	}
	#dmse-home .dmse-about__body > .dmse-body,
	#dmse-home .dmse-about__body > .dmse-body-lg {
		max-width: 64ch;
	}
}

@media (max-width: 600px) {
	#dmse-home .dmse-about__slider {
		aspect-ratio: 4 / 3.2;
	}
}

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */

#dmse-home .dmse-solutions {
	padding: var(--dmse-section-y) 0;
	background: var(--dmse-navy-900);
}

/* A paged carousel: four service cards per screen on desktop, arrow buttons
 * step through the full set of twelve one screen at a time, with dot
 * pagination reflecting the current page. Scrolling is native (scroll-snap)
 * so touch/trackpad swipe and drag come for free on top of the buttons. */
#dmse-home .dmse-carousel {
	margin-top: 12px;
}

#dmse-home .dmse-carousel__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* Negative margin cancels this padding so hover lift/shadow isn't
	 * clipped by the scroll container's edges. */
	padding: 8px 2px 22px;
	margin: -8px -2px -22px;
}

#dmse-home .dmse-carousel__viewport::-webkit-scrollbar {
	display: none;
}

#dmse-home .dmse-carousel__track {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

#dmse-home .dmse-carousel__slide {
	flex: 0 0 calc((100% - 3 * 24px) / 4);
	min-width: 0;
	scroll-snap-align: start;
}

#dmse-home .dmse-service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--dmse-surface-strong);
	border: 1px solid var(--dmse-border-soft);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

#dmse-home .dmse-service-card:hover,
#dmse-home .dmse-service-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 22px 40px -22px rgba(20, 39, 63, 0.3);
	border-color: rgba(47, 111, 237, 0.35);
}

#dmse-home .dmse-service-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--dmse-grey-200);
}

#dmse-home .dmse-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

#dmse-home .dmse-service-card:hover .dmse-service-card__media img,
#dmse-home .dmse-service-card:focus-visible .dmse-service-card__media img {
	transform: scale(1.05);
}

#dmse-home .dmse-service-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
}

#dmse-home .dmse-service-card__title {
	font-family: var(--dmse-font);
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.35;
	color: var(--dmse-text-heading);
}

#dmse-home .dmse-service-card__desc {
	flex: 1 1 auto;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--dmse-text-body);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#dmse-home .dmse-service-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--dmse-text-muted);
	transition: color 0.25s ease, gap 0.25s ease;
}

#dmse-home .dmse-service-card__cta svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

#dmse-home .dmse-service-card:hover .dmse-service-card__cta,
#dmse-home .dmse-service-card:focus-visible .dmse-service-card__cta {
	color: var(--dmse-accent-light);
	gap: 9px;
}

#dmse-home .dmse-service-card:hover .dmse-service-card__cta svg,
#dmse-home .dmse-service-card:focus-visible .dmse-service-card__cta svg {
	transform: translateX(2px);
}

/* Controls: arrows + dot pagination beneath the row. */
#dmse-home .dmse-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 16px;
}

#dmse-home .dmse-carousel__arrow {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--dmse-border-soft);
	background: var(--dmse-surface-strong);
	color: var(--dmse-text-heading);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

#dmse-home .dmse-carousel__arrow svg {
	width: 18px;
	height: 18px;
}

#dmse-home .dmse-carousel__arrow:hover:not(:disabled),
#dmse-home .dmse-carousel__arrow:focus-visible:not(:disabled) {
	background: var(--dmse-blue-600);
	border-color: var(--dmse-blue-600);
	color: #ffffff;
	transform: translateY(-2px);
}

#dmse-home .dmse-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#dmse-home .dmse-carousel__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

#dmse-home .dmse-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--dmse-grey-300);
	cursor: pointer;
	transition: background-color 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

#dmse-home .dmse-carousel__dot.is-active {
	width: 22px;
	border-radius: 4px;
	background: var(--dmse-blue-600);
}

/* Tablet: three, then two cards per screen as width narrows. */
@media (max-width: 1100px) {
	#dmse-home .dmse-carousel__track {
		gap: 20px;
	}
	#dmse-home .dmse-carousel__slide {
		flex-basis: calc((100% - 2 * 20px) / 3);
	}
}

@media (max-width: 780px) {
	#dmse-home .dmse-carousel__slide {
		flex-basis: calc((100% - 20px) / 2);
	}
}

/* Mobile: one card at a time with a peek of the next, so it reads as a
 * swipeable carousel rather than a clipped composition. */
@media (max-width: 560px) {
	#dmse-home .dmse-carousel__track {
		gap: 14px;
	}
	#dmse-home .dmse-carousel__slide {
		flex-basis: 82%;
	}
	#dmse-home .dmse-service-card__desc {
		-webkit-line-clamp: 2;
	}
	#dmse-home .dmse-carousel__controls {
		gap: 16px;
	}
}

/* ==========================================================================
   WHY DMS
   Left: sticky intro + one supporting team photo with a stat badge.
   Right: reason cards — icon chip, faded ghost number, hover lift + blue.
   ========================================================================== */

#dmse-home .dmse-why {
	padding: calc(var(--dmse-section-y) + 8px) 0;
	background:
		radial-gradient(1100px 460px at 82% -8%, rgba(47, 111, 237, 0.06), transparent 70%),
		var(--dmse-navy-950);
}

#dmse-home .dmse-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

#dmse-home .dmse-why__intro {
	position: sticky;
	top: 96px;
}

#dmse-home .dmse-why__intro .dmse-body {
	margin: 4px 0 14px;
	max-width: 42ch;
}

/* ---- Left-column photo slideshow: one image at a time, auto-crossfading
       (JS: [data-dmse-slider] in homepage.js). ---- */
#dmse-home .dmse-why__slider {
	position: relative;
	margin: 32px 0 6px;
	border-radius: 14px;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 24px 48px -28px rgba(20, 39, 63, 0.5);
	aspect-ratio: 4 / 3.15;
	background: var(--dmse-surface);
}

#dmse-home .dmse-why__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
	filter: saturate(0.97) contrast(1.02);
}

#dmse-home .dmse-why__slide.is-active {
	opacity: 1;
}

/* This shot is wider than the frame — show it whole instead of cropping. */
#dmse-home .dmse-why__slide--fit {
	object-fit: contain;
}

/* Bottom scrim so the dots stay legible over bright photos. */
#dmse-home .dmse-why__slider::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(transparent, rgba(12, 30, 52, 0.4));
	pointer-events: none;
	z-index: 1;
}

#dmse-home .dmse-why__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 7px;
}

#dmse-home .dmse-why__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background-color 0.3s ease, width 0.3s ease;
}

#dmse-home .dmse-why__dot.is-active {
	width: 20px;
	background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	#dmse-home .dmse-why__slide {
		transition: none;
	}
}

/* ---- Reason cards ---- */
#dmse-home .dmse-why__list {
	display: grid;
	gap: 14px;
}

#dmse-home .dmse-why__card {
	position: relative;
	padding: 20px 24px;
	background: var(--dmse-surface-strong);
	border: 1px solid var(--dmse-border-soft);
	border-left: 3px solid transparent;
	border-radius: 14px;
	overflow: hidden;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.32s ease, border-color 0.32s ease, background-color 0.32s ease;
}

#dmse-home .dmse-why__card:hover {
	transform: translateY(-3px);
	background: #fff;
	border-color: rgba(47, 111, 237, 0.35);
	border-left-color: var(--dmse-blue-600);
	box-shadow: 0 26px 50px -28px rgba(20, 39, 63, 0.45);
}

#dmse-home .dmse-why__num {
	position: absolute;
	top: 6px;
	right: 16px;
	z-index: 0;
	font-family: var(--dmse-font);
	font-weight: 800;
	font-size: 46px;
	line-height: 1;
	letter-spacing: -0.03em;
	color: rgba(20, 39, 63, 0.06);
	transition: color 0.32s ease;
}

#dmse-home .dmse-why__card:hover .dmse-why__num {
	color: rgba(47, 111, 237, 0.16);
}

#dmse-home .dmse-why__copy {
	position: relative;
	z-index: 1;
}

#dmse-home .dmse-why__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--dmse-text-heading);
	margin: 0 0 6px;
	padding-right: 58px;
}

#dmse-home .dmse-why__text {
	font-size: 14.5px;
	color: var(--dmse-text-body);
	line-height: 1.6;
	margin: 0;
	max-width: 54ch;
}

@media (max-width: 900px) {
	#dmse-home .dmse-why__grid {
		grid-template-columns: 1fr;
	}
	#dmse-home .dmse-why__intro {
		position: static;
	}
	#dmse-home .dmse-why__slider {
		max-width: 460px;
	}
}

@media (max-width: 480px) {
	#dmse-home .dmse-why__card {
		padding: 18px;
	}
	#dmse-home .dmse-why__num {
		font-size: 34px;
		right: 12px;
	}
}

/* ==========================================================================
   INDUSTRY SEGMENTS
   Left: intro copy. Right: an organic cluster of circular "segment" bubbles.
   The two columns are a stretch grid so they always end level with each
   other; the bubble field flexes/wraps and reflows on smaller screens.
   ========================================================================== */

#dmse-home .dmse-industries {
	padding: var(--dmse-section-y) 0;
	background:
		radial-gradient(760px 520px at 8% 2%, rgba(47, 111, 237, 0.08), transparent 68%),
		radial-gradient(720px 560px at 100% 100%, rgba(47, 111, 237, 0.05), transparent 66%),
		var(--dmse-navy-900);
}

#dmse-home .dmse-industries__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: stretch;
}

#dmse-home .dmse-industries__intro {
	align-self: center;
}

#dmse-home .dmse-industries__intro .dmse-section-title {
	max-width: none;
}

#dmse-home .dmse-industries__intro .dmse-body {
	max-width: 52ch;
	margin-bottom: 0;
}

/* ---- Bubble field ---- */

#dmse-home .dmse-industries__cluster {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(220px, 22vw, 300px);
}

#dmse-home .dmse-segments {
	list-style: none;
	margin: 0;
	padding: 12px 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;        /* keep each bubble its own square — no cross-axis stretch */
	align-content: center;
	justify-content: center;
	gap: clamp(12px, 1.6vw, 22px);
}

/* The item is a hard square: fixed width + equal height, so the round
 * bubble inside is a true circle at every breakpoint (never an ellipse). */
#dmse-home .dmse-segments__item {
	position: relative;
	flex: 0 0 auto;
}

#dmse-home .dmse-segments__item--sm { width: clamp(102px, 11vw, 126px); height: clamp(102px, 11vw, 126px); }
#dmse-home .dmse-segments__item--md { width: clamp(126px, 13.5vw, 150px); height: clamp(126px, 13.5vw, 150px); }
#dmse-home .dmse-segments__item--lg { width: clamp(150px, 16vw, 180px); height: clamp(150px, 16vw, 180px); }

/* Subtle vertical scatter so the cluster reads as an intentional organic
 * composition rather than a wrapped row of equal circles. Applied to the
 * item so the bubble's own transform stays free for the hover state. */
#dmse-home .dmse-segments__item:nth-child(6n+1) { transform: translateY(-20px); }
#dmse-home .dmse-segments__item:nth-child(6n+2) { transform: translateY(12px); }
#dmse-home .dmse-segments__item:nth-child(6n+3) { transform: translateY(-6px); }
#dmse-home .dmse-segments__item:nth-child(6n+4) { transform: translateY(24px); }
#dmse-home .dmse-segments__item:nth-child(6n+5) { transform: translateY(-14px); }
#dmse-home .dmse-segments__item:nth-child(6n+6) { transform: translateY(4px); }

/* Every bubble gets the same soft brand-blue wash — enough to lift it off the
 * grey without the cluster turning into a rainbow. --seg-c ("r, g, b") is the
 * single hue every visual rule below reuses. */
#dmse-home .dmse-segments__item { --seg-c: 47, 111, 237; }

#dmse-home .dmse-segments__bubble {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7%;
	text-align: center;
	padding: 15%;
	border-radius: 50%;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 33%,
			rgba(var(--seg-c), 0.16) 0%,
			rgba(var(--seg-c), 0.05) 36%,
			#ffffff 72%);
	border: 1px solid rgba(var(--seg-c), 0.22);
	box-shadow:
		0 12px 28px -14px rgba(20, 39, 63, 0.28),
		0 10px 24px -16px rgba(var(--seg-c), 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	color: var(--dmse-text-heading);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease;
}

/* The two prominent segments: a touch more brand tint + a stronger lift. */
#dmse-home .dmse-segments__item--lg .dmse-segments__bubble {
	background:
		radial-gradient(circle at 50% 33%,
			rgba(var(--seg-c), 0.24) 0%,
			rgba(var(--seg-c), 0.08) 40%,
			#ffffff 76%);
	border-color: rgba(var(--seg-c), 0.34);
}

/* Icons are black glyphs on a white JPG ground — multiply drops the white
 * into the bubble so only the mark shows. */
#dmse-home .dmse-segments__icon {
	width: 42%;
	height: 42%;
	flex: 0 0 auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

#dmse-home .dmse-segments__item--lg .dmse-segments__icon {
	width: 37%;
	height: 37%;
}

#dmse-home .dmse-segments__label {
	font-family: var(--dmse-font);
	font-weight: 600;
	font-size: clamp(9.5px, 0.95vw, 11.5px);
	line-height: 1.22;
	letter-spacing: 0.005em;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

#dmse-home .dmse-segments__item--lg .dmse-segments__label {
	font-size: clamp(11px, 1.15vw, 13px);
	font-weight: 700;
}

/* Hover / focus: scale up, gain prominence, and gently recede siblings. */
#dmse-home .dmse-segments__bubble:hover,
#dmse-home .dmse-segments__bubble:focus-visible {
	transform: translateY(-6px) scale(1.06);
	border-color: rgba(var(--seg-c), 0.55);
	background:
		radial-gradient(circle at 50% 33%,
			rgba(var(--seg-c), 0.32) 0%,
			rgba(var(--seg-c), 0.11) 42%,
			#ffffff 80%);
	box-shadow:
		0 26px 50px -18px rgba(20, 39, 63, 0.38),
		0 0 0 4px rgba(var(--seg-c), 0.14),
		0 18px 40px -18px rgba(var(--seg-c), 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	z-index: 3;
}

#dmse-home .dmse-segments:hover .dmse-segments__bubble:not(:hover) {
	opacity: 0.68;
}

@media (prefers-reduced-motion: reduce) {
	#dmse-home .dmse-segments__item { transform: none; }
	#dmse-home .dmse-segments__bubble:hover,
	#dmse-home .dmse-segments__bubble:focus-visible {
		transform: none;
	}
}

@media (max-width: 1024px) {
	#dmse-home .dmse-industries__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	#dmse-home .dmse-industries__intro {
		align-self: start;
	}
	#dmse-home .dmse-industries__cluster {
		min-height: 0;
	}
	#dmse-home .dmse-segments {
		padding: 12px 0;
	}
}

@media (max-width: 600px) {
	#dmse-home .dmse-segments {
		gap: 12px;
	}
	#dmse-home .dmse-segments__item { transform: none; }
	#dmse-home .dmse-segments__item--sm { width: clamp(96px, 27vw, 112px); height: clamp(96px, 27vw, 112px); }
	#dmse-home .dmse-segments__item--md { width: clamp(112px, 31vw, 130px); height: clamp(112px, 31vw, 130px); }
	#dmse-home .dmse-segments__item--lg { width: clamp(128px, 35vw, 148px); height: clamp(128px, 35vw, 148px); }
	#dmse-home .dmse-segments__label { font-size: 10.5px; }
	#dmse-home .dmse-segments__item--lg .dmse-segments__label { font-size: 11.5px; }
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */

#dmse-home .dmse-partners {
	padding: var(--dmse-section-y) 0;
}

#dmse-home .dmse-partners__marquee {
	width: 100%;
	overflow: hidden;
	margin: 20px 0 28px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

#dmse-home .dmse-partners__track {
	display: flex;
	align-items: center;
	gap: 64px;
	width: max-content;
	animation: dmse-marquee 42s linear infinite;
}

#dmse-home .dmse-partners__marquee:hover .dmse-partners__track {
	animation-play-state: paused;
}

/* Many partner logo files carry dark or colour-dependent marks meant for a
 * white background, so keep each on a white chip — outlined and lightly
 * raised so it reads as a card on the white section. */
#dmse-home .dmse-partners__logo {
	flex: 0 0 auto;
	height: 96px;
	display: flex;
	align-items: center;
	padding: 16px 28px;
	background: var(--dmse-white);
	border: 1px solid var(--dmse-border-soft);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(20, 39, 63, 0.06);
}

#dmse-home .dmse-partners__logo img {
	height: 100%;
	width: auto;
	max-width: 260px;
	object-fit: contain;
}

@keyframes dmse-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	#dmse-home .dmse-partners__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
	}
	#dmse-home .dmse-partners__marquee {
		overflow: visible;
	}
}

/* ==========================================================================
   INSIGHTS
   ========================================================================== */

#dmse-home .dmse-insights {
	padding: var(--dmse-section-y) 0;
}

#dmse-home .dmse-insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

#dmse-home .dmse-insights__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--dmse-border-soft);
	border-radius: 6px;
	overflow: hidden;
	background: var(--dmse-white);
	box-shadow: 0 1px 3px rgba(20, 39, 63, 0.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

#dmse-home .dmse-insights__card:hover,
#dmse-home .dmse-insights__card:focus-visible {
	box-shadow: 0 24px 48px -24px rgba(20, 39, 63, 0.22);
	transform: translateY(-3px);
	border-color: rgba(20, 39, 63, 0.22);
	background: var(--dmse-surface);
}

#dmse-home .dmse-insights__image {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--dmse-navy-900);
}

#dmse-home .dmse-insights__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#dmse-home .dmse-insights__card:hover .dmse-insights__image img,
#dmse-home .dmse-insights__card:focus-visible .dmse-insights__image img {
	transform: scale(1.05);
}

#dmse-home .dmse-insights__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

#dmse-home .dmse-insights__date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dmse-text-muted);
}

#dmse-home .dmse-insights__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--dmse-text-heading);
	line-height: 1.35;
	margin: 0;
	transition: color 0.25s ease;
}

#dmse-home .dmse-insights__card:hover .dmse-insights__title,
#dmse-home .dmse-insights__card:focus-visible .dmse-insights__title {
	color: var(--dmse-accent-light);
}

#dmse-home .dmse-insights__text {
	font-size: 14.5px;
	color: var(--dmse-text-body);
	line-height: 1.6;
	margin: 0 0 8px;
}

@media (max-width: 900px) {
	#dmse-home .dmse-insights__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   CAREERS
   ========================================================================== */

#dmse-home .dmse-careers {
	padding: 44px 0;
	background: var(--dmse-navy-800);
	border-top: 1px solid var(--dmse-border-soft);
	border-bottom: 1px solid var(--dmse-border-soft);
}

#dmse-home .dmse-careers__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

#dmse-home .dmse-careers .dmse-section-title {
	margin-bottom: 12px;
}

#dmse-home .dmse-careers .dmse-body {
	margin-bottom: 0;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

#dmse-home .dmse-final-cta {
	position: relative;
	padding: clamp(28px, 3vw, 44px) 0;
	background: #e7ebf4;
	overflow: hidden;
}

#dmse-home .dmse-final-cta__bg {
	position: absolute;
	inset: -10%;
	background-image:
		linear-gradient(rgba(47, 111, 237, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 111, 237, 0.1) 1px, transparent 1px);
	background-size: 56px 56px;
	animation: dmse-grid-pan 60s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	#dmse-home .dmse-final-cta__bg {
		animation: none;
	}
}

@keyframes dmse-grid-pan {
	from { transform: translate(0, 0); }
	to { transform: translate(56px, 56px); }
}

#dmse-home .dmse-final-cta__title {
	font-family: var(--dmse-font);
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: clamp(30px, 3.8vw, 46px);
	line-height: 1.1;
	color: var(--dmse-text-heading);
	margin: 0 0 18px;
}

#dmse-home .dmse-final-cta__lead {
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--dmse-text-body);
	max-width: 48ch;
	margin: 0 0 24px;
}

#dmse-home .dmse-final-cta__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: stretch;
}

#dmse-home .dmse-final-cta__intro {
	display: flex;
	flex-direction: column;
}

#dmse-home .dmse-final-cta__map {
	margin-top: 24px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--dmse-border-soft);
	flex: 1 1 auto;
	min-height: 320px;
}

#dmse-home .dmse-final-cta__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

#dmse-home .dmse-final-cta__form {
	background: var(--dmse-surface-strong);
	border: 1px solid var(--dmse-border-soft);
	border-radius: 6px;
	padding: clamp(24px, 3vw, 36px);
	box-shadow: 0 40px 80px -30px rgba(20, 39, 63, 0.18);
}

/* Restyle the embedded MetForm plugin markup to match this design system,
 * without touching its (working) submission logic/JS. MetForm ships its own
 * bundled Bootstrap-era CSS (inset shadows, heavy drop-shadows, generic
 * radii) — reset everything on the field first, then rebuild it flat and
 * on-brand to match the buttons/cards used everywhere else on the page. */
#dmse-home .dmse-final-cta__form * {
	box-shadow: none !important;
}

#dmse-home .dmse-final-cta__form label {
	color: var(--dmse-text-heading);
}

#dmse-home .dmse-final-cta__form .mf-input-wrapper {
	margin-bottom: 16px;
}

#dmse-home .dmse-final-cta__form .mf-input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	font-family: var(--dmse-font);
	font-size: 15px;
	font-weight: 400;
	color: var(--dmse-grey-900);
	background: var(--dmse-off-white);
	border: 1px solid var(--dmse-grey-300) !important;
	border-radius: 4px !important;
	padding: 14px 16px;
	line-height: 1.4;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

#dmse-home .dmse-final-cta__form .mf-input::placeholder {
	color: var(--dmse-grey-500);
	opacity: 1;
}

#dmse-home .dmse-final-cta__form .mf-input:hover {
	border-color: var(--dmse-grey-500) !important;
}

#dmse-home .dmse-final-cta__form .mf-input:focus {
	outline: none;
	border-color: var(--dmse-blue-600) !important;
	background: var(--dmse-white);
}

#dmse-home .dmse-final-cta__form .mf-input.mf-textarea {
	min-height: 120px;
	resize: vertical;
}

#dmse-home .dmse-final-cta__form .mf-btn-wraper {
	margin-top: 4px;
}

#dmse-home .dmse-final-cta__form .metform-submit-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--dmse-font);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 4px !important;
	border: none;
	cursor: pointer;
	background: var(--dmse-blue-600);
	color: var(--dmse-white);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

#dmse-home .dmse-final-cta__form .metform-submit-btn:hover,
#dmse-home .dmse-final-cta__form .metform-submit-btn:focus-visible {
	background: var(--dmse-navy-700);
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	#dmse-home .dmse-final-cta__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Responsive: hero stacking
   ========================================================================== */

@media (max-width: 640px) {
	#dmse-home .dmse-hero-slider {
		height: calc(100vh - var(--dmse-header-h, 96px));
		height: calc(100svh - var(--dmse-header-h, 96px));
		min-height: 460px;
	}
	#dmse-home .dmse-hero-slider__title {
		font-size: clamp(38px, 12vw, 56px);
	}
	#dmse-home .dmse-hero-slider__nav {
		right: 12px;
		gap: 12px;
	}
	#dmse-home .dmse-hero-slider__dot {
		padding-left: 26px;
		font-size: 11px;
	}
	#dmse-home .dmse-hero-slider__dot::before {
		width: 16px;
	}
	#dmse-home .dmse-hero-slider__cue {
		display: none;
	}
}

@media (max-width: 480px) {
	#dmse-home .dmse-btn {
		width: 100%;
		justify-content: center;
	}
	#dmse-home .dmse-hero-slider__actions {
		flex-direction: column;
		width: 100%;
		max-width: 320px;
	}
	#dmse-home .dmse-careers__row .dmse-btn {
		width: auto;
	}
}

/* ==========================================================================
   FOOTER
   The shared .dmse-footer renders on every page (functions.php swaps it onto
   Kadence's `kadence_footer` hook), so its styles, .dmse-visually-hidden and
   the .dmse-container fallback now live in assets/css/site.css.
   ========================================================================== */

