/* Section 1 · Hero  (template-parts/home/hero.php)
   Load sequence runs in pure CSS, so the heading never waits for JavaScript (good for LCP).
   Scroll parallax is added by motion.js when animations are on. */
.hero {
	position: relative; background: var(--navy); color: var(--on-navy);
	min-height: 100svh; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; isolation: isolate;
	padding: calc(var(--header-h) + var(--admin-bar) + env(safe-area-inset-top, 0px) + clamp(28px, 6vh, 72px)) 0 clamp(40px, 6vh, 72px);
	display: flex; flex-direction: column;
}
.hero > .wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary) 55%, #4a90c8) 0%, transparent 65%); opacity: .55; z-index: -1; }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-title {
	--fl: calc((100vw - 390px) / 1050);
	color: var(--on-navy); font-weight: 700; letter-spacing: -.045em; line-height: .92;
	font-size: clamp(calc(var(--fs-h1-m) * 1px), calc(var(--fs-h1-m) * 1px + (var(--fs-h1) - var(--fs-h1-m)) * var(--fl)), calc(var(--fs-h1) * 1px));
}
/* Each line is clipped only at its bottom edge (so the rise-in is hidden) – never at the sides. */
.hero-title .ln { display: block; clip-path: inset(-50% -50% -.14em -50%); }
.hero-title .ln > span { display: block; }
/* Small keyword line inside the H1 (SEO: service + city). Body font, not display size. */
.hero-kicker {
	display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 28px);
	font-family: var(--font-body); font-size: clamp(.78rem, .7rem + .3vw, .92rem); font-weight: 600;
	line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
	color: color-mix(in srgb, var(--brand-accent) 85%, white);
}
.hero-kicker::before { content: ""; flex: 0 0 auto; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.hero .lede { color: var(--on-navy-muted); margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-card { position: relative; width: 100%; max-height: 72vh; aspect-ratio: 4 / 5; justify-self: end; }
.hero-card .media { position: absolute; inset: 0; border-radius: var(--r-lg); }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--brand-on-dark) 95%, transparent); color: var(--brand-primary); border-radius: 999px; padding: 10px 18px 10px 10px; font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); white-space: nowrap; }
.chip i { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary); color: var(--brand-on-dark); display: grid; place-items: center; }
.chip .icon { width: 16px; height: 16px; }
.chip.c1 { left: -28px; top: 14%; }
.chip.c2 { right: -18px; bottom: 16%; }

.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: .95rem; color: var(--on-navy-muted); }
.scroll-cue { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.scroll-cue span { width: 26px; height: 40px; border: 1.5px solid currentColor; border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; border-radius: 2px; background: currentColor; transform: translateX(-50%); animation: s-cue 1.8s infinite; }
@keyframes s-cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 900px) {
	.hero { min-height: 0; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.hero-card { max-height: none; aspect-ratio: 4 / 4.4; justify-self: stretch; }
	.chip.c1 { left: 12px; top: 16px; }
	.chip.c2 { right: 12px; bottom: 16px; }
	.scroll-cue { display: none; }
	.hero-foot { margin-top: 28px; }
}
@media (max-width: 380px) { .chip { font-size: .82rem; padding-right: 14px; } }

/* Load sequence (skipped for "reduce motion" and when animations are off in Design settings) */
@media (prefers-reduced-motion: no-preference) {
	:root:not(.no-motion) .hero-kicker { opacity: 0; transform: translateY(12px); animation: s-fadeup .9s var(--ease-out) forwards .05s; }
	:root:not(.no-motion) .hero-title .ln > span { transform: translateY(110%); animation: s-rise 1.2s var(--ease-out) forwards; }
	:root:not(.no-motion) .hero-title .ln:nth-child(2) > span { animation-delay: .1s; }
	:root:not(.no-motion) .hero-title .ln:nth-child(3) > span { animation-delay: .2s; }
	:root:not(.no-motion) .hero-title .ln:nth-child(4) > span { animation-delay: .3s; }
	:root:not(.no-motion) .hero-card .media { clip-path: inset(100% 0 0 0 round var(--r-lg)); animation: s-reveal 1.4s cubic-bezier(.87, 0, .13, 1) .05s forwards; }
	:root:not(.no-motion) .hero-fade { opacity: 0; transform: translateY(24px); animation: s-fadeup 1s var(--ease-out) forwards .5s; }
	:root:not(.no-motion) .hero-ctas.hero-fade { animation-delay: .6s; }
	:root:not(.no-motion) .hero-foot.hero-fade { animation-delay: .7s; }
	:root:not(.no-motion) .chip { opacity: 0; transform: scale(.6); animation: s-pop .8s cubic-bezier(.34, 1.56, .64, 1) forwards 1s; }
	:root:not(.no-motion) .chip.c2 { animation-delay: 1.15s; }
}
@keyframes s-rise { to { transform: translateY(0); } }
@keyframes s-fadeup { to { opacity: 1; transform: none; } }
@keyframes s-pop { to { opacity: 1; transform: none; } }
@keyframes s-reveal { to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
