/**
 * Video banner (home hero) — Pump homepage Figma reference node 306:6.
 */

.video-banner {
	--vb-green: #b5dc7b;
	--vb-dark: #231f20;
	--vb-grey: #eeeded;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.video-banner__shell {
	position: relative;
	min-height: clamp(420px, 72vh, 800px);
	border-radius: 8px;
	overflow: hidden;
	background: var(--vb-dark);
}

.video-banner__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.video-banner__poster,
.video-banner__video-bg {
	position: absolute;
	inset: 0;
}

.video-banner__poster-target {
	position: absolute;
	inset: 0;
	pointer-events: auto;
}

.video-banner__poster-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	transform-origin: center center;
}

.video-banner__video-target {
	position: absolute;
	inset: 0;
	pointer-events: auto;
}

.video-banner__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-banner__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(35, 31, 32, 0.72) 0%,
		rgba(35, 31, 32, 0.35) 45%,
		rgba(35, 31, 32, 0.5) 100%
	);
	pointer-events: none;
}

.video-banner__content {
	position: relative;
	z-index: 1;
	min-height: inherit;
	display: flex;
	align-items: stretch;
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 5vw, 4rem);
	/* Align copy/CTAs with header bar inner gutter (same token as .site-header__bar). */
	padding-inline: var(--header-pad-x, 48px);
	box-sizing: border-box;
}

.video-banner__layout {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: min(100%, var(--section-inner-max));
	margin-inline: auto;
	gap: clamp(1.25rem, 3vw, 2rem);
	justify-content: center;
	color: #fff;
}

.video-banner__row-primary {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	padding-top: clamp(1rem, 8vw, 9rem);
}

.video-banner__copy-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	max-width: 49rem;
	width: 100%;
}

.video-banner__title {
	margin: 0;
	text-transform: uppercase;
	line-height: 1;
	font-family: "Unbounded", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 4rem);
}

.video-banner__title-lines {
	display: block;
	font-weight: 800;
	line-height: 1.05;
	margin-bottom: 0.25em;
}

.video-banner__title-accent {
	display: block;
	color: var(--vb-green);
	font-weight: 900;
	font-size: clamp(2.75rem, 7.5vw, 7rem);
	line-height: 0.92;
	margin-top: 0.08em;
}

.video-banner__description {
	margin: 0;
	max-width: 45rem;
	font-family: "Inter Tight", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(1rem, 1.35vw, 1.3125rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.96);
}

.video-banner__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.5rem);
}

.video-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--btn-gap);
	padding: var(--btn-padding-compact);
	border-radius: var(--btn-radius);
	text-decoration: none;
	font-family: var(--btn-font-family);
	font-weight: var(--btn-font-weight);
	font-size: var(--btn-font-size);
	line-height: var(--btn-line-height);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	text-align: center;
	transition: var(--btn-transition);
	pointer-events: auto;
}

.video-banner__cta:hover {
	transform: var(--btn-primary-active-transform);
}

.video-banner__cta:focus-visible {
	outline: var(--btn-primary-focus-outline);
	outline-offset: var(--btn-primary-focus-offset);
}

.video-banner__cta--primary {
	background-color: var(--btn-primary-bg);
	color: var(--btn-primary-text);
	border: var(--btn-primary-border);
}

.video-banner__cta--secondary {
	background-color: var(--btn-secondary-bg);
	color: var(--btn-secondary-text);
	border: var(--btn-secondary-border);
}

.video-banner__cta-dot {
	flex-shrink: 0;
	width: var(--btn-dot-size);
	height: var(--btn-dot-size);
	border-radius: 999px;
	background: var(--btn-primary-dot-bg);
}

@media (min-width: 960px) {
	.video-banner__row-primary {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		column-gap: clamp(2rem, 4vw, 3rem);
		row-gap: clamp(1.25rem, 3vw, 2.25rem);
		padding-top: clamp(2rem, 14vw, 11rem);
	}

	.video-banner__copy-main {
		flex: 1 1 auto;
		max-width: min(755px, 58%);
		gap: 2.25rem;
	}

	.video-banner__description {
		max-width: 28rem;
	}

	.video-banner__ctas {
		flex-shrink: 0;
		flex-wrap: nowrap;
		align-self: flex-end;
	}
}

.video-banner__media-placeholder {
	box-sizing: border-box;
	min-height: 160px;
	border: 2px dashed rgba(255, 255, 255, 0.45);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	pointer-events: auto;
}

.video-banner__media-placeholder--video {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	width: min(40%, 280px);
	min-height: 100px;
	z-index: 1;
}

.video-banner__editor-hint {
	display: block;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.35;
	text-transform: none;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
	.video-banner__cta:hover {
		transform: none;
	}

	.video-banner__poster-img {
		transform: none;
	}
}
