.hero.project-hero--background { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: 620px; display: grid; align-items: center; background: var(--brand-950); }
.project-hero-media { position: absolute; inset: 0; z-index: -1; }
.project-hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,19,12,.87), rgba(18,19,12,.66) 55%, rgba(18,19,12,.35)), linear-gradient(0deg, rgba(18,19,12,.65), transparent 70%); }
.hero.project-hero .wrap { display: block; padding-block: 40px; }
.project-hero-copy { max-width: 780px; }
.project-hero h1 { max-width: 24ch; font-size: clamp(30px, 4vw, 56px); text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.project-hero p.lede { max-width: 52ch; color: #f0f2e6; }
.project-hero-caption { margin-top: 28px; font-size: 14px; line-height: 1.5; color: #f0f2e6; }
.project-hero-caption a { color: #fff; text-underline-offset: 3px; }
.project-preview-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 8px; }
.project-preview-controls button { border: 1px solid var(--brand-300); border-radius: 3px; background: transparent; color: #fff; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.project-preview-controls button:hover { background: var(--brand-900); }
.project-preview-controls button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project-preview-controls span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.project-location { color: var(--brand-600); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.project-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.project-clip { margin: 0; min-width: 0; scroll-margin-top: 24px; }
.project-clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #12130c; border-radius: 4px; }
.project-clip figcaption { margin-top: 16px; }
.project-clip h3 { margin: 0 0 8px; }
.project-clip p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.project-clip .clip-length { display: block; margin-bottom: 8px; color: var(--brand-600); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-clip--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 12px; }
.project-clip--wide video { aspect-ratio: 16 / 9; }
.project-clip--wide figcaption { margin: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-gallery .job-photo > a { aspect-ratio: 3 / 4; background: var(--brand-950); }
.project-gallery .ph-img, .project-gallery .ph-img > img { width: 100%; height: 100%; object-fit: contain; }
.project-roof .job-gallery { margin-top: 24px; }
.project-roof .job-photo { max-width: 260px; }
@media (max-width: 800px) {
  .hero.project-hero--background { min-height: 0; }
  .hero.project-hero .wrap { padding-block: 38px; }
  .project-hero h1, .project-hero p.lede { max-width: none; }
  .project-hero-media::after { background: rgba(18,19,12,.74); }
  .project-clips { grid-template-columns: 1fr; gap: 32px; }
  .project-clip { width: min(100%, 360px); margin-inline: auto; }
  .project-clip--wide { display: block; width: 100%; }
  .project-clip--wide figcaption { margin-top: 16px; }
  .project-gallery { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; gap: 28px; }
  .project-roof .job-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: none; }
  .project-roof .job-photo figcaption { font-size: 12px; }
}
