/* Final mobile spacing and touch controls. */
.mobile-gallery-controls{display:none}
.gallery-arrows{display:flex;gap:8px}
.gallery-arrows button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);padding:10px;flex-shrink:0}
.gallery-arrows svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.gallery-arrows button[aria-disabled=true]{opacity:.35;cursor:default}
.gallery-arrows button:active:not([aria-disabled=true]){background:#eaf2ee}
.form-status a{display:inline-flex;align-items:center;min-height:44px;color:var(--teal);text-decoration:underline}
.project-photo img{height:auto}
.photo-viewer{width:min(900px,calc(100% - 32px));max-height:calc(100svh - 32px);padding:16px;background:var(--paper);color:var(--ink);border:0;border-radius:16px}
.photo-viewer::backdrop{background:rgb(12 30 31 / .7)}
.photo-viewer header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:12px}
.photo-viewer h2{font-size:18px;line-height:1.3;margin:0;font-weight:500}
.photo-viewer button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:24px}
.photo-viewer img{display:block;max-width:100%;max-height:calc(100svh - 140px);object-fit:contain;margin:auto}
html:has(.photo-viewer[open]){overflow:hidden}
@media(max-width:900px){
 .wrap{width:calc(100% - 40px)}
 .site-header{height:76px}
 .site-menu{top:68px;max-height:calc(100svh - 92px);overflow-y:auto;overscroll-behavior:contain;min-width:min(320px,100%);max-width:100%;padding:12px}
 .intro{padding:16px 0 22px}
 .intro h1{font-size:clamp(34px,8vw,50px);line-height:1.12;white-space:normal}
 .intro-copy{font-size:15px;line-height:1.5;margin-top:12px;max-width:38ch}
 .mobile-types{margin-bottom:12px}
 .mobile-types button{font-size:13px;min-height:44px}
 .gallery{height:380px;touch-action:pan-x pan-y;scroll-snap-stop:always}
 .gallery .glass-panel{scroll-snap-stop:always}
 .gallery .panel-copy,.gallery .glass-panel:not(.is-active) .panel-copy{left:20px;bottom:20px;width:calc(100% - 40px)}
 .gallery .panel-copy h2,.gallery .is-active .panel-copy h2,.gallery .glass-panel:not(.is-active) .panel-copy h2,.gallery .is-active[data-type=igu] .panel-copy h2{font-size:28px;line-height:1.12}
 .gallery .panel-copy p{font-size:14px;line-height:1.45;margin:12px 0 6px}
 .gallery .panel-link{font-size:13px}
 .gallery-caption{padding:12px 0 18px}
 .mobile-gallery-controls{display:flex;align-items:center;gap:12px;width:100%}
 .slide-count{font-size:13px;white-space:nowrap}
 .swipe-hint{font-size:11px;color:var(--muted);margin-right:auto}
 .quote-strip{padding:22px 0 32px;gap:20px}
 .quote-intro{gap:12px;align-items:flex-start}
 .quote-intro h2{font-size:21px;line-height:1.25;margin-bottom:6px}
 .quote-intro p{font-size:14px;line-height:1.5;max-width:36ch}
 .line-icon{width:32px;height:40px}
 .quote-button{min-height:56px}
 .button-arrow{width:38px;height:38px}
 .home-section{padding-block:44px}
 .home-section h2,.request-section h2{font-size:clamp(28px,4.5vw,34px);line-height:1.2;letter-spacing:-.035em}
 .section-heading{margin-bottom:24px}
 .section-heading>p,.triplex-copy>p,.production-copy>p,.engineering-copy>p,.knowledge-intro>p,.request-intro>p{font-size:15px;line-height:1.6;margin-top:14px}
 .application-visual img{height:clamp(250px,72vw,380px);border-radius:14px}
 .application-visual figcaption{font-size:12px;line-height:1.4;flex-wrap:wrap;gap:4px 12px;margin-top:10px}
 .application-visual figcaption>span:empty{display:none}
 .applications-layout{gap:20px}
 .application-option strong{font-size:15px;line-height:1.35}
 .triplex-section{gap:24px}
 .triplex-photo img{height:clamp(260px,80vw,380px);border-radius:14px;object-position:center 45%}
 .triplex-photo figcaption{position:static;padding:10px 0 0;background:none;border-radius:0;font-size:13px;line-height:1.4}
 .triplex-photo figcaption span{font-size:11px}
 .flagship-label{margin-bottom:12px}
 .triplex-copy>p{margin-bottom:18px}
 .composition-list{margin:18px 0}
 .composition-list summary{font-size:16px;line-height:1.45;min-height:60px}
 .composition-list details>p{margin-right:12px;font-size:14px}
 .portfolio-filters{gap:6px;margin-bottom:20px;flex-wrap:nowrap}
 .portfolio-filters button{padding:8px 12px;font-size:12px}
 .projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 .project-photo{border-radius:12px}
 .project-photo img{aspect-ratio:4/5;object-fit:cover}
 .project-caption{padding:12px 0 0;gap:8px}
 .project-caption h3{font-size:18px;line-height:1.25;margin-bottom:6px}
 .project-caption p{font-size:13px;line-height:1.45}
 .project-caption>span{display:none}
 .projects-source{margin-top:24px}
 .projects-source p{font-size:12px;margin:0 0 8px}
 .production-layout{gap:24px}
 .production-copy>p{margin-bottom:24px}
 .production-steps{gap:20px;margin-bottom:22px}
 .production-steps li{grid-template-columns:24px 1fr;gap:12px}
 .production-steps h3{font-size:20px;line-height:1.25}
 .production-gallery{max-width:100%;gap:18px 14px}
 .production-gallery .production-main img{height:clamp(240px,65vw,340px)}
 .production-gallery img{height:clamp(150px,43vw,220px);border-radius:12px}
 .production-gallery figcaption{font-size:12px;line-height:1.4;margin-top:8px}
 .engineering,.request-section{padding:28px 22px;border-radius:16px;gap:24px;margin-bottom:44px}
 .engineering-copy>p{margin-bottom:20px}
 .engineering-tags{gap:6px;margin-bottom:20px}
 .engineering-tags span{font-size:11px;padding:6px 9px}
 .engineering-actions{gap:12px}
 .drawing svg{max-height:230px}
 .drawing figcaption{font-size:12px;line-height:1.5}
 .journey{gap:24px}
 .journey-step h3{font-size:20px;line-height:1.3}
 .knowledge-layout{gap:18px}
 .knowledge-intro>p{margin-bottom:12px}
 .knowledge-list summary{font-size:17px;line-height:1.4;min-height:66px;gap:16px}
 .knowledge-list details>div{padding:0 12px 20px 0;font-size:14px;line-height:1.65}
 .request-intro>p{margin-bottom:18px}
 .request-phone{font-size:24px;min-height:44px;line-height:44px}
 .request-intro small{margin-top:0;line-height:1.5}
 .project-form{gap:18px}
 .project-form label{font-size:14px;gap:8px}
 .project-form textarea{min-height:112px}
 .project-form .small-primary{min-height:54px;padding-inline:20px}
 .form-note{line-height:1.6}
 .footer-top{grid-template-columns:1fr;gap:24px;padding-bottom:24px}
 .footer-brand{grid-column:auto}
 .footer-brand>p{max-width:36ch;margin-top:14px}
 .footer-nav{grid-template-columns:1fr 1fr;gap:4px 20px}
 .footer-nav a{font-size:13px;line-height:1.5;padding:10px 0}
 .footer-contact{border-top:1px solid var(--line);padding-top:20px;gap:4px}
 .footer-contact>a{min-height:44px;display:flex;align-items:center}
 .footer-contact p{padding:6px 0}
 .footer-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:16px;font-size:12px}
 .footer-bottom>a{margin:0;display:flex;align-items:center}
}
@media(max-width:359px){
 .wrap{width:calc(100% - 32px)}
 .identity-name{font-size:21px}
 .identity-mark,.identity-mark img{width:44px;height:44px}
 .gallery{height:370px}
 .gallery .panel-copy h2,.gallery .is-active .panel-copy h2,.gallery .glass-panel:not(.is-active) .panel-copy h2,.gallery .is-active[data-type=igu] .panel-copy h2{font-size:25px}
 .gallery .panel-copy,.gallery .glass-panel:not(.is-active) .panel-copy{left:16px;width:calc(100% - 32px)}
 .swipe-hint{max-width:90px;line-height:1.3}
 .project-caption h3{font-size:17px}
 .project-caption p{font-size:12px}
 .portfolio-filters button{padding-inline:10px}
 .engineering,.request-section{padding-inline:18px}
 .request-phone{font-size:22px}
}
@media(max-width:900px) and (max-height:500px){.gallery{height:320px}}
