/*! ManPack site motion 1.8.0
 * Site-wide polish: page transitions, hero intro, scroll reveals (word, fade, card, image
 * curtain), scroll-linked progress bar and parallax, glass header, hover lift.
 * transform / opacity / clip-path only; everything is off for reduced motion.
 */
:root {
	--mpr-ease: cubic-bezier(.19, 1, .22, 1);
	--mpr-ease-io: cubic-bezier(.77, 0, .18, 1);
	--mpr-blue: #0A4DFA;
}

/* Anchors land below the fixed header. Smooth anchor scrolling is done in
   mp-site.js (one eased scroll); native smooth scrolling stays off because it
   fought with the theme's own scroll animation and made jumps stutter. */
html { scroll-padding-top: 110px; scroll-behavior: auto !important; }

@property --mpr-p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

/* word wrappers always take the heading's own colour and type: page CSS such as
   `selector span { color: blue }` is meant for accent spans, not for these */
.elementor-heading-title .mpr-w, .elementor-heading-title .mpr-wi { color: inherit !important; font: inherit !important; letter-spacing: inherit !important; background: none !important; -webkit-text-fill-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {

	/* ---------- 1. hero intro: first section, CSS only (no wait on JS) --- */
	@keyframes mpr-intro {
		from { opacity: .01; transform: translate3d(0, 30px, 0); filter: blur(8px); }
		to { opacity: 1; transform: none; filter: none; }
	}
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget {
		animation: mpr-intro 1.1s var(--mpr-ease) both;
	}
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget:nth-child(2) { animation-delay: .08s; }
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget:nth-child(3) { animation-delay: .16s; }
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget:nth-child(4) { animation-delay: .24s; }
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget:nth-child(5) { animation-delay: .32s; }
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .elementor-widget:nth-child(n+6) { animation-delay: .4s; }
	.elementor[data-elementor-type="wp-page"] > .e-con:first-child .e-con .elementor-widget { animation-delay: .3s; }

	/* ---------- 2. scroll reveals (states set by mp-site.js) ------------- */
	/* soft fade-up */
	.mpr-armed.mpr-fade { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(5px); }
	.mpr-in.mpr-fade {
		transition: opacity .9s var(--mpr-ease) var(--mpr-d, 0s), transform 1.15s var(--mpr-ease) var(--mpr-d, 0s), filter .9s var(--mpr-ease) var(--mpr-d, 0s);
	}

	/* headings: word-by-word rise out of a mask */
	.mpr-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
	.mpr-wi { display: inline-block; }
	.mpr-armed .mpr-wi { transform: translate3d(0, 112%, 0) rotate(3deg); transform-origin: 0 100%; }
	.mpr-in .mpr-wi { transition: transform 1.15s var(--mpr-ease) calc(var(--mpr-d, 0s) + var(--wi, 0) * 42ms); }

	/* cards rise in sequence */
	.mpr-armed.mpr-card { opacity: 0; transform: translate3d(0, 56px, 0) scale(.975); }
	.mpr-in.mpr-card {
		transition: opacity 1s var(--mpr-ease) var(--mpr-d, 0s), transform 1.3s var(--mpr-ease) var(--mpr-d, 0s);
	}

	/* images: curtain wipe up on the photo's own rounded shape while it settles
	   from a slight zoom; the clip is removed afterwards so shadows show */
	.mpr-armed.mpr-img img { clip-path: inset(100% 0 0 0 round var(--mpr-r, 0px)); scale: 1.1; }
	.mpr-in.mpr-img img { clip-path: inset(0 0 0 0 round var(--mpr-r, 0px)); transition: clip-path 1.4s var(--mpr-ease-io) var(--mpr-d, 0s), scale 1.9s var(--mpr-ease) var(--mpr-d, 0s); }
	.mpr-done.mpr-img img { clip-path: none; }
	/* background-image cards (CTA photos, team cards) */
	.mpr-armed.mpr-bg { clip-path: inset(100% 0 0 0 round var(--mpr-r, 0px)); scale: 1.06; }
	.mpr-in.mpr-bg { transition: clip-path 1.45s var(--mpr-ease-io) var(--mpr-d, 0s), scale 1.9s var(--mpr-ease) var(--mpr-d, 0s); }

	/* ---------- 3. hover polish (pointer devices) ------------------------ */
	@media (hover: hover) {
		.mpr-card.mpr-done { transition: transform .6s var(--mpr-ease), box-shadow .6s var(--mpr-ease), border-color .6s var(--mpr-ease); }
		.mpr-card.mpr-done:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 28px 60px -28px rgba(16, 8, 44, .22); }
		.mpr-img.mpr-done img { transition: scale 1s var(--mpr-ease), box-shadow 1s var(--mpr-ease); }
		.mpr-card.mpr-done:hover .mpr-img img, .mpr-img.mpr-done:hover img { scale: 1.025; }
		.elementor-widget-button .elementor-button { transition: transform .35s var(--mpr-ease), box-shadow .35s var(--mpr-ease), background-color .35s, color .35s; }
		.elementor-widget-button .elementor-button:active { transform: scale(.97); }
	}
}

