/* Shared phone and tablet layout; desktop identity stays unchanged. */
:root{--header-height:92px}
.nav-phone{display:inline-flex;align-items:center;gap:8px}
.phone-icon{flex-shrink:0}
.ui-arrow{display:inline-block;width:20px;height:20px;flex-shrink:0;vertical-align:middle;background:none;color:inherit}
.estimate-intro .estimate-note{display:block}
.brand img,.brand:hover img{filter:brightness(0) invert(1);transform:none;transition:none}
html{scroll-padding-top:calc(var(--header-height) + env(safe-area-inset-top) + 16px)}
section{scroll-margin-top:16px}
.wrap,.section-head>*,.hero-copy,.service,.project,.review-card,.calculator,.contact-form,.about-copy,.contact-copy,.project-lead>*,.project-context>*,.project-facts>div,.footer-main>div{min-width:0}
input,select,textarea{max-width:100%}
:where(h1,h2,h3){overflow-wrap:anywhere}
.button,.contact-phone,.project-title h3,.footer-main a,.breadcrumb,.project-facts dd,.request-contact a{overflow-wrap:anywhere}
.button{max-width:100%;white-space:normal}
.button>span,.round-link,.project-open{flex-shrink:0}
.project-type{max-width:calc(100% - 36px)}
.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.project:nth-child(2){align-self:stretch}
.project-image,.project-feature .project-image,.related-grid .project-image{height:auto;aspect-ratio:4/3}
.project-image img{width:100%;height:100%;object-fit:cover}
.project-cover-label{max-width:calc(100% - 100px)}
.contact-form .form-fields>input,.contact-form textarea,.calculator select{min-height:48px;font-size:1rem}
.gallery-dialog{height:100dvh;overscroll-behavior:contain}
.lightbox-top{padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.lightbox-title{min-width:0;overflow-wrap:anywhere}
.lightbox-stage{padding:.5rem max(16px,env(safe-area-inset-right)) .5rem max(16px,env(safe-area-inset-left))}
.lightbox-bottom{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:16px;width:min(100%,720px);margin-inline:auto;min-height:80px;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.lightbox-bottom .lightbox-control{position:static;width:48px;height:48px}
.lightbox-error{overflow-wrap:anywhere;font-size:1rem}

@media(max-width:1100px){
  :root{--header-height:84px}
  .wrap{width:calc(100% - max(24px,env(safe-area-inset-left)) - max(24px,env(safe-area-inset-right)))}
  header:not(.inbox-header){height:calc(var(--header-height) + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .nav{gap:20px}
  .nav .brand{width:190px;height:80px}
  .nav-phone{font-size:1rem;margin-left:auto;min-height:48px;display:flex;align-items:center}
  .menu-toggle{display:grid;align-content:center;justify-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #9dbad74d;border-radius:4px}
  .menu-toggle span{width:24px;margin:4px 0;transition:transform .2s}
  .menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(4.5px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-4.5px) rotate(-45deg)}
  .nav #navigation{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:12px 24px 20px;background:#061631;border-top:1px solid #9dbad733;box-shadow:0 16px 28px #0105164d;max-height:calc(100dvh - var(--header-height) - env(safe-area-inset-top));overflow-y:auto;overscroll-behavior:contain}
  .nav #navigation.open{display:flex}
  .nav #navigation a{font-size:1.125rem;line-height:1.5;padding:13px 12px;min-height:48px;border-bottom:1px solid #9dbad71a}
  .nav #navigation a:last-child{border-bottom:0}
  .hero{min-height:640px}
  .hero-copy{width:51%;padding:44px 26px 40px 0}
  .hero-image{left:51%;width:49%;clip-path:none}
  .hero-copy h1{font-size:clamp(2.5rem,4.8vw,3.5rem);line-height:1.12;letter-spacing:-.035em}
  .hero-description{font-size:1rem}
  .hero-description br{display:initial}
  .hero-actions .button,.hero-secondary{font-size:.875rem;min-height:48px}
  .hero-secondary{display:inline-flex;align-items:center}
  .hero-bottom{flex-wrap:wrap;gap:18px;width:100%}
  .hero-bottom>div>span{font-size:.875rem}
  .hero-bottom strong{font-size:1.75rem}
  .hero-bottom small{font-size:.875rem}
  .hero-mini{margin:0}
  .image-label{font-size:.875rem;max-width:calc(100% - 32px);right:16px;bottom:20px}
  .scroll-cue{display:none}
  .section,.projects-section,.process-section,.reviews-section{padding-block:72px}
  .section-head{gap:28px;align-items:start}
  .section-head h2{font-size:clamp(2rem,4vw,3rem)}
  .section-description{font-size:1rem;max-width:330px}
  .services-grid,.reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .services-grid>.service:last-child,.reviews-grid>.review-card:last-child{grid-column:1 / -1}
  .service{padding:28px}
  .service h3{font-size:1.75rem}
  .service>p{font-size:1rem;min-height:0}
  .service ul{font-size:1rem;line-height:1.7}
  .service li+li{margin-top:10px}
  .service-top{gap:16px;flex-wrap:wrap;margin-bottom:24px}
  .service-tag{display:block;font-size:.75rem}
  .service-bottom{flex-wrap:wrap;gap:16px}
  .service-bottom p{white-space:normal;font-size:.875rem}
  .service-bottom strong{font-size:1.75rem}
  .round-link{width:48px;height:48px;margin-left:auto}
  .section-note{font-size:.875rem}
  .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}
  .project-image,.project-feature .project-image,.related-grid .project-image{height:auto;aspect-ratio:4/3}
  .project-title{align-items:start;flex-wrap:wrap;gap:8px 16px}
  .project-title h3{font-size:1.375rem;line-height:1.35}
  .project-metrics{gap:8px 16px;font-size:.875rem}
  .project-type{font-size:.8125rem}
  .project-open{width:48px;height:48px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px;margin-top:40px}
  .steps h3{font-size:1.375rem}
  .steps p{font-size:1rem;max-width:none}
  .review-card,.review-card-accent{min-height:0;transform:none;padding:28px}
  .review-card blockquote{font-size:1rem;line-height:1.8}
  .review-author{margin-top:28px;display:flex;flex-wrap:wrap;gap:8px 16px}
  .review-author span{font-size:.875rem;text-align:left}
  .review-author strong{font-size:1rem}
  .reviews-note{font-size:.875rem;margin-top:28px}
  .scope-section{gap:36px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .estimate-section,.contacts-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:32px}
  .calc-grid{grid-template-columns:1fr;gap:0}
  .calc-extras>div{grid-template-columns:1fr}
  .estimate-intro h2{font-size:clamp(2.25rem,4.5vw,3.5rem)}
  .contact-copy h2{font-size:clamp(2.25rem,4.5vw,3.5rem)}
  .contact-phone{font-size:clamp(1.25rem,2.6vw,1.875rem);min-height:48px}
  .contact-links{flex-wrap:wrap}
  .contact-links a{min-height:48px;font-size:1rem}
  .about-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
  .about-facts{gap:24px;flex-wrap:wrap}
  .about-copy h2{font-size:2rem}
  .about-benefit p{font-size:1rem}
  .footer-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
  .footer-main .brand{width:190px;height:80px;grid-column:1 / -1}
  .footer-main>div{max-width:none}
  .footer-main p,.footer-main>div>a{font-size:1rem}
  .footer-main>div>span{font-size:.875rem}
  .footer-bottom{flex-direction:column;gap:16px;font-size:.875rem}
  .footer-legal{gap:4px 24px}
  .footer-legal a{display:flex;align-items:center;min-height:44px}
  .back-top{display:none}
  .project-lead{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:28px}
  .project-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr)}
  .project-facts>div{padding-inline:18px}
  .project-facts dd{font-size:clamp(1.5rem,2.6vw,2rem)}
  .project-context .cost-note{font-size:.875rem}
  .document-layout{grid-template-columns:190px minmax(0,1fr);gap:28px}
  .document-nav{top:calc(var(--header-height) + 20px)}
}

@media(max-width:900px){
  .hero{display:flex;flex-direction:column;min-height:0}
  .hero-content{order:0}
  .hero-copy{width:100%;max-width:680px;padding:40px 0 32px}
  .hero-copy h1{font-size:clamp(2.75rem,7vw,4.25rem)}
  .hero-description{margin:24px 0}
  .hero-bottom{display:flex;justify-content:flex-start;gap:32px;max-width:640px;margin-top:28px}
  .hero-image{position:relative;left:auto;width:100%;height:auto;aspect-ratio:16/9;max-height:520px;order:1}
  .hero-image img{position:absolute;inset:0;object-position:50% 55%}
  .hero-orbit{right:-12%;top:4%;width:65vw}
  .section-head{flex-direction:column;gap:20px}
  .section-description{max-width:680px;margin-top:0}
  .scope-section,.estimate-section,.contacts-grid,.about-section{grid-template-columns:minmax(0,1fr);gap:32px}
  .estimate-intro{max-width:680px}
  .estimate-intro h2{font-size:clamp(2.25rem,5.5vw,3.25rem)}
  .estimate-intro h2 br{display:none}
  .estimate-intro h2 em{display:inline}
  .estimate-intro>p:not(.eyebrow){max-width:680px;margin-top:20px}
  .estimate-note{display:flex;margin-top:24px;padding-top:20px}
  .calc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .calc-extras>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calculator,.contact-form{padding:32px}
  .about-image{height:auto;aspect-ratio:16/10;max-height:520px}
  .about-copy h2{font-size:clamp(2rem,5vw,2.75rem)}
  .contact-copy h2{font-size:clamp(2.25rem,6vw,3.5rem)}
  .contact-copy h2 br{display:initial}
  .contact-phone{font-size:1.875rem}
  .contact-copy>p:not(.eyebrow){font-size:1rem}
  .project-lead{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:12px 32px}
  .project-lead-copy{padding:0;max-width:680px}
  .project-lead h1{font-size:clamp(2.25rem,5.5vw,3.5rem)}
  .project-cover{min-height:0;aspect-ratio:16/10}
  .project-context{grid-template-columns:minmax(0,1fr);gap:16px}
  .archive-heading{display:block}
  .archive-heading>p{max-width:680px;margin-top:24px}
  .document-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .document-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:20px;border-bottom:1px solid var(--line)}
  .document-nav a{min-height:48px;overflow-wrap:anywhere}
  .photo-heading,.related-heading{align-items:start;flex-wrap:wrap}
  .project-contact .wrap{align-items:start;flex-direction:column}
  .inbox-title{align-items:start;flex-wrap:wrap}
}

