/* Shared input, focus and narrow-screen refinements. */
html{scrollbar-gutter:stable}
:where(a,button,input,textarea,summary,[tabindex]):focus-visible{outline:2px solid currentColor;outline-offset:5px}
:where(input,textarea):focus-visible{outline-color:var(--green);outline-offset:3px}
.skip{z-index:100;max-width:calc(100vw - 30px)}
:where(.search-toggle,.dialog-close,.lightbox-close,.menu-toggle){min-width:44px;min-height:44px}
.dialog-close{width:44px;height:44px}
:where(.desktop-nav,.footer-navigation) a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
:where(.nav-dialog,.search-dialog,.contact-dialog){scroll-padding-block:24px}
#search-results{padding-inline:6px;margin-inline:-6px;scroll-padding-block:12px}
#search-results a{overflow-wrap:anywhere}
#gallery-thumbnails{scroll-padding-inline:8px;scroll-behavior:auto}
#gallery-thumbnails button:focus-visible{outline-color:#fff;outline-offset:-5px}
.gallery-tile:focus-visible img{filter:brightness(.9)}
:where(.breadcrumbs,.card-meta,.project-description dl>div){flex-wrap:wrap}
.rich-body iframe[src*="youtube"],.rich-body iframe[src*="vimeo"]{aspect-ratio:16/9;height:auto;min-height:0;display:block}
.rich-body :where(video,figure){max-width:100%;margin-inline:0}
.enquiry-form textarea{min-height:150px}
.enquiry-form input{min-height:52px}
:where(.scene-copy h2,.page-heading h1,.section-heading h2){text-wrap:balance}
:where(.scene-top,.scene-copy,.scene-bottom){padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.scene-bottom{bottom:max(24px,env(safe-area-inset-bottom,0px))}
dialog:is(.contact-dialog,.nav-dialog,.search-dialog){max-height:calc(100dvh - 32px)}
@media (hover:none){
 .archive-card:hover img,.archive-card:hover .card-arrow{transform:none}
 .gallery-tile:hover img{filter:none}
}
@media(max-width:760px){
 .nav-dialog-grid a{padding-block:9px;min-height:44px;display:flex;align-items:center}
 .nav-dialog-grid>div{gap:5px}
 .nav-dialog-grid>nav{gap:8px}
 .footer-navigation a:not(.footer-brand){min-height:36px;display:flex;align-items:center}
 .footer-navigation>div{gap:8px}
 .breadcrumbs{row-gap:7px;line-height:1.6}
 .service-list summary{grid-template-columns:28px minmax(0,1fr) 28px}
 .service-list h3{overflow-wrap:anywhere}
 .service-expansion{padding-left:0}
 .full-gallery .gallery-tile img{height:auto;aspect-ratio:4/5}
 .lightbox{height:100dvh;max-height:100dvh}
 .lightbox-stage>button{min-width:36px}
 .scene-index{overflow-x:auto;scrollbar-width:thin}
 .contact-dialog .contact-button{gap:12px;overflow-wrap:anywhere}
}
@media(max-width:350px){
 .scene-bottom{gap:8px}
 .scene-dot{padding-inline:3px}
 .scene-copy h2{font-size:clamp(28px,10vw,35px)}
 .page-heading h1{font-size:clamp(30px,10vw,37px)}
 .stats{gap:10px}
 .stats strong{font-size:30px}
}
@media(max-height:500px) and (orientation:landscape){
 .scene-copy,.scene-story:not(.home-story) .scene-copy{bottom:85px}
 .scene-copy h2,.scene-story:not(.home-story) .scene-copy h2{font-size:clamp(24px,5vh,32px);margin-block:8px 12px}
 .scene-top{top:12px}
 .scene-bottom{bottom:12px}
 .scene-label{letter-spacing:.5px}
}
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto}
}
html.reduce-motion *,html.reduce-motion *::before,html.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media print{
 .header,.floating-contact,.cookie-notice,.reading-progress,dialog,.scene-story,.share-row,.article-toc{display:none!important}
 body{max-width:none;color:#000;background:#fff}
 section,.article-layout{padding:20px 0!important}
 .will-reveal{opacity:1!important;transform:none!important}
 .archive-card,.gallery-tile{break-inside:avoid}
 .rich-body a{text-decoration:underline}
}
