/* =========================================================
   NMW redesign — home intro (scroll sequence, 50/50).
   Pinned stage in a tall track. Top orange half = changing headline;
   bottom blue half = the "Adaptive Breathing" wordmark morphing through 5
   keyframes. Both driven by scroll (see intro-desktop.js).
   ========================================================= */

.rds-intro { --rds-orange: #F97827; --rds-blue: #88A6C5; }
.rds-intro__svg { position: absolute; }

/* Tall scroll track (5 morph slides + 1 emblem slide). The stage is pinned. */
.rds-intro__track { height: 300vh; position: relative; }

.rds-intro__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: #000;
}

/* ---- top orange half — changing headline ---- */
.rds-intro__top {
	position: absolute;
	inset: 0 0 50% 0;
	background: var(--rds-orange);
	display: flex;
	align-items: center;
	justify-content: center;
}
.rds-intro__headline {
	position: absolute;
	margin: 0;
	color: #000;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: clamp(56px, 8.5vw, 156px);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-align: center;
	line-height: 0.95;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .5s ease, transform .5s ease;
	pointer-events: none;
	padding: 0 4vw;
}
.rds-intro__headline.is-active { opacity: 1; transform: none; }

/* festival date + city subtitle, under the headline */
.rds-intro__subtitle {
	position: absolute;
	left: 0;
	right: 0;
	top: 64%;
	text-align: center;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: clamp(14px, 1.8vw, 26px);
	letter-spacing: 0.02em;
	color: #000;
	pointer-events: none;
}
@media (max-width: 1024px) { .rds-intro__subtitle { top: 60%; font-size: 14px; } }

/* ---- bottom slate-blue half — morphing wordmark ---- */
.rds-intro__bottom {
	position: absolute;
	inset: 50% 0 0 0;
	background: var(--rds-blue);
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 0 25px;
	box-sizing: border-box;
}
/* both text layers share one grid cell so they overlap exactly */
.rds-intro__stack { display: grid; width: 100%; }
.rds-intro__txt {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	margin: 0;
	font-family: "GT Mechanik Semi LivingPath", "Arial Black", system-ui, sans-serif;
	font-weight: 900;
	text-align: center;
	color: #000;
	filter: url(#rdsMotionBlur);
	overflow-wrap: anywhere;
	word-break: break-all;
	hyphens: none;
	/* font-size + line-height set by JS every frame */
}
.rds-intro__txt--outline {
	color: transparent;
	-webkit-text-stroke: 2px var(--rds-blue);
	text-stroke: 2px var(--rds-blue);
}
.rds-intro__ch { display: inline-block; }

/* ---- final slide: big animated NMW mark on black ---- */
.rds-intro__emblem {
	position: absolute;
	inset: 0;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	z-index: 4;
	pointer-events: none;
}
.rds-intro__emblem.is-on { visibility: visible; }
.rds-intro__emblem-anim {
	width: 100%;                      /* full panel width */
	aspect-ratio: 1920 / 960;         /* Lottie canvas ratio → gives it a height */
	height: auto;
	/* the Lottie art is black — lift it to light grey so it shows on the black slide */
	filter: invert(0.82);
}
.rds-intro__emblem-anim svg { width: 100% !important; height: 100% !important; display: block; }

.rds-intro__sronly {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* mobile: keep the hero (50/50 scroll morph), just scale the headline down */
@media (max-width: 1024px) {
	.rds-intro__headline { font-size: clamp(40px, 11vw, 72px); padding: 0 5vw; }
}