/* ---------- 4. scroll-linked effects (no JS; browsers that support them) --- */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		/* reading progress bar */
		body::after {
			content: "";
			position: fixed;
			z-index: 100001;
			top: 0;
			left: 0;
			right: 0;
			height: 3px;
			background: linear-gradient(90deg, #0A4DFA, #6F83FB 60%, #9BB4FF);
			transform-origin: 0 50%;
			transform: scaleX(0);
			pointer-events: none;
			animation: mpr-progress linear both;
			animation-timeline: scroll(root block);
		}
		@keyframes mpr-progress { to { transform: scaleX(1); } }

		/* gentle parallax on full-cover photo cards */
		.mpr-bgpar { animation: mpr-bgpar linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
		@keyframes mpr-bgpar { from { background-position-y: 38%; } to { background-position-y: 62%; } }
	}
}

/* ---------- 5. header: frosted glass once the page scrolls ------------------ */
/* The blur lives on a ::before layer behind the header, never on the header
   itself: backdrop-filter on an ancestor turns it into the containing block
   for position:fixed children, which would squash the full-screen mobile
   menu (it sits inside the header) down to the header's height.
   isolation keeps the layer behind the content without that side effect. */
.top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con {
	isolation: isolate;
	transition: box-shadow .45s ease;
}
.top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	transition: opacity .45s ease;
}
html.mpr-scrolled .top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con {
	background-color: transparent !important;
}
html.mpr-scrolled .top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con::before { opacity: 1; }
/* sticky state: the bar lifts off the screen edges into a floating glass card
   (rounded on every corner), so nothing behind it peeks round the corners */
.top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con {
	transition: box-shadow .45s ease, border-radius .55s cubic-bezier(.19, 1, .22, 1), margin .55s cubic-bezier(.19, 1, .22, 1), width .55s cubic-bezier(.19, 1, .22, 1) !important;
}
.top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con::before {
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
	transition: opacity .45s ease;
}
html.mpr-scrolled .top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con {
	--mpr-float: 14px;
	margin: 10px var(--mpr-float) 0 !important;
	width: calc(100% - var(--mpr-float) * 2) !important;
	max-width: calc(100% - var(--mpr-float) * 2) !important;
	border-radius: 20px !important;
	box-shadow: 0 0 0 1px rgba(16, 8, 44, .06), 0 16px 40px -18px rgba(16, 8, 44, .30) !important;
}
/* the header template has its own full-width glass strip on scroll; while the
   bar floats it would show round the corners, so it steps aside (it still turns
   solid white behind the open mobile menu) */
html.mpr-scrolled .top_panel .elementor[data-elementor-type="cpt_layouts"].is-scrolled:not(.mobile-menu-open)::before {
	background-color: transparent !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	box-shadow: none !important;
	border-bottom-color: transparent !important;
}
@media (max-width: 767px) {
	html.mpr-scrolled .top_panel .elementor[data-elementor-type="cpt_layouts"] > .e-con { --mpr-float: 10px; margin-top: 8px !important; border-radius: 16px !important; }
}

/* ---------- 6. page-to-page transition ------------------------------------
   Handled by the branded cover in the plugin <head> + mp-site.js: on click a
   navy panel rises over the page (ringing phone, loading line), stays while
   the next page loads, then lifts away on the new page. Works in every
   browser and masks slow server responses. */

