/* ZHI — hero */
.hero {
	position: relative; isolation: isolate; z-index: 2; /* above the next section so the location dropdown is never clipped or covered */
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: flex-end;
	background: var(--navy-950); color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media { position: absolute; inset: -6% 0 -6%; z-index: -2; }
.hero__media .media-ph { position: absolute; inset: 0; }
.hero {
	--ov: 1;
	/* Large hero heading: 25px on mobile (agreed guideline), up to 100px on wide screens. */
	--fs-hero: clamp(25px, calc(25px + 0.0704 * (100vw - 375px)), 100px);
}
.hero--overlay-soft { --ov: 0.75; }
.hero--overlay-strong { --ov: 1.25; }
.hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1400ms var(--ease-out);
}
.hero__video.is-playing { opacity: 1; }
/* Text overlay: bottom pool for the search panel, left scrim for the heading,
   a soft top band for the header, and an even tint so bright skies never wash out white text. */
.hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(to top, rgba(6, 21, 33, calc(0.94 * var(--ov))) 0%, rgba(6, 21, 33, calc(0.62 * var(--ov))) 34%, rgba(6, 21, 33, calc(0.2 * var(--ov))) 62%, rgba(6, 21, 33, calc(0.3 * var(--ov))) 100%),
		linear-gradient(90deg, rgba(6, 21, 33, calc(0.72 * var(--ov))) 0%, rgba(6, 21, 33, calc(0.38 * var(--ov))) 48%, rgba(6, 21, 33, 0) 80%),
		linear-gradient(to bottom, rgba(6, 21, 33, calc(0.55 * var(--ov))) 0%, transparent 22%),
		rgba(7, 27, 41, calc(0.14 * var(--ov)));
}
/* Darkens a little more as the visitor scrolls away (value set by home.js). */
.hero__shade::after { content: ""; position: absolute; inset: 0; background: var(--navy-950); opacity: var(--hero-dim, 0); }
.hero__title, .hero__lede { text-shadow: 0 2px 28px rgba(6, 21, 33, 0.35); }
.hero__content { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero__eyebrow { margin-bottom: var(--space-5); }
.hero__title { font-size: var(--fs-hero, var(--fs-display)); line-height: 0.98; letter-spacing: -0.02em; font-weight: 300; margin-bottom: var(--space-5); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.hero__line > span { display: inline-block; }
.hero__title em {
	font-style: normal; font-weight: 300;
	background: linear-gradient(100deg, #E3CB9C 0%, #C9A76B 45%, #F0DDB5 70%, #B48E52 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { max-width: 58ch; font-size: var(--fs-lede); color: rgba(255, 255, 255, 0.82); margin-bottom: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem); }

.hero__pause { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 1rem); width: 40px; height: 40px; }
.hero__pause-play { display: none; }
.hero__pause[aria-pressed="true"] .hero__pause-pause { display: none; }
.hero__pause[aria-pressed="true"] .hero__pause-play { display: block; }
@media (min-width: 1180px) { .hero__pause { top: auto; bottom: calc(clamp(2.5rem, 2rem + 3vw, 5rem) + 110px); right: calc(var(--gutter) - 8px); } }

.hero .search-panel { position: relative; z-index: 3; }
/* The hero ends at the fold, so the location list opens upwards instead of being cut off below */
@media (min-width: 760px) { .hero .combo__list { top: auto; bottom: calc(100% + 8px); } }
.hero__actions { position: relative; z-index: 0; margin-top: var(--space-4); }
.hero__call { min-height: 48px; width: 100%; justify-content: center; }
@media (min-width: 760px) { .hero__call { width: auto; } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 2rem + 3vw, 5rem); display: none; width: 24px; height: 84px; }
.hero__scroll-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: zhiScrollCue 2.4s var(--ease-in-out) infinite; }
@media (min-width: 1180px) { .hero__scroll { display: block; } }

/* Hero entrance (pure CSS, runs once) */
@media (prefers-reduced-motion: no-preference) {
	.js .hero__media img, .js .hero__media .media-ph { animation: zhiKenBurns 2600ms var(--ease-cinema) both; }
	.js .hero__line > span { animation: zhiRise 1300ms var(--ease-cinema) both; }
	.js .hero__line[data-hero-step="3"] > span { animation-delay: 140ms; }
	.js .hero__eyebrow, .js .hero__lede, .js .search-panel, .js .hero__actions { animation: zhiFadeUp 1100ms var(--ease-out) both; }
	.js .hero__eyebrow { animation-delay: 150ms; }
	.js .hero__lede { animation-delay: 420ms; }
	.js .search-panel { animation-delay: 560ms; }
	.js .hero__actions { animation-delay: 700ms; }
}
@keyframes zhiKenBurns { from { transform: scale(1.16); filter: brightness(0.6); } to { transform: scale(1); filter: none; } }
@keyframes zhiRise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes zhiFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zhiScrollCue { 0% { top: -40%; } 60%, 100% { top: 100%; } }
