/* Module: site_hero. Its own CSS. Colours and fonts come from the design tokens (the template's tokens.css) only. */

.hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: 100svh;
	color: var(--on-dark);
	text-align: center;
	overflow: hidden;
}
.hero--page { min-height: 82svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: drift 26s var(--ease) both;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 42%, transparent) 0, color-mix(in srgb, var(--shade) 6%, transparent) 26%, color-mix(in srgb, var(--shade) 20%, transparent) 62%, color-mix(in srgb, var(--shade) 46%, transparent) 100%);
}
.hero__inner {
	width: 100%;
	max-width: 62rem;
	padding: 7rem var(--pad) 5rem;
}
.hero__inner .display { max-width: 19em; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 2.4rem; margin-top: 2.75rem; }
.hero__inner > * { animation: rise 1.1s var(--ease) both; }
.hero__inner > :nth-child(2) { animation-delay: .12s; }
.hero__inner > :nth-child(3) { animation-delay: .26s; }
.hero__inner > :nth-child(4) { animation-delay: .4s; }
.hero__media img { filter: grayscale(1); }
.hero__media img { transition: filter .9s var(--ease); }
.hero:hover .hero__media img { filter: none; }
@media (hover: none) {
	.hero__media img { filter: none; }
}
@media (max-width: 640px) {
	.hero__actions { flex-direction: column; }
}
.hero--plain { background: var(--ink); }
.hero__text { max-width: 40rem; margin: 1.75rem auto 0; font-size: 1.1rem; color: color-mix(in srgb, var(--on-dark) 92%, transparent); }
.hero__text p + p { margin-top: 1rem; }
