/* Header preferences stay visible on every page and at every breakpoint. */
.site-header { gap:20px; }
.navigation { gap:22px; margin-left:auto; }
.navigation .region { display:none; }
.site-preferences { display:flex; align-items:center; gap:7px; flex-shrink:0; }
.site-preferences select,.theme-toggle { height:38px; border:1px solid var(--line); border-radius:9px; background:transparent; color:var(--ink); font:11px var(--sans); }
.site-preferences select { padding:0 5px; width:47px; cursor:pointer; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 10px; }
.theme-toggle:hover,.site-preferences select:hover { background:rgba(210,154,42,.09); }
.theme-icon { font-size:17px; line-height:1; }
.brand-promise { border-left:2px solid var(--ochre); padding-left:15px; font-size:13px!important; color:var(--ink)!important; }
.hero h1 { font-size:clamp(58px,5.6vw,83px); }
.note-header>.text-link { margin-left:auto; }
html[data-theme=dark] { color-scheme:dark; --ivory:#181919; --ink:#f1ede5; --petroleum:#f1ede5; --muted:#bcb6aa; --line:rgba(248,245,238,.17); --copper:#e3b452; --ochre-dark:#e3b452; --sage:#514a3e; --edge-light:rgba(248,245,238,.13); --soft-shadow:0 12px 32px -24px #000; }
html[data-theme=dark] body { background:#181919; color:var(--ink); }
html[data-theme=dark] .ambient-field { opacity:.12; }
html[data-theme=dark] .hero::before { display:none; }
html[data-theme=dark] .site-header { background:#222322; border-color:var(--line); box-shadow:none; }
html[data-theme=dark] :is(.hero-description,.section-intro>p,.service-content>span,.services-heading>p,.service-open-hint,.service-expanded p,.deliverables p,.note-prose p,.note-prose li,.note-preview p,.editorial-lead,.note-end p,.hero-footnote,.note-meta,.announcement>a,.scene-coordinate) { color:var(--muted); }
html[data-theme=dark] :is(.hero-description strong,.section-intro>p strong,.note-prose strong,.method-note strong,.announcement-action) { color:var(--ink); }
html[data-theme=dark] .button { background:var(--ochre); color:#211c14; border-color:var(--ochre); box-shadow:none; }
html[data-theme=dark] .button:hover { background:#e1ad43; }
html[data-theme=dark] :is(.service,.method-steps>li,.deliverables,.note-preview,.note-end,.trust-diagram) { background:#242522; border-color:var(--line); box-shadow:none; }
html[data-theme=dark] .service-featured { background:#302a1f; }
html[data-theme=dark] :is(.service-number,.deliverable-mark) { background:#333027; color:#e3b452; border-color:var(--line); box-shadow:none; }
html[data-theme=dark] .diagram-circle { background:#292a26; border-color:#777062; box-shadow:none; }
html[data-theme=dark] .diagram-node:hover .diagram-circle,html[data-theme=dark] .diagram-node[aria-pressed=true] .diagram-circle { background:#3c3425; }
html[data-theme=dark] .scene-card { background:#242522fa; border-color:var(--line); border-top-color:var(--ochre); box-shadow:0 20px 50px -20px #000; }
html[data-theme=dark] .hotspot-label { background:#242522; color:var(--ink); border-color:var(--line); box-shadow:none; }
html[data-theme=dark] .scene-tools { background:#242522; border-color:var(--line); box-shadow:none; }
html[data-theme=dark] .scene-tools button:hover:not(:disabled) { background:#3c3425; }
html[data-theme=dark] .scene-tools button+button { border-color:var(--line); }
html[data-theme=dark] .foundation-index a:hover { background:#302a1f; }
html[data-theme=dark] .contact { background:#25241f; color:#f8f5ee; border-color:#514633; box-shadow:none; }
html[data-theme=dark] .contact-action p { color:#d3cbbd; }
html[data-theme=dark] .inquiry-dialog { background:#242522; color:var(--ink); border-color:var(--line); }
html[data-theme=dark] :is(.inquiry-dialog input,.inquiry-dialog select,.inquiry-dialog textarea) { color:var(--ink); background:#181919; border-color:var(--line); box-shadow:none; }
html[data-theme=dark] .inquiry-dialog::backdrop { background:#0009; }
html[data-theme=dark] :is(.announcement-label,.service-expanded p,.method-note,.contact-action) { border-color:var(--line); }
html[data-theme=dark] .announcement>a:hover { background:#242522; }
html[data-theme=dark] .menu-toggle { background:transparent; border-color:var(--line); }
html[data-theme=dark] ::selection { background:#d29a2a; color:#181919; }
@media(max-width:1100px) {
  .site-header { gap:12px; }
  .navigation { display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; padding:24px; margin:0; flex-direction:column; align-items:stretch; border:1px solid var(--line); border-radius:18px; background:#fbf8f0; box-shadow:var(--soft-shadow); }
  .navigation.is-open { display:flex; }
  .navigation>a { padding:10px; font-size:15px; }
  .site-header>.brand { margin-right:auto; }
  .site-preferences { order:2; }
  .menu-toggle { order:3; display:flex; align-items:center; gap:9px; border:1px solid var(--line); padding:8px 10px; min-height:38px; font-size:11px; }
  .menu-toggle span { font-size:18px; }
  html[data-theme=dark] .navigation { background:#222322; }
  .hero h1 { font-size:clamp(45px,5.5vw,65px); }
}
@media(max-width:680px) {
  .site-header { gap:8px; }
  .brand img.brand-lockup { width:clamp(112px,34vw,145px); }
  .theme-label { display:none; }
  .theme-toggle { padding:0; width:38px; }
  .site-preferences { gap:5px; }
  .site-preferences select { width:43px; }
  .menu-toggle { font-size:0; min-width:38px; width:38px; justify-content:center; padding:0; }
  .menu-toggle span { font-size:19px; }
  .hero h1 { font-size:clamp(43px,11vw,62px); white-space:normal; }
  .note-header { flex-wrap:wrap; height:auto; min-height:90px; padding-block:14px; }
  .note-header>.text-link { order:3; flex-basis:100%; margin:5px 0 0; font-size:11px; border-bottom:0; }
}
html[data-theme=dark] .deliverables .eyebrow { color:#e3b452; }
