/* One content rhythm from phone to ultrawide; prose keeps its own readable measure. */
:root{--layout-max:1420px}
.container{max-width:var(--layout-max)}
body[data-page=home] .service-paths,.flow-section.container{max-width:var(--layout-max)}
.document-main.container{max-width:960px}
.not-found-main.container{max-width:960px}
.intake-intro.container,.intake-layout.container{max-width:1420px}
.portal-container{max-width:min(var(--layout-max),1600px)}
.mobile-nav{max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}
.service-path h3,#an-living-plan .lp-module h3{hyphens:auto;overflow-wrap:anywhere}
.oak-workshop h3{hyphens:auto;overflow-wrap:anywhere}
#an-living-plan .lp-module header p{overflow-wrap:anywhere}
.flow-client{grid-template-columns:minmax(0,1fr);justify-items:center}
.flow-client .flow-view-title{justify-self:start}
.flow-phone{width:280px;max-width:100%}

@media(min-width:1600px){
  :root{--layout-max:1600px}
  .hero-trust{column-gap:72px;padding-block:72px 66px;row-gap:44px}
  .hero-trust h1{font-size:clamp(88px,calc(3.125vw + 38px),108px)}
  .hero-owner{width:100%;max-width:540px;justify-self:end}
  .hero-trust .hero-lead{max-width:780px}
  .project-presentation{gap:88px}
  .project-story{max-width:550px;justify-self:end}
  .client-portal-copy{max-width:580px}
  .client-portal-copy .section-lead{max-width:480px}
  .portal-preview{width:100%;max-width:1000px;justify-self:end;padding:26px}
  .portal-preview-top>p{font-size:22px}
  .portal-preview-tabs,.portal-preview-state,.portal-preview-bottom{font-size:13px}
  .portal-comments-title{font-size:14px}
  .portal-comment{font-size:13px}
  .portal-preview-content{gap:26px}
  .portal-preview-comments{padding-left:24px}
  .scope-benefits{gap:42px}
  .scope-benefits li+li{padding-left:42px}
  .lp-process-track ol{gap:56px}
  .flow-client{grid-template-columns:minmax(180px,1fr) 280px;gap:24px}
  .flow-view-title{font-size:25px}
  .about-portrait{max-width:480px}
  #an-living-plan .lp-scene{height:580px}
  #an-living-plan .lp-core{top:100px;width:47%}
  #an-living-plan .lp-module{padding:26px 22px 22px}
  #an-living-plan .lp-booking{left:38%;top:18px}
  #an-living-plan .lp-forms,#an-living-plan .lp-tools{top:170px}
  #an-living-plan .lp-module header{padding-right:26px}
  #an-living-plan .lp-mini-hero,#an-living-plan .lp-art{min-height:180px}
  #an-living-plan .lp-mini-copy h4{font-size:40px}
  #an-living-plan .lp-module p{font-size:16px}
  #an-living-plan .lp-add{min-height:44px;font-size:15px}
  #an-living-plan .lp-optional{font-size:12px}
}
@media(min-width:1920px){
  :root{--layout-max:clamp(1600px,calc(31.25vw + 1000px),1920px)}
  .hero-trust{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);column-gap:100px}
  .hero-owner{max-width:580px}
  .hero-trust .hero-lead{max-width:800px}
  .hero-assurances li{padding-right:50px}
  .hero-assurances li+li{padding-left:56px}
  .project-presentation{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:104px;padding-block:72px 82px}
  .project-story dl,.project-lead{max-width:500px}
  .client-portal-layout{gap:110px}
  .client-portal-copy h2{font-size:68px;max-width:600px}
  .lp-process-intro{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:100px}
  .contact-layout{gap:130px}
  .about-portrait{max-width:520px}
}

/* Tablets get a real two-column canvas, with full-size labels and drag handles. */
@media(min-width:561px) and (max-width:1050px){
  #an-living-plan{padding-inline:0}
  #an-living-plan .lp-scene{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px;height:auto;padding:16px}
  #an-living-plan .lp-core,#an-living-plan .lp-module{position:relative;inset:auto;width:100%;max-width:none;margin:0;transform:none;align-self:start}
  #an-living-plan .lp-core{grid-column:1/-1}
  #an-living-plan .lp-module{padding:20px}
  #an-living-plan .lp-module header{display:block;padding-right:28px}
  #an-living-plan .lp-module-icon{margin-bottom:12px}
  #an-living-plan .lp-module h3{font-size:22px}
  #an-living-plan .lp-module p{font-size:14px}
  #an-living-plan .lp-module footer{gap:12px}
  #an-living-plan .lp-grab{width:44px;height:44px}
  #an-living-plan .lp-add{min-height:44px}
  #an-living-plan .lp-mini-copy h4{font-size:32px}
  #an-living-plan .lp-art,#an-living-plan .lp-mini-hero{min-height:160px;height:auto}
}
@media(max-width:720px){.flow-phone{width:100%;max-width:346px}}

/* Short windows retain an accessible action and a scrollable navigation menu. */
@media(max-width:1050px) and (max-height:500px){
  .hero-trust{padding-block:28px;column-gap:28px;row-gap:24px}
  .hero-trust h1{font-size:clamp(32px,4.8vw,46px)}
  .hero-trust .eyebrow{margin-bottom:14px}
  .hero-trust .hero-lead{font-size:17px;margin-top:16px}
  .hero-trust .hero-actions{margin-top:18px}
  .mobile-nav{max-height:calc(100dvh - 170px)}
  body[data-page=home]{padding-bottom:var(--sticky-contact-space,88px);scroll-padding-bottom:var(--sticky-contact-space,88px)}
  .mobile-contact-cta{display:flex;position:fixed;inset:auto 0 0;z-index:8;align-items:center;justify-content:center;padding:8px var(--gutter) calc(8px + env(safe-area-inset-bottom,0px));background:var(--ivory);border-top:1px solid var(--line)}
  .mobile-contact-cta .button{width:100%;min-height:44px;padding:10px 18px;font-size:15px;gap:14px}
  .project-preview{transform:none}
}
@media print{.mobile-contact-cta{display:none}body[data-page=home]{padding-bottom:0}}
