/* Homepage · Featured neighborhood (Dec 1) — inc/home-feature.php, template-parts/home/feature.php.
   1. The lead-in: a quiet band between the photo band above and the film, so the two pictures don't run together.
   2. The neighborhood full width: its film on a silent loop, words bottom left on a soft shade. "Watch the film"
      opens the whole film in the project film player (project-film.css, main.js). */

/* 1. Lead-in */
.feature-lead { background: var(--paper); padding-block: clamp(56px, 7vw, 104px); text-align: center; }
.feature-lead__inner { max-width: 880px; }
.feature-lead__rule { display: block; width: 48px; height: 2px; margin: 0 auto 26px; background: var(--rust); }
.feature-lead__line { margin: 0 auto; max-width: 30ch; font: 400 clamp(26px, 2.6vw, 36px)/1.3 var(--font-serif); color: var(--deep); text-wrap: balance; }
.feature-lead__text { margin: 18px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* 2. The neighborhood */
.feature-hood { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 760px); overflow: hidden; background: var(--deep); color: var(--white); }
.feature-hood__media { position: absolute; inset: 0; }
.feature-hood__poster, .feature-hood .video-layer, .feature-hood .video-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-hood::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(20, 22, 23, .78) 0%, rgba(20, 22, 23, .35) 45%, rgba(20, 22, 23, 0) 70%), linear-gradient(0deg, rgba(20, 22, 23, .55), rgba(20, 22, 23, 0) 40%); }
.feature-hood__wrap { position: relative; z-index: 2; width: 100%; padding-block: clamp(40px, 6vw, 88px); }
.feature-hood__text { max-width: 520px; }
.feature-hood .eyebrow { color: #e9c9a4; }
.feature-hood .section-title { color: var(--white); }
.feature-hood .section-intro { color: rgba(255, 255, 255, .88); }

.feature-hood__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 22px 0 28px; padding: 16px 0; list-style: none; border-block: 1px solid rgba(255, 255, 255, .3); }
.feature-hood__facts li { display: flex; flex-direction: column; gap: 2px; }
.feature-hood__facts b { font: 600 26px/1.1 var(--font-serif); color: var(--white); }
.feature-hood__facts span { font: 500 12px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

.feature-hood__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.feature-hood .feature-hood__button { background: var(--rust); border-color: var(--rust); color: var(--white); }
.feature-hood .feature-hood__button:hover, .feature-hood .feature-hood__button:focus-visible { background: var(--white); border-color: var(--white); color: var(--deep); }
.feature-hood__film { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--white); font: 600 15px/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.feature-hood__play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--rust); }
.feature-hood__play svg { margin-left: 2px; }
.feature-hood__film:hover { color: #e9c9a4; }
.feature-hood__film:focus-visible, .feature-hood .feature-hood__button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* The loop's pause switch: bottom right, away from the words. */
.feature-hood .video-toggle { left: auto; right: var(--gutter); bottom: 22px; z-index: 3; }

@media (max-width: 860px) {
	.feature-hood { min-height: 88svh; }
	.feature-hood::after { background: linear-gradient(0deg, rgba(20, 22, 23, .88) 0%, rgba(20, 22, 23, .5) 55%, rgba(20, 22, 23, .12) 100%); }
	.feature-hood__facts { gap: 10px 18px; }
	.feature-hood__facts b { font-size: 21px; }
	.feature-hood .video-toggle { top: 16px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.feature-hood .feature-hood__button, .feature-hood__film { transition: none; }
}
