/* Landing-page hero section.
 *
 * A <video> backdrop with a dark gradient overlay and centered text.
 * The wrapping section also carries the poster image as a CSS
 * background-image so the hero is never blank if the video fails to
 * load, is blocked by prefers-reduced-motion, or is removed by the
 * Save-Data / slow-connection guard in index.html.
 */

.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	/* Use small-viewport units where supported so the iOS dynamic
	   toolbar doesn't crop the hero. Falls back to 100vh above. */
	height: 100svh;
	min-height: 480px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
	background-image: url('../images/hero/hero-poster.jpg');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	z-index: 0;
	border: 0;
	pointer-events: none;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 16px;
}

.hero__title {
	margin: 0;
	letter-spacing: 10px;
	text-transform: uppercase;
	font-size: 55px;
	font-weight: bold;
	color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
	margin: 16px 0 0;
	letter-spacing: 4px;
	text-transform: uppercase;
	font-size: 20px;
	font-weight: 500;
	color: #ffffff;
	line-height: 1.5;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Tablet */
@media (max-width: 900px) {
	.hero__title {
		font-size: 42px;
		letter-spacing: 6px;
	}

	.hero__subtitle {
		font-size: 16px;
		letter-spacing: 3px;
	}
}

/* Phone */
@media (max-width: 540px) {
	.hero__title {
		font-size: 30px;
		letter-spacing: 4px;
	}

	.hero__subtitle {
		font-size: 13px;
		letter-spacing: 2px;
	}
}

/* Respect user motion preferences: hide the video entirely and rely on
   the poster background. Belt-and-suspenders with the JS guard. */
@media (prefers-reduced-motion: reduce) {
	.hero__video {
		display: none !important;
	}
}
