/* =====================================================================
   MW CASE STUDIES (v2)
   The section above stays frozen; the glowing point at the end of its
   line flares, then the light floods the screen white from that point
   (soft edge with a blue fringe). A blue point then runs along a fine
   line from number to number; each number appears and rolls up like an
   odometer while the point waits under it. Then they soften into a blur
   while the case studies come into focus: a list on the left (open a
   case by pointing at it), the chosen case on the right
   with its services and a growth graph that draws itself.
   Motion: assets/js/cases.js. Sizes are Figma px of the 2359 × 1066
   frame × --mw-u.
   ===================================================================== */

/* --- Edit values here ------------------------------------------------ */
.mw-cs {
	--mw-u:      calc(100vw / 2359);   /* 1 Figma px */
	--cs-bg:     #FFFFFF;
	--cs-ink:    #000000;               /* numbers, heading */
	--cs-text:   #101010;               /* list, case title, description */
	--cs-mute:   #8A8A8A;               /* small labels, counter */
	--cs-zero:   #D9D9D9;               /* leading zeros while the numbers roll */
	--cs-line:   #CCCCCC;               /* tag borders */
	--cs-grid:   #ECECEC;               /* graph guide lines, hairlines */
	--cs-blue:   #0061FF;
	--cs-ease:   cubic-bezier(.19, 1, .22, 1);
	--cs-length: 370svh;                /* pinned length — cases.js sets this */
}

/* --- Section --------------------------------------------------------- */
.mw-cs {
	position: relative;
	z-index: 3;
	width: 100vw;
	margin-inline: calc(50% - 50vw);     /* full-bleed even inside a boxed container */
	background: var(--cs-bg);
	color: var(--cs-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 — so hovers and clicks on the section before would stop working.
   Let them pass through; the section itself decides (pointer-events above). */
.elementor-widget-mw-cases,
.elementor-widget-mw-cases > .elementor-widget-container {
	pointer-events: none;
}


body:has(.mw-cs) {
	overflow-x: clip;
}

/* Remove the Elementor container's padding/gap and keep it above the section before */
.e-con:has(> .elementor-widget-mw-cases),
.e-con:has(> .e-con-inner > .elementor-widget-mw-cases) {
	position: relative;
	z-index: 6;                          /* above the section before (the light floods over it) */
}
.e-con:has(> .elementor-widget-mw-cases),
.e-con:has(> .e-con-inner > .elementor-widget-mw-cases),
.e-con:has(> .e-con-inner > .elementor-widget-mw-cases) > .e-con-inner {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	padding: 0 !important;
	gap: 0 !important;
}

/* --- The light (added by cases.js) ------------------------------------- */
/* The section slides one screen up underneath the end of the section
   above, so the light floods over it while it stands still.            */
.mw-cs__light {
	display: none;
}

.mw-cs--js {
	margin-top: -100svh;
	background: transparent;
	pointer-events: none;                /* the section above stays clickable until the light has filled the screen */
}

.mw-cs--js.is-in {
	background: var(--cs-bg);
	pointer-events: auto;
}

.mw-cs--js .mw-cs__light {
	display: block;
	position: sticky;
	top: 0;
	height: 100svh;
	margin-bottom: -100svh;
	overflow: clip;
	z-index: 0;
	pointer-events: none;
}

.mw-cs__light > span {
	position: absolute;
	pointer-events: none;
}

/* the whole screen slowly over-exposes as the light grows */
.mw-cs__haze {
	inset: 0;
	background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(214, 230, 255, .9), rgba(120, 165, 255, .35) 35%, rgba(0, 97, 255, 0) 75%);
	opacity: 0;
}

/* blue fringe just ahead of the white edge (cases.js draws it) */
.mw-cs__fringe {
	inset: 0;
	opacity: 0;
}

/* the white, revealed through a soft-edged circle (cases.js sets the mask) */
.mw-cs__flood {
	inset: 0;
	background: var(--cs-bg);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 0);
	mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 0);
	visibility: hidden;
}

