/* =====================================================================
   MW PACKAGES — "Explore our packages"
   The service catalogue above blurs away into the same blue; a white
   panel slides in from the right and the heading builds letter by
   letter. Industries (H3) sit in a column; the chosen one is joined to
   the panel by a white tab that slides between them. The panel lists
   that industry's packages (H4), one open at a time.
   Motion: assets/js/packages.js. Sizes are Figma px of the 2359 × 1066
   frame × --mw-u.
   ===================================================================== */

/* --- Edit values here ------------------------------------------------ */
.mw-pk {
	--mw-u:     calc(100vw / 2359);   /* 1 Figma px */
	--pk-bg:    #0061FF;
	--pk-head:  #E4E4E4;              /* heading, industries */
	--pk-ink:   #FFFFFF;              /* description on blue */
	--pk-panel: #FFFFFF;
	--pk-text:  #101010;              /* open package */
	--pk-dim:   rgba(16, 16, 16, .4); /* closed packages */
	--pk-blue:  #0061FF;
	--pk-ease:  cubic-bezier(.19, 1, .22, 1);
	--pk-length: 190svh;              /* pinned length — packages.js sets this */
}

/* --- Section --------------------------------------------------------- */
.mw-pk {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	background: var(--pk-bg);
	color: var(--pk-ink);
	overflow-x: clip;
	font-family: 'Roboto', sans-serif;
	pointer-events: auto;
}

/* The section pulls itself up over the section before (negative margin), and the
   Elementor wrappers around it move up with it. They are invisible but would still
   catch the mouse — let hovers and clicks pass through to the section before. */
.elementor-widget-mw-packages,
.elementor-widget-mw-packages > .elementor-widget-container {
	pointer-events: none;
}

body:has(.mw-pk) {
	overflow-x: clip;
}

.e-con:has(> .elementor-widget-mw-packages),
.e-con:has(> .e-con-inner > .elementor-widget-mw-packages) {
	position: relative;
	z-index: 9;                          /* above the catalogue (it dissolves it) */
}
.e-con:has(> .elementor-widget-mw-packages),
.e-con:has(> .e-con-inner > .elementor-widget-mw-packages),
.e-con:has(> .e-con-inner > .elementor-widget-mw-packages) > .e-con-inner {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	padding: 0 !important;
	gap: 0 !important;
}

.mw-pk *,
.mw-pk *::before,
.mw-pk *::after {
	box-sizing: border-box;
}

/* --- Entry (packages.js) ------------------------------------------------ */
.mw-pk__veil {
	display: none;
}

.mw-pk--js {
	margin-top: -100svh;
	background: transparent;
	pointer-events: none;
}

.mw-pk--js.is-in {
	background: var(--pk-bg);
	pointer-events: auto;
}

/* the blue that the catalogue dissolves into */
.mw-pk--js .mw-pk__veil {
	display: block;
	position: sticky;
	top: 0;
	height: 100svh;
	margin-bottom: -100svh;
	background: var(--pk-bg);
	opacity: 0;
	z-index: 0;
	pointer-events: none;
}

.mw-pk__stage {
	position: relative;
	z-index: 1;
}

.mw-pk--pin {
	height: calc(100svh + var(--pk-length));
	/* very wide, short screens: shrink the frame so the tallest package list still fits the screen */
	--mw-u: min(calc(100vw / 2359), calc(100svh / 1066));
}

.mw-pk--pin .mw-pk__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: clip;
}

.mw-pk--pin .mw-pk__inner {
	top: max(calc(50svh - 533 * var(--mw-u)), 0px);
	will-change: transform;
}

/* --- Layout: the 2359 × 1066 Figma frame ------------------------------ */
.mw-pk__inner {
	position: relative;
	height: calc(1066 * var(--mw-u));
}

/* the white panel on the right (full height of the screen) */
.mw-pk__panel {
	position: absolute;
	left: calc(1567 * var(--mw-u));
	right: 0;
	top: 0;
	bottom: 0;
	background: var(--pk-panel);
	box-shadow: calc(-30 * var(--mw-u)) 0 calc(80 * var(--mw-u)) rgba(0, 20, 80, 0);
}