/* ---------- 8. scroll-to-top button: clearly visible, on brand ------------- */
.trx_addons_scroll_to_top {
	background: #0A4DFA !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 12px 28px -10px rgba(10, 77, 250, .6), inset 0 0 0 1px rgba(255, 255, 255, .28) !important;
	transition: opacity .4s ease, transform .45s cubic-bezier(.19, 1, .22, 1), bottom .45s cubic-bezier(.19, 1, .22, 1), background-color .3s ease !important;
}
.trx_addons_scroll_to_top::before { color: #fff !important; }
.trx_addons_scroll_to_top.show { opacity: 1 !important; }
@media (hover: hover) {
	.trx_addons_scroll_to_top:hover { background: #0838C4 !important; transform: translate3d(0, -3px, 0); }
}
/* thin ring that fills as you read down the page */
@supports (animation-timeline: scroll()) {
	.trx_addons_scroll_to_top::after {
		content: "";
		position: absolute;
		inset: -4px;
		border-radius: 50%;
		background: conic-gradient(#0A4DFA var(--mpr-p), rgba(10, 77, 250, .14) 0);
		-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
		mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
		pointer-events: none;
		animation: mpr-ring linear both;
		animation-timeline: scroll(root block);
	}
	@keyframes mpr-ring { to { --mpr-p: 100%; } }
}

/* ---------- 9. buttons: live gradient edge -----------------------------------
   Buttons keep their Figma design. A thin light travels slowly around the
   edge all the time (span.mpb-edge, added by mp-site.js); on hover it turns
   brighter and a soft glow sits under the button, replacing the light sweep
   and the widening rings. Links with an underline get a moving light along
   it. Everything stops for reduced motion. */
@property --mpb-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mpb-edge {
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 1.5px;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background: conic-gradient(from var(--mpb-a), rgba(155, 180, 255, 0) 0%, #9BB4FF 10%, #FFFFFF 20%, #9BB4FF 30%, rgba(155, 180, 255, 0) 40%);
	transition: opacity .45s ease, padding .45s ease;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
.mpb-light .mpb-edge { /* white / outline buttons: a blue light instead */
	background: conic-gradient(from var(--mpb-a), rgba(10, 77, 250, 0) 0%, rgba(10, 77, 250, .45) 10%, #0A4DFA 20%, rgba(10, 77, 250, .45) 30%, rgba(10, 77, 250, 0) 40%);
}
@keyframes mpb-spin { to { --mpb-a: 360deg; } }
/* a disabled button (e.g. Submit before the form is filled in) shows no light, so the light switching on says "ready" */
.mpb:disabled .mpb-edge, .mpb[aria-disabled="true"] .mpb-edge { opacity: 0 !important; }
@keyframes mpb-line { from { background-position: 0 100%; } to { background-position: -200% 100%; } }

@media (prefers-reduced-motion: no-preference) {
	/* resting state: a soft light circles the edge (one steady speed, so the
	   hover never makes it jump) */
	.mpb .mpb-edge { opacity: .55; animation: mpb-spin 3.6s linear infinite; }
	.mpb.mpb-light .mpb-edge { opacity: .45; }
	/* "Talk to sales": the underline it already has carries a slow light */
	.manpack-inline-link-btn .elementor-button {
		border-bottom-color: transparent !important;
		background-image: linear-gradient(90deg, currentColor 0%, currentColor 38%, #6F8CFF 50%, currentColor 62%, currentColor 100%) !important;
		background-repeat: repeat-x !important;
		background-position: 0 100% !important;
		background-size: 200% 1.5px !important;
		animation: mpb-line 3.6s linear infinite;
	}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	/* solid + outline buttons: no sweep, no widening rings; brighter edge + glow */
	.elementor-widget-button:not(.mp-btn-halo):not(.underlined):not(.manpack-inline-link-btn) .elementor-button:hover::before,
	.elementor-field-type-submit button:hover::before { transform: translateX(-120%); transition: none; }
	.elementor-widget-button:not(.mp-btn-halo):not(.underlined):not(.manpack-inline-link-btn) .elementor-button.mpb:hover,
	.elementor-field-type-submit button.mpb:hover {
		box-shadow: 0 1px 2px rgba(10, 77, 250, .12), 0 14px 30px -14px rgba(10, 77, 250, .85);
	}
	.elementor-widget-button:not(.mp-btn-halo):not(.underlined):not(.manpack-inline-link-btn) .elementor-button.mpb.mpb-light:hover {
		box-shadow: 0 1px 2px rgba(10, 11, 43, .06), 0 14px 30px -16px rgba(10, 11, 43, .35);
	}
	.mp-dark .elementor-widget-button:not(.mp-btn-halo):not(.underlined):not(.manpack-inline-link-btn) .elementor-button.mpb:hover {
		box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 14px 30px -14px rgba(0, 0, 0, .55);
	}
	/* halo buttons: keep their resting rings and glow, add the edge light */
	.elementor-widget-button.mp-btn-halo .elementor-button.mpb:hover,
	.elementor-widget-button.mp-btn-halo .elementor-button.mpb:focus-visible {
		box-shadow: 0 0 0 7px rgba(10, 77, 250, .20), 0 0 0 16px rgba(10, 77, 250, .08);
	}
	.mp-dark .elementor-widget-button.mp-btn-halo .elementor-button.mpb:hover {
		box-shadow: 0 0 0 7px rgba(255, 255, 255, .20), 0 0 0 16px rgba(255, 255, 255, .08);
	}
	.mpb:hover .mpb-edge, .mpb:focus-visible .mpb-edge { opacity: 1; padding: 2px; }

	/* text links: the underline turns into a moving light */
	.underlined .elementor-button:hover::after,
	.underlined .elementor-button:focus-visible::after {
		background: linear-gradient(90deg, #0A4DFA, #9BB4FF, #0A4DFA, #9BB4FF, #0A4DFA) 0 0 / 200% 100%;
		animation: mpb-line 1.4s linear infinite;
	}
	.manpack-inline-link-btn .elementor-button:hover,
	.manpack-inline-link-btn .elementor-button:focus-visible {
		border-bottom-color: transparent !important;
		background-image: linear-gradient(90deg, #0A4DFA, #9BB4FF, #0A4DFA, #9BB4FF, #0A4DFA) !important;
		animation-duration: 1.4s;
	}
}

/* ---------- 10. FAQ: left column stays in view while the questions scroll -- */
@media (min-width: 1025px) {
	.mpr-sticky-row, .mpr-sticky-row > .e-con-inner { align-items: flex-start !important; }
	.e-con.mpr-sticky {
		position: sticky !important;
		top: 120px;
		align-self: flex-start !important;
		z-index: 1;
	}
	.mpr-clip { overflow: clip !important; }
}

/* ---------- 11. team cards: tilt, depth, light (pointer devices) ----------- */
.e-con.mpr-person, .mpr-person {
	--rx: 0deg; --ry: 0deg; --tx: 0px; --ty: 0px; --gx: 50%; --gy: 50%;
	/* Elementor sets overflow/position on every container through variables
	   (and its file loads after this one), so these must be firm */
	--overflow: hidden;
	--position: relative;
	position: relative !important;
	isolation: isolate !important;
	overflow: hidden !important;
	background-image: none !important; /* the photo now lives in .mpr-person-photo */
	transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) !important;
	transition: transform .7s cubic-bezier(.19, 1, .22, 1), filter .6s ease, box-shadow .6s ease !important;
	will-change: transform;
}
.mpr-person.is-on { transition: transform .25s ease-out, filter .6s ease, box-shadow .6s ease !important; box-shadow: 0 40px 80px -40px rgba(16, 8, 44, .55) !important; }
.mpr-person-photo {
	position: absolute;
	inset: -3%;
	z-index: -1;
	transform: translate3d(var(--tx), var(--ty), 0) scale(1);
	transition: transform .9s cubic-bezier(.19, 1, .22, 1);
	pointer-events: none;
}
.mpr-person.is-on .mpr-person-photo { transform: translate3d(var(--tx), var(--ty), 0) scale(1.06); transition-duration: .35s; }
.mpr-person-glare {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	opacity: 0;
	background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
	transition: opacity .5s ease;
}
.mpr-person.is-on .mpr-person-glare { opacity: 1; }
.mpr-person > .e-con, .mpr-person > .elementor-element { position: relative; z-index: 2; }
.mpr-person > .mpb-edge { z-index: 3; padding: 2px; opacity: 0; }
.mpr-person.is-on > .mpb-edge { opacity: .9; animation: mpb-spin 3.6s linear infinite; }
.mpr-person .elementor-heading-title, .mpr-person .elementor-widget-text-editor { transition: transform .7s cubic-bezier(.19, 1, .22, 1); }
.mpr-person.is-on .elementor-heading-title { transform: translate3d(0, -6px, 0); }
.mpr-person.is-on .elementor-widget-text-editor { transform: translate3d(0, -6px, 0); transition-delay: .04s; }
.mpr-person .elementor-icon svg circle, .mpr-person .elementor-icon svg path { transition: fill .4s ease; }
.mpr-person.is-on .elementor-icon svg circle { fill: #0A4DFA !important; }
.mpr-person.is-on .elementor-icon svg path { fill: #FFFFFF !important; }
.mpr-person .elementor-icon { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) !important; }
.mpr-person.is-on .elementor-icon { transform: rotate(-10deg) scale(1.12); }
.mpr-people:hover > .mpr-person:not(.is-on) { filter: grayscale(.7) brightness(.82); }
@media (prefers-reduced-motion: reduce) {
	.mpr-person, .mpr-person-photo { transform: none !important; }
}

/* ---------- 12. living wave backgrounds (canvas drawn by mp-site.js) ------- */
.mpr-wave { position: absolute; z-index: 0; pointer-events: none; display: block; }
.mpr-wave-on { --overflow: hidden; overflow: hidden; }
.mpr-wave-on.mpr-wave-layer > .elementor-motion-effects-container { opacity: 0 !important; }
.mpr-wave-on.mpr-wave-before::before { opacity: 0 !important; }
.mpr-wave-on.mpr-wave-bg { background-image: none !important; }
.mpr-wave-on > .e-con, .mpr-wave-on > .e-con-inner, .mpr-wave-on > .elementor-element { position: relative; z-index: 1; }

/* reduced motion: never leave anything hidden */
@media (prefers-reduced-motion: reduce) {
	.mpr-armed, .mpr-armed .mpr-wi, .mpr-armed img { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; scale: none !important; }
}