/* a long horizontal flare through the point */
.mw-cs__flare {
	left: 0;
	width: 100%;
	height: 2px;
	top: var(--sy, 50%);
	background: radial-gradient(ellipse 50% 100% at var(--sx, 50%) 50%, rgba(255, 255, 255, 1), rgba(156, 209, 255, .75) 30%, rgba(0, 97, 255, .25) 60%, rgba(0, 97, 255, 0) 100%);
	box-shadow: 0 0 22px rgba(0, 97, 255, .45);
	transform: translateY(-50%) scaleX(0);
	transform-origin: var(--sx, 50%) 50%;
	opacity: 0;
}

/* the spark itself */
.mw-cs__spark {
	left: var(--sx, 50%);
	top: var(--sy, 50%);
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0 30%, rgba(156, 209, 255, .9) 45%, rgba(0, 97, 255, 0) 72%);
	box-shadow: 0 0 30px 10px rgba(0, 97, 255, .55), 0 0 90px 30px rgba(0, 97, 255, .25);
	transform: scale(0);
	opacity: 0;
}

.mw-cs--js .mw-cs__stage {
	position: relative;
	z-index: 1;
}

/* safety: nothing of the case studies shows before the white has filled the screen */
.mw-cs--js:not(.is-in) .mw-cs__cases {
	visibility: hidden;
}

/* Desktop: pinned while it builds, then glides away */
.mw-cs--pin {
	height: calc(100svh + var(--cs-length));
}

.mw-cs--pin .mw-cs__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: clip;
}

.mw-cs--pin .mw-cs__inner {
	top: max(calc(50svh - 533 * var(--mw-u)), 0px);
	will-change: transform;
}

/* --- Layout: the 2359 × 1066 Figma frame ------------------------------ */
.mw-cs__inner {
	position: relative;
}

/* Numbers ------------------------------------------------------------- */
.mw-cs__stats {
	position: relative;
	height: calc(420 * var(--mw-u));
	--st-top: calc(190 * var(--mw-u));
	--kick-top: calc(70 * var(--mw-u));
	transform-origin: 50% calc(533 * var(--mw-u));
}

/* small label with hairlines (same voice as "Tools we work with") */
.mw-cs .mw-cs__kicker {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--kick-top);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(22 * var(--mw-u));
	margin: 0;
	font-family: 'Antonio', sans-serif;
	font-weight: 300;
	font-size: calc(16 * var(--mw-u));
	line-height: 1;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--cs-mute);
}

.mw-cs__kicker::before,
.mw-cs__kicker::after {
	content: '';
	width: calc(60 * var(--mw-u));
	height: 1px;
	background: currentColor;
	opacity: .5;
	transform: scaleX(var(--kl, 1));
}

.mw-cs__kicker::before { transform-origin: 100% 50%; }
.mw-cs__kicker::after  { transform-origin: 0 50%; }

.mw-cs__stat {
	position: absolute;
	left: calc(var(--x) * var(--mw-u));
	top: var(--st-top);
	display: flex;
	align-items: flex-start;
	gap: calc(33 * var(--mw-u));
	white-space: nowrap;
}

.mw-cs .mw-cs__num {
	display: inline-flex;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: calc(64 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	color: var(--cs-ink);
	font-variant-numeric: tabular-nums;
}

.mw-cs__label {
	padding-top: calc(12.1 * var(--mw-u));
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: 1;
	color: var(--cs-ink);
}

.mw-cs__suffix {
	display: inline-block;
	transform-origin: 30% 60%;
}

/* odometer columns (built by cases.js) */
.mw-cs__digit {
	display: inline-block;
	height: 1em;
	overflow: clip;
	vertical-align: top;
	transition: color .5s ease;
}

.mw-cs__digit.is-lead {
	color: var(--cs-zero);
}

.mw-cs__strip {
	display: flex;
	flex-direction: column;
	will-change: transform;
}

.mw-cs__strip > span {
	display: block;
	height: 1em;
}

/* the fine line under the numbers that runs with the count */
.mw-cs__rule {
	display: none;
}

.mw-cs__rule-fill {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 97, 255, 0), var(--cs-blue));
	transform: scaleX(var(--rule, 0));
	transform-origin: 0 50%;
}

