.hero.project-hero .wrap { display: block; }
.project-hero-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.project-hero h1 { max-width: 20ch; }
.project-hero p.lede { max-width: 48ch; }
.project-preview { margin: 0; justify-self: end; width: min(100%, 290px); }
.project-preview video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #12130c; border-radius: 4px; }
.project-preview figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--brand-100); }
.project-preview 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) {
  .project-hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .project-preview { justify-self: center; width: min(100%, 320px); }
  .project-hero h1, .project-hero p.lede { max-width: none; }
  .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; }
}
