/* =====================================================================
   MW SERVICE CATALOGUE (v2, minimal) — "Our individual services"
   Scrolls in like a normal section. The heading builds letter by letter,
   the text and the services arrive as they come into view (and rewind when
   you scroll back). A quiet spotlight on the right names one service at a
   time. Motion: assets/js/catalog.js. Sizes are Figma px of the
   2359 × 1066 frame × --mw-u.
   ===================================================================== */

/* --- Edit values here ------------------------------------------------ */
.mw-ct {
	--mw-u:     calc(100vw / 2359);   /* 1 Figma px */
	--ct-bg:    #0061FF;
	--ct-head:  #E4E4E4;              /* heading */
	--ct-ink:   #FFFFFF;              /* text, services */
	--ct-soft:  rgba(255, 255, 255, .72);
	--ct-line:  rgba(255, 255, 255, .25);
	--ct-ease:  cubic-bezier(.19, 1, .22, 1);
}

/* --- Section --------------------------------------------------------- */
.mw-ct {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	background: var(--ct-bg);
	color: var(--ct-ink);
	overflow-x: clip;
	font-family: 'Roboto', sans-serif;
}

body:has(.mw-ct) {
	overflow-x: clip;
}

.e-con:has(> .elementor-widget-mw-catalog),
.e-con:has(> .e-con-inner > .elementor-widget-mw-catalog),
.e-con:has(> .e-con-inner > .elementor-widget-mw-catalog) > .e-con-inner {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	padding: 0 !important;
	gap: 0 !important;
}

.mw-ct *,
.mw-ct *::before,
.mw-ct *::after {
	box-sizing: border-box;
}

/* --- Layout: the 2359 × 1066 Figma frame ------------------------------ */
.mw-ct__inner {
	position: relative;
	height: calc(1066 * var(--mw-u));
}

.mw-ct .mw-ct__title {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(156 * var(--mw-u));
	margin: 0;
	font-family: 'Antonio', sans-serif;
	font-weight: 200;
	font-size: calc(128 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ct-head);
}

.mw-ct__line {
	display: block;
	overflow: clip;
	padding-bottom: .06em;
	margin-bottom: -.06em;
}

.mw-ct__ch,
.mw-ct__sp {
	display: inline-block;
}

.mw-ct__sp {
	width: .22em;
}

.mw-ct .mw-ct__text {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(468.7 * var(--mw-u));
	width: calc(745 * var(--mw-u));
	margin: 0;
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(20 * var(--mw-u));
	color: var(--ct-ink);
}

/* Services */
.mw-ct .mw-ct__list {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(760 * var(--mw-u));
	width: calc(1700 * var(--mw-u));
	display: flex;
	flex-wrap: wrap;
	gap: calc(40 * var(--mw-u)) calc(66 * var(--mw-u));
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-ct__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-ct .mw-ct__item,
.mw-ct .mw-ct__item:hover,
.mw-ct .mw-ct__item:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: calc(10 * var(--mw-u));
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: calc(24 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: var(--ct-ink);
	cursor: pointer;
	transition: opacity .4s ease;
}

/* bigger hit area */
.mw-ct__item::before {
	content: '';
	position: absolute;
	inset: calc(-18 * var(--mw-u)) calc(-26 * var(--mw-u));
}

/* the line that draws under a service */
.mw-ct__item::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-10 * var(--mw-u));
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: 100% 50%;
	transition: transform .55s var(--ct-ease);
}

.mw-ct .mw-ct__item:focus-visible {
	outline: 1px solid #fff;
	outline-offset: calc(12 * var(--mw-u));
}

.mw-ct__name {
	display: inline-block;
}

.mw-ct__arrow {
	width: calc(14 * var(--mw-u));
	height: calc(14 * var(--mw-u));
	min-width: 9px;
	min-height: 9px;
	flex: none;
	margin-left: calc(-24 * var(--mw-u));
	opacity: 0;
	transform: translate(-6px, 6px);
	transition: opacity .35s ease, transform .55s var(--ct-ease), margin .55s var(--ct-ease);
}

.mw-ct__list li.is-on .mw-ct__item::after {
	transform: scaleX(1);
	transform-origin: 0 50%;
}

@media (hover: hover) {
	.mw-ct__list:hover .mw-ct__item {
		opacity: .5;
	}
	.mw-ct__list:hover .mw-ct__item:hover,
	.mw-ct__list:hover li.is-on .mw-ct__item {
		opacity: 1;
	}
	.mw-ct .mw-ct__item:hover::after {
		transform: scaleX(1);
		transform-origin: 0 50%;
	}
	.mw-ct .mw-ct__item:hover .mw-ct__arrow {
		margin-left: 0;
		opacity: 1;
		transform: none;
	}
}

/* Spotlight, top right: one service at a time, quietly */
.mw-ct__spot {
	position: absolute;
	left: calc(1400 * var(--mw-u));
	top: calc(176 * var(--mw-u));
	width: calc(738 * var(--mw-u));
	height: calc(330 * var(--mw-u));
	padding-left: calc(48 * var(--mw-u));
}

/* a hairline down its left side */
.mw-ct__spot::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 100%;
	background: var(--ct-line);
	transform: scaleY(var(--ln, 1));
	transform-origin: 50% 0;
}