.mw-pk .mw-pk__title {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(364 * 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(--pk-head);
}

.mw-pk__line {
	display: block;
	overflow: clip;
	padding-bottom: .06em;
	margin-bottom: -.06em;
}

.mw-pk__ch,
.mw-pk__sp {
	display: inline-block;
}

.mw-pk__sp {
	width: .22em;
}

.mw-pk .mw-pk__text {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(671.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(--pk-ink);
}

/* Industries (H3) */
.mw-pk__inds {
	position: absolute;
	left: calc(1134 * var(--mw-u));
	top: calc(165 * var(--mw-u));
	width: calc(433 * var(--mw-u));
}

/* the white tab joining the chosen industry to the panel */
.mw-pk__tab {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(441 * var(--mw-u));
	height: calc(100 * var(--mw-u));
	background: var(--pk-panel);
	/* packages.js moves it on a spring (--ty) and stretches it a little while it travels (--sy) */
	transform: translate3d(0, var(--ty, calc(var(--a) * 106 * var(--mw-u))), 0) scaleX(var(--tab, 1)) scaleY(var(--sy, 1));
	transform-origin: 100% 50%;
	transition: transform .7s var(--pk-ease);
}

.mw-pk--tabjs .mw-pk__tab {
	transition: none;
}

/* curved joints where the tab meets the panel, so tab and panel read as one sheet */
.mw-pk__tab::before,
.mw-pk__tab::after {
	content: '';
	position: absolute;
	right: calc(8 * var(--mw-u));
	width: calc(22 * var(--mw-u));
	height: calc(22 * var(--mw-u));
	pointer-events: none;
}

.mw-pk__tab::before {
	bottom: 100%;
	background: radial-gradient(circle at 0 0, transparent calc(22 * var(--mw-u) - .5px), var(--pk-panel) calc(22 * var(--mw-u)));
}

.mw-pk__tab::after {
	top: 100%;
	background: radial-gradient(circle at 0 100%, transparent calc(22 * var(--mw-u) - .5px), var(--pk-panel) calc(22 * var(--mw-u)));
}

.mw-pk .mw-pk__ind-h {
	position: relative;
	margin: 0 0 calc(6 * var(--mw-u));
	padding: 0;
	font-size: inherit;
	line-height: 1;
}

.mw-pk .mw-pk__ind,
.mw-pk .mw-pk__ind:hover,
.mw-pk .mw-pk__ind:focus {
	position: relative;
	display: flex;
	align-items: center;
	gap: calc(36 * var(--mw-u));
	width: 100%;
	height: calc(100 * var(--mw-u));
	margin: 0;
	padding: 0 0 0 calc(46 * var(--mw-u));
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: 'Antonio', sans-serif;
	font-weight: 200;
	font-size: calc(40 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: left;
	color: var(--pk-head);
	cursor: pointer;
	transition: color .35s ease .1s;
}

.mw-pk .mw-pk__ind.is-on {
	color: var(--pk-text);
}

/* during the entry the chosen industry stays light until the white tab reaches it */
.mw-pk--js:not(.is-tabbed) .mw-pk__ind.is-on {
	color: var(--pk-head);
}

.mw-pk .mw-pk__ind:focus-visible {
	outline: 1px solid #fff;
	outline-offset: -4px;
}

.mw-pk__ind-t {
	display: inline-block;
	white-space: nowrap;
	transition: transform .6s var(--pk-ease);
}

/* + that turns into × on the chosen industry */
.mw-pk__plus {
	position: relative;
	flex: none;
	width: calc(20 * var(--mw-u));
	height: calc(20 * var(--mw-u));
	transition: transform .6s var(--pk-ease);
}

.mw-pk__plus::before,
.mw-pk__plus::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: max(1px, calc(2.2 * var(--mw-u)));
	background: currentColor;
	transform: translateY(-50%);
}

.mw-pk__plus::after {
	transform: translateY(-50%) rotate(90deg);
}

.mw-pk__ind.is-on .mw-pk__plus {
	transform: rotate(45deg);
}

@media (hover: hover) {
	.mw-pk .mw-pk__ind:not(.is-on):hover .mw-pk__ind-t {
		transform: translateX(calc(10 * var(--mw-u)));
	}
	.mw-pk .mw-pk__ind:not(.is-on):hover .mw-pk__plus {
		transform: translateX(calc(10 * var(--mw-u))) rotate(90deg);
	}
}

/* Packages (H4), in the panel */
.mw-pk__groups {
	position: absolute;
	left: calc(1649 * var(--mw-u));
	top: calc(94 * var(--mw-u));
	width: calc(600 * var(--mw-u));
}

.mw-pk__group {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	visibility: hidden;
}

.mw-pk__group.is-on,
.mw-pk__group.is-out {
	visibility: visible;
}

.mw-pk__pkg {
	position: relative;
	margin: 0 0 calc(69 * var(--mw-u));
	color: var(--pk-dim);
	transition: color .4s ease;
}

/* 01–05 in the panel's margin */
.mw-pk__num {
	position: absolute;
	left: calc(-60 * var(--mw-u));
	top: 0;
	display: flex;
	align-items: center;
	height: calc(32 * var(--mw-u));
	font-family: 'Antonio', sans-serif;
	font-weight: 300;
	font-size: calc(15 * var(--mw-u));
	letter-spacing: .06em;
	color: rgba(16, 16, 16, .3);
	transition: color .4s ease;
}

.mw-pk__pkg.is-open .mw-pk__num {
	color: var(--pk-blue);
}

/* the blue line that glides to the open package */
.mw-pk__rail {
	position: absolute;
	left: calc(-26 * var(--mw-u));
	top: 0;
	width: max(1px, calc(2 * var(--mw-u)));
	height: var(--rh, 0px);
	background: var(--pk-blue);
	transform: translate3d(0, var(--ry, 0px), 0);
	transition: transform .65s var(--pk-ease), height .65s var(--pk-ease);
	pointer-events: none;
}

.mw-pk__rail.is-set {
	transition: none;
}

/* the chosen industry, large and faint, along the panel's right edge */
.mw-pk__mark {
	position: absolute;
	left: calc(604 * var(--mw-u));
	bottom: calc(69 * var(--mw-u));
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: 'Antonio', sans-serif;
	font-weight: 200;
	font-size: calc(64 * var(--mw-u));
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(16, 16, 16, .06);
	pointer-events: none;
	user-select: none;
}

.mw-pk__pkg.is-open {
	color: var(--pk-text);
}

.mw-pk .mw-pk__pkg-h {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 1;
}

.mw-pk .mw-pk__pkg-btn,
.mw-pk .mw-pk__pkg-btn:hover,
.mw-pk .mw-pk__pkg-btn:focus {
	display: flex;
	align-items: center;
	gap: calc(16 * var(--mw-u));
	min-height: calc(32 * var(--mw-u));
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: calc(20 * var(--mw-u));
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.mw-pk .mw-pk__pkg-btn:focus-visible {
	outline: 1px solid var(--pk-blue);
	outline-offset: 6px;
}

@media (hover: hover) {
	.mw-pk__pkg:not(.is-open):hover {
		color: rgba(16, 16, 16, .72);
	}
}

.mw-pk__name {
	display: inline-block;
}

.mw-pk__badge {
	display: inline-flex;
	align-items: center;
	height: calc(32 * var(--mw-u));
	padding: 0 calc(16 * var(--mw-u));
	border-radius: calc(10 * var(--mw-u));
	background: var(--pk-blue);
	color: #fff;
	font-weight: 500;
	font-size: calc(15 * var(--mw-u));
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	opacity: 0;
	transform: translate3d(calc(-8 * var(--mw-u)), 0, 0) scale(.9);
	transform-origin: 0 50%;
	transition: opacity .35s ease, transform .5s var(--pk-ease);
}

.mw-pk__pkg.is-open .mw-pk__badge {
	opacity: 1;
	transform: none;
	transition-delay: .12s;
}

.mw-pk .mw-pk__desc {
	max-width: calc(563 * var(--mw-u));
	margin: calc(14 * var(--mw-u)) 0 0;
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(24 * var(--mw-u));
	color: inherit;
}

/* what opens under the chosen package */
.mw-pk__more {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .6s var(--pk-ease);
}

.mw-pk__pkg.is-open .mw-pk__more {
	grid-template-rows: 1fr;
}

.mw-pk__more-in {
	min-height: 0;
	overflow: hidden;
}

.mw-pk .mw-pk__inc {
	display: flex;
	flex-wrap: wrap;
	gap: calc(10 * var(--mw-u)) calc(26 * var(--mw-u));
	margin: calc(34 * var(--mw-u)) 0 0;
	padding: 0;
	list-style: none;
}

.mw-pk .mw-pk__inc li {
	margin: 0;
	padding: 0;
	font-weight: 500;
	font-size: calc(15 * var(--mw-u));
	line-height: 1;
	color: var(--pk-blue);
	opacity: 0;
	transform: translate3d(0, 8px, 0);
	transition: opacity .35s ease, transform .5s var(--pk-ease);
}

.mw-pk__pkg.is-open .mw-pk__inc li {
	opacity: 1;
	transform: none;
	transition-delay: calc(.18s + var(--k) * .06s);
}

.mw-pk .mw-pk__go,
.mw-pk .mw-pk__go:hover,
.mw-pk .mw-pk__go:focus {
	display: inline-flex;
	align-items: center;
	gap: calc(16 * var(--mw-u));
	margin: calc(50 * var(--mw-u)) 0 calc(36 * var(--mw-u));
	padding: 0;
	border: 0;
	background: none;
	font-family: 'Antonio', sans-serif;
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pk-text);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s ease, color .3s ease;
}

.mw-pk__pkg.is-open .mw-pk__go {
	opacity: 1;
	pointer-events: auto;
	transition-delay: .26s;
}

.mw-pk__arrow {
	width: calc(24 * var(--mw-u));
	height: calc(14 * var(--mw-u));
	min-width: 16px;
	min-height: 9px;
	transition: transform .5s var(--pk-ease);
}

@media (hover: hover) {
	.mw-pk .mw-pk__go:hover {
		color: var(--pk-blue);
	}
	.mw-pk .mw-pk__go:hover .mw-pk__arrow {
		transform: translateX(calc(8 * var(--mw-u)));
	}
}

/* switching industries: packages leave quickly, the new ones arrive one by one */
.mw-pk__group.is-on .mw-pk__pkg {
	animation: mw-pk-in .7s var(--pk-ease) backwards;
	animation-delay: calc(.08s + var(--j) * .06s);
}

.mw-pk__group.is-out {
	animation: mw-pk-out .3s ease both;
}

.mw-pk--js .mw-pk__group.is-on.is-still .mw-pk__pkg {
	animation: none;
}

.mw-pk__group.is-on .mw-pk__mark {
	animation: mw-pk-mark 1s var(--pk-ease) .1s backwards;
}

.mw-pk--js .mw-pk__group.is-on.is-still .mw-pk__mark {
	animation: none;
}

.mw-pk__group.is-on .mw-pk__rail {
	animation: mw-pk-rail .7s var(--pk-ease) .2s backwards;
}

@keyframes mw-pk-mark { from { opacity: 0; transform: rotate(180deg) translate3d(0, calc(-80 * var(--mw-u)), 0); } to { opacity: 1; transform: rotate(180deg); } }
@keyframes mw-pk-rail { from { opacity: 0; } to { opacity: 1; } }
@keyframes mw-pk-in  { from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mw-pk-out { from { opacity: 1; } to { opacity: 0; transform: translate3d(0, -12px, 0); filter: blur(4px); } }

/* --- Desktop: open on hover --------------------------------------------
   Every package keeps its full height whether open or not (only colours and
   the details row fade), so pointing at a package never moves the others —
   the list stays still under the mouse. */
@media (min-width: 1025px) {
	.mw-pk__pkg {
		margin-bottom: calc(52 * var(--mw-u));
	}

	.mw-pk__more {
		display: block;
		margin-top: calc(24 * var(--mw-u));
	}

	.mw-pk__more-in {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: calc(32 * var(--mw-u));
		min-height: calc(20 * var(--mw-u));
		overflow: visible;
	}

	.mw-pk .mw-pk__inc {
		flex: 1 1 auto;
		margin: 0;
	}

	.mw-pk .mw-pk__go,
	.mw-pk .mw-pk__go:hover,
	.mw-pk .mw-pk__go:focus {
		flex: none;
		margin: 0;
	}

	.mw-pk__mark {
		bottom: calc(52 * var(--mw-u));
	}
}

/* --- Tablets & phones -------------------------------------------------- */
@media (max-width: 1024px) {
	.mw-pk {
		--pad: 24px;
	}

	.mw-pk__panel {
		display: none;
	}

	.mw-pk__inner {
		height: auto;
		padding: 88px 0 0;
	}

	.mw-pk .mw-pk__title {
		position: static;
		padding: 0 var(--pad);
		font-size: 64px;
		white-space: normal;
	}

	.mw-pk .mw-pk__text {
		position: static;
		width: auto;
		margin-top: 22px;
		padding: 0 var(--pad);
		font-size: 15px;
		line-height: 1.45;
	}

	.mw-pk__inds {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		margin-top: 40px;
	}

	.mw-pk__tab {
		width: 100%;
		height: 60px;
		transform: translate3d(0, var(--ty, calc(var(--a) * 62px)), 0) scaleX(var(--tab, 1)) scaleY(var(--sy, 1));
	}

	.mw-pk .mw-pk__ind-h {
		margin-bottom: 2px;
	}

	.mw-pk .mw-pk__ind,
	.mw-pk .mw-pk__ind:hover,
	.mw-pk .mw-pk__ind:focus {
		height: 60px;
		justify-content: space-between;
		padding: 0 var(--pad);
		font-size: 28px;
	}

	.mw-pk__plus {
		width: 13px;
		height: 13px;
	}

	.mw-pk__plus::before,
	.mw-pk__plus::after {
		height: 1.5px;
	}

	.mw-pk__groups {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		padding: 36px var(--pad) 40px;
		background: var(--pk-panel);
	}

	.mw-pk__group {
		position: relative;
		display: none;
	}

	.mw-pk__group.is-on {
		display: block;
	}

	.mw-pk__group.is-out {
		display: none;
	}

	.mw-pk__pkg {
		margin-bottom: 28px;
	}

	.mw-pk .mw-pk__pkg-btn,
	.mw-pk .mw-pk__pkg-btn:hover,
	.mw-pk .mw-pk__pkg-btn:focus {
		flex-wrap: wrap;
		gap: 10px;
		min-height: 28px;
		font-size: 15px;
	}

	.mw-pk__pkg:not(.is-open) .mw-pk__badge {
		display: none;
	}

	.mw-pk__badge {
		height: 26px;
		padding: 0 10px;
		border-radius: 8px;
		font-size: 12px;
	}

	.mw-pk .mw-pk__desc,
	.mw-pk__pkg.is-open .mw-pk__desc {
		max-width: none;
		margin-top: 8px;
		font-size: 14px;
		line-height: 1.45;
	}

	.mw-pk .mw-pk__inc {
		gap: 8px 16px;
		margin-top: 16px;
	}

	.mw-pk .mw-pk__inc li {
		font-size: 12px;
	}

	.mw-pk .mw-pk__go,
	.mw-pk .mw-pk__go:hover,
	.mw-pk .mw-pk__go:focus {
		gap: 10px;
		margin: 18px 0 6px;
		font-size: 16px;
	}

	.mw-pk--js .mw-pk__inner {
		padding-top: 70svh;           /* starts below the section before, once its blue has taken over */
	}

	.mw-pk__tab::before,
	.mw-pk__tab::after,
	.mw-pk__mark {
		display: none;
	}

	.mw-pk__num {
		position: static;
		height: auto;
		margin-right: 2px;
		font-size: 13px;
	}

	.mw-pk__rail {
		left: calc(var(--pad) / -2 - 1px);
		width: 2px;
	}
}

@media (max-width: 1024px) and (min-width: 600px) {
	.mw-pk {
		--pad: 48px;
	}
	.mw-pk .mw-pk__title {
		font-size: 88px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mw-pk *,
	.mw-pk *::before,
	.mw-pk *::after {
		animation: none !important;
		transition: none !important;
	}
}