/* Focused UX refinements. Digital gallery timing and assembly stay unchanged. */
/* A section boundary owns one rule; load-more controls do not add a second closing rule. */
html[data-ws-direction="arch"] .arch-more{border-bottom:0}
html[data-ws-direction="digital"] #show-more{border:0;border-top:1px solid var(--line);padding-inline:0}
html[data-ws-direction="arch"] .clients{padding-block:24px}
html[data-ws-direction="arch"] .clients .section-top{margin-bottom:12px}
html[data-ws-direction="arch"] .clients-grid{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:32px;padding:18px 0;scrollbar-width:thin;border-bottom:0}
html[data-ws-direction="arch"] .clients-grid img{flex:0 0 100px;width:100px;height:34px}
html[data-ws-direction="arch"] #projects{padding-top:36px}
.case-page-link{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;border-bottom:1px solid currentColor;font-size:15px}
.tour-cover{display:block;color:inherit;text-decoration:none}
.tour-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.tour-actions .tour-trigger,.tour-actions .tour-launch{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;font:inherit;font-size:14px;background:none;color:inherit;border:0;border-bottom:1px solid currentColor;cursor:pointer;width:auto;text-decoration:none}
.tour-cover:focus-visible,.tour-actions a:focus-visible,.tour-actions button:focus-visible,.case-page-link:focus-visible{outline:2px solid currentColor;outline-offset:5px}
#project-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;height:100dvh;max-height:100dvh;overflow:hidden}
#project-dialog .dialog-head{margin:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
#project-dialog #project-images{min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:pan-x pan-y pinch-zoom}
#project-dialog #project-images img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
#project-dialog .viewer-controls{margin:0;flex-shrink:0}
#project-dialog .viewer-controls button,#project-dialog #project-close{min-width:44px;min-height:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px){
 :root[data-ws-direction]{--ws-rail:36px}
 html[data-ws-direction="arch"] .clients-grid{gap:24px}
 html[data-ws-direction="arch"] .clients-grid img{flex-basis:88px;width:88px;height:30px}
 html[data-ws-direction="arch"] .clients{padding-block:20px}
 html[data-ws-direction="arch"] #projects{padding-top:28px}
 .caption small{font-size:12px;line-height:1.4}
 .caption{gap:12px;align-items:flex-start}
 .tour-caption p{font-size:13px;line-height:1.5}
 .section-top{font-size:12px;line-height:1.5}
 #project-dialog{padding:16px 16px max(16px,env(safe-area-inset-bottom))}
 #project-dialog .dialog-head h2{font-size:20px;overflow-wrap:anywhere}
 #project-dialog #project-close{font-size:13px;flex-shrink:0}
 .header :is(.menu-toggle,#menu-toggle){min-height:44px}
}

/* Load a legible drawing immediately; video appears only when its first frame is ready. */
html[data-ws-direction="arch"] .hero>.reel-poster{position:absolute;inset:0;z-index:-2;display:block;pointer-events:none}
html[data-ws-direction="arch"] .hero>.reel-poster img{width:100%;height:100%;object-fit:cover}
html[data-ws-direction="arch"] .hero>#reel{opacity:0;transition:opacity .35s ease}
html[data-ws-direction="arch"] .hero.is-film-ready>#reel{opacity:1}
@media(prefers-reduced-motion:reduce){html:where(:not([data-ws-motion-policy="full"]))[data-ws-direction="arch"] .hero>#reel{transition:none}}
