/* Phone-first service chapters: keep one natural page scroll. */
.phone-label,.phone-services-nav,.phone-service-stack,.road-title-phone,.phone-windscreen{display:none}
@media(max-width:730px){
 :root{--masthead-height:62px;--phone-inset:clamp(16px,4.7vw,32px)}
 .opening-masthead .nav{width:100%;padding:.5rem max(12px,env(safe-area-inset-right)) .5rem max(12px,env(safe-area-inset-left));min-height:62px;flex-wrap:nowrap;gap:.4rem}
 .opening-masthead .nav .logo img{width:clamp(91px,30vw,148px);height:auto}
 .opening-masthead .nav-actions{gap:6px}
 .opening-masthead .nav-actions .call,.opening-masthead .nav-actions .nav-quote,.nav-menu summary{min-width:44px;min-height:44px;border-radius:7px;font-size:.87rem}
 .opening-masthead .nav-actions .call{display:grid;place-items:center;padding:0 .61rem;color:#064b64;background:#eaf6fa;border:1px solid #c8e1ec}
 .opening-masthead .nav-actions .nav-quote{padding:0 .78rem}
 .nav-menu summary{padding:0;color:#075874;background:#fff;border-color:#c8e1ec}
 .phone-label{display:inline}
 .full-phone,.quote-wide,.nav-menu .menu-label{display:none}
 .opening-masthead .nav-menu nav:not([hidden]){align-items:stretch}
 .opening-masthead .nav-menu nav a[href="#machinery"]{order:1}
 .opening-masthead .nav-menu nav a[href="#cars"]{order:2}
 .opening-masthead .nav-menu nav a[href="#window-tinting"]{order:3}
 .opening-masthead .nav-menu nav a:is([href="#work"],[href="#locations"]){order:4}
 .opening-masthead .nav-menu nav a:is([href="#services"],[href="#quote"]){display:none}
 .branch-dock{display:none}
 .opening .deans-portal{--hero-height:max(0px,calc(100svh - var(--masthead-height)));--hero-height:max(0px,calc(100dvh - var(--masthead-height)))}
 .portal-stage{grid-template-rows:1fr auto}
 .portal-inner,.portal-branch-inner{width:calc(100% - 2 * var(--phone-inset))}
 .portal-copy{padding:clamp(1.2rem,4svh,2.25rem) 0 1.05rem}
 .portal-copy>.eyebrow{font-size:.69rem;letter-spacing:.13em;margin-bottom:.78rem}
 .portal-copy h1{font-size:clamp(2.22rem,10vw,4.4rem)}
 .portal-intro>p{margin-top:.82rem;font-size:1rem;line-height:1.4}
 .portal-actions{margin-top:.92rem;gap:.36rem .52rem;width:100%}
 .portal-actions .button,.portal-phone{min-height:46px}
 .portal-actions .button{padding:.45rem .72rem;gap:.35rem;font-size:.89rem}
 .portal-phone{gap:.32rem;padding-inline:.49rem}
 .portal-phone strong{font-size:1.01rem}
 .portal-review{margin-top:.56rem;min-height:44px}
 .portal-services{display:none}
 .portal-stage>.portal-branches{position:relative;inset:auto}
 .portal-branch-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-height:0;padding:.54rem 0 0}
 .portal-branch-inner span{grid-column:1/-1}
 .portal-branch-inner a{justify-content:center;min-height:44px;gap:.26rem;font-size:clamp(.7rem,3.2vw,.95rem)}
 .portal-branch-inner a::before{width:4px;height:4px;flex:none}
 .glass-stage,.story-enhanced .glass-stage{padding-block:0;background:#f5fafc;overflow:clip}
 .glass-layout,.glass-story:not(.story-enhanced) .glass-layout{width:100%;max-width:none;display:block}
 .phone-services-nav{position:sticky;top:calc(var(--masthead-height) + 7px);z-index:4;box-shadow:0 0 0 6px #f5fafc;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:7px var(--phone-inset) 5px;padding:3px;border:1px solid #c3dce7;border-radius:9px;background:#e6f1f6}
 .phone-services-nav a{display:grid;place-items:center;text-decoration:none;min-height:44px;border:1px solid transparent;border-radius:6px;color:#0c4058;font-size:.88rem;font-weight:750}
 .phone-services-nav a:first-child,.phone-services-nav a[aria-selected=true]{background:white;border-color:#acd1dd}
 .phone-services-nav:has(a[aria-selected=true]) a:first-child:not([aria-selected=true]){background:transparent;border-color:transparent}
 .story-enhanced .phone-service-stack{display:block;overflow-anchor:none}
 .story-enhanced .glass-copy,.story-enhanced .glass-visual{display:none}
 .phone-service-stack .glass-beat{width:100%;min-height:min(610px,calc(100svh - var(--masthead-height) - 63px));display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:1.45rem var(--phone-inset);border-bottom:1px solid #c8dee7;animation:none;will-change:auto}
 .phone-service-stack .glass-beat[hidden]{display:none}
 .phone-service-stack .plant-beat{background:#edf6fa}
 .phone-service-stack .road-beat{background:#f9fcfe}
 .phone-service-stack .tint-beat{background:#eaf4f8}
 .phone-service-stack .glass-beat h2{font-size:clamp(2.05rem,8.3vw,3.4rem);letter-spacing:-.053em}
 .phone-service-stack .glass-beat h2 br,.road-title-wide{display:none}
 .road-title-phone{display:inline}
 .phone-service-stack .glass-beat .eyebrow{margin-bottom:.45rem;letter-spacing:.08em;font-size:.72rem}
 .phone-service-stack .glass-beat p:not(.eyebrow){margin:.56rem 0 .68rem;font-size:1rem;line-height:1.42;max-width:46ch}
 .phone-service-stack .machinery-categories{width:100%;margin:.12rem 0 .52rem}
 .phone-service-stack .machinery-categories>div{padding-block:.24rem}
 .phone-service-stack .machinery-categories dt,.phone-service-stack .machinery-categories dd{font-size:.82rem}
 .phone-service-stack .windscreen-services{margin-block:0 .5rem}
 .phone-service-stack .windscreen-services li{font-size:.9rem}
 .phone-service-stack .glass-beat>.diagram{width:100%;max-width:580px;margin:.42rem 0 .72rem;animation:none;will-change:auto}
 .diagram-road>:is(.windscreen-stage,figcaption,.product-details){display:none}
 .phone-windscreen{display:block;padding:.6rem .45rem .48rem;border:1px solid #c4dce6;border-radius:9px;background:#edf7fb}
 .phone-windscreen-diagram{position:relative;isolation:isolate}
 .phone-windscreen-diagram img{width:100%;height:auto}
 .phone-windscreen-diagram .phone-glass-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
 .phone-glass-line{stroke:#135d78;stroke-width:2.5;fill:none}
 .phone-glass-dot{fill:#f8fdff;stroke:#135d78;stroke-width:2.5}
 .phone-glass-label{position:absolute;white-space:nowrap;background:#f8fdff;border:1px solid #a6c9d8;color:#093d56;border-radius:4px;padding:.1rem .3rem;font-size:clamp(.69rem,2.8vw,.95rem);font-weight:750;line-height:1.22;transform:translateY(-50%)}
 .phone-adas{left:1%;top:10.75%}
 .phone-antenna{right:1%;top:10.75%}
 .phone-hud{right:1%;top:89.5%}
 .phone-hud-readout{position:absolute;top:54%;right:23%;color:#ecfffa;text-shadow:0 1px 3px #143c42;font-size:clamp(.8rem,3.3vw,1.2rem);font-weight:800}
 .phone-hud-readout small{font-size:.62em}
 .diagram-road .phone-windscreen .phone-glass-note{margin:.2rem .2rem 0;color:#38596a;font-size:.76rem;line-height:1.3}
 .phone-service-stack :is(.diagram-plant,.diagram-tint) .feature-slide{aspect-ratio:auto;height:clamp(132px,23svh,234px)}
 .phone-service-stack .feature-foot{padding-top:.44rem}
 .phone-service-stack .feature-controls button{min-width:44px;min-height:44px}
 .phone-service-stack .shade-picker{width:100%;margin-bottom:.22rem}
 .phone-service-stack .glass-beat>.button.primary{min-height:46px;border-radius:7px}
 .phone-service-stack .diagram-road>.product-details{margin-top:.4rem}
 .story-enhanced + #services{display:none}
 #work .wrap,#locations,#quote .wrap{width:calc(100% - 2 * var(--phone-inset))}
 #work .section-head{margin-bottom:.9rem}
 #work .work-gallery{--work-height:clamp(230px,47svh,420px)}
 #work .feature-track{overscroll-behavior-x:contain}
 #work .feature-controls button{min-width:44px;min-height:44px}
 #quote .quote-grid{grid-template-columns:minmax(0,1fr);gap:1rem}
 #quote .quote-grid>div>.steps,#quote .quote-grid>div>.button{display:none}
 #quote .quote-lede{margin-top:.6rem;font-size:1rem}
 #quote .fields{grid-template-columns:minmax(0,1fr);gap:.78rem}
 #quote-form .fields :is(input,select,textarea){min-height:48px;font-size:1rem}
 #quote-form .button{width:100%;min-height:48px}

 .branch-map-shell .wa-map .map-pin[data-location]{
  width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;
  border:0;background:transparent;box-shadow:none;transform:translate(-50%,-50%);
  color:#e9f7fd;gap:0;overflow:visible;z-index:1;
 }
 .branch-map-shell .wa-map .map-pin[data-location]::before{
  width:9px;height:9px;background:#55dcfb;border:1px solid #b5f3ff;box-shadow:0 0 0 2px #082032;
 }
 .branch-map-shell .wa-map .map-pin[data-location][aria-pressed=true]::before{
  background:#fff;box-shadow:0 0 0 3px #37c4e7a8;
 }
 .branch-map-shell .wa-map .map-pin[data-location]:focus-visible{outline-color:#96eaff;outline-offset:-6px}
 .map-pin-name{
  position:absolute;top:50%;left:calc(50% + 9px);transform:translateY(-50%);white-space:nowrap;
  font-size:.75rem;line-height:1.25;font-weight:750;padding:.19rem .29rem;border-radius:4px;background:#08263bd9;
 }
 .map-pin:is(.karratha,.perth) .map-pin-name{left:auto;right:calc(50% + 9px)}
 .map-pin[aria-pressed=true] .map-pin-name{background:#77e4f7;color:#082534}
 /* Fit the map and the selected branch contact together on a phone. */
 #locations{padding-block:.9rem 1rem}
 #locations .section-head{margin-bottom:.55rem}
 #locations .section-head>p{display:none}
 #locations .section-head .eyebrow{margin-bottom:.35rem}
 #locations h2{font-size:clamp(1.55rem,6vw,2.35rem)}
 .branch-map-shell .wa-map{width:min(100%,calc(clamp(150px,100svh - var(--masthead-height) - 255px,310px)*570/440))}
 .branch-preview>.branch-storefront,.branch-contact-actions>#branch-quote{display:none}
 .branch-contact{padding:.6rem .72rem}
 .branch-contact-actions .button{min-height:44px}
 .branch-identity h3{font-size:1.25rem}
 .branch-identity p{font-size:.83rem;margin:.18rem 0 .35rem}
 /* Full-bleed mobile hero: text in the sky, actions toward the foot. */
 .portal-stage{grid-template-rows:auto auto minmax(clamp(115px,23dvh,200px),1fr) auto auto auto;align-items:stretch;background:#0b2032}
 .portal-stage .portal-inner,.portal-stage .portal-copy{display:contents}
 .portal-stage .portal-vignette{display:block;background:linear-gradient(180deg,#071a2d67 0%,#071a2d36 36%,transparent 68%,#081a2b61 83%,#081a2b 100%),linear-gradient(90deg,#06152275,transparent 84%)}
 .portal-stage .portal-copy>.eyebrow,.portal-stage .portal-lines,.portal-stage .portal-actions,.portal-stage .portal-review{margin-inline:var(--phone-inset);z-index:2}
 .portal-stage .portal-copy>.eyebrow{grid-row:1;margin-top:clamp(1.15rem,6dvh,3.25rem);margin-bottom:.52rem}
 .portal-stage .portal-lines{grid-row:2;margin-bottom:.85rem}
 .portal-stage .portal-intro>p{margin-top:.64rem}
 .portal-stage .portal-art{position:absolute;inset:0 0 clamp(32px,8dvh,64px);background:transparent;mask-image:linear-gradient(#000 0% 81%,transparent 100%)}
 .portal-stage .portal-art .portal-photo img{object-fit:cover;object-position:78% 65%;filter:saturate(.95)}
 .portal-stage .portal-actions{grid-row:4;width:auto;order:0;margin-top:.7rem}
 .portal-stage .portal-review{grid-row:5;order:0;margin-top:.52rem;margin-bottom:.68rem;justify-self:start}
 .portal-stage>.portal-branches{grid-row:6}
}
@media(max-width:730px) and (max-height:660px){
 .portal-stage .portal-art .portal-photo img{object-position:76% 70%}
 .portal-stage .portal-copy>.eyebrow{margin-top:.8rem}
 .portal-stage .portal-lines{margin-bottom:.58rem}
}

/* Keep office hours and a tap-to-call link visible before the quote form. */
.quote-hours{margin-top:.9rem;padding:.72rem .85rem;border:1px solid #5889a6;border-radius:8px;background:#0d2c43;color:#f4fbff}
.quote-hours strong{font-size:.92rem;line-height:1.3;display:block}
.quote-hours p{margin:.32rem 0 0;font-size:.88rem;line-height:1.4;color:#d4eaf5}
.quote-hours a{color:#9aebff;white-space:nowrap;font-weight:760}
@media(max-width:730px){
 .quote-hours{margin-top:.66rem}
}
@media(max-width:365px){
 .portal-stage .portal-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:.4rem}
 .portal-stage .portal-actions>.button{font-size:.8rem;padding:.36rem .28rem}
 .portal-stage .portal-actions>.button svg{display:none}
 .portal-stage .portal-phone{justify-content:center;padding-inline:.28rem;gap:.25rem}
 .portal-stage .portal-phone svg{width:13px;height:13px}
 .portal-stage .portal-phone strong{font-size:.89rem}
 .portal-stage .portal-copy>.eyebrow{font-size:.64rem}
}
