/* Theme control stays small; its hit area remains 44px high. */
html{color-scheme:dark}html[data-theme="light"]{color-scheme:light}
.precision-site .site-header{gap:24px}.header-tools{display:flex;align-items:center;gap:8px;order:2}.precision-site .site-header nav{margin-left:auto;order:1}
/* A miniature standing lamp with a clickable pull cord. */
.theme-toggle{display:grid;place-items:center;min-width:48px;min-height:68px;touch-action:none;user-select:none;padding:0;border:0;background:none;color:inherit;position:relative}
.theme-lamp{display:block;width:48px;height:68px;overflow:visible}
.lamp-shade,.lamp-base{fill:#263644;stroke:#8096A5;stroke-width:1}.lamp-stem{fill:#8096A5}
.lamp-cord{fill:none;stroke:#8096A5;stroke-width:1.2}.lamp-handle{fill:var(--lime);stroke:#263644;stroke-width:.5}
.lamp-bulb{fill:var(--lime);opacity:.18}.lamp-beam{fill:var(--lime);opacity:0}.lamp-halo{fill:var(--lime);opacity:0}
.lamp-pull{transition:transform .45s cubic-bezier(.2,.8,.2,1);transform-origin:48px 27px}
.lamp-pull{touch-action:none;cursor:grab}.lamp-grip{fill:transparent;pointer-events:all}.cord-dragging .lamp-pull{cursor:grabbing}.cord-dragging{z-index:10}
.theme-toggle:hover .lamp-handle{fill:#FFFFFF}.theme-toggle:focus-visible{border-radius:6px}
html[data-theme="light"] .lamp-shade,html[data-theme="light"] .lamp-base{fill:#17232D;stroke:#526270}
html[data-theme="light"] .lamp-stem{fill:#526270}
html[data-theme="light"] .lamp-bulb{fill:#F5D58A;opacity:1}
html[data-theme="light"] .lamp-beam{fill:#E6BF64;opacity:.24}
html[data-theme="light"] .lamp-halo{fill:#E6BF64;opacity:.2}
html[data-theme="light"] .lamp-handle{fill:#E6BF64}
/* Opt in after initial preference restoration: no fade on page loading. */
.theme-animated .precision-site,.theme-animated .precision-site :is(header,nav,main,footer,section,article,div,p,h1,h2,h3,h4,a,button,span,input,textarea,label,pre,blockquote,table,th,td,li,small,i),.theme-animated .theme-lamp *,.theme-animated .system-connections *{
 transition-property:background-color,color,border-color,fill,stroke,box-shadow,opacity;
 transition-duration:1.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);
}
/* Preserve existing hover transforms and the deliberate cord movement. */
.theme-animated .precision-site .project-image img{transition:transform .5s}
.theme-animated .precision-site .service-row{transition:padding .2s,color 1.2s,border-color 1.2s}
.theme-animated .theme-lamp .lamp-pull{transition:transform .45s cubic-bezier(.2,.8,.2,1)}
html[data-theme="light"] .precision-site{background:var(--paper);color:var(--charcoal);--muted:#526270;--line:rgba(23,35,45,.2);--light-accent:#236776}
html[data-theme="light"] .precision-site :is(h1,h2,h3,.wordmark,.text-link,.site-header,.hero-bottom,.large-copy){color:var(--ink)}
html[data-theme="light"] .precision-site :is(.hero-accent,.brand-mark,.project-website,.service-row .arrow,.footer-top .eyebrow,.footer-cta>span){color:var(--light-accent)}
html[data-theme="light"] .precision-site .status-dot{background:var(--light-accent)}
html[data-theme="light"] .precision-site :is(a,button,input,textarea):focus-visible{outline-color:var(--light-accent)}
html[data-theme="light"] .precision-site .text-link:hover{color:var(--light-accent)}
html[data-theme="light"] .precision-site .menu-toggle{color:var(--ink)}
html[data-theme="light"] .precision-site .button:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
html[data-theme="light"] .precision-site .site-footer{background:#E1E8EC;color:var(--ink)}
html[data-theme="light"] .precision-site .footer-bottom{border-color:var(--line)}
html[data-theme="light"] .precision-site :is(.editorial pre,.notice){background:#E1E8EC}
html[data-theme="light"] .precision-site :is(.enquiry-form input,.enquiry-form textarea){color:var(--ink)}
html[data-theme="light"] .system-visual{--system-bg:var(--paper);--system-text:var(--ink);--system-accent:var(--light-accent);--system-line:var(--line)}
html[data-theme="light"] .system-art{background-image:linear-gradient(rgba(23,35,45,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(23,35,45,.055) 1px,transparent 1px)}
@media(max-width:760px){.precision-site .site-header{gap:12px}.header-tools{order:1;gap:0}.precision-site .site-header nav{order:2;margin-left:0}.precision-site .menu-toggle{padding-left:8px}.precision-site .menu-toggle span{margin-left:4px}}
@media(prefers-reduced-motion:reduce){.theme-animated .precision-site,.theme-animated .precision-site *{transition:none!important}.theme-toggle:active .lamp-pull{transform:none}}
