#hero {
	position: relative;
	height: 100vh;
	overflow: hidden;

	z-index: 0; /* IMPORTANT: creates clean stacking base */
	isolation: isolate;
}

/* =========================
   BACKGROUND MEDIA
========================= */

#hero video,
#hero img {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.video-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.video-layer video {
	position: absolute;
	inset: 0;

	width: 100%;
	height: 100%;
	object-fit: cover;

	opacity: 0;
	transition: opacity 0.6s ease;

	z-index: 0;

	pointer-events: none;
}

/* ONLY active video is visible */
.video-layer video.active {
	opacity: 1;
	z-index: 1;
}

#hero::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;

	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 35%, rgba(0, 0, 0, 0) 70%);
}

/* =========================
   TEXT OVERLAY
========================= */

.hero-overlay {
	position: absolute;
	left: 7vw;
	right: 22vw;
	bottom: 12vh;
	color: white;

	max-width: 680px;
	z-index: 2;
}

.hero-content p {
	color: rgba(255, 255, 255, 0.75);
}

.hero-kicker {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero-kicker h1 {
	font-size: clamp(2.4rem, 4.5vw, 4.2rem);
	line-height: 1.05;
	font-weight: 300;
	letter-spacing: -0.02em;

	color: rgba(255, 255, 255, 0.92);

	max-width: 18ch;
}

.hero-kicker p {
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);

	max-width: 52ch;
}

/* optional CTA button */
.hero-btn {
	margin-top: 1.5rem;
}

/* =========================
   HERO CONTROLS (SLIDER UI)
========================= */

.hero-controls {
	position: absolute;

	right: 7vw;
	bottom: 12vh;

	display: flex;
	align-items: center;
	gap: 1rem;

	z-index: 10;
}

/* shared button base */
.hero-controls button,
.hero-btn {
	cursor: pointer;

	font: inherit;

	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.9);

	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;

	padding: 0.8rem 1.2rem;

	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.75rem;

	transition: all 0.25s ease;
}

/* hover state */
.hero-controls button:hover,
.hero-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-1px);
}

/* active press */
.hero-controls button:active {
	transform: translateY(0);
}

/* focus accessibility */
.hero-controls button:focus,
.hero-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* =========================
   PREV / NEXT BUTTONS
========================= */

.hero-prev,
.hero-next {
	width: 44px;
	height: 44px;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;

	font-size: 1rem;
}

/* optional subtle divider feel between controls */
.hero-controls::before {
	content: '';
	width: 1px;
	height: 24px;

	background: rgba(255, 255, 255, 0.2);

	margin: 0 0.5rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
	.hero-overlay {
		left: 2rem;
		right: 2rem;
		bottom: 10vh;

		max-width: none;
	}

	.hero-controls {
		right: 2rem;
		bottom: 2rem;
	}

	.hero-kicker h1 {
		font-size: 2.2rem;
	}

	.hero-kicker p {
		font-size: 1rem;
	}
}
