/* 2xHEADS responsive v5 — desktop design preserved; mobile navigation and overflow fixes. */
:root{--x-touch:44px}
html{max-width:100%;scroll-padding-top:16px}
body{min-width:0;max-width:100%}
img,video,canvas,iframe{max-width:100%}
main,main section,.x-wrap,.service-shell,.v17-page,.contact-endcap{min-width:0}
.x-wrap,.section-wrap,.service-shell,.v17-pad{min-width:0}
.x-case-title,.v17-page h1,.service-hero h1,.x-section-title{overflow-wrap:anywhere;hyphens:auto}
.x-gallery figure img{min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;background:#111}
.x-gallery figure a{display:block;min-width:0;overflow:hidden}
.x-gallery figure a img{width:100%;height:auto;max-height:850px;object-fit:contain}
.x-gallery figure{min-width:0}
.x-related-grid a,.x-archive-card,.service-card{min-width:0}
.x-related-grid img,.x-archive-card img,.service-card img{display:block;height:auto}
.x-related-grid img{aspect-ratio:16/10;object-fit:cover}
.x-archive-card img{aspect-ratio:16/10;object-fit:cover}
.site-header-v16 .site-nav{min-width:0}
.site-header-v16 .x-menu-toggle{display:none!important}
.x-menu-toggle{width:var(--x-touch);height:var(--x-touch);border:1px solid #555;border-radius:2px;background:#111;color:#fff;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:6px;flex-shrink:0;padding:10px;position:relative;z-index:103}
.x-menu-toggle .x-menu-line{display:block;width:22px;height:2px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.x-menu-toggle:focus-visible,.site-header-v16 .site-nav a:focus-visible{outline:2px solid #ff3838;outline-offset:4px}
@media(max-width:1100px){
 .x-catalog-teaser{grid-template-columns:1fr 1.5fr}
 .x-catalog-teaser a{grid-column:2;justify-self:start}
 .x-card-name{flex-wrap:wrap}
 .x-card-name h2{max-width:100%}
 .x-card-name span{white-space:normal}
 .x-services-list>a{grid-template-columns:40px minmax(0,1fr) 24px}
 .x-services-list small{grid-column:2;grid-row:2}
 .x-services-list b{grid-column:3;grid-row:1}
}
@media(max-width:860px){
 .site-header-v16{height:74px!important;min-height:74px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px clamp(18px,4vw,32px)!important;position:relative!important}
 .site-header-v16 .site-logo img{width:clamp(125px,26vw,166px)!important;max-height:45px!important}
 .site-header-v16 .x-menu-toggle{display:flex!important}
 .site-header-v16 .site-nav{display:flex!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;min-height:calc(100dvh - 74px)!important;max-height:calc(100dvh - 74px)!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:101!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;padding:clamp(20px,6vw,50px) clamp(22px,6vw,52px) 55px!important;background:#080808!important;border-top:1px solid #333!important;box-shadow:0 20px 40px #000a;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease,visibility .18s}
 .site-header-v16 .site-nav a{display:flex!important;align-items:center!important;min-height:64px!important;width:100%;font-size:clamp(20px,5.2vw,35px)!important;line-height:1.15!important;letter-spacing:-.025em!important;border-bottom:1px solid #333;padding:14px 0!important;text-transform:uppercase!important;white-space:normal!important}
 .site-header-v16 .site-nav a:nth-child(2),.site-header-v16 .site-nav a:nth-child(3){display:flex!important}
 .site-header-v16.x-nav-open .site-nav{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
 .site-header-v16.x-nav-open .x-menu-line:nth-child(1){transform:translateY(8px) rotate(45deg)}
 .site-header-v16.x-nav-open .x-menu-line:nth-child(2){opacity:0}
 .site-header-v16.x-nav-open .x-menu-line:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
 body.x-menu-open{overflow:hidden!important}
 .hero{min-height:0!important}
 .hero-top{padding:20px var(--pad)}
 .hero-visual{width:100%!important}
 .hero-foot{grid-template-columns:1fr 1fr;gap:24px}
 .hero-lead{font-size:clamp(32px,5.8vw,52px)}
 .hero-description{font-size:14px}
 .scroll-link{grid-column:2}
 .x-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
 .x-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .x-gallery figure{grid-column:span 6}
 .x-gallery figure:nth-child(5n+1){grid-column:span 12}
 .contact-methods{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 :root{--x-gutter:20px}
 .site-header-v16{height:68px!important;min-height:68px!important;padding:9px 20px!important}
 .site-header-v16 .site-logo img{width:133px!important}
 .site-header-v16 .site-nav{min-height:calc(100dvh - 68px)!important;max-height:calc(100dvh - 68px)!important}
 .hero-top{padding:18px 20px 0!important;font-size:9px!important;letter-spacing:.08em!important}
 .hero-visual{margin-top:16px!important}
 .hero-foot{grid-template-columns:1fr!important;gap:17px!important;padding:22px 20px 36px!important}
 .hero-lead{font-size:clamp(30px,8.6vw,46px)!important}
 .hero-description{font-size:14px!important;line-height:1.5!important}
 .scroll-link{grid-column:1!important;justify-self:start;min-height:44px;display:inline-flex;align-items:center}
 .brush-logo .brush-instruction{display:none}
 .brush-logo .brush-reveal{bottom:7px;right:8px;min-height:36px;font-size:9px;padding:6px 9px}
 .section-wrap{padding:60px 20px 75px!important}
 .section-head{grid-template-columns:1fr!important}
 .section-head h2{font-size:clamp(38px,11vw,70px)}
 .works-grid{grid-template-columns:1fr!important}
 .project-caption{align-items:flex-start;flex-direction:column;gap:6px}
 .project-caption span{text-align:left}
 .x-archive-hero{padding:58px 0 35px}
 .x-case-hero{padding:45px 0 25px}
 .x-case-title{font-size:clamp(37px,10vw,66px)!important;line-height:.97;letter-spacing:-.06em}
 .x-section-title{font-size:clamp(30px,8vw,53px)}
 .x-archive-grid,.x-related-grid{grid-template-columns:1fr!important}
 .x-gallery figure,.x-gallery figure:nth-child(5n+1){grid-column:span 12!important}
 .x-gallery-section{padding:35px 0 65px}
 .x-story-row{grid-template-columns:1fr;gap:12px}
 .x-case-meta{margin:20px 0 35px}
 .x-case-navigation{flex-direction:column}
 .x-case-navigation a{max-width:100%}
 .x-catalog-teaser{grid-template-columns:1fr!important;gap:10px}
 .x-catalog-teaser a{grid-column:1!important}
 .x-catalog-toolbar{flex-direction:column;align-items:stretch}
 .x-catalog-toolbar label{flex-direction:column;align-items:stretch}
 .x-catalog-toolbar input{width:100%;min-width:0}
 .x-services-list>a{grid-template-columns:26px minmax(0,1fr) 22px;gap:12px}
 .x-services-list small{font-size:13px}
 .service-hero h1{font-size:clamp(40px,10vw,68px)!important}
 .v17-page h1{font-size:clamp(42px,11vw,72px)!important;line-height:.95}
 .v17-page .v17-section h2{font-size:clamp(34px,9vw,58px)}
 .partner-v17 h2{font-size:clamp(38px,10vw,68px)!important;overflow-wrap:anywhere}
 .contact-headline h2{white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(42px,11vw,72px)!important}
 .contact-primary{font-size:clamp(20px,5.5vw,30px)!important}
 .contact-endcap-inner{padding-left:20px!important;padding-right:20px!important}
 .contact-bottom-line{flex-wrap:wrap}
 .v17-page .v17-link{white-space:normal;max-width:100%;overflow-wrap:anywhere;flex-wrap:wrap;padding:16px 18px;gap:10px}
}
@media(max-width:359px){
 .x-case-title{font-size:35px!important}
 .hero-lead{font-size:30px!important}
 .v17-page h1{font-size:40px!important}
 .contact-headline h2{font-size:41px!important}
 .x-card-name span{white-space:normal}
}
@media(hover:none){
 .project-card:hover img,.x-archive-card:hover img,.x-gallery a:hover img{transform:none!important}
 .brush-logo .brand-scratch{touch-action:pan-y}
}
@media(prefers-reduced-motion:reduce){
 .site-header-v16 .site-nav,.x-menu-toggle .x-menu-line{transition:none!important}
}
