/* ==========================================================
   Landing hero: text visible before the reel loads
   ========================================================== */

/* One video element, sized like the old ones */
.hero-video-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	background: #000 url('../img/hero/poster-desktop.webp') center / cover no-repeat;
}
.hero-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 600ms ease;
}
.hero-video-wrap video.is-playing { opacity: 1; }

/* Darken the left/bottom so the text always reads */
.hero-video-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 70%),
		linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%);
}

/* Text block. Lives outside .animsition, so it shows instantly */
.hero-intro {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 90;
	width: 100%;
	max-width: 760px;
	padding: 0 40px 72px;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	animation: heroIn 700ms ease-out both;
}
@keyframes heroIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}
.hero-intro .eyebrow {
	font-family: 'Roboto Mono', ui-monospace, Menlo, monospace;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #6ff2c9;
	margin: 0 0 18px;
}
.hero-intro h1 {
	font-size: clamp(30px, 4.2vw, 54px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 20px;
	color: #fff;
	text-wrap: balance;
}
.hero-intro p.lead {
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.55;
	font-weight: 300;
	color: rgba(255,255,255,.86);
	max-width: 56ch;
	margin: 0 0 28px;
}
.hero-intro .credits {
	font-size: 13px;
	color: rgba(255,255,255,.6);
	margin: 0 0 28px;
	letter-spacing: .02em;
}
.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hero-ctas a {
	display: inline-block;
	padding: 13px 22px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .04em;
	text-decoration: none;
	border: 1px solid #fff;
	transition: background 200ms, color 200ms, border-color 200ms;
}
.hero-ctas a.primary { background: #fff; color: #000; }
.hero-ctas a.primary:hover { background: #6ff2c9; border-color: #6ff2c9; color: #000; }
.hero-ctas a.secondary { color: #fff; background: transparent; }
.hero-ctas a.secondary:hover { background: rgba(255,255,255,.12); }
.hero-ctas a.terminal {
	font-family: 'Roboto Mono', ui-monospace, Menlo, monospace;
	color: #6ff2c9;
	border-color: transparent;
	padding-left: 6px;
}
.hero-ctas a.terminal:hover { color: #fff; }

/* Hide the intro while the full-screen menu is open */
body.nav-active .hero-intro { opacity: 0; pointer-events: none; transition: opacity 200ms; }

@media (max-width: 767px) {
	.hero-video-wrap { background-image: url('../img/hero/poster-mobile.webp'); }
	.hero-video-wrap::after {
		background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,.1) 75%);
	}
	.hero-intro { padding: 0 56px 40px 22px; }
	.hero-intro .credits { display: none; }
	.hero-ctas a { padding: 12px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-intro { animation: none; }
}