.mw-ct__card {
	position: absolute;
	left: calc(48 * var(--mw-u));
	right: 0;
	top: 0;
	visibility: hidden;
}

.mw-ct__card.is-on,
.mw-ct__card.is-out {
	visibility: visible;
}

.mw-ct .mw-ct__card-name {
	margin: 0;
	overflow: clip;
	padding-bottom: .06em;
	font-family: 'Antonio', sans-serif;
	font-weight: 200;
	font-size: calc(56 * var(--mw-u));
	line-height: 1.06;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--ct-ink);
}

.mw-ct__card-name span {
	display: inline-block;
	transform: translate3d(0, 105%, 0);
	transition: transform .7s var(--ct-ease);
}

.mw-ct .mw-ct__card-text {
	max-width: calc(560 * var(--mw-u));
	margin: calc(22 * var(--mw-u)) 0 0;
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(28 * var(--mw-u));
	color: var(--ct-soft);
	opacity: 0;
	filter: blur(4px);
	transition: opacity .5s ease, filter .5s ease;
}

/* a text link, not a button */
.mw-ct .mw-ct__more,
.mw-ct .mw-ct__more:hover,
.mw-ct .mw-ct__more:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: calc(10 * var(--mw-u));
	margin-top: calc(34 * var(--mw-u));
	padding: 0 0 calc(8 * var(--mw-u));
	border: 0;
	background: none;
	box-shadow: none;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: calc(18 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	color: var(--ct-ink);
	cursor: pointer;
	opacity: 0;
	transition: opacity .5s ease;
}

.mw-ct__more::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	opacity: .4;
	transform-origin: 0 50%;
	transition: opacity .4s ease;
}

.mw-ct__more .mw-ct__arrow {
	margin-left: 0;
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.mw-ct .mw-ct__more:hover::after {
		opacity: 1;
	}
	.mw-ct .mw-ct__more:hover .mw-ct__arrow {
		transform: translate(2px, -2px);
	}
}

.mw-ct .mw-ct__more:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 6px;
}

/* the open card */
.mw-ct__card.is-on .mw-ct__card-name span {
	transform: none;
}

.mw-ct__card.is-on .mw-ct__card-text {
	opacity: 1;
	filter: none;
	transition-delay: .12s;
}

.mw-ct__card.is-on .mw-ct__more {
	opacity: 1;
	transition-delay: .24s;
}

/* the card that is leaving: quick, upwards */
.mw-ct__card.is-out .mw-ct__card-name span {
	transform: translate3d(0, -105%, 0);
	transition-duration: .45s;
}

.mw-ct__card.is-out .mw-ct__card-text,
.mw-ct__card.is-out .mw-ct__more {
	opacity: 0;
	transition-duration: .25s;
	transition-delay: 0s;
}

/* --- Tablets & phones -------------------------------------------------- */
@media (max-width: 1024px) {
	.mw-ct {
		--pad: 24px;
	}

	.mw-ct__inner {
		height: auto;
		padding: 88px var(--pad) 96px;
	}

	.mw-ct .mw-ct__title {
		position: static;
		font-size: 64px;
		white-space: normal;
	}

	.mw-ct .mw-ct__text {
		position: static;
		width: auto;
		margin-top: 22px;
		font-size: 15px;
		line-height: 1.45;
	}

	.mw-ct__spot {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		height: 150px;
		margin-top: 44px;
		padding-left: 20px;
	}

	.mw-ct__card {
		left: 20px;
	}

	.mw-ct .mw-ct__card-name {
		font-size: 32px;
	}

	.mw-ct .mw-ct__card-text {
		max-width: none;
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.45;
	}

	.mw-ct .mw-ct__more,
	.mw-ct .mw-ct__more:hover,
	.mw-ct .mw-ct__more:focus {
		margin-top: 16px;
		padding-bottom: 6px;
		font-size: 13px;
		gap: 8px;
	}

	.mw-ct .mw-ct__list {
		position: static;
		width: auto;
		flex-direction: column;
		gap: 0;
		margin-top: 36px;
		border-top: 1px solid var(--ct-line);
	}

	.mw-ct .mw-ct__item,
	.mw-ct .mw-ct__item:hover,
	.mw-ct .mw-ct__item:focus {
		display: flex;
		justify-content: space-between;
		width: 100%;
		padding: 17px 0;
		border-bottom: 1px solid var(--ct-line);
		font-size: 16px;
	}

	.mw-ct__item::before,
	.mw-ct__item::after {
		display: none;
	}

	.mw-ct__arrow {
		width: 10px;
		height: 10px;
		margin-left: 0;
		opacity: .6;
		transform: none;
	}

	.mw-ct__list li.is-on .mw-ct__arrow {
		opacity: 1;
	}
}

@media (max-width: 1024px) and (min-width: 600px) {
	.mw-ct {
		--pad: 48px;
	}
	.mw-ct .mw-ct__title {
		font-size: 88px;
	}
	.mw-ct .mw-ct__card-name {
		font-size: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mw-ct *,
	.mw-ct *::before,
	.mw-ct *::after {
		animation: none !important;
		transition: none !important;
	}
}