@media(max-width:600px){
  :root{--header-height:76px}
  .wrap{width:calc(100% - max(18px,env(safe-area-inset-left)) - max(18px,env(safe-area-inset-right)))}
  .nav{gap:12px}
  .nav .brand{width:160px;height:72px}
  .nav-phone{font-size:.875rem}
  .nav #navigation{padding:8px 18px max(18px,env(safe-area-inset-bottom))}
  .hero-copy{padding:28px 0}
  .hero .eyebrow{font-size:.75rem;letter-spacing:.1em}
  .hero-copy h1{font-size:clamp(2.125rem,9.8vw,3.625rem);line-height:1.13;margin-top:20px}
  .hero-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%}
  .hero-actions .button{font-size:1rem;min-height:54px;padding:14px 18px}
  .hero-secondary{font-size:.875rem;justify-self:start;padding:8px 0;min-height:48px}
  .hero-bottom{gap:18px;margin-top:20px;align-items:start}
  .hero-bottom strong{font-size:1.625rem}
  .hero-bottom>div>span{font-size:.8125rem}
  .hero-mini{font-size:.875rem;max-width:100%}
  .hero-image{aspect-ratio:4/3}
  .image-label{font-size:.75rem;padding:10px 12px}
  .promises{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;font-size:.875rem}
  .promises>div{border:0;padding:0;align-items:start;gap:8px}
  .promise-icon{font-size:1rem;flex:none}
  .section,.projects-section,.process-section,.reviews-section,.contacts-section{padding-block:52px}
  .section-head{margin-bottom:28px}
  h2,.section-head h2,.scope-heading h2,.about-copy h2{font-size:clamp(1.75rem,7.8vw,2.5rem);line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
  .section-label{font-size:.75rem;margin-bottom:16px}
  .services-grid,.reviews-grid,.projects-grid,.related-grid,.steps{grid-template-columns:minmax(0,1fr);gap:24px}
  .services-grid>.service:last-child,.reviews-grid>.review-card:last-child{grid-column:auto}
  .service,.review-card,.review-card-accent{padding:24px}
  .service h3{font-size:1.75rem}
  .service h3 br{display:initial}
  .service-bottom strong{font-size:1.625rem}
  .project-title>span{display:none}
  .project-type{top:12px;left:12px;font-size:.75rem;max-width:calc(100% - 24px)}
  .project-metrics,.inner-page .project-metrics{font-size:.875rem;gap:8px 12px}
  .project-image,.project-feature .project-image,.related-grid .project-image{aspect-ratio:4/3;height:auto}
  .project-open{bottom:12px;right:12px}
  .scope-section{padding-bottom:0;gap:24px}
  .scope-details summary{padding-block:18px;gap:16px;min-height:56px}
  .scope-details details>div{padding-right:0}
  .calculator,.contact-form{padding:22px 18px}
  .calc-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .calc-extras>div{grid-template-columns:minmax(0,1fr)}
  .calc-extras label{font-size:1rem;min-height:48px}
  .calc-extras input,.consent input{width:22px;height:22px}
  .area-heading{gap:16px;flex-wrap:wrap;align-items:center}
  .area-heading .field-label{margin:0;flex:1 1 130px}
  .area-number{flex:0 0 auto}
  .area-number input{min-height:48px;width:108px;font-size:1.25rem}
  .calculator input[type=range]{min-height:40px;margin-block:10px 0}
  .estimate-result output{font-size:clamp(1.75rem,8.3vw,2.75rem);line-height:1.35}
  .calculator .button{font-size:1rem;min-height:54px;padding:14px 16px;gap:16px}
  .estimate-note{font-size:.875rem}
  .review-author{display:block}
  .review-author span{display:block;margin-top:6px}
  .about-image{aspect-ratio:4/3}
  .about-image-label{font-size:1.5rem;left:20px;bottom:24px}
  .about-facts{gap:24px;justify-content:space-between}
  .about-facts strong{font-size:2.25rem}
  .contact-copy h2{font-size:clamp(2rem,8.5vw,2.875rem);line-height:1.18}
  .contact-phone{font-size:clamp(1.375rem,6.8vw,1.875rem);margin-top:24px}
  .contact-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .contact-links a{gap:12px;padding:12px;font-size:.875rem}
  .contact-form h3{font-size:1.5rem;line-height:1.35}
  .contact-form textarea{min-height:120px;resize:vertical}
  .consent{gap:12px}
  .contact-form .button{font-size:1rem;gap:16px;padding-inline:16px}
  .attached-estimate{padding:16px;margin-block:20px}
  .attached-estimate p{overflow-wrap:anywhere}
  .attached-estimate button,.new-request{min-height:48px}
  .footer-main{grid-template-columns:minmax(0,1fr);gap:24px}
  .footer-main .brand{width:180px;height:76px}
  .footer-main>div:nth-of-type(2){grid-row:auto;grid-column:auto}
  .footer-main p,.footer-main>div>a{font-size:1rem}
  .footer-legal{flex-direction:column;gap:4px}
  .project-lead h1{font-size:clamp(2rem,9vw,2.875rem);line-height:1.16}
  .breadcrumb{font-size:.875rem;line-height:1.6}
  .breadcrumb a{padding-block:8px}
  .project-cover{aspect-ratio:4/3}
  .project-cover-label{left:12px;bottom:12px;font-size:.75rem;padding:8px;max-width:calc(100% - 84px)}
  .project-cover .image-zoom{right:12px;bottom:12px}
  .project-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-block:24px}
  .project-facts>div{padding:0;border:0}
  .project-facts>div:last-child{grid-column:1 / -1;border-top:1px solid var(--line);padding-top:18px}
  .project-facts dd{font-size:1.75rem}
  .photo-section,.related-section,.project-contact{padding-block:40px}
  .photo-heading,.related-heading{flex-direction:column;gap:12px}
  .gallery-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .gallery-item.gallery-wide{grid-column:auto}
  .gallery-item .image-zoom{width:48px;height:48px}
  .photo-index{font-size:.8125rem}
  .project-contact .button{width:100%;font-size:1rem;gap:16px}
  .archive-heading h1{font-size:clamp(2.25rem,9.8vw,3.25rem);line-height:1.13}
  .archive-projects{padding-block:36px 44px}
  .document-intro h1{font-size:clamp(1.75rem,7.7vw,2.5rem);overflow-wrap:anywhere}
  .document-layout{padding-block:28px 44px}
  .document-nav{grid-template-columns:minmax(0,1fr);gap:4px}
  .document-copy h2{font-size:1.25rem;overflow-wrap:anywhere}
  .document-copy ul,.document-copy ol{padding-left:20px}
  .document-notice{padding:16px}
  .inbox-header{height:auto}
  .inbox-header .brand{width:150px;height:76px}
  .inbox-header>.wrap{flex-wrap:wrap;gap:0 16px;padding-bottom:12px}
  .inbox-header>.wrap>a:last-child{min-height:44px;display:flex;align-items:center}
  .request-card{padding:20px 16px}
  .request-contact{flex-direction:column;align-items:start}
  .request-contact a{font-size:1.125rem;white-space:normal;min-height:44px}
  .request-estimate{padding:16px}
  .request-estimate summary{min-height:48px}
  .inbox-title .button,#load-more{width:100%;font-size:1rem}
}

