/* Shared reflow corrections; keep content visible instead of clipping overflow. */
.counterform main,.counterform main section,.counterform main article,.counterform main figure,.counterform .foot-top>*,.counterform .foot-sub>*,.counterform .form-grid>*,.counterform .contact-layout>*,.counterform .scale-spread>*,.counterform .scale-overview>*,.counterform .scale-motion>*,.counterform .scale-close>*,.counterform .scale-home-head>*{min-width:0}
.counterform main,.counterform .site-foot{overflow-wrap:anywhere}
.counterform img,.counterform video,.counterform iframe{max-width:100%}
.counterform .btn,.counterform .cf-button{max-width:100%;white-space:normal;text-align:left}
.counterform .cf-button>span{flex-shrink:0}
.counterform .hero-cta{flex-wrap:wrap}
.counterform input,.counterform select,.counterform textarea{max-width:100%;min-width:0}
.counterform .foot-sub form{min-width:0;flex-wrap:wrap}
.counterform .foot-sub input[type=email]{min-width:0;flex:1 1 180px}
.counterform .foot-sub button{white-space:normal}
.counterform .class-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.counterform .cf-offer-hero h1{white-space:normal;font-size:clamp(34px,6.1vw,104px)}
@media(min-width:851px) and (max-width:1150px){.counterform .foot-top{grid-template-columns:repeat(2,minmax(0,1fr))}.counterform .foot-sub{grid-template-columns:minmax(0,1fr)}.counterform .contact-layout{grid-template-columns:minmax(0,1fr)}.counterform .scale-index{grid-template-columns:repeat(3,minmax(0,1fr))}.counterform .scale-index a{border-bottom:1px solid var(--ink)}}
@media(max-width:850px){
 .counterform .cf-rail .nav-menu{max-height:calc(100dvh - 83px);overflow-y:auto;overscroll-behavior:contain}
 .counterform .nav-toggle{width:44px;height:44px;flex-shrink:0}
 .counterform .contact-layout{grid-template-columns:minmax(0,1fr)}
 .counterform .scale-spread,.counterform .scale-overview,.counterform .scale-motion{grid-template-columns:minmax(0,1fr)}
 .counterform .scale-explanation{max-width:75ch}
 .counterform .scale-table-scroll table{min-width:0}
 .counterform .scale-table-scroll thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .counterform .scale-table-scroll table,.counterform .scale-table-scroll tbody,.counterform .scale-table-scroll tr{display:block;width:100%}
 .counterform .scale-table-scroll tr{border:1px solid var(--ink);margin-bottom:16px}
 .counterform .scale-table-scroll tbody th{display:block;background:var(--ink);color:var(--bg);padding:14px 16px}
 .counterform .scale-table-scroll td{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:12px 16px}
 .counterform .scale-table-scroll td::before{content:attr(data-label);font:600 14px/1.5 'Barlow Condensed',sans-serif;text-transform:uppercase}
 .counterform .scale-table-scroll td:last-child{border-bottom:0}
 .counterform .scale-table-scroll caption{display:block}
}
@media(max-width:600px){
 .counterform .gates,.counterform .gates--four,.counterform .cm-pipe,.counterform .form-grid{grid-template-columns:minmax(0,1fr)}
 .counterform .foot-top,.counterform .foot-sub{grid-template-columns:minmax(0,1fr)}
 .counterform .foot-sub form{display:flex;flex-direction:column;align-items:stretch;width:100%}
 .counterform .foot-sub input[type=email]{flex:auto;width:100%;font-size:16px}
 .counterform .foot-sub button{width:100%;min-height:44px}
 .counterform input,.counterform select,.counterform textarea{font-size:16px}
 .counterform .cf-wordmark{gap:5px;font-size:21px}
 .counterform .page-head h1{font-size:clamp(32px,8.8vw,50px)}
 .counterform .cf-offer-hero h1{font-size:clamp(29px,7.1vw,43px)}
 .counterform .cf-service,.counterform .scale-index a,.counterform .scale-home-list a{min-height:44px}
 .counterform .cf-rail .nav-menu{max-height:calc(100dvh - 72px)}
 .counterform .folio-notes dl{grid-template-columns:minmax(0,1fr)}
 .counterform .folio-gallery{flex-wrap:wrap}.counterform .folio-gallery select{max-width:100%}
 .counterform .scale-facts>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .counterform .scale-images{grid-template-columns:minmax(0,1fr)}
 .counterform .scale-index{grid-template-columns:repeat(2,minmax(0,1fr))}
 .counterform .scale-index a{border-right:1px solid var(--ink);border-bottom:1px solid var(--ink)}
 .counterform .scale-index a:nth-child(2n){border-right:0}
 .counterform .scale-index a:last-child{grid-column:1/-1;border-right:0;border-bottom:0}
 .counterform .scale-home-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .counterform .scale-home-list a:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:center}
 .counterform .scale-home-list a:last-child img{grid-row:1/3;margin:0}
}
@media(max-width:360px){.counterform .scale-chapter h2{font-size:30px}.counterform .scale-cover h1{font-size:11.6vw}.counterform .scale-ratio{font-size:16px}}
@media(max-width:600px){body.counterform .im-project .im-head h1{font-size:clamp(40px,12vw,72px);overflow-wrap:anywhere}body.counterform .im-project .im-stats dd{font-size:clamp(27px,8vw,40px)}.counterform .cm-tier{padding:24px 20px}.counterform .s-head .num{flex-shrink:0}}
/* Clear first impressions and service-specific enquiries. */
.cf-opening{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:20px;align-items:stretch}
.cf-opening .cf-intro{box-shadow:none;margin:0;padding:24px}
.cf-opening-image{margin:0;background:var(--bg);border:2px solid var(--ink);display:flex;flex-direction:column;justify-content:center;min-width:0;padding:18px}
.cf-opening-image img{display:block;width:100%;height:auto;aspect-ratio:1.3;object-fit:contain}
.cf-opening-image figcaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:600 12px/1.5 'Barlow Condensed',sans-serif;letter-spacing:1px;border-top:1px solid var(--ink);padding-top:12px;margin-top:12px}
.cf-offer-hero .cf-opening{padding-bottom:20px}.cf-opening .cf-offer-actions{gap:14px}.cf-opening .cf-intro p:first-child{font-size:20px}
.cf-selected .cf-project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cf-selected .cf-project h3{font-size:30px}
.foot-interest-links{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.commission-options .cf-world h2{font-size:clamp(30px,3.4vw,46px)}
.commission-example{margin-top:32px;border-top:2px solid var(--ink);padding-top:26px}.commission-example h2{font-size:36px;margin:16px 0}.commission-example p{line-height:1.75;max-width:75ch;margin-bottom:18px}
.enquiry-form .enquiry-detail[hidden]{display:none}.enquiry-help{font-size:14px;line-height:1.7;margin:16px 0 22px}.enquiry-errors{border-left:4px solid var(--red);padding:16px 20px;margin:20px 0}.enquiry-errors ul{padding-left:20px}.enquiry-errors h3{font-size:24px;margin-bottom:12px}
.enquiry-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.enquiry-consent{display:flex!important;gap:12px;align-items:flex-start;font-size:15px!important;line-height:1.6!important}.enquiry-consent input{width:20px!important;height:20px;flex-shrink:0;margin-top:3px}
.contact-note{margin-bottom:32px}.contact-note h2{font-size:32px;margin:12px 0}.contact-note p{font-size:15px;line-height:1.75;margin-top:14px}.page-contact .panel>h2,.page-contact [role=status] h2{font-size:34px}.page-contact [role=status] p{margin:20px 0;line-height:1.7}
@media(max-width:1100px){.cf-opening{grid-template-columns:minmax(0,1fr)}.cf-opening-image img{max-height:330px}.cf-selected .cf-project-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:650px){.cf-selected .cf-project-grid{grid-template-columns:minmax(0,1fr)}.cf-opening .cf-intro{padding:18px}.cf-opening-image{padding:14px}.cf-opening .cf-intro p:first-child{font-size:18px}.enquiry-form{grid-template-columns:minmax(0,1fr)}}
.commission-example>a:first-child{display:block;max-width:480px;margin-bottom:24px}.commission-example img{display:block;width:100%;height:auto;object-fit:contain}

/* Desktop rail: wrap long labels and keep browser scrollbar tracks off the design. */
@media(min-width:851px){
 .counterform .cf-rail{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
 .counterform .cf-rail::-webkit-scrollbar{display:none;width:0;height:0}
 .counterform .cf-rail .nav{padding-top:clamp(16px,2.4vh,28px);padding-bottom:20px}
 .counterform .cf-rail .nav-menu,.counterform .cf-rail .nav-links{width:100%;min-width:0}
 .counterform .cf-rail .nav-links{margin-left:0}
 .counterform .cf-rail .nav-links a{white-space:normal;overflow-wrap:anywhere}
 .counterform .cf-rail .cf-location{margin:18px 0 24px}
 .counterform .cf-rail-bottom{padding-top:24px}
 .counterform .cf-rail-bottom a{margin-top:16px;overflow-wrap:anywhere}
}
@media(min-width:851px) and (max-height:900px){
 .counterform .cf-rail-bottom>span{display:none}
 .counterform .cf-rail .nav-links a{padding-top:7px;padding-bottom:7px}
 .counterform .cf-rail .nav-links a.active:before{top:12px}
}
@media(min-width:851px) and (max-height:700px){
 .counterform .cf-rail .cf-wordmark{font-size:40px;margin-top:16px}
 .counterform .cf-rail .brick-frame{display:none}
 .counterform .cf-rail .cf-location{margin:12px 0 16px;font-size:12px}
 .counterform .cf-rail-bottom{padding-top:12px}
 .counterform .cf-rail-bottom a{margin-top:0}
}
