/* Theme control and surfaces. The chosen theme loads before the first paint. */
:root{color-scheme:light}
.header-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #c7cdd0;background:transparent;color:var(--navy);padding:10px;cursor:pointer;transition:background .2s,color .2s}
.theme-toggle:hover{background:#e7e9e6}
.theme-toggle .theme-sun{display:none}
.project.night-building .project-img img{object-fit:contain;background:#0b1017}
@media(max-width:767px){header .header-tools{grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%}header .header-tools .language-switch{margin:0}header .header-tools .theme-toggle{width:44px;height:44px}}
@media(min-width:1024px) and (max-width:1180px){header{gap:12px}header nav{gap:14px;font-size:11px}header .brand{font-size:12px}header .brand img{width:36px;height:40px}.header-tools{gap:6px}}
html[data-theme="dark"]{color-scheme:dark;--cream:#0e1622;--muted:#b6c3d3;--line:#344455;--white:#eaf0f7;--surface:#162231;--surface-raised:#1d2d3f;--text-dark:#eaf0f7;--accent-dark:#ffb3a7}
html[data-theme="dark"] body{background:var(--cream);color:var(--text-dark)}
html[data-theme="dark"] header,html[data-theme="dark"] header nav{background:var(--cream);color:var(--text-dark);border-color:var(--line)}
html[data-theme="dark"] .brand img{mix-blend-mode:normal;filter:none;background:#f7f6f2;border-radius:4px;padding:3px}
html[data-theme="dark"] .theme-toggle{color:var(--text-dark);border-color:#64778d}
html[data-theme="dark"] .theme-toggle:hover{background:var(--surface-raised)}
html[data-theme="dark"] .theme-toggle .theme-moon{display:none}
html[data-theme="dark"] .theme-toggle .theme-sun{display:block}
html[data-theme="dark"] .language-switch{border-color:#64778d}
html[data-theme="dark"] .language-switch button{color:var(--text-dark)}
html[data-theme="dark"] .language-switch button[aria-pressed="true"]{background:#eaf0f7;color:#101e30}
html[data-theme="dark"] .language-switch button:hover:not([aria-pressed="true"]){background:var(--surface-raised)}
html[data-theme="dark"] .menu{color:var(--text-dark);border-color:#64778d}
html[data-theme="dark"] nav>a:hover,html[data-theme="dark"] .nav-cta span{color:var(--accent-dark)}
html[data-theme="dark"] .bank-proof,html[data-theme="dark"] .services,html[data-theme="dark"] form{background:var(--surface);color:var(--text-dark);border-color:var(--line)}
html[data-theme="dark"] .bank-proof p,html[data-theme="dark"] .bank-names strong,html[data-theme="dark"] .home-proof strong{color:var(--text-dark)}
html[data-theme="dark"] .about-body,html[data-theme="dark"] .section-label,html[data-theme="dark"] .section-top>p,html[data-theme="dark"] .projects .section-top>p,html[data-theme="dark"] .values span,html[data-theme="dark"] .service-content,html[data-theme="dark"] .service-content p,html[data-theme="dark"] .service-content span,html[data-theme="dark"] .project-description,html[data-theme="dark"] .project-caption small,html[data-theme="dark"] .photo-note,html[data-theme="dark"] .num,html[data-theme="dark"] .home-proof small,html[data-theme="dark"] .bank-proof>div>span{color:var(--muted)}
html[data-theme="dark"] .service-list details{border-color:var(--line)}
html[data-theme="dark"] .project{color:var(--text-dark)}
html[data-theme="dark"] .project-img,html[data-theme="dark"] .project.residential.portrait-house .project-img{background:#192432}
html[data-theme="dark"] .view{background:var(--surface-raised);color:var(--text-dark)}
html[data-theme="dark"] .filters button{color:var(--text-dark);border-color:#64778d;background:transparent}
html[data-theme="dark"] .filters button.active{background:#eaf0f7;color:#101e30;border-color:#eaf0f7}
html[data-theme="dark"] .filters button:not(.active):hover{background:var(--surface-raised);border-color:#aabdd3}
html[data-theme="dark"] .contact>div>p,html[data-theme="dark"] .contact-address p,html[data-theme="dark"] .contact-address a,html[data-theme="dark"] form>small{color:var(--muted)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0e1927;color:var(--text-dark);border-color:#63768d}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a9b7c9;opacity:1}
html[data-theme="dark"] .red{background:#bd2d36;color:#fff}
html[data-theme="dark"] .red:hover{background:#a8242d}
html[data-theme="dark"] .bank-proof .home-proof span span{color:var(--accent-dark)}
html[data-theme="dark"] .email,html[data-theme="dark"] .nav-cta{border-color:var(--accent-dark)}
html[data-theme="dark"] #copy-message{background:#dce8f6;color:#101e30}
html[data-theme="dark"] footer{border-color:var(--line)}
html[data-theme="dark"] footer p,html[data-theme="dark"] dialog p{color:var(--muted)}
html[data-theme="dark"] dialog{background:var(--surface);color:var(--text-dark)}
html[data-theme="dark"] .close{background:#dce8f6;color:#101e30}
html[data-theme="dark"] .skip:focus{background:var(--surface);color:var(--text-dark)}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible,html[data-theme="dark"] summary:focus-visible{outline-color:#ffbc9a}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
