/* New photography and galleries combined with the established responsive UI. */
.hero{background:#204b54}
.hero-image{transform:none;object-position:left center;filter:none}
.hero-shade{background:linear-gradient(90deg,#163d49b8 0%,#163d497a 32%,#163d491f 60%,transparent 80%)}
.hero h1{max-width:660px;font-size:clamp(48px,4.25vw,68px)}
.hero-lead{max-width:510px;line-height:1.65}
/* Keep actions aligned with the heading, independently of its supporting copy. */
@media(min-width:1281px){
 .site-header{grid-template-columns:auto minmax(0,1fr)}
 .site-header>.site-nav{display:none}
 .site-header>.header-contact{grid-column:2}
 .systems-top{row-gap:6px}
 .systems-top>div:first-child{display:contents}
 .systems-top h2{grid-area:1/1}
 .systems-top p{grid-area:2/1/auto/-1;margin-top:0}
 .systems-top .system-tabs{grid-area:1/2;align-self:center}
}
.contact-invitation{row-gap:14px}
.contact-invitation>div{display:contents}
.contact-invitation h2{grid-area:1/1;margin:0}
.contact-invitation p{grid-area:2/1}
.contact-invitation>.contact-button{grid-area:1/2;align-self:center}
.system-card{display:flex;flex-direction:column;gap:18px;padding:24px;min-width:0}
.system-card-heading{container-type:inline-size}
.system-card-heading h3{margin:0;font-size:36px;font-size:clamp(28px,12cqi,40px);line-height:1.15;overflow-wrap:break-word;hyphens:none}
.system-card-photo{width:100%;overflow:hidden;aspect-ratio:16/10;background:#eae7e1}
.system-card .system-card-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border:0}
.systems-body[data-active-system="electric"] #system-image{object-position:25% 50%}
.systems-body[data-active-system="heating"] #system-image{object-position:50% 70%}
.systems-body[data-active-system="water"] #system-image{object-position:50% 60%}
.system-card-copy{width:100%}
.system-card-copy #system-description{margin:0 0 12px}
.system-card-copy .system-more{display:block}
.system-card-copy .system-more ul{padding:4px 20px 12px}
.is-compact .system-card{padding:14px;gap:12px}
.is-compact .system-card-heading{display:none}
.is-compact .system-card-photo{max-height:180px;aspect-ratio:16/9}
.details-section{padding-block:0;border-bottom:0;background:var(--petrol);color:var(--paper)}
.details-inner{padding-block:46px}
.details-inner>.corner{color:#bfd2ce}
.details-section .detail-photo-copy h3{color:var(--paper)}
.details-section .detail-photo-copy p{color:#d1dfdb}
.details-section .detail-photo-number{color:#bdd2cb}
.details-section .detail-card-image{border-color:#92b0b1}
.details-section .carousel-arrow{border-color:#92b0b1;color:var(--paper)}
.details-section .carousel-arrow:hover:not(:disabled){background:var(--paper);border-color:var(--paper);color:var(--petrol)}
.details-section .carousel-counter{color:#d1dfdb}
.details-section .carousel-dot:before{background:#93b4b2}
.details-section .carousel-dot.is-active:before,.details-section .carousel-dot:hover:before{background:var(--paper)}
.portfolio-section{padding-block:46px;border-bottom:1px solid var(--line)}
.portfolio-shell{min-width:0}
.portfolio-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,520px);margin:0 auto 26px}
.portfolio-tabs[hidden],.work-group[hidden],.work-controls[hidden]{display:none}
.portfolio-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:84px;padding:14px 18px;border:1px solid #bdcbc7;border-radius:6px;background:transparent;color:var(--petrol);transition:background .2s,border-color .2s,color .2s}
.portfolio-tabs button:hover{background:#eaf0ed;border-color:var(--petrol)}
.portfolio-tabs button[aria-selected="true"]{background:var(--petrol);border-color:var(--petrol);color:white}
.portfolio-tab-title{font-family:var(--serif);font-size:28px;line-height:1.15;letter-spacing:-.03em}
.portfolio-tab-count{font-size:13px;line-height:1.4;opacity:.75}
.portfolio-shell.is-tabbed .work-group{margin-top:0;padding-top:0;border-top:0}
.portfolio-shell.is-tabbed .work-label{display:none}
.work-browse-hint{display:none}
.portfolio-shell.is-tabbed .work-browse-hint{display:block;font-size:14px;color:var(--muted)}
.work-group{min-width:0;padding-top:24px;border-top:1px solid var(--line)}
.work-group+.work-group{margin-top:36px}
.work-heading,.work-label,.work-controls{display:flex;align-items:center}
.work-heading{justify-content:space-between;gap:20px;margin-bottom:20px}
.work-label{gap:16px;min-width:0;flex-wrap:wrap}
.work-number,.work-total{font-size:15px;color:var(--muted)}
.work-label h3{font-size:clamp(28px,2.5vw,36px);line-height:1.2}
.work-controls{gap:8px;flex-shrink:0}
.work-controls button{border:1px solid #a1b4ae;border-radius:6px;background:transparent;padding:10px 16px;min-height:44px;color:var(--petrol);font-size:15px;transition:background .2s,color .2s}
.work-controls button:hover:not(:disabled){background:var(--petrol);color:white}
.work-controls button:disabled{opacity:.35;cursor:default}
.work-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-color:#819894 #e6e3dc;scrollbar-width:thin;padding:3px 0 18px;scroll-padding-inline:0}
.work-photo.photo-open{display:block;min-width:0;width:auto;height:auto;aspect-ratio:auto;overflow:visible;scroll-snap-align:start;color:inherit;text-decoration:none;background:transparent;border:0}
.work-photo-frame{display:block;position:relative;overflow:hidden;aspect-ratio:4/5;background:#eae7e1;border:1px solid #b4c2bc;border-radius:3px}
.work-photo.photo-open img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transition:transform .35s ease}
.work-photo:hover img{transform:scale(1.025)}
.work-zoom{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:40px;height:40px;background:#204b54e8;color:white;font:26px/1 Arial;border:1px solid #bad1ce;border-radius:4px}
.work-caption{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding-top:14px;font-size:16px;line-height:1.5;color:#505b55}
.work-caption>span:first-child{color:#89928c;font-size:14px;padding-top:2px}
.work-caption>span:last-child{min-width:0;overflow-wrap:anywhere}
.form-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;opacity:0}
.cms-preview-banner{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:1000;padding:12px 24px;background:#153b42;color:white;border:1px solid #92b8ac;border-radius:8px;font:14px Arial;max-width:90vw}
@media(max-width:1100px){.details-inner,.portfolio-section{padding-block:40px}.work-rail{grid-auto-columns:calc((100% - 20px)/2)}}
@media (max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 .hero{min-height:0;padding:32px 0 230px;justify-content:flex-start}
 .hero h1{font-size:clamp(36px,9.5vw,48px);line-height:1.1}
 .hero-image{inset:auto;right:-10%;bottom:0;width:180%;max-width:none;height:auto;object-fit:contain;mask-image:linear-gradient(180deg,transparent,#000 26%)}
 .hero-shade{background:linear-gradient(180deg,#204b54 0%,#204b54f5 35%,#204b5494 55%,#204b5424 74%,transparent 90%)}
 .hero-socials{margin-top:20px}
 .details-inner,.portfolio-section{padding-block:32px}
 .contact-invitation{gap:20px}
 .contact-invitation>div{display:block}
 .contact-invitation :is(h2,p,.contact-button){grid-area:auto}
 .contact-invitation h2{margin-bottom:12px}
 .portfolio-tabs{gap:10px;margin-bottom:18px}
 .portfolio-tabs button{min-height:74px;padding:12px 8px}
 .portfolio-tab-title{font-size:clamp(18px,6vw,24px)}
 .portfolio-shell.is-tabbed .work-heading{flex-wrap:nowrap;gap:8px;margin-bottom:16px}
 .portfolio-shell.is-tabbed .work-browse-hint{font-size:12px;line-height:1.4;max-width:80px}
 .portfolio-shell.is-tabbed .work-controls{gap:6px}
 .portfolio-shell.is-tabbed .work-controls button{padding:8px 10px;font-size:14px}
 .work-heading{flex-wrap:wrap;gap:14px}
 .work-label{gap:12px}
 .work-label h3{font-size:28px}
 .work-controls{margin-left:auto}
 .work-controls button{padding:10px 12px}
 .work-rail{grid-auto-columns:86%;gap:14px}
 .work-photo-frame{aspect-ratio:4/5;max-height:390px}
 .work-group+.work-group{margin-top:28px}
}
@media(max-height:500px) and (orientation:landscape) and (max-width:1000px) and (pointer:coarse){
 .hero{padding:24px 0;min-height:calc(100svh - var(--header-height))}
 .hero h1{font-size:40px}
 .hero-image{inset:0;width:100%;height:100%;object-fit:cover;object-position:center;mask-image:none}
 .hero-shade{background:linear-gradient(90deg,#163d49d9,#163d49ad 48%,#163d4926)}
 .hero-socials{margin-top:14px}
 .work-rail{grid-auto-columns:calc((100% - 14px)/2)}
 .work-photo-frame{aspect-ratio:16/10;max-height:260px}
}
@media(prefers-reduced-motion:reduce){.work-photo img,.work-controls button,.portfolio-tabs button{transition:none}}