.mw-cs__rule::before,
.mw-cs__rule::after {
	content: '';
	position: absolute;
	left: calc(var(--rule, 0) * 100%);
	top: 50%;
	border-radius: 50%;
	pointer-events: none;
}

/* the point */
.mw-cs__rule::after {
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0 -4.5px;
	background: var(--cs-blue);
	box-shadow: 0 0 12px rgba(0, 97, 255, .8);
	transform: scale(var(--hs, 1));
	opacity: var(--rule-head, 0);
}

/* its halo while it waits under a number */
.mw-cs__rule::before {
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	background: radial-gradient(circle, rgba(0, 97, 255, .22), rgba(0, 97, 255, 0) 70%);
	border: 1px solid rgba(0, 97, 255, .35);
	transform: scale(calc(.4 + .6 * var(--ping, 0)));
	opacity: calc(var(--ping, 0) * var(--rule-head, 0));
}

/* a small mark under each number; turns blue once the point has reached it */
.mw-cs__tick {
	position: absolute;
	left: calc(var(--at, 0) * 100%);
	top: 50%;
	width: 1px;
	height: 9px;
	margin: -4.5px 0 0 -.5px;
	background: #D6D6D6;
	transition: background-color .4s ease, transform .4s var(--cs-ease);
}

.mw-cs__tick.is-on {
	background: var(--cs-blue);
	transform: scaleY(1.6);
}

/* Case studies --------------------------------------------------------- */
.mw-cs__cases {
	position: relative;
	height: calc(1066 * var(--mw-u));
}

