/* Monti Excavation: projects/gallery refinements (v48) */
.projects-index-lead {padding:38px 22px 51px;}
.projects-lead-layout {display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:clamp(28px,5vw,75px);align-items:center;}
.projects-lead-copy {min-width:0;}
.projects-index-lead .projects-lead-copy h1 {
  margin: 0 0 23px;
  font-size: clamp(2.2rem, calc(1.3rem + 4vw), 4.875rem);
}
.category-detail-lead h1 {
  font-size: clamp(2rem, calc(1.15rem + 2.7vw), 3.875rem);
}
.desktop-nav a[aria-current],
.mobile-menu a[aria-current] {
  text-decoration: underline;
  text-decoration-color: #c4866c;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.projects-index-lead .projects-lead-copy>p {font-size:clamp(1.06rem,1.7vw,1.24rem);line-height:1.56;color:#c9c0b2;max-width:570px;margin:0;}
.projects-lead-image {margin:0;min-width:0;align-self:stretch;max-height:385px;overflow:hidden;background:#3a4036;}
.projects-lead-image img {display:block;width:100%;height:100%;max-height:385px;min-height:295px;object-fit:cover;object-position:50% 50%;}
.category-index-heading {justify-content:flex-start;}
.category-preview-content {padding-top:21px;}
.category-film {margin:0 0 48px;border-top:0;padding-top:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr);gap:34px;align-items:center;}
.category-film-player {min-width:0;position:relative;background:#2c302b;aspect-ratio:16/9;overflow:hidden;}
.category-film .category-film-teaser {display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;}
.category-film-play {position:absolute;right:16px;bottom:16px;padding:14px 18px;border:1px solid rgba(255,255,255,.8);background:#2c302b;color:#fff;font:inherit;font-weight:800;font-size:.9rem;letter-spacing:.025em;cursor:pointer;min-height:48px;}
.category-film-play:hover {background:#8f402c;color:#2c302b;border-color:#8f402c;}
.category-film-play:focus-visible {outline:3px solid #8f402c;outline-offset:4px;}
.category-detail-body .category-detail-heading {margin-top:4px;}
.category-film-text h2 {margin:0 0 13px;}
@media(max-width:780px) {
 .projects-index-lead {padding:27px 22px 34px;}
 .projects-lead-layout {grid-template-columns:minmax(0,1fr);gap:25px;}
 .projects-index-lead .projects-lead-copy h1 {margin-bottom:17px;}
 .projects-lead-image {max-height:none;aspect-ratio:1.85;}
 .projects-lead-image img {min-height:0;height:100%;max-height:none;object-position:center 42%;}
 .category-film {grid-template-columns:1fr;gap:17px;margin-bottom:40px;}
 .category-film-text {order:-1;}
 .category-film-text h2 {font-size:clamp(1.7rem,7vw,2.7rem);}
 .category-film-text p {margin:0;}
 .category-film-play {font-size:.83rem;right:10px;bottom:10px;padding:12px 14px;}
}
@media(prefers-reduced-motion:reduce){.category-film-teaser {animation:none!important;}}

/* Accessible fallback if a device blocks muted autoplay or requests reduced motion. */
.category-film-player .category-film-replay {display:none;position:absolute;left:12px;bottom:12px;z-index:1;min-height:44px;padding:10px 13px;background:#2d302d;color:#fff;border:1px solid rgba(255,255,255,.85);font:inherit;font-size:.83rem;font-weight:800;cursor:pointer;}
.category-film-player.preview-paused .category-film-replay {display:block;}
.category-film-player .category-film-replay:focus-visible {outline:3px solid #8f402c;outline-offset:3px;}

/* v80: project progression layout, scoped to the combined gallery. */
.progression-section {scroll-margin-top:95px;margin:0 0 56px;}
.progression-section + .progression-section {padding-top:32px;}
.progression-heading {display:block;padding-bottom:12px;margin-bottom:22px;border-bottom:3px solid #8f402c;}
.progression-heading h2 {font-size:clamp(1.7rem,3vw,2.5rem);margin:0;}
.progression-section .category-film {margin-bottom:28px;}
.progression-section .category-film-text h3 {font-size:clamp(1.4rem,2.4vw,2rem);margin:0 0 10px;line-height:1.12;}
.progression-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.progression-grid .project-photo-open img {display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;}
.progression-placeholder {aspect-ratio:4/3;background:#d9d5ca;border:1px dashed #777970;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#42463d;gap:5px;}
.progression-placeholder span {font-weight:700;}
@media(max-width:780px){.progression-grid {grid-template-columns:1fr;gap:24px;}.progression-section {margin-bottom:40px;}.progression-section + .progression-section {padding-top:24px;}.progression-section .category-film {gap:16px;}}

/* Projects intro: headline only, centered beside the site photograph. */
.projects-index-lead .projects-lead-copy h1 {margin-bottom:0;}

/* Keep both video controls independently reachable on narrow phones. */
@media (max-width: 430px) {
  .category-film-player .category-film-replay { top:10px; bottom:auto; left:10px; }
}
