:root{color-scheme:dark}
.header{gap:24px}.header #nav{margin-left:auto;gap:24px}.header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.theme-toggle{display:grid;place-items:center;width:42px;height:42px;padding:10px;border:1px solid #c6a36565;border-radius:50%;color:var(--gold);background:transparent;transition:background .2s,border-color .2s}
.theme-toggle:hover{background:#c6a36516;border-color:var(--gold)}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .moon{display:none}
:root[data-theme="light"]{color-scheme:light;--bg:#f7f6f2;--panel:#ffffff;--gold:#866321;--muted:#58614f;--line:#26332024;--text:#1b2419}
[data-theme="light"] .theme-toggle .sun{display:none}[data-theme="light"] .theme-toggle .moon{display:block}
[data-theme="light"] body{background:var(--bg);color:var(--text)}
[data-theme="light"] #nav{color:#44503d}
[data-theme="light"] .header #nav a:hover,[data-theme="light"] .header #nav a[aria-current]{color:var(--gold)}
[data-theme="light"] .gold{background:#c6a365;color:#171d14}[data-theme="light"] .gold:hover{background:#d9b779}
[data-theme="light"] .hero-note,[data-theme="light"] .scope-strip .wrap,[data-theme="light"] footer small{color:#56624e}
[data-theme="light"] .scope-strip{background:#eeeee5}
[data-theme="light"] .service{background:#fffdf8}[data-theme="light"] .service:hover{background:#f0eee5}
[data-theme="light"] .service-top{color:#647158}[data-theme="light"] .service li{color:#495641}
[data-theme="light"] .service-feature{background:#ece9dc}
[data-theme="light"] .service li:before{color:var(--gold)}
[data-theme="light"] .backup-section{background:#eeeee6}
[data-theme="light"] .backup-points strong{color:var(--text)}
[data-theme="light"] .home-bottom p{color:#46523e}
[data-theme="light"] .directory-no{color:#626e59}
[data-theme="light"] .situation{background:#eceee3}
[data-theme="light"] .situation p,[data-theme="light"] .outcome p{color:#44503c}
[data-theme="light"] .outcome{background:#f1ecdf;border-color:#a88a4b66}
[data-theme="light"] .models article{background:#fffdf8;border-color:#a88a4b55}
[data-theme="light"] .about-monogram{background:radial-gradient(#c6a36526,transparent 75%),#fffdf8}
[data-theme="light"] .about-monogram span{color:#626e56}
[data-theme="light"] nav.breadcrumbs,[data-theme="light"] nav.breadcrumbs a{color:#5b654f}
[data-theme="light"] nav.breadcrumbs>span[aria-hidden]{color:#7b846e}
[data-theme="light"] .contact-section{background:#e7dbc2;color:#192115}
[data-theme="light"] .contact-layout>div>p{color:#46503c}
[data-theme="light"] .brief{background:#fffdf8;color:var(--text);box-shadow:0 8px 32px #5346280c}
[data-theme="light"] .brief>p{color:#59634f!important}
[data-theme="light"] textarea{background:#f4f3ed;border-color:#8c957e88;color:var(--text)}
[data-theme="light"] textarea::placeholder{color:#626c57}
[data-theme="light"] .form-status{color:#73510d}
[data-theme="light"] .brief .contact-pending{border-color:var(--line)}
/* Technical illustrations keep their material colors in both palettes. */
[data-theme="light"] .infra-visual,[data-theme="light"] .backup-art{--gold:#c6a365;color:#eeefe8;background-color:#1a2017;border-color:#757b6255}
[data-theme="light"] .infra-visual .gold-text{color:#c6a365}
@media(max-width:1050px){.header{gap:18px}.header #nav{gap:16px}.header .brand img{width:155px}.header .nav-contact{padding:10px 14px}}
@media(max-width:850px){.header .brand img{width:140px}.header{padding-inline:24px;gap:14px}.header #nav{gap:13px;font-size:11px}.header .nav-contact span{margin-left:6px}}
@media(max-width:760px){.header{padding-inline:22px;gap:18px}.header .brand img{width:155px}.header-actions{margin-left:auto;gap:10px}.header #nav{margin-left:0;gap:20px;font-size:15px}.header .nav-contact{padding:12px 19px}.theme-toggle{height:40px;width:40px}.header .menu{padding-right:0}[data-theme="light"] .header #nav{background:#f7f6f2;border-bottom-color:var(--line)}}
@media(prefers-reduced-motion:no-preference){body{transition:background-color .18s,color .18s}}
