.mtnw {
	--mtnw-text-duration: 24s;
	position: relative;
	width: 100%;
	height: 180px;
	height: clamp(130px, 12vw, 210px);
	overflow: hidden;
	isolation: isolate;
	background-color: #b9b5aa;
}

.mtnw__stripe {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 20px;
	background-color: #f4c400;
	background-image: linear-gradient(135deg, #f4c400 0 25%, #111 25% 50%, #f4c400 50% 75%, #111 75% 100%);
	background-size: 56px 56px;
	animation: mtnw-stripe var(--mtnw-border-duration, 1.2s) linear infinite;
}

.mtnw__background {
	position: absolute;
	z-index: 0;
	inset: 20px 0 0;
	overflow: hidden;
}

.mtnw__background img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 56%;
}

.mtnw__viewport {
	position: absolute;
	z-index: 1;
	inset: 20px 0 0;
	display: flex;
	align-items: flex-start;
	box-sizing: border-box;
	padding-top: clamp(24px, 2.7vw, 48px);
	overflow: hidden;
}

.mtnw__track {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	height: 100%;
	animation: mtnw-scroll var(--mtnw-text-duration) linear infinite;
	will-change: transform;
}

.mtnw__segment {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: clamp(28px, 4vw, 76px);
	box-sizing: border-box;
	min-height: 100%;
	padding: 0 clamp(24px, 1.6vw, 34px);
	white-space: nowrap;
}

.mtnw__item {
	color: var(--mtnw-font-color, #101010);
	font-family: "Red Hat Display", "Arial Narrow", Arial, sans-serif;
	font-size: clamp(16px, 6vw, var(--mtnw-font-size, 48px));
	font-weight: var(--mtnw-font-weight, 900);
	letter-spacing: -0.025em;
	line-height: 1;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgb(255 255 255 / 24%);
}

.mtnw__separator {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 35%);
	transform: rotate(45deg);
}

@keyframes mtnw-stripe {
	from { background-position: 0 0; }
	to { background-position: 56px 0; }
}

@keyframes mtnw-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.mtnw__stripe,
	.mtnw__track {
		animation: none !important;
		will-change: auto;
	}
	.mtnw__track {
		transform: none !important;
	}
}

@media (max-width: 600px) {
	.mtnw__viewport {
		align-items: center;
		padding-top: 0;
	}
}
