:root.mo-no-scroll,
html.mo-no-scroll,
body.mo-no-scroll {
	overflow: hidden !important;
}

.mo-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .28s ease, visibility .28s ease;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.mo-overlay.is-open {
	visibility: visible;
	opacity: 1;
}

.mo-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 19, 23, .78);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mo-modal {
	position: relative;
	width: min(var(--mo-width), 100%);
	max-height: min(92vh, 860px);
	overflow: hidden;
	border-radius: 34px;
	background: var(--mo-bg);
	color: var(--mo-text);
	box-shadow: 0 28px 90px rgba(0,0,0,.42);
	transform: translateY(14px) scale(.985);
	transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.mo-overlay.is-open .mo-modal {
	transform: translateY(0) scale(1);
}

.mo-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.mo-media {
	position: relative;
	height: clamp(300px, 48vh, 500px);
	overflow: hidden;
	background: #050505;
}

.mo-media-slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: scale(1.025);
	transition: opacity .38s ease, transform .55s ease;
	pointer-events: none;
}

.mo-media-slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.mo-media-slide img,
.mo-media-slide video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mo-media-slide img {
	mix-blend-mode: normal;
}

.mo-placeholder {
	width: 48%;
	aspect-ratio: 1;
	border-radius: 28%;
	background: radial-gradient(circle at 35% 30%, #ff9c5b, #f02c20 45%, #6b0906 100%);
	box-shadow: 0 35px 70px rgba(255, 55, 20, .25);
}

.mo-content {
	padding: 28px 34px 30px;
}

.mo-copy {
	min-height: 116px;
	display: grid;
	align-items: center;
}

.mo-copy-slide {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .3s ease;
	pointer-events: none;
}

.mo-copy-slide.is-active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.mo-copy h2 {
	margin: 0 0 12px;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.08;
	letter-spacing: -.035em;
	font-weight: 700;
	color: var(--mo-text);
}

.mo-copy p {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: color-mix(in srgb, var(--mo-text) 72%, transparent);
}

.mo-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin: 14px 0 24px;
}

.mo-dot {
	width: 28px;
	height: 5px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: rgba(255,255,255,.30);
	cursor: pointer;
	transition: width .25s ease, background .25s ease;
}

.mo-dot.is-active {
	width: 52px;
	background: var(--mo-accent);
}

.mo-actions {
	position: relative;
}

.mo-next {
	width: 100%;
	min-height: 58px;
	border: 0;
	border-radius: 999px;
	background: var(--mo-accent);
	color: #111;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}

.mo-next:hover {
	transform: translateY(-1px);
}

.mo-step-link {
	display: none;
}

.mo-step-link.is-active {
	display: none;
}

@media (max-width: 600px) {
	.mo-overlay {
		padding: 0;
	}

	.mo-modal {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		display: flex;
		flex-direction: column;
	}

	.mo-media {
		height: 56vh;
		flex: 1 1 auto;
	}

	.mo-content {
		padding: 22px 22px max(22px, env(safe-area-inset-bottom));
	}

	.mo-copy {
		min-height: 110px;
	}

	.mo-copy h2 {
		font-size: 30px;
	}

	.mo-copy p {
		font-size: 16px;
	}

	.mo-close {
		top: max(12px, env(safe-area-inset-top));
		right: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mo-overlay,
	.mo-modal,
	.mo-media-slide,
	.mo-copy-slide,
	.mo-dot,
	.mo-next {
		transition: none !important;
	}
}