@media(max-width:440px){
  .nav-phone{display:none}
  .menu-toggle{margin-left:auto}
  .nav .brand{width:176px}
  .hero-mini br{display:initial}
  .hero-bottom{flex-direction:column}
  .hero-bottom strong{font-size:1.75rem}
}
@media(max-width:700px){.nav-phone{display:none}.menu-toggle{margin-left:auto}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1100px){
  :root{--header-height:64px}
  .nav .brand{height:60px;width:154px}
  .lightbox-top{padding-block:4px}
  .lightbox-bottom{min-height:60px;padding-block:4px max(4px,env(safe-area-inset-bottom))}
}
@media(hover:none),(pointer:coarse){
  .service:hover,.project:hover,.review-card:hover,.review-card-accent:hover,.calculator:focus-within,.contact-form:focus-within,.button:hover{transform:none;box-shadow:none}
  .project{will-change:auto;transform-style:flat}
  .project-image:hover{clip-path:none;box-shadow:none}
  .project-image:hover img,.project-cover:hover img,.gallery-item:hover img,.brand:hover img{transform:none}
  .project-image:hover .project-open,.gallery-item:hover .image-zoom{transform:none}
  .hero-grid,.hero-orbit span,.hero-copy h1 em{animation:none!important}
  .hero-image:before{display:none}
  .hero-image img{animation:none!important;transform:none}
  .button:after{display:none}
}
@media print{.mobile-actions{display:none!important}body{padding-bottom:0!important}}

/* A single object selector fills the calculator row. */
.calculator .calc-grid{grid-template-columns:minmax(0,1fr)}
