/* Consistent page endings: retain a small gutter, not another empty section. */
body .brief-page{padding-bottom:18px!important}
body .samples-page{padding-bottom:24px!important}
body .case-index-main #cases{padding-bottom:28px!important}
body .seb-footer-shell{padding-bottom:18px}
body .case-footer,body .case-index-footer{padding-block:18px}
body .calc-footer{margin-bottom:0;padding-bottom:20px}
body .brief-layout{margin-bottom:0}
body .brief-advisor .brief-small{margin-bottom:0}
/* Flex and grid text must be allowed to shrink to the viewport. */
.calc-intro-row,.calc-intro-copy,.calc-heading,.calc-subtitle,.calc-controls,.calc-estimate-column{min-width:0;max-width:100%}
@media(max-width:800px){
 body{overflow-wrap:break-word}
 main,section,article,aside,figure,form,fieldset{min-width:0}
 main img,section img{max-width:100%}
 body .calc-intro-copy{width:100%;flex-basis:auto}
 body .calc-intro-row{display:block;width:100%}
 body .calc-main .calc-subtitle{font-size:clamp(22px,6vw,28px);line-height:1.3;white-space:normal}
 body .calc-main .calc-title{font-size:clamp(27px,7.2vw,34px);line-height:1.2}
 body .calc-main .calc-panel{padding:22px 18px!important}
 body .calc-price-row{flex-wrap:wrap}
 body .calc-save-actions{flex-wrap:wrap}
 body .calc-footer{flex-wrap:wrap;gap:10px}
 body .calc-main{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 body .calc-mobile-estimate{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}
 body .samples-page{padding-top:24px!important;padding-bottom:18px!important}
 body .samples-page h1{font-size:clamp(28px,7vw,36px);line-height:1.2}
 body .samples-intro{font-size:16px;line-height:1.55}
 body .sample-banner strong{font-size:12px;line-height:1.4}
 body .sample-banner small{font-size:12px;line-height:1.4}
 body .case-shell{padding:24px 18px 0;max-width:100%}
 body .case-copy{font-size:16px;line-height:1.55}
 body .case-copy h1{font-size:clamp(25px,6.5vw,32px);line-height:1.22}
 body .case-copy h2{font-size:18px;line-height:1.35}
 body .case-copy p,body .case-copy li{line-height:1.55}
 body .case-button{min-height:48px;font-size:16px;max-width:100%;white-space:normal}
 body .case-disclosure{font-size:13px!important}
 body .case-label,body .gallery-caption{font-size:13px;line-height:1.5}
 body .related-cases{margin:28px 0 24px}
 body .case-footer{flex-wrap:wrap;gap:10px;font-size:13px}
 body .case-index-footer{font-size:14px;line-height:1.5}
 body .brief-page{padding-bottom:14px!important}
 body .brief-wizard{min-height:0;padding-bottom:24px!important}
 body .brief-advisor{padding-bottom:22px}
 body .brief-navigation{margin-top:28px;padding-top:12px;gap:12px}
 body .brief-footer-status{font-size:13px}
 body .brief-question-note{line-height:1.5}
 body .brief-field input,body .brief-field select,body .brief-field textarea{font-size:16px;max-width:100%}
 body .brief-review dd{font-size:16px}
 body .brief-send-actions>*{width:100%;justify-content:center}
 body .seb-footer{padding:26px 22px;gap:24px}
 body .seb-footer .sf-meta{font-size:15px;line-height:1.55}
 body .seb-footer nav a,body .seb-footer nav button{min-height:44px;line-height:1.4;white-space:normal}
 body .seb-footer .sf-top{white-space:normal;min-height:48px}
 body .hero .lead{max-width:100%}
 body .strip{font-size:14px;line-height:1.5;gap:18px}
 body .portfolio-card h3{font-size:22px;line-height:1.3}
 body #brief .br-right{min-width:0}
 body #brief .br-question h3{font-size:22px;line-height:1.3}
 body #brief .br-question p,body #brief .br-benefits>p{font-size:16px;line-height:1.55}
 body #brief .br-benefit-grid{gap:18px}
 body #brief .br-benefit-grid h3{font-size:17px;line-height:1.3}
 body #brief .br-note{font-size:13px;line-height:1.5}
 body #services .sr-card{min-width:0}
 body #services .sr-card p{font-size:16px;line-height:1.55}
 body #work .portfolio-card .chips{gap:8px}
 body .demo{font-size:12px;line-height:1.5}
 body.demo-site header{flex-wrap:wrap;gap:18px;padding-block:20px}
 body.demo-site header nav{display:flex;flex-wrap:wrap;gap:12px 18px;font-size:14px;line-height:1.5}
 body.demo-site .hero{height:auto;min-height:0;max-height:none;padding:28px 22px;gap:24px;grid-template-columns:minmax(0,1fr)}
 body.demo-site .hero h1{font-size:clamp(30px,8vw,42px);line-height:1.15}
 body.demo-site input,body.demo-site textarea,body.demo-site select{font-size:16px;max-width:100%;min-height:44px}
 body.demo-site .w{padding-inline:18px;max-width:100%}
 body.demo-site section{padding-block:32px}
 body.demo-site footer{padding-block:20px}
}
@media(max-width:480px){
 body .related-grid{grid-template-columns:minmax(0,1fr)}
 body .related-grid .case-cover{aspect-ratio:1.65}
 body .related-grid .case-card h3{font-size:18px;line-height:1.3}
 body .related-grid .case-example-note{font-size:12px;line-height:1.5}
 body .related-grid .case-button{font-size:15px;min-height:46px;padding:12px 20px}
 body #brief .br-benefit-grid{grid-template-columns:minmax(0,1fr)}
 body #brief .br-benefit-grid article{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:16px;text-align:left}
 body #brief .br-benefit-grid article>svg{grid-row:span 2;width:36px;height:36px;margin:0}
 body #brief .br-benefit-grid article>h3{margin:0 0 4px}
 body #brief .br-benefit-grid article>p{margin:0;font-size:14px}
}

/* Brief step changes must not trigger browser scroll anchoring or leave a viewport-sized tail. */
html:has(.brief-page){scroll-behavior:auto!important;overflow-anchor:none}
body:has(.brief-page){min-height:0;height:auto;overflow-anchor:none}
body .brief-page{padding-bottom:0!important;margin-bottom:0!important;min-height:0}
body .brief-layout{margin-bottom:0!important}

.header-email-group{min-width:0;display:flex;flex-direction:column;gap:7px;align-items:stretch}.header-copy-contact{display:block;text-align:center;font:400 14px/1.4 Arial,sans-serif;color:#425568;user-select:text;cursor:text;overflow-wrap:anywhere}.header-socials .header-copy-contact{margin-top:7px}.header-email-group .header-email{width:100%;box-sizing:border-box}
@media(max-width:800px){.header-email-group{grid-column:1/-1}.header-copy-contact{font-size:16px}}

.mobile-copy-contacts{display:none}@media(max-width:800px){.mobile-copy-contacts{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;padding:6px 12px 10px;font:400 13px/1.4 Arial;color:#425568;user-select:text;overflow-wrap:anywhere}}
