/* ==========================================================================
   Home video hero
   Full width, edge to edge, straight under the header. The video (16:9)
   fills a wide band (1470 : 630, the old banner shape) and never grows so
   tall that "Shop by Category" drops out of the first screen (--hero-peek);
   on phones a 4 : 3 frame.
   No overlay, no zoom: the footage is shown as it is.
   ========================================================================== */

.has-hero .site-main {
	padding-top: 0;
	padding-bottom: 0; /* home sections set their own spacing */
}

/* The blue band overlaps the hero by a pixel, so a fractional hero height
   never leaves a hairline between the two. */
.hero-video + .shop-cats {
	position: relative;
	margin-top: -1px;
}

.hero-video {
	/* Room left at the bottom of the first screen, so the "Shop by Category"
	   heading and the top of its cards show without scrolling. */
	--hero-peek: clamp(130px, 20svh, 210px);

	position: relative;
	height: min(calc(100vw * 630 / 1470), calc(100svh - var(--g-header-h, 134px) - var(--hero-peek)));
	min-height: 320px;
	overflow: hidden;
	background: var(--g-navy);
}

.hero-video__media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* The bottom of the video fades into the sapphire band of Shop by Category
   below, so the two read as one piece. */
.hero-video::after {
	position: absolute;
	right: 0;
	bottom: -1px; /* covers the video's last (sub)pixel row: no light seam */
	left: 0;
	height: calc(42% + 1px);
	background: linear-gradient(
		to bottom,
		rgba(30, 51, 88, 0) 0%,
		rgba(30, 51, 88, .35) 40%,
		rgba(30, 51, 88, .8) 75%,
		var(--g-sapphire) 100%
	);
	content: "";
	pointer-events: none;
}

@media (max-width: 767px) {
	.hero-video {
		height: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}
