/* Squish Hero Video: button, focus ring and a gentle scrim so the white headline always passes contrast. */

/* The button sits top right of the hero (clear of the cookie banner and scroll arrow), above the theme overlay (z-index 10). */
html body .section-home-hero .squish-hero-video-toggle {
	position: absolute;
	right: 24px;
	top: 24px;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
html body .section-home-hero .squish-hero-video-toggle[hidden] {
	display: none;
}
html body .section-home-hero .squish-hero-video-toggle:hover {
	background: rgba(0, 0, 0, 0.85);
}
html body .section-home-hero .squish-hero-video-toggle:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.85);
}
.squish-hero-video-toggle__play { display: none; margin-left: 2px; }
.squish-hero-video-toggle.is-paused .squish-hero-video-toggle__pause { display: none; }
.squish-hero-video-toggle.is-paused .squish-hero-video-toggle__play { display: block; }

/* Scrim behind the hero text: lifts the worst-case contrast of white text on the brightest frames above 3:1 (large text). */
.section-home-hero .hero-main-media::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.28) 35%, rgba(0, 0, 0, 0) 70%);
}
@media (max-width: 767px) {
	.section-home-hero .hero-main-media::after {
		background: rgba(0, 0, 0, 0.22);
	}
	html body .section-home-hero .squish-hero-video-toggle {
		right: 16px;
		top: 16px;
	}
}

/* Responsive fill: the video element carries width/height attributes (1280x720), which kept it fixed-size on screens narrower than that. Make it always fill the hero box and crop to cover. */
html body .section-home-hero .hero-main-media video.squish-hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}
