/**
 * Nexza Marquee widget: flat dark band or tilted Copper band.
 */

.nx-mq {
	position: relative;
	z-index: 2;
	overflow: hidden;
	padding: clamp(16px, 2vw, 28px) 0;
	background: var(--nx-ink);
	border-top: 1px solid var(--nx-line);
	border-bottom: 1px solid var(--nx-line);
}

.nx-mq-track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.nx-mq-group {
	display: flex;
	flex: none;
	align-items: center;
	gap: clamp(22px, 3vw, 46px);
	padding-right: clamp(22px, 3vw, 46px); /* same as the gap, so groups join seamlessly */
}

.nx-mq-group span {
	font-size: clamp(38px, 6vw, 96px);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
	white-space: nowrap;
	color: var(--nx-sand);
}

/*
 * Outlined words. Instrument Sans letters are drawn from overlapping shapes,
 * so a plain text-stroke shows lines inside the letters. Instead the stroke is
 * painted under a fill in the band colour: the fill hides the inner lines and
 * the outer half of the 2.4px stroke shows as a 1.2px outline.
 */
.nx-mq--outline .nx-mq-group span:nth-of-type(even) {
	color: var(--nx-ink);
	-webkit-text-stroke: 2.4px var(--nx-taupe);
	paint-order: stroke fill;
}

.nx-mq-burst {
	flex: none;
	width: clamp(26px, 3vw, 50px);
	height: auto;
	color: var(--nx-copper);
	animation: nx-mq-spin 9s linear infinite;
}

/* Tilted Copper band (used above the footer). It is wider than the screen so
   the tilted ends stay hidden; the widget clips the extra width. */
.elementor-widget-nexza-marquee:has(.nx-mq--tilt) {
	overflow-x: clip;
}

.nx-mq--tilt {
	margin: clamp(40px, 5vw, 80px) -3vw 0;
	padding: clamp(14px, 1.6vw, 22px) 0;
	background: var(--nx-copper);
	border: 0;
	transform: rotate(-2deg);
}

.nx-mq--tilt .nx-mq-group span {
	font-size: clamp(28px, 3.6vw, 56px);
	color: var(--nx-ink);
}

.nx-mq--tilt.nx-mq--outline .nx-mq-group span:nth-of-type(even) {
	color: var(--nx-copper);
	-webkit-text-stroke-color: var(--nx-ink);
}

.nx-mq--tilt .nx-mq-burst {
	color: var(--nx-ink);
}

@keyframes nx-mq-spin {
	to { transform: rotate(360deg); }
}

/* Phones: smaller words and gaps, thinner outline. */
@media (max-width: 480px) {
	.nx-mq-group span {
		font-size: 34px;
	}

	.nx-mq--tilt .nx-mq-group span {
		font-size: 26px;
	}

	.nx-mq--outline .nx-mq-group span:nth-of-type(even) {
		-webkit-text-stroke-width: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nx-mq-burst {
		animation: none;
	}
}
