/* Home hero (full screen) and page heroes. */

.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--c-ink);
	color: #fff;
	isolation: isolate;
}
@supports (height: 100svh) { .hero { min-height: max(620px, 100svh); } }

.hero__media,
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, center);
}

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 58% 48% at 50% 50%, rgba(18, 21, 14, .58), rgba(18, 21, 14, .28) 55%, rgba(18, 21, 14, 0) 78%),
		linear-gradient(180deg, rgba(18, 21, 14, .5) 0%, rgba(18, 21, 14, .12) 30%, rgba(18, 21, 14, .12) 62%, rgba(18, 21, 14, .6) 100%);
}

.hero__content {
	width: 100%;
	max-width: 980px;
	padding: calc(var(--header-h) + 20px) var(--gutter) 120px;
	text-align: center;
	text-shadow: 0 2px 28px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .3);
}
.hero__ornament { display: block; width: clamp(96px, 9vw, 132px); margin: 0 auto 18px; line-height: 0; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .35)); }
.hero__ornament img { width: 100%; height: auto; }
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
	font-family: var(--f-serif);
	font-size: clamp(.85rem, 1.1vw, 1rem);
	font-weight: 500;
	letter-spacing: .36em;
	text-transform: uppercase;
}
.hero__rule { display: block; width: clamp(28px, 4vw, 54px); height: 1px; background: rgba(255, 255, 255, .7); }
.hero__title {
	color: #fff;
	font-size: clamp(3.4rem, 9vw, 8rem);
	font-weight: 500;
	line-height: .98;
	letter-spacing: -.01em;
}
.hero__tagline {
	max-width: 760px;
	margin: 22px auto 0;
	font-family: var(--f-serif);
	font-size: clamp(1.3rem, 2.3vw, 1.95rem);
	font-style: italic;
	line-height: 1.35;
	text-wrap: balance;
}
.hero__text { max-width: 560px; margin: 22px auto 0; font-size: 1.0625rem; line-height: 1.8; }
.hero__buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; margin-top: 38px; text-shadow: none; }

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	transform: translateX(-50%);
	color: #fff;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .3em;
	text-decoration: none;
	text-transform: uppercase;
	opacity: .88;
}
.hero__scroll:hover { color: #fff; opacity: 1; }
.hero__scroll-line { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }

.hero__badge { position: absolute; right: var(--gutter); bottom: 34px; }

.anchor-start { position: relative; top: -1px; }

@media (max-width: 760px) {
	.hero__content { padding-bottom: 150px; }
	.hero__badge { right: 50%; bottom: 110px; transform: translateX(50%); }
	.hero__scroll { bottom: 22px; }
	.hero__scroll-line { height: 34px; }
	.hero__eyebrow { gap: 12px; letter-spacing: .28em; }
}
@media (max-height: 640px) and (max-width: 760px) {
	.hero__badge { display: none; }
}

/* Page hero */
.page-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	color: #fff;
}
.page-hero--photo {
	min-height: clamp(460px, 74vh, 760px);
	background: var(--c-ink);
	overflow: hidden;
}
.page-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 62% at 18% 82%, rgba(18, 21, 14, .62), rgba(18, 21, 14, 0) 72%),
		linear-gradient(90deg, rgba(18, 21, 14, .45) 0%, rgba(18, 21, 14, .12) 50%, rgba(18, 21, 14, 0) 75%),
		linear-gradient(180deg, rgba(18, 21, 14, .5) 0%, rgba(18, 21, 14, 0) 30%, rgba(18, 21, 14, .1) 60%, rgba(18, 21, 14, .62) 100%);
}
.page-hero__content {
	padding-top: calc(var(--header-h) + 60px);
	padding-bottom: clamp(56px, 8vw, 104px);
	text-shadow: 0 2px 26px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .3);
}
.page-hero__eyebrow {
	margin-bottom: 18px;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.page-hero__title { color: inherit; font-size: clamp(2.9rem, 7vw, 6rem); font-weight: 500; line-height: 1; }
.page-hero__subtitle {
	max-width: 720px;
	margin-top: 18px;
	font-family: var(--f-serif);
	font-size: clamp(1.3rem, 2.3vw, 1.9rem);
	font-style: italic;
	line-height: 1.3;
}

.page-hero--plain { position: relative; overflow: hidden; background: var(--c-cream); color: var(--c-ink); text-align: center; }
.page-hero__ornament { display: block; width: clamp(110px, 10vw, 150px); margin: 0 auto 26px; line-height: 0; }
.page-hero__ornament img { width: 100%; height: auto; }
/* The hills from their logo as a faint band along the bottom of a calm page header. */
.page-hero__hills {
	position: absolute;
	left: 50%;
	bottom: -2px;
	z-index: 0;
	width: min(1600px, 125vw);
	aspect-ratio: 1400 / 311;
	transform: translateX(-50%);
	background: url("../images/logo-mark-color-wide.webp") center bottom / 100% auto no-repeat;
	opacity: .1;
	pointer-events: none;
}
.page-hero--plain .page-hero__content { position: relative; z-index: 1; }
.page-hero--plain .page-hero__content { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 120px)); padding-bottom: clamp(32px, 5vw, 56px); text-shadow: none; }
.page-hero--plain .page-hero__eyebrow { color: var(--c-gold-text); }
.page-hero--plain .page-hero__subtitle { margin-inline: auto; color: var(--c-muted); }
.page-hero__emblem { display: block; width: 130px; height: auto; margin: 0 auto 26px; }
.page-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.page-hero--404 { min-height: 70vh; align-items: center; }
.page-hero--404 .page-hero__content { padding-bottom: 120px; }

/* A calm (plain) page hero flows straight into the first block. */
.page-hero--plain + .section { padding-top: clamp(20px, 3vw, 44px); }
