/* R49: preserve desktop geometry; touch layout and compact landscape overrides. */
html{min-width:0;overflow-wrap:break-word}
body{min-width:0!important}
img,video{max-width:100%}
.home,.wrap,.r40-grid,.r40-card,.r40-copy,.r40-details,.studio-intro,.visual,.hero>div,.section,.www-template-copy{min-width:0}
.r40-zoom,.r40-lightbox-image{touch-action:pan-y pinch-zoom}
@media(max-width:1000px) and (pointer:coarse), (max-width:1000px) and (max-height:550px) and (orientation:landscape){
 .brand-hits,.hero-link-row,.brand-surface>.consultation{display:none!important}
 .brand-surface::after{display:none!important}
 .mobile-specialties,.mobile-hero-links{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:7px 10px;background:#06182d}
 .mobile-specialties a,.mobile-hero-links .hero-action{display:flex!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;min-height:44px;height:auto!important;align-items:center;justify-content:space-between;gap:6px;padding:8px 9px;border:1px solid #28557b;border-radius:8px;background:#0c2844;color:#e8f7ff;font-size:12px!important;white-space:normal;line-height:1.25;text-align:left}
 .mobile-specialties .consultation-mobile{grid-column:1/-1;justify-content:flex-end;width:auto!important;justify-self:end}
 .mobile-hero-links .hero-action .nav-icon{width:20px;height:20px;flex-shrink:0}
 .mobile-hero-links .hero-action-label{display:inline!important;font-size:inherit!important;white-space:normal!important}
 .mobile-hero-links .hero-action-label-short{display:none!important}
}
@media(max-width:700px){
 .mobile-specialties,.mobile-hero-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mobile-specialties a,.mobile-hero-links .hero-action{min-height:44px;font-size:12px!important;overflow-wrap:anywhere}
 .mobile-hero-links .hero-action:last-child .hero-action-label{font-size:inherit!important}
 .wrap{width:calc(100% - 26px)}
 .top .nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;white-space:normal;text-align:center;font-size:12px}
 .top .cta{min-height:44px;white-space:normal}
 .hero h1{font-size:clamp(28px,8vw,36px);overflow-wrap:anywhere}
 .hero .cta,.hero .ghost{white-space:normal;min-height:44px}
 .foot{gap:12px;flex-wrap:wrap}
 .r40-controls button,.r40-card button[data-control]{min-width:44px;min-height:44px}
 .r40-lightbox{width:calc(100% - 12px)!important;height:calc(100vh - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;margin:auto;overflow:auto}
 .r40-lightbox-bar{padding:9px 10px;gap:8px;flex-shrink:0}
 .r40-lightbox-bar>div{min-width:0}
 .r40-lightbox-title{font-size:clamp(14px,4vw,18px);min-height:0!important;overflow-wrap:anywhere}
 .r40-lightbox-image{padding:6px;min-height:90px}
 .r40-lightbox-bottom{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:8px;flex-shrink:0}
 .r40-lightbox-bottom p{grid-column:1/-1;grid-row:1;min-height:0!important;font-size:12px}
 .r40-lightbox-bottom button,.r40-close{min-height:44px;min-width:44px;white-space:normal}
}
@media(max-width:1000px) and (max-height:550px) and (orientation:landscape){
 .r40-lightbox{height:calc(100dvh - 8px)!important;width:calc(100% - 12px)!important;max-height:calc(100dvh - 8px)!important}
 .r40-lightbox-bar{padding:5px 12px;flex-shrink:0}
 .r40-lightbox-title{min-height:0!important;font-size:15px}
 .r40-lightbox-image{padding:4px;min-height:70px}
 .r40-lightbox-bottom{display:flex!important;padding:4px 10px;gap:8px;flex-shrink:0}
 .r40-lightbox-bottom p{min-height:0!important;font-size:11px}
 .r40-lightbox-bottom button,.r40-close{min-height:44px;min-width:44px}
}
@media(max-width:340px){.top{flex-wrap:wrap}.top .cta{margin-left:auto}.studio-intro-actions{flex-wrap:wrap}.r40-details{padding-inline:10px}.r40-card .r40-foot{min-width:0}.steps{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:where(html:not([data-ss-motion="on"])){scroll-behavior:auto!important}}
