/* CodeJack Scrub Hero: the tall wrapper provides scroll distance, the stage sticks to the viewport. */
.cjsv-hero {
	position: relative;
	width: 100%;
	height: calc(100vh + var(--cjsv-scroll, 400vh));
	height: calc(100svh + var(--cjsv-scroll, 400vh));
	background: #000;
	/* Sticky breaks inside any ancestor with overflow:hidden; clip does not. */
}
.cjsv-hero * { box-sizing: border-box; }

.cjsv-stage {
	position: sticky;
	top: 0;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cjsv-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	background: #000;
}
.cjsv-scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--cjsv-scrim, .35));
	pointer-events: none;
}

.cjsv-content {
	position: relative;
	z-index: 3;
	max-width: 900px;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	will-change: opacity, transform;
}
.cjsv-align-center .cjsv-content { align-items: center; text-align: center; }
.cjsv-align-left .cjsv-content { align-items: flex-start; text-align: left; margin-right: auto; margin-left: clamp(24px, 6vw, 120px); }
.cjsv-align-right .cjsv-content { align-items: flex-end; text-align: right; margin-left: auto; margin-right: clamp(24px, 6vw, 120px); }

.cjsv-logo { display: block; height: auto; max-width: 100%; }
.cjsv-eyebrow {
	margin: 0;
	font-size: 14px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 600;
	color: #ff8a3d;
}
.cjsv-heading {
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 6vw, 84px);
	line-height: 1.05;
	font-weight: 700;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.cjsv-text {
	margin: 0;
	max-width: 620px;
	color: #e6e6e6;
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.6;
}

.cjsv-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.cjsv-align-center .cjsv-buttons { justify-content: center; }
.cjsv-align-right .cjsv-buttons { justify-content: flex-end; }
.cjsv-btn {
	display: inline-block;
	padding: 15px 32px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.cjsv-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.cjsv-btn-primary { background: #e8392b; border-color: #e8392b; color: #fff; }
.cjsv-btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.cjsv-btn-secondary:hover { background: rgba(255, 255, 255, .12); }

.cjsv-overlay-img {
	position: absolute;
	z-index: 2;
	left: 78%;
	top: 55%;
	width: 40%;
	height: auto;
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
	will-change: opacity, transform;
}

.cjsv-hint {
	position: absolute;
	z-index: 3;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 12px;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .8;
	transition: opacity .3s;
}
.cjsv-hint i {
	width: 1px;
	height: 38px;
	background: linear-gradient(#fff, transparent);
	animation: cjsv-drop 1.6s ease-in-out infinite;
}
@keyframes cjsv-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cjsv-hint.is-hidden { opacity: 0; }

.cjsv-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.cjsv-progress b { display: block; height: 100%; width: 100%; background: #e8392b; transform: scaleX(0); transform-origin: left; }

@media (max-width: 767px) {
	.cjsv-content { gap: 14px; }
	.cjsv-btn { padding: 13px 26px; font-size: 15px; }
	.cjsv-overlay-img { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
	.cjsv-hero { height: 100vh; height: 100svh; }
	.cjsv-hint { display: none; }
}
