/* The content determines the height before any optional image is downloaded. */
.cvh-home { flex: 1; min-width: 0; }
.cvh-hero {
	position: relative;
	isolation: isolate;
	background: var(--color-primary-dark);
	background-image: linear-gradient(110deg, var(--color-primary-dark), color-mix(in srgb, var(--color-primary-dark) 88%, var(--color-primary-bright)));
	color: var(--color-on-dark);
}
.cvh-hero__media { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.cvh-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.cvh-hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.cvh-hero__video[hidden], .cvh-hero__video-toggle[hidden] { display: none; }
.cvh-hero.cvh-hero--playing::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.65) 0%, rgb(0 0 0 / 0.6) 45%, rgb(0 0 0 / 0.2) 100%); }
.cvh-hero__video-toggle { position: absolute; z-index: 2; right: var(--container-padding); bottom: 1rem; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 0.5); border-radius: var(--radius); color: var(--color-on-dark); background: rgb(0 0 0 / 0.55); }
.cvh-hero__video-toggle .cvh-video-icon--play, .cvh-hero__video-toggle.is-paused .cvh-video-icon--pause { display: none; }
.cvh-hero__video-toggle.is-paused .cvh-video-icon--play { display: block; }
.cvh-hero__video-toggle:focus-visible { outline: 3px solid var(--color-on-dark); outline-offset: 4px; }
.cvh-hero--with-image::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	/* Even a white photograph remains dark enough for white body text. */
	background: linear-gradient(90deg, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.64));
}
.cvh-hero__content { position: relative; padding-block: clamp(4rem, 8vw, 8rem); }
.cvh-hero__title { max-width: 14ch; margin-bottom: 1.5rem; font-size: var(--font-display); line-height: 1.08; letter-spacing: -0.035em; }
.cvh-hero__subtitle { max-width: 40ch; margin-bottom: 2rem; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.6; }
.cvh-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cvh-hero .cvh-button--primary { border-color: var(--color-on-dark); }
.cvh-hero .cvh-button:focus-visible { outline-color: var(--color-on-dark); }
@media (max-width: 39.99rem) {
	.cvh-hero.cvh-hero--playing::before { background: linear-gradient(180deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.6)); }
	.cvh-hero__actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .cvh-hero__video, .cvh-hero__video-toggle { display: none; } }
