/* Scoped Nov18 polish. Material pages intentionally retain their existing design. */
.refined-layout .hero-luxor{grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr)}
.refined-layout .hero-copy{min-width:0;padding-inline:max(2rem,calc((100vw - 1280px)/2)) 2.5rem}
.refined-layout .hero-copy h1{font-size:clamp(3.2rem,5.8vw,6rem);overflow-wrap:normal}
.refined-layout .service-card{display:flex;flex-direction:column;min-width:0;border-radius:4px}
.refined-layout .service-card a{align-self:flex-start;margin-top:auto;padding-top:.7rem}
.refined-layout .service-card p{margin-bottom:1.6rem}
.refined-layout .project-grid{align-items:stretch;gap:3rem 2rem}
.refined-layout .project-card{display:flex;flex-direction:column;min-width:0;border-bottom:1px solid var(--line);padding-bottom:1.5rem}
.refined-layout .project-card .portfolio-photo{height:250px;flex:none;overflow:hidden;margin-bottom:1.3rem}
.refined-layout .project-card .portfolio-photo button,.refined-layout .project-card .portfolio-photo img,.refined-layout .project-card .project-photo-pending{height:100%;width:100%;min-height:0;max-height:none;border-radius:3px}
.refined-layout .project-card .portfolio-photo img{object-fit:cover}
.refined-layout .project-card h2{font-size:1.8rem;min-height:2.4em;margin-bottom:.6rem;overflow-wrap:anywhere}
.refined-layout .project-card .project-location-line{min-height:3.2em;margin:.2rem 0 .75rem}
.refined-layout .project-card>p:not(.project-location-line){font-size:.95rem;line-height:1.65;margin-bottom:1.25rem}
.refined-layout .project-card .case-link{margin-top:auto;align-self:flex-start}
.refined-layout .project-photo-pending{background:linear-gradient(135deg,#efeee8,#faf9f5);border:1px solid #e3e0d8}
.refined-layout .hero-copy .actions{min-width:0}
@media(min-width:921px) and (max-width:1180px){.refined-layout .header-inner{gap:1rem}.refined-layout .nav{gap:.9rem}.refined-layout .brand{width:150px}.refined-layout .hero-copy{padding-inline:2rem}}
@media(max-width:920px){.refined-layout .hero-copy{padding-inline:2rem}.refined-layout .hero-copy h1{font-size:clamp(3rem,6vw,4.3rem)}}
@media(max-width:650px){.refined-layout .hero-luxor{display:flex;min-height:0}.refined-layout .hero-copy{padding:2.25rem 1.25rem 2rem}.refined-layout .hero-copy h1{font-size:clamp(2.9rem,10.5vw,3.7rem);margin-bottom:1rem}.refined-layout .hero-copy .lead{font-size:1rem;margin-bottom:.5rem}.refined-layout .hero-copy .actions{margin-top:1.25rem}.refined-layout .hero-copy .hero-foot{margin-top:1.5rem}.refined-layout .hero-photo{height:250px}.refined-layout .project-card .portfolio-photo{height:220px}.refined-layout .project-card h2{min-height:0;font-size:1.7rem}.refined-layout .project-card .project-location-line{min-height:0}.refined-layout .project-grid{gap:2.4rem}.refined-layout .service-card a{padding-top:.3rem}}
.refined-layout .project-slide>figure>.project-photo-pending{width:100%;height:100%;min-height:300px;border:0}
/* Small source images still occupy the same card frame, without stretching aspect ratio. */
.refined-layout .project-card .portfolio-photo img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important}
.refined-layout .project-card[hidden]{display:none}
/* Only the homepage material teaser: contain native button min-content width. */
.refined-layout .home-materials,.refined-layout .home-materials .material-card,.refined-layout .home-materials button{min-width:0;max-width:100%}
.refined-layout .home-materials button{overflow-wrap:anywhere}
.refined-layout .home-materials .material-image{max-width:100%}
/* Reference captions belong inside a naturally-sized figure, never over the project title. */
.refined-layout .project-slide>figure{height:auto;display:flex;flex-direction:column;min-width:0;align-self:stretch}
.refined-layout .project-slide>figure>.detail-zoom{display:block;width:100%;padding:0;border:0;background:transparent;flex:none;line-height:0}
.refined-layout .project-slide>figure img{display:block;height:430px;min-height:0;width:100%;object-fit:cover}
.refined-layout .project-slide>figure>figcaption{padding:.9rem 1.25rem .4rem;font-size:.8rem;line-height:1.55;color:#e0e3dc;overflow-wrap:anywhere}
.refined-layout .project-slide>figure>.sample-credit{padding:.2rem 1.25rem 1rem;margin:0;font-size:.75rem;line-height:1.55;color:#d4d9cf;overflow-wrap:anywhere}
.refined-layout .project-slide>figure>.sample-credit a{color:inherit;text-underline-offset:.2em}
@media(max-width:650px){.refined-layout .project-slide>figure{height:auto}.refined-layout .project-slide>figure img{height:240px;min-height:0}.refined-layout .project-slide>figure>figcaption{padding:.8rem 1rem .4rem}.refined-layout .project-slide>figure>.sample-credit{padding:.1rem 1rem .8rem}.refined-layout .project-slide .slide-copy{padding-top:1.5rem}}
