/* Display exact photographic regions of the supplied leaflet without altering it. */
.leaflet-photo { position: relative; display: block; width: 100%; overflow: hidden; background: #171615; }
.leaflet-photo img { position: absolute; max-width: none; max-height: none; height: auto; border: 0; padding: 0; }
.leaflet-photo--assembly { aspect-ratio: 388 / 442; }
.leaflet-photo--assembly img { width: 285.3093%; left: -5.6701%; top: -161.9910%; }
.leaflet-photo--connections { aspect-ratio: 253 / 438; }
.leaflet-photo--connections img { width: 437.5494%; left: -177.0751%; top: -163.4703%; }
.leaflet-photo--testing { aspect-ratio: 349 / 242; }
.leaflet-photo--testing img { width: 317.1920%; left: -212.3209%; top: -295.4545%; }
.leaflet-card-photo { display: block; width: 100%; background: #171615; padding: .75rem; }
.leaflet-card-photo .leaflet-photo { width: min(100%, 14rem); margin: auto; }
.case-photo-stack { display: grid; gap: 1.75rem; min-width: 0; }
.case-photo-stack figcaption { font-size: 1rem; line-height: 1.65; }
.case-photo-stack figcaption strong { color: #f3f1ed; }
.case-grid .case-card-copy { gap: .5rem; }
.case-grid .case-card-copy .role-label { min-height: 0; }
.habitek-project { padding-top: 0; }
.habitek-project-hero { max-width: 72rem; margin: 0 auto; }
.habitek-project .case-media a { display: block; }
.habitek-project .case-media img { width: 100%; height: auto; object-fit: contain; }
.habitek-project .case-media figcaption { font-size: 1rem; line-height: 1.65; }
.habitek-project .case-media figcaption strong { color: #f3f1ed; }
.habitek-project-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 3rem; padding: 1.75rem 0; border-top: 1px solid #40372f; border-bottom: 1px solid #40372f; }
.habitek-project-facts dt { color: #c1bbb4; font-size: 1rem; margin-bottom: .5rem; }
.habitek-project-facts dd { color: #f3f1ed; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; margin: 0; }
.habitek-project-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.habitek-project h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.2; margin: .75rem 0 1.25rem; }
.habitek-project p { color: #c8bdb4; font-size: 1.125rem; line-height: 1.8; }
.habitek-photo-section, .habitek-video-section, .habitek-product-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid #40372f; scroll-margin-top: 7rem; }
.habitek-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
.habitek-photo-grid .case-media img { max-height: 38rem; background: #12110f; }
.habitek-project p.habitek-source-note { font-size: 1rem; }
.habitek-video-section video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid #40372f; margin-top: 1.5rem; }
.habitek-product-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; }
@media (max-width: 700px) {
  .case-photo-stack { max-width: 34rem; }
  .habitek-project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habitek-project-copy, .habitek-photo-grid, .habitek-product-section { grid-template-columns: minmax(0, 1fr); }
  .habitek-photo-grid .case-media img { max-height: none; }
}
