/* A quiet mobile first screen. Desktop styling is preserved. */
.header-request-label-short{display:none}
@media(max-width:700px){
 html{scroll-padding-top:120px}
 .site-header,.site-header.is-scrolled{height:112px;padding:6px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:52px 44px;gap:4px 8px;align-items:center}
 .site-header .brand{grid-column:1;grid-row:1;width:64px;max-width:100%}
 .site-header .brand-logo,.site-header.is-scrolled .brand-logo{height:50px;object-fit:contain}
 .site-header .header-actions,.site-header .header-request-links{display:contents}
 .site-header .header-phones{grid-column:2;grid-row:1;justify-self:end;gap:0;min-width:0}
 .site-header .header-phones .phone{display:flex;min-height:24px;font-size:13px;line-height:1.2;letter-spacing:0;white-space:nowrap}
 .site-header .header-phones .phone svg{display:none}
 .site-header .header-request-button{grid-column:1;grid-row:2;width:100%;max-width:184px;min-width:0;min-height:44px;padding:9px 6px;font-size:13px;border-radius:4px}
 .site-header .menu-toggle{grid-column:3;grid-row:1;width:44px;min-width:44px;min-height:44px}
 .site-header .kb-mobile-link{display:none}
 .site-header .messenger-links--header{display:flex;grid-column:2/-1;grid-row:2;justify-self:end;flex-wrap:nowrap;gap:8px}
 .site-header .messenger-links--header .messenger-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-color:#ffffff55;background:#ffffff08;color:#fff}
 .mobile-bottom.mobile-bottom--messengers{display:none}
 .mobile-menu,.inner-page .mobile-menu{top:112px;max-height:calc(100dvh - 112px);padding-top:20px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .mobile-menu>a{font-size:21px;min-height:48px;padding:12px 0}
 .mobile-menu .contact-phone-pair{display:none}
 .mobile-menu .messenger-links--menu{display:none}
 .mobile-menu .messenger-links--menu .messenger-button{font-size:15px;min-height:46px}
 .inner-page .site-header.is-scrolled+nav+main{padding-top:112px}
 .site-footer{padding-bottom:max(32px,env(safe-area-inset-bottom))}
 .home .hero{height:100svh;min-height:540px;max-height:none}
 .home .hero-content{padding:148px 22px 48px;max-width:390px}
 .home .hero h1.hero-topic{font-size:14px;line-height:1.45;font-weight:400;letter-spacing:.005em;max-width:320px;margin:0 0 20px;text-wrap:balance}
 .home .hero .hero-slogan{font-size:clamp(36px,10.1vw,44px);line-height:1.08;letter-spacing:-.045em;margin:0}
 .home .hero-description,.home .hero-bottom{display:none}
 .home .hero-buttons{margin-top:26px;display:flex;flex-direction:row;gap:0}
 .home .hero-buttons .button.primary{width:auto;min-height:48px;padding:12px 18px;font-size:15px;line-height:1.3;gap:18px}
 .home .hero-buttons .button.primary svg{width:20px;height:20px}
 .home .hero-buttons .button.glass{display:none}
}
@media(max-width:360px){
 .site-header,.site-header.is-scrolled{column-gap:6px;padding-inline:10px}
 .site-header .brand{width:52px}.site-header .header-phones .phone{font-size:12px}
 .site-header .header-request-button{font-size:12px}
 .home .hero-content{padding-inline:20px}
}
@media(max-width:700px) and (max-height:600px){.home .hero-content{padding-top:136px}}

/* Let picture elements shrink inside their actual grid column. */
.kb-index .kb-feature-image,.kb-index .kb-entry-image{min-width:0;max-width:100%}
.kb-index .kb-feature-image picture,.kb-index .kb-entry-image picture{min-width:0;max-width:100%}
.kb-index .kb-feature-image img,.kb-index .kb-entry-image img{max-width:100%}
@media(max-width:700px){
 .kb-index .kb-feature,.kb-index .kb-entry>a{display:flex;flex-direction:column;min-height:0;height:auto}
 .kb-index .kb-feature-image,.kb-index .kb-entry-image{display:block;width:100%;height:auto;min-height:0;aspect-ratio:3/2;align-self:auto;overflow:hidden}
 .kb-index .kb-feature-image picture,.kb-index .kb-entry-image picture{display:block;width:100%;height:auto}
 .kb-index .kb-feature-image img,.kb-index .kb-entry-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
 .kb-index .kb-feature-copy,.kb-index .kb-entry-copy{display:flex;flex-direction:column;min-width:0;width:100%;padding:20px;gap:0}
 .kb-index .kb-feature h3,.kb-index .kb-entry h3{font-size:24px;line-height:1.25;letter-spacing:-.025em;margin:10px 0 16px;overflow-wrap:break-word}
 .kb-index .kb-feature-copy>span:first-child,.kb-index .kb-entry-label{font-size:12px;line-height:1.5}
 .kb-index .kb-feature-link,.kb-index .kb-entry-bottom{margin-top:0;font-size:14px;line-height:1.5;min-height:24px}
 .kb-index .kb-entry-bottom>span:last-child{font-size:14px}
 .kb-index .kb-feature-grid,.kb-index .kb-entries{gap:20px}
 .kb-index .kb-top-phones{display:none}
}

/* Whole photographs on phones, with controls outside the image canvas. */
.media-expand{display:none}
.viewer-navigation .media-arrow svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.viewer-fit{font:inherit;font-size:12px;padding:6px}
@media(max-width:700px), (max-height:600px) and (pointer:coarse){
 .image-viewer .viewer-layout{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 .image-viewer .viewer-topbar{position:relative;inset:auto;background:#101712;min-width:0}
 .image-viewer .viewer-canvas{position:relative;inset:auto;min-width:0;min-height:0}
 .image-viewer .viewer-toolbar{position:relative;inset:auto;background:#101712;min-width:0}
 .image-viewer .viewer-stage:not(.is-zoomed){overflow:hidden}
 .image-viewer .viewer-title{overflow-wrap:anywhere}
 .project-media-slide figcaption{flex-wrap:wrap}
}