.mw-cs .mw-cs__title {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(160 * var(--mw-u));
	margin: 0;
	padding-bottom: .12em;
	overflow: clip;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: calc(64 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: var(--cs-ink);
}

.mw-cs__title-in {
	display: inline-block;
}

.mw-cs__dot {
	display: inline-block;
	color: var(--cs-blue);
	transform-origin: 50% 85%;
}

/* small counter: 04 / 09 */
.mw-cs .mw-cs__index {
	position: absolute;
	left: calc(1180 * var(--mw-u));
	top: calc(186 * var(--mw-u));
	width: calc(713 * var(--mw-u));
	margin: 0;
	text-align: right;
	font-weight: 300;
	font-size: calc(18 * var(--mw-u));
	line-height: 1;
	letter-spacing: .06em;
	color: var(--cs-mute);
	font-variant-numeric: tabular-nums;
}

.mw-cs__index-now {
	display: inline-block;
	color: var(--cs-text);
}

.mw-cs__index-now.is-swap {
	animation: mw-cs-tick .6s var(--cs-ease) both;
}

/* List */
.mw-cs .mw-cs__list {
	position: absolute;
	left: calc(221 * var(--mw-u));
	top: calc(312.2 * var(--mw-u));
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-cs__item {
	height: calc(70 * var(--mw-u));
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-cs .mw-cs__tab,
.mw-cs .mw-cs__tab:hover,
.mw-cs .mw-cs__tab:focus {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: calc(17 * var(--mw-u));
	height: calc(20 * 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;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cs-text);
	cursor: pointer;
	transition: opacity .45s ease;
}

/* bigger hit area */
.mw-cs__tab::before {
	content: '';
	position: absolute;
	inset: calc(-25 * var(--mw-u)) calc(-16 * var(--mw-u));
}

.mw-cs .mw-cs__tab:focus-visible {
	outline: 1px solid var(--cs-blue);
	outline-offset: calc(10 * var(--mw-u));
}

.mw-cs__name {
	display: inline-block;
	transition: transform .6s var(--cs-ease);
}

/* + that turns into × on the open case */
.mw-cs__plus {
	position: relative;
	flex: none;
	width: calc(15 * var(--mw-u));
	height: calc(15 * var(--mw-u));
	transition: transform .6s var(--cs-ease);
}

.mw-cs__plus::before,
.mw-cs__plus::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: max(1px, calc(1.6 * var(--mw-u)));
	background: currentColor;
	transform: translateY(-50%);
	transition: background-color .4s ease;
}

.mw-cs__plus::after {
	transform: translateY(-50%) rotate(90deg);
}

.mw-cs__item.is-on .mw-cs__plus {
	transform: rotate(45deg) scale(.82);
}

/* the others step back while you point at one */
@media (hover: hover) {
	.mw-cs__list:hover .mw-cs__tab {
		opacity: .38;
	}
	.mw-cs__list:hover .mw-cs__tab:hover,
	.mw-cs__list:hover .mw-cs__item.is-on .mw-cs__tab {
		opacity: 1;
	}
	.mw-cs__tab:hover .mw-cs__name {
		transform: translateX(calc(8 * var(--mw-u)));
	}
	.mw-cs__item:not(.is-on) .mw-cs__tab:hover .mw-cs__plus {
		transform: translateX(calc(8 * var(--mw-u))) rotate(90deg);
	}
	.mw-cs__tab:hover .mw-cs__plus::before,
	.mw-cs__tab:hover .mw-cs__plus::after {
		background: var(--cs-blue);
	}
}

/* time left on this case when it moves on by itself */
.mw-cs__timer {
	position: absolute;
	left: 0;
	right: calc(32 * var(--mw-u));
	bottom: calc(-11 * var(--mw-u));
	height: 1px;
	background: var(--cs-blue);
	transform: scaleX(var(--t, 0));
	transform-origin: 0 50%;
	opacity: 0;
	transition: opacity .4s ease;
}

.mw-cs.is-auto .mw-cs__item.is-on .mw-cs__timer {
	opacity: 1;
}

/* The open case (right) */
.mw-cs__panel {
	position: absolute;                  /* placed from the list (which starts at 221, 312.2) */
	left: calc((1180 - 221) * var(--mw-u));
	top: calc((180.3 - 312.2) * var(--mw-u));
	width: calc(713 * var(--mw-u));
	height: calc(687.7 * var(--mw-u));
	opacity: 0;
	visibility: hidden;
	filter: blur(calc(8 * var(--mw-u)));
	transition: opacity .35s ease, filter .35s ease, visibility 0s .35s;
}

.mw-cs__item.is-on .mw-cs__panel {
	opacity: 1;
	visibility: visible;
	filter: none;
	transition: opacity .2s ease, filter .2s ease, visibility 0s;
}

.mw-cs__panel-in {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* panel parts follow the scroll on the way in (cases.js sets the --p… values) */
.mw-cs .mw-cs__case-title {
	margin: 0;
	padding-bottom: .14em;
	margin-bottom: -.14em;
	overflow: clip;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: calc(40 * var(--mw-u));
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cs-text);
}

.mw-cs__case-title > span {
	display: inline-block;
	transform: translate3d(0, calc((1 - var(--pt, 1)) * 110%), 0);
}

.mw-cs .mw-cs__case-text {
	max-width: calc(713 * var(--mw-u));
	margin: calc(27.9 * var(--mw-u)) 0 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: calc(20 * var(--mw-u));
	line-height: calc(24 * var(--mw-u));
	letter-spacing: 0;
	color: var(--cs-text);
	opacity: var(--px, 1);
	filter: blur(calc((1 - var(--px, 1)) * 8px));
	transform: translate3d(0, calc((1 - var(--px, 1)) * 14px), 0);
}

.mw-cs .mw-cs__tags {
	display: flex;
	flex-wrap: wrap;
	gap: calc(9 * var(--mw-u));
	margin: calc(30.8 * var(--mw-u)) 0 0;
	padding: 0;
	list-style: none;
}

.mw-cs .mw-cs__tags li {
	--tp: clamp(0, calc(var(--pg, 1) * 1.6 - var(--k) * .3), 1);
	position: relative;
	display: inline-flex;
	align-items: center;
	height: calc(78 * var(--mw-u));
	margin: 0;
	padding: 0 calc(36 * var(--mw-u));
	border: 1px solid var(--cs-line);
	border-radius: calc(20 * var(--mw-u));
	font-weight: 400;
	font-size: calc(20 * var(--mw-u));
	line-height: 1;
	white-space: nowrap;
	color: var(--cs-text);
	opacity: var(--tp);
	transform: translate3d(0, calc((1 - var(--tp)) * 18px), 0);
	transition: border-color .4s ease, color .4s ease;
}

@media (hover: hover) {
	.mw-cs .mw-cs__tags li:hover {
		border-color: var(--cs-text);
	}
}

/* Graph */
.mw-cs__graph {
	margin-top: auto;
	flex: none;
}

.mw-cs .mw-cs__graph-label {
	display: flex;
	align-items: center;
	gap: calc(10 * var(--mw-u));
	margin: 0 0 calc(22 * var(--mw-u));
	font-family: 'Antonio', sans-serif;
	font-weight: 300;
	font-size: calc(15 * var(--mw-u));
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cs-mute);
	opacity: var(--pg, 1);
}

.mw-cs__graph-dot {
	width: calc(7 * var(--mw-u));
	height: calc(7 * var(--mw-u));
	min-width: 4px;
	min-height: 4px;
	border-radius: 50%;
	background: var(--cs-blue);
	box-shadow: 0 0 calc(10 * var(--mw-u)) rgba(0, 97, 255, .6);
}

.mw-cs__chart {
	position: relative;
	width: calc(713 * var(--mw-u));
	height: calc(256 * var(--mw-u));
}

.mw-cs__chart svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.mw-cs__grid {
	fill: none;
	stroke: var(--cs-grid);
	stroke-width: 1;
	stroke-dasharray: 2 6;
	vector-effect: non-scaling-stroke;
	opacity: var(--draw, 1);
}

.mw-cs__area {
	clip-path: inset(0 calc((1 - var(--draw, 1)) * 100%) 0 0);
}

.mw-cs__line {
	fill: none;
	stroke: var(--cs-ink);
	stroke-width: 1.25;
	stroke-linejoin: round;
	stroke-linecap: round;
	stroke-dasharray: 1 1;
	stroke-dashoffset: calc(1 - var(--draw, 1));
	vector-effect: non-scaling-stroke;
}

.mw-cs__base {
	clip-path: inset(0 calc((1 - var(--pg, 1)) * 100%) 0 0);
	fill: none;
	stroke: var(--cs-ink);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

/* a dot on each value, appearing as the line reaches it */
.mw-cs__pt {
	--dp: clamp(0, calc((var(--draw, 1) - var(--k)) * 14), 1);
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: calc(9 * var(--mw-u));
	height: calc(9 * var(--mw-u));
	min-width: 5px;
	min-height: 5px;
	margin: 0;
	border-radius: 50%;
	background: var(--cs-bg);
	border: 1px solid var(--cs-ink);
	transform: translate(-50%, -50%) scale(var(--dp));
	opacity: var(--dp);
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mw-cs__pt.is-hot {
	background: var(--cs-blue);
	border-color: var(--cs-blue);
	box-shadow: 0 0 0 calc(5 * var(--mw-u)) rgba(0, 97, 255, .15);
}

.mw-cs__pt.is-end {
	width: calc(13 * var(--mw-u));
	height: calc(13 * var(--mw-u));
	border: 0;
	background: var(--cs-blue);
	box-shadow: 0 0 0 calc(4 * var(--mw-u)) rgba(0, 97, 255, .14), 0 0 calc(18 * var(--mw-u)) rgba(0, 97, 255, .55);
}

.mw-cs__pt.is-end::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid var(--cs-blue);
	animation: mw-cs-ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}

/* point at the graph: a guide line and the value */
.mw-cs__guide {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-left: 1px dashed rgba(0, 97, 255, .45);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

.mw-cs__tip {
	position: absolute;
	left: 0;
	top: 0;
	padding: calc(8 * var(--mw-u)) calc(12 * var(--mw-u));
	border-radius: calc(8 * var(--mw-u));
	background: var(--cs-text);
	color: #fff;
	font-weight: 400;
	font-size: calc(15 * var(--mw-u));
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	transform: translate(-50%, calc(-100% - 16 * var(--mw-u)));
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

.mw-cs__chart.is-hover .mw-cs__guide,
.mw-cs__chart.is-hover .mw-cs__tip {
	opacity: 1;
}

.mw-cs__result {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-100%, calc(-100% - 18 * var(--mw-u)));
	padding: calc(8 * var(--mw-u)) calc(14 * var(--mw-u));
	border-radius: calc(10 * var(--mw-u));
	background: var(--cs-blue);
	color: #fff;
	font-weight: 400;
	font-size: calc(16 * var(--mw-u));
	line-height: 1;
	white-space: nowrap;
	opacity: clamp(0, calc((var(--draw, 1) - .9) * 10), 1);
	transition: opacity .25s ease;
}

.mw-cs__chart.is-hover .mw-cs__result {
	opacity: 0;
}

/* optional link */
.mw-cs .mw-cs__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: calc(8 * var(--mw-u));
	margin-top: calc(22 * var(--mw-u));
	padding-bottom: calc(4 * var(--mw-u));
	border-bottom: 1px solid currentColor;
	font-weight: 400;
	font-size: calc(18 * var(--mw-u));
	line-height: 1;
	color: var(--cs-text);
	text-decoration: none;
	transition: color .3s ease;
}

.mw-cs .mw-cs__more:hover {
	color: var(--cs-blue);
}

.mw-cs__more svg {
	width: calc(12 * var(--mw-u));
	height: calc(12 * var(--mw-u));
	transition: transform .4s var(--cs-ease);
}

.mw-cs__more:hover svg {
	transform: translate(2px, -2px);
}

/* --- Switching cases ---------------------------------------------------- */
/* (fill "backwards" only: once an entrance has played, the scroll values take over again,
   so scrolling back up still hides the case) */
.mw-cs__item.is-fresh .mw-cs__case-title > span {
	animation: mw-cs-rise .9s var(--cs-ease) .04s backwards;
}

.mw-cs__item.is-fresh .mw-cs__case-text {
	animation: mw-cs-focus .9s var(--cs-ease) .12s backwards;
}

.mw-cs__item.is-fresh .mw-cs__tags li {
	animation: mw-cs-pop .7s var(--cs-ease) backwards;
	animation-delay: calc(.2s + var(--k) * .07s);
}

.mw-cs__item.is-fresh .mw-cs__graph-label {
	animation: mw-cs-fade .6s ease .2s backwards;
}

.mw-cs__item.is-fresh .mw-cs__line {
	animation: mw-cs-draw 1.5s cubic-bezier(.45, 0, .2, 1) .22s backwards;
}

.mw-cs__item.is-fresh .mw-cs__area {
	animation: mw-cs-wipe 1.5s cubic-bezier(.45, 0, .2, 1) .22s backwards;
}

.mw-cs__item.is-fresh .mw-cs__grid {
	animation: mw-cs-fade .8s ease .1s backwards;
}

.mw-cs__item.is-fresh .mw-cs__pt {
	animation: mw-cs-dot .5s var(--cs-ease) backwards;
	animation-delay: calc(.22s + var(--k) * 1.3s);
}

.mw-cs__item.is-fresh .mw-cs__result {
	animation: mw-cs-pop .7s var(--cs-ease) 1.6s backwards;
}

@keyframes mw-cs-rise    { from { transform: translate3d(0, 110%, 0); } to { transform: none; } }
@keyframes mw-cs-focus   { from { opacity: 0; filter: blur(8px); transform: translate3d(0, 14px, 0); } to { opacity: 1; filter: none; transform: none; } }
@keyframes mw-cs-pop     { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mw-cs-draw    { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mw-cs-wipe    { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mw-cs-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes mw-cs-dot     { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes mw-cs-tick    { from { opacity: 0; transform: translate3d(0, 60%, 0); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mw-cs-ping    { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(3.4); opacity: 0; } }

/* --- Desktop, animated: numbers and cases share one frame ------------- */
.mw-cs--js:not(.mw-cs--phone) .mw-cs__inner {
	height: calc(1066 * var(--mw-u));
}

.mw-cs--js:not(.mw-cs--phone) .mw-cs__stats {
	position: absolute;
	inset: 0;
	height: auto;
	--st-top: calc(501.1 * var(--mw-u));
	--kick-top: calc(392 * var(--mw-u));
	will-change: filter, opacity, transform;
}

.mw-cs--js:not(.mw-cs--phone) .mw-cs__rule {
	display: block;
	position: absolute;
	left: calc(221 * var(--mw-u));
	right: calc(221 * var(--mw-u));
	top: calc(640 * var(--mw-u));
	height: 1px;
	background: var(--cs-grid);
}

.mw-cs--js:not(.mw-cs--phone) .mw-cs__cases {
	position: absolute;
	inset: 0;
	height: auto;
}

/* --- Tablets & phones -------------------------------------------------- */
@media (max-width: 1024px) {
	.mw-cs {
		--pad: 24px;
	}

	.mw-cs__inner {
		padding: 64px var(--pad) 72px;
	}

	.mw-cs__stats,
	.mw-cs--js .mw-cs__stats {
		position: relative;
		inset: auto;
		height: auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 22px;
		margin-bottom: 56px;
	}

	.mw-cs .mw-cs__kicker {
		position: static;
		justify-content: flex-start;
		gap: 14px;
		margin-bottom: 10px;
		font-size: 13px;
	}

	.mw-cs__kicker::before {
		display: none;
	}

	.mw-cs__kicker::after {
		width: 40px;
	}

	.mw-cs__stat {
		position: static;
		gap: 16px;
		align-items: center;
	}

	.mw-cs .mw-cs__num {
		font-size: 52px;
		min-width: 3.3ch;
	}

	.mw-cs__label {
		padding-top: 0;
		font-size: 15px;
		line-height: 1.15;
	}

	.mw-cs__cases {
		height: auto;
	}

	.mw-cs .mw-cs__title {
		position: relative;
		left: auto;
		top: auto;
		font-size: 40px;
		margin-bottom: 18px;
	}

	.mw-cs .mw-cs__index {
		display: none;
	}

	.mw-cs .mw-cs__list {
		position: static;
	}

	.mw-cs__item {
		height: auto;
		border-bottom: 1px solid #ECECEC;
	}

	.mw-cs .mw-cs__tab,
	.mw-cs .mw-cs__tab:hover,
	.mw-cs .mw-cs__tab:focus {
		display: flex;
		width: 100%;
		height: auto;
		padding: 20px 0;
		font-size: 17px;
		gap: 14px;
	}

	.mw-cs__tab::before {
		display: none;
	}

	.mw-cs__name {
		flex: 1;
		text-align: left;
	}

	.mw-cs__plus {
		width: 13px;
		height: 13px;
	}

	.mw-cs__plus::before,
	.mw-cs__plus::after {
		height: 1.5px;
	}

	.mw-cs__timer {
		display: none;
	}

	/* each case opens under its name */
	.mw-cs__panel {
		position: static;
		width: auto;
		height: auto;
		display: grid;
		grid-template-rows: 0fr;
		filter: none;
		transition: grid-template-rows .6s var(--cs-ease), opacity .4s ease, visibility 0s .6s;
	}

	.mw-cs__item.is-on .mw-cs__panel {
		grid-template-rows: 1fr;
		transition: grid-template-rows .7s var(--cs-ease), opacity .5s ease .1s, visibility 0s;
	}

	.mw-cs__panel-in {
		display: block;
		height: auto;
		min-height: 0;
		overflow: hidden;
	}

	.mw-cs__item.is-on .mw-cs__panel-in {
		padding-bottom: 28px;
	}

	.mw-cs .mw-cs__case-title {
		display: none;              /* the name is right above */
	}

	.mw-cs .mw-cs__case-text {
		margin: 2px 0 0;
		max-width: none;
		font-size: 15px;
		line-height: 1.45;
	}

	.mw-cs .mw-cs__tags {
		gap: 8px;
		margin-top: 18px;
	}

	.mw-cs .mw-cs__tags li {
		height: 40px;
		padding: 0 16px;
		border-radius: 12px;
		font-size: 13px;
	}

	.mw-cs__graph {
		margin-top: 30px;
	}

	.mw-cs .mw-cs__graph-label {
		font-size: 12px;
		gap: 8px;
		margin-bottom: 16px;
	}

	.mw-cs__chart {
		width: 100%;
		height: 150px;
	}

	.mw-cs__pt {
		width: 7px;
		height: 7px;
	}

	.mw-cs__pt.is-end {
		width: 10px;
		height: 10px;
		box-shadow: 0 0 0 3px rgba(0, 97, 255, .14), 0 0 14px rgba(0, 97, 255, .55);
	}

	.mw-cs__tip {
		font-size: 12px;
		padding: 6px 9px;
		border-radius: 6px;
		transform: translate(-50%, calc(-100% - 12px));
	}

	.mw-cs__result {
		font-size: 12px;
		padding: 6px 10px;
		border-radius: 8px;
		transform: translate(-100%, calc(-100% - 12px));
	}

	.mw-cs .mw-cs__more {
		font-size: 14px;
		gap: 6px;
		margin-top: 20px;
	}

	.mw-cs__more svg {
		width: 10px;
		height: 10px;
	}

	/* animated: the numbers stay on screen while the case studies scroll over them */
	.mw-cs--js .mw-cs__inner {
		padding-top: 0;
		padding-bottom: 16svh;
	}

	.mw-cs--js .mw-cs__stats {
		position: sticky;
		top: 0;
		height: 100svh;
		margin-bottom: 0;
		z-index: 0;
		will-change: filter, opacity;
	}

	/* the point runs down a vertical line beside the numbers */
	.mw-cs--js .mw-cs__stat {
		padding-left: 30px;
	}

	.mw-cs--js .mw-cs__rule {
		display: block;
		position: absolute;
		left: 4px;
		width: 1px;
		background: var(--cs-grid);
	}

	.mw-cs--js .mw-cs__rule-fill {
		background: linear-gradient(180deg, rgba(0, 97, 255, 0), var(--cs-blue));
		transform: scaleY(var(--rule, 0));
		transform-origin: 50% 0;
	}

	.mw-cs--js .mw-cs__rule::before,
	.mw-cs--js .mw-cs__rule::after {
		left: 50%;
		top: calc(var(--rule, 0) * 100%);
	}

	.mw-cs--js .mw-cs__tick {
		left: 50%;
		top: calc(var(--at, 0) * 100%);
		width: 9px;
		height: 1px;
		margin: -.5px 0 0 -4.5px;
	}

	.mw-cs--js .mw-cs__tick.is-on {
		transform: scaleX(1.6);
	}

	.mw-cs--js .mw-cs__cases {
		position: relative;
		z-index: 1;
		margin-top: 205svh;              /* after the point has visited every number */
	}
}

@media (max-width: 1024px) and (min-width: 600px) {
	.mw-cs {
		--pad: 48px;
	}
	.mw-cs .mw-cs__num {
		font-size: 64px;
	}
	.mw-cs__label {
		font-size: 17px;
	}
	.mw-cs .mw-cs__title {
		font-size: 52px;
	}
	.mw-cs .mw-cs__tab,
	.mw-cs .mw-cs__tab:hover,
	.mw-cs .mw-cs__tab:focus {
		font-size: 19px;
	}
	.mw-cs__chart {
		height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mw-cs *,
	.mw-cs *::before,
	.mw-cs *::after {
		animation: none !important;
		transition: none !important;
	}
}