/* BDW Theme v1.1 — MIT. Brand palette remains intact in light mode. */
:root {color-scheme:light;--bdw-brand-mint:#b2e0d6;--bdw-brand-ink:#374550;--bdw-brand-sand:#f0e6da;--bdw-brand-paper:#fffdf9;}
html[data-bdw-theme="dark"] {
 color-scheme:dark;
 --bdw-paper:#25323b;--bdw-soft:#303e48;--bdw-sand:#374550;
 --bdw-ink:#f0f5f3;--bdw-mint:#405e5b;--bdw-mint-soft:#354e4d;
 --bdw-muted:#c3d1d2;--bdw-line:#52636e;--bdw-theme-raised:#34434d;
 --bdw-shadow:0 30px 90px #10191f66;--bdw-shadow-soft:0 18px 55px #10191f44;
 --bdw-fx-ink:var(--bdw-brand-mint);--bdw-fx-mint:var(--bdw-brand-mint);
 --bdw-fx-paper:var(--bdw-paper);--bdw-fx-sand:var(--bdw-sand);
 background:var(--bdw-paper);color:var(--bdw-ink);
}
/* Compatibility bridge for explicit colors in the legacy CSS. */
/* app.css */

@layer components {
:where(html[data-bdw-theme="dark"]) .bdw-nav a:hover,:where(html[data-bdw-theme="dark"]) .bdw-nav button:hover{background:color-mix(in srgb,var(--bdw-sand) 62%,var(--bdw-theme-raised));}
:where(html[data-bdw-theme="dark"]) .bdw-mega-group{background:color-mix(in srgb,var(--bdw-sand) 34%,var(--bdw-theme-raised));}
:where(html[data-bdw-theme="dark"]) .bdw-hero{background:linear-gradient(100deg,color-mix(in srgb,var(--bdw-sand) 64%,var(--bdw-theme-raised)),var(--bdw-paper) 58%);}
:where(html[data-bdw-theme="dark"]) .bdw-orbit{background:color-mix(in srgb,var(--bdw-sand) 50%,var(--bdw-theme-raised));}
:where(html[data-bdw-theme="dark"]) .bdw-service-filter button[aria-selected="true"]{color:var(--bdw-paper);}
:where(html[data-bdw-theme="dark"]) .bdw-service-card p{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-projects{background:color-mix(in srgb,var(--bdw-sand) 52%,var(--bdw-theme-raised));}
:where(html[data-bdw-theme="dark"]) .bdw-browser em{background:color-mix(in srgb,var(--bdw-mint) 46%,var(--bdw-theme-raised));}
}

:where(html[data-bdw-theme="dark"]) .bdw-footer__status>a{background:color-mix(in srgb,var(--bdw-theme-raised) 4%,transparent);}
@media (max-width:900px) {
:where(html[data-bdw-theme="dark"]) .bdw-mega-group{background:color-mix(in srgb,var(--bdw-sand) 44%,var(--bdw-theme-raised));}
}
@layer components {
:where(html[data-bdw-theme="dark"]) .bdw-post-card--featured{color:var(--bdw-paper);}
}
@layer responsive {
@media (max-width: 900px) {
:where(html[data-bdw-theme="dark"]) .bdw-nav__services[aria-expanded="true"]{background:color-mix(in srgb, var(--bdw-sand) 58%, var(--bdw-theme-raised));}
}
}
@layer components {
:where(html[data-bdw-theme="dark"]) .bdw-projects .bdw-eyebrow,:where(html[data-bdw-theme="dark"]) .bdw-contact .bdw-eyebrow{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-case--accent p{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-contact__layout>div:last-child p{color:var(--bdw-muted);}
}
:where(html[data-bdw-theme="dark"]) .bdw-single__hero{background:color-mix(in srgb,var(--bdw-sand) 58%,var(--bdw-theme-raised));}
:where(html[data-bdw-theme="dark"]) .bdw-single__aside{background:var(--bdw-theme-raised);}
:where(html[data-bdw-theme="dark"]) .bdw-single__related a{background:var(--bdw-theme-raised);}
:where(html[data-bdw-theme="dark"]) .bdw-single__cta a{color:var(--bdw-paper);}
:where(html[data-bdw-theme="dark"]) .bdw-footer__markets>div a{background:color-mix(in srgb,var(--bdw-theme-raised) 3%,transparent);}
:where(html[data-bdw-theme="dark"]) .bdw-service-index__item>a{background:var(--bdw-theme-raised);}
:where(html[data-bdw-theme="dark"]) .bdw-service-index__item span{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-service-index__item p{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-projects__intro{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-footer__ad .bdw-house-ad > span,:where(html[data-bdw-theme="dark"]) .bdw-footer__ad .bdw-house-ad > p{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-author{background:var(--bdw-theme-raised);color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-author a,:where(html[data-bdw-theme="dark"]) .bdw-blog-index__author a{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-author small{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-blog-index__author{color:var(--bdw-muted);}
@layer components {
:where(html[data-bdw-theme="dark"]) .bdw-live{background:color-mix(in srgb,var(--bdw-mint) 18%,var(--bdw-theme-raised));}
}

@layer components {
:where(html[data-bdw-theme="dark"]) .bdw-nav > .bdw-nav__client:hover,:where(html[data-bdw-theme="dark"]) .bdw-nav > .bdw-nav__client:focus-visible{color:var(--bdw-paper);}
}

:where(html[data-bdw-theme="dark"]) .bdw-brand-search .bdw-eyebrow,:where(html[data-bdw-theme="dark"]) .bdw-brand-search__head > p{color:var(--bdw-muted);}
:where(html[data-bdw-theme="dark"]) .bdw-brand-search__grid a > span{color:var(--bdw-muted);}
/* layout-core.css */
:where(html[data-bdw-theme="dark"]) .bdw-ocean-hero--2{background:radial-gradient(ellipse 45% 80% at 100% 10%,color-mix(in srgb,var(--bdw-mint) 34%,transparent),transparent 85%),linear-gradient(145deg,var(--bdw-paper),var(--bdw-soft) 65%,color-mix(in srgb,var(--bdw-mint) 19%,var(--bdw-theme-raised)));}
/* page-engine.css */
/* Stable dark surfaces and readable calls to action. */
html[data-bdw-theme="dark"] :is(.bdw-footer,.bdw-approach,.bdw-service-card--featured,.bdw-single__fact,.bdw-orbit__core){background:var(--bdw-brand-ink);color:var(--bdw-ink);}
html[data-bdw-theme="dark"] .bdw-footer__rail{background:#405e5b;color:var(--bdw-ink);}
html[data-bdw-theme="dark"] :is(.bdw-footer__eyebrow,.bdw-footer__logo small,.bdw-footer__rail-inner b,.bdw-footer__social span,.bdw-eyebrow--light,.bdw-hero h1 em){color:var(--bdw-brand-mint);}
html[data-bdw-theme="dark"] :is(.bdw-cta,.bdw-sls__button:not(.bdw-sls__button--outline),.bdw-lead-form__submit,.bdw-editorial-hero__cta,.bdw-nav > .bdw-nav__client,.bdw-nav__mobile-cta,.bdw-skip){background:var(--bdw-brand-mint);color:var(--bdw-brand-ink);border-color:transparent;}
html[data-bdw-theme="dark"] :is(.bdw-cta,.bdw-lead-form__submit,.bdw-nav > .bdw-nav__client):hover{background:#c9ece4;color:var(--bdw-brand-ink);}
html[data-bdw-theme="dark"] .bdw-dialog__actions .bdw-cta--outline{background:transparent;color:var(--bdw-ink);border-color:var(--bdw-line);}
html[data-bdw-theme="dark"] :is(.bdw-service-dialog,.bdw-lead-dialog)::backdrop{background:#10191fbf;}
/* Recolor only monochrome artwork. Full-color SVGs retain their internal contrast. */
html[data-bdw-theme="dark"] :is(img[src^="/assets/icons/services/"],img[src^="/assets/icons/niches/"],img[src="/assets/icons/chevron-down.svg"],img[src="/assets/img/bdw-crab-ink.svg"],img[src="/assets/img/bianchi.svg"],img[data-bdw-monochrome],.bdw-architecture-card__brand img){filter:brightness(0) saturate(100%) invert(88%) sepia(15%) saturate(440%) hue-rotate(105deg) brightness(96%) contrast(92%);}
/* These images own their background: filtering the element would flatten the glyph and tile. */
html[data-bdw-theme="dark"] :is(.bdw-brand-search__icon,.bdw-single__kicker img,.bdw-geo-card__icon,.bdw-priority__card img){filter:none;background:var(--bdw-brand-mint);}
html[data-bdw-theme="dark"] .bdw-geo-card__icon--province{background:transparent;}
html[data-bdw-theme="dark"] .bdw-market-switcher::after{filter:invert(1);}
html[data-bdw-theme="dark"] :is(input,textarea,select)::placeholder{color:var(--bdw-muted);opacity:1;}
html[data-bdw-theme="dark"] :focus-visible{outline-color:var(--bdw-brand-mint);}
html[data-bdw-theme="dark"] ::selection{background:var(--bdw-brand-mint);color:var(--bdw-brand-ink);}
.bdw-market-switcher{display:flex;align-items:center;gap:6px;width:auto;}
.bdw-theme-toggle{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--bdw-line);border-radius:12px;background:var(--bdw-paper);color:var(--bdw-ink);padding:10px;touch-action:manipulation;}
.bdw-theme-toggle[hidden]{display:none;}
.bdw-theme-toggle:hover{background:var(--bdw-soft);}
.bdw-theme-toggle:focus-visible{outline:2px solid var(--bdw-ink);outline-offset:3px;}
.bdw-theme-toggle svg{width:22px;height:22px;}
.bdw-theme-toggle__sun{display:none;}
html[data-bdw-theme="dark"] .bdw-theme-toggle__sun{display:block;}
html[data-bdw-theme="dark"] .bdw-theme-toggle__moon{display:none;}
@media (min-width:1041px) and (max-width:1350px){.bdw-header__row{gap:8px;}.bdw-nav a,.bdw-nav button{padding-inline:6px;font-size:.68rem;}.bdw-market-switcher select{width:64px;max-width:64px;}.bdw-header__cta{padding-inline:10px;}}
@media (max-width:1040px){.bdw-header__row{gap:6px;}.bdw-market-switcher{gap:5px;}}
@media (max-width:380px){.bdw-header__row{gap:4px;}.bdw-nav-toggle{width:42px;padding:10px;}.bdw-theme-toggle{flex-basis:44px;}.bdw-market-switcher{gap:4px;}}
@media print{html[data-bdw-theme="dark"]{color-scheme:light;--bdw-paper:#fffdf9;--bdw-soft:#f8f4ee;--bdw-ink:#374550;--bdw-muted:#374550;--bdw-mint:#b2e0d6;--bdw-sand:#f0e6da;--bdw-theme-raised:#fffdf9;}.bdw-theme-toggle{display:none;}}
/* Preserve the identity of small mint indicators without brightening large surfaces. */
html[data-bdw-theme="dark"] :is(.bdw-live i,.bdw-hero__trust span::before,.bdw-footer__status i){background:var(--bdw-brand-mint);}
html[data-bdw-theme="dark"] .bdw-footer__rail-inner b{color:var(--bdw-ink);}
@media(max-width:1040px){html[data-bdw-theme="dark"] .bdw-nav > .bdw-nav__mobile-cta,html[data-bdw-theme="dark"] .bdw-nav > .bdw-nav__client{background:var(--bdw-brand-mint)!important;color:var(--bdw-brand-ink)!important;}}
