/* Light is the default; a saved, explicit choice enables the dark palette. */
:root{color-scheme:light;--theme-surface:#f3f5f5;--theme-line:#d8dddd}
:root[data-theme=dark]{color-scheme:dark;--paper:#111617;--ink:#edf2f2;--muted:#a6b2b4;--theme-surface:#1b2325;--theme-line:#364245;--line:#364245;--soft:#1b2325}
.theme-toggle{flex:0 0 40px;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--theme-line);border-radius:50%;background:var(--paper,#fff);color:var(--ink);cursor:pointer}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
[data-theme=dark] .theme-toggle .theme-moon{display:none}
[data-theme=dark] .theme-toggle .theme-sun{display:block}
.theme-toggle:hover{color:#008b90;border-color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.site-header{gap:20px}
.site-header nav{margin-left:auto}
.site-header .brand{flex-shrink:0}
.gallery-top{gap:12px}
.gallery-top .gallery-brand{margin-right:auto}
.case-header .case-back{margin-left:auto}
.case-page{background:var(--paper,#fff)}
[data-theme=dark] .site-header,[data-theme=dark] .gallery-top{background:var(--paper);border-color:var(--theme-line)}
[data-theme=dark] nav a:hover,[data-theme=dark] nav a[aria-current=location],[data-theme=dark] .text-link:hover,[data-theme=dark] .gallery-card:hover h3{color:var(--accent)}
[data-theme=dark] .project-showcase,[data-theme=dark] .approach,[data-theme=dark] .clients-strip{background:var(--theme-surface);border-color:var(--theme-line)}
[data-theme=dark] .approach::after{color:#263235}
[data-theme=dark] .project-info p:not(.eyebrow),[data-theme=dark] .project-info .eyebrow,[data-theme=dark] .comparison-caption,[data-theme=dark] .quality-note p:last-child,[data-theme=dark] .about-copy p:not(.lead),[data-theme=dark] .approach-intro>p,[data-theme=dark] .approach-points p,[data-theme=dark] .streetview-meta,[data-theme=dark] .clients-strip-head .eyebrow,[data-theme=dark] .client-logo--crest figcaption{color:var(--muted)}
[data-theme=dark] .project-info .project-partner{color:var(--muted)!important}
[data-theme=dark] .project-tabs button{color:var(--muted)}
[data-theme=dark] .project-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--ink)}
[data-theme=dark] :is(.project-tabs,.project-choices,.streetview-choices,.devices-choices,.approach-points article,.text-link,.case-story,.case-result,.feature-copy li){border-color:var(--theme-line)}
[data-theme=dark] :is(.project-arrow,.streetview-arrow,.devices-arrow,.pano-toolbar .ui-arrow,#rotation,.pano-toolbar button,.streetview-release,#gallery-close,.gallery-open){background:var(--paper);color:var(--ink);border-color:var(--theme-line)}
[data-theme=dark] .section-next.scroll-cue{background:transparent;border:0}
[data-theme=dark] :is(.project-arrow,.streetview-arrow,.devices-arrow,.pano-toolbar button,#rotation,.gallery-open,.theme-toggle):hover{border-color:var(--accent);color:var(--accent)}
[data-theme=dark] .gallery-open-count{background:#293538;color:var(--ink)}
[data-theme=dark] .gallery-layout{background:var(--theme-surface);border-color:var(--theme-line)}
[data-theme=dark] .gallery-layout button{color:var(--muted)}
[data-theme=dark] .gallery-layout button[aria-pressed=true]{background:#293538;color:var(--ink);border-color:#49777a}
[data-theme=dark] #project-gallery::backdrop{background:var(--paper)}
[data-theme=dark] .gallery-image,[data-theme=dark] .detail-frame{background:var(--theme-surface)}
[data-theme=dark] .gallery-grid[data-layout=poster] .gallery-card h3{color:#fff}
[data-theme=dark] .clients-marquee::before{background:linear-gradient(90deg,var(--theme-surface),transparent)}
[data-theme=dark] .clients-marquee::after{background:linear-gradient(-90deg,var(--theme-surface),transparent)}
[data-theme=dark] .client-logo img{filter:grayscale(1) brightness(0) invert(1);opacity:.78}
[data-theme=dark] .client-logo:hover img{filter:grayscale(1) brightness(0) invert(1);opacity:1}
[data-theme=dark] .pano-stage::after{background:linear-gradient(90deg,#11161700,#111617 50%,#11161700)}
[data-theme=dark] .feature-copy ul{color:var(--muted)}
[data-theme=dark] .detail-placeholder{background:var(--theme-surface);border-color:var(--theme-line)}
[data-theme=dark] .detail-placeholder strong{color:var(--ink)}
@media(max-width:1050px) and (min-width:901px){.site-header{gap:12px;padding-left:4%;padding-right:4%}.site-header nav{gap:12px}}
@media(max-width:900px){.site-header .brand{order:1}.site-header .theme-toggle{order:2;margin-left:auto}.site-header nav{order:3;margin-left:0}.case-header{gap:12px}}
@media(max-width:400px){.case-header{gap:8px}.case-header .theme-toggle{flex-basis:36px;width:36px;height:36px}.case-back{font-size:11px}}
/* Keep every navigation label on one line on compact desktop screens. */
@media(min-width:901px) and (max-width:1050px){
 :root{--header-height:114px}
 .site-header{flex-wrap:wrap;gap:10px;align-content:center;padding:12px 5%}
 .site-header .brand{order:1;height:40px}
 .site-header .theme-toggle{order:2;margin-left:auto}
 .site-header nav{order:3;display:flex;width:100%;margin-left:0;gap:20px;justify-content:space-between;overflow-x:auto;font-size:12px}
 .site-header nav a{flex:0 0 auto;white-space:nowrap;padding:3px 0}
}
