/* BDW Adaptive UI 1.1 — component roles, independent of inverted theme tokens. */
:root {
  --bdw-ui-surface:#f5f1eb;
  --bdw-ui-text:#374550;
  --bdw-ui-muted:#465660;
  --bdw-ui-feature:#374550;
  --bdw-ui-feature-text:#fffdf9;
  --bdw-ui-feature-muted:#e0eae8;
  --bdw-ui-accent:#b2e0d6;
  --bdw-ui-accent-text:#26343d;
  --bdw-ui-focus:#374550;
}
html[data-bdw-theme="dark"] {
  --bdw-ui-surface:#303e48;
  --bdw-ui-text:#f0f5f3;
  --bdw-ui-muted:#d2dfdf;
  --bdw-ui-feature:#b2e0d6;
  --bdw-ui-feature-text:#26343d;
  --bdw-ui-feature-muted:#374550;
  --bdw-ui-focus:#b2e0d6;
}
/* Each surface owns its foreground, muted foreground and focus colors. */
html :is(.bdw-service-card,.bdw-post-card) {
  --bdw-card-bg:var(--bdw-ui-surface);
  --bdw-card-fg:var(--bdw-ui-text);
  --bdw-card-muted:var(--bdw-ui-muted);
  background:var(--bdw-card-bg); color:var(--bdw-card-fg);
}
html[data-bdw-theme] :is(.bdw-service-card--featured,.bdw-post-card--featured) {
  --bdw-card-bg:var(--bdw-ui-feature);
  --bdw-card-fg:var(--bdw-ui-feature-text);
  --bdw-card-muted:var(--bdw-ui-feature-muted);
  background:var(--bdw-card-bg); color:var(--bdw-card-fg);
}
html :is(.bdw-service-card,.bdw-post-card) :is(h3,.bdw-service-card__rail small,.bdw-service-card__rail span,.bdw-post-card__link,.bdw-service-card__actions > button) {color:var(--bdw-card-fg);opacity:1;}
html :is(.bdw-service-card,.bdw-post-card) p {color:var(--bdw-card-muted);font-size:1rem;line-height:1.6;}
html .bdw-post-card .bdw-post-card__meta {color:var(--bdw-card-muted);font-size:.8125rem;line-height:1.5;flex-wrap:wrap;}
html .bdw-service-card h3 {font-size:clamp(1.125rem,1.4vw,1.375rem);line-height:1.25;}
html .bdw-post-card h3 {line-height:1.15;}
html .bdw-service-card__rail :is(span,small) {font-size:.75rem;}
html .bdw-service-card__content {min-width:0;padding:clamp(16px,2vw,26px);}
html .bdw-service-card__icon {background:var(--bdw-ui-accent);color:var(--bdw-ui-accent-text);}
html[data-bdw-theme="dark"] .bdw-service-card--featured :is(.bdw-service-card__icon,.bdw-service-card__actions > a) {background:#374550;color:#fffdf9;}
html[data-bdw-theme="dark"] .bdw-service-card--featured .bdw-service-card__icon img {filter:brightness(0) invert(1);}
html[data-bdw-theme="dark"] .bdw-service-card:not(.bdw-service-card--featured) .bdw-service-card__icon img {filter:none;}
html .bdw-service-card__actions > a {background:var(--bdw-ui-accent);color:var(--bdw-ui-accent-text);}
html .bdw-service-card__actions > :is(a,button),html .bdw-post-card__link {font-size:.875rem;min-height:44px;align-items:center;}
html .bdw-service-card__actions > :is(a,button):focus-visible,html .bdw-post-card__link:focus-visible {outline:3px solid var(--bdw-card-fg);outline-offset:3px;}
html .bdw-service-filter button {font-size:.875rem;min-height:44px;}
html .bdw-footer {--bdw-footer-fg:#fffdf9;--bdw-footer-muted:#d2dfdf;--bdw-footer-accent:#b2e0d6;color:var(--bdw-footer-fg);background:#374550;}
html .bdw-footer :is(.bdw-footer__eyebrow,.bdw-footer__markets>div a span,.bdw-footer__latest small,.bdw-footer__social span,.bdw-footer__directory section>a span) {color:var(--bdw-footer-accent);opacity:1;}
html .bdw-footer :is(.bdw-footer__directory section>strong,.bdw-footer__latest strong) {color:var(--bdw-footer-fg);font-size:1rem;line-height:1.45;}
html .bdw-footer :is(.bdw-footer__directory section>a,.bdw-footer__markets>p,.bdw-footer__markets>div a,.bdw-footer__latest header a,.bdw-footer__latest span,.bdw-footer__legal a,.bdw-footer__bottom,.bdw-footer__social a,.bdw-footer__identity p) {color:var(--bdw-footer-muted);font-size:.875rem;line-height:1.55;}
html .bdw-footer :is(.bdw-footer__latest small,.bdw-footer__capabilities span,.bdw-footer__eyebrow,.bdw-label) {font-size:.8125rem;}
html .bdw-footer__markets>div {width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));}
html .bdw-footer__markets>div a {min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-color:#82959b;}
html .bdw-footer__markets>div a.is-current {color:#fffdf9;border-color:#b2e0d6;}
html .bdw-footer__directory section>a:hover {color:#b2e0d6;}
html .bdw-footer__social {grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));}
html .bdw-footer a:focus-visible {outline:3px solid #b2e0d6;outline-offset:3px;}
html .bdw-footer__rail a:focus-visible {outline-color:currentColor;}
html .bdw-footer__rail {font-size:.8125rem;}
html .bdw-footer__ad .bdw-house-ad {background:#405e5b;color:#fffdf9;}
html .bdw-footer__ad .bdw-house-ad :is(p,span,a,strong) {color:#fffdf9;}
html .bdw-footer__ad .bdw-house-ad p {font-size:.875rem;line-height:1.55;}
html :is(.bdw-sls__lead,.bdw-single__lead) {font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.65;}
/* Shared viewport contract: the root owns the obstruction offsets. */
html {
  --bdw-layout-header:85px;
  --bdw-layout-dock:calc(var(--bdw-footer-dock-height,42px) + env(safe-area-inset-bottom,0px));
  scroll-padding-block:calc(var(--bdw-layout-header) + 12px) calc(var(--bdw-layout-dock) + 12px);
  scroll-behavior:smooth;
}
body {padding-bottom:var(--bdw-layout-dock);}
html .bdw-footer__rail {position:fixed;inset:auto 0 0;padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;}
html body :is(main [id],footer [id]) {scroll-margin-block:0;}
html body :is(main > section[id],main > div > section[id]) {scroll-margin-block:0;}
html .bdw-services {padding-block-start:clamp(28px,4vw,56px);}
html .bdw-services .bdw-section-heading h2 {font-size:clamp(1.85rem,3.2vw,3.6rem);line-height:1.08;}
@media(max-width:1040px){html {--bdw-layout-header:70px;--bdw-footer-dock-height:48px;}}
@media(prefers-reduced-motion:reduce){html {scroll-behavior:auto;}}
@media(max-width:560px){html .bdw-service-card__rail {padding-inline:8px;}html .bdw-service-card__actions {gap:8px 12px;}html .bdw-footer__directory section>a {overflow-wrap:anywhere;} }
@media(prefers-reduced-motion:reduce){html :is(.bdw-service-card,.bdw-post-card) {transition:none;}html :is(.bdw-service-card,.bdw-post-card):hover {transform:none;} }

/* Comparison: explicit local foregrounds; page-engine loads after this file. */
html[data-bdw-theme="dark"] .bdw-page-comparison__card {
  --bdw-comparison-bg:#303e48; --bdw-comparison-fg:#f0f5f3;
  --bdw-comparison-link:#b2e0d6;
}
html[data-bdw-theme="dark"] .bdw-page-comparison__card--accent {
  --bdw-comparison-bg:#405e5b; --bdw-comparison-fg:#fffdf9;
  --bdw-comparison-link:#d5f5ed;
}
html .bdw-page-comparison__card {border-color:#82959b;}
html .bdw-page-comparison__card :is(h3,p,li,.bdw-label) {color:var(--bdw-comparison-fg,#374550);opacity:1;}
html .bdw-page-comparison__card :is(p,li) {font-size:1rem;line-height:1.65;}
html .bdw-page-comparison__card .bdw-label {font-size:.8125rem;line-height:1.5;}
html .bdw-page-comparison__card a {color:var(--bdw-comparison-link,#26343d);text-decoration:underline;min-height:44px;display:flex;align-items:center;gap:.35rem;}
html .bdw-page-comparison__card a:focus-visible {outline:3px solid currentColor;outline-offset:4px;}
/* Footer selectors target the actual nested elements, not generic span roles. */
html[data-bdw-theme] .bdw-footer .bdw-footer__markets > div > a > span,
html[data-bdw-theme] .bdw-footer .bdw-footer__latest > div > a > small {
  color:#b2e0d6;opacity:1;font-size:.875rem;line-height:1.5;
}
html[data-bdw-theme] .bdw-footer .bdw-footer__latest > div > a > span {
  color:#d2dfdf;opacity:1;font-size:.875rem;line-height:1.5;
}
html[data-bdw-theme] .bdw-footer .bdw-footer__markets > div > a {
  background:#374550;color:#fffdf9;border-color:#82959b;font-size:.875rem;
}
html[data-bdw-theme] .bdw-footer .bdw-footer__markets > div > a.is-current {border-color:#b2e0d6;}
html[data-bdw-theme] .bdw-footer .bdw-footer__latest > div > a {background:#374550;color:#fffdf9;}
html[data-bdw-theme] .bdw-footer .bdw-footer__latest > div > a:hover {background:#303e48;}
html[data-bdw-theme] .bdw-footer .bdw-footer__latest > div > a > strong {color:#fffdf9;font-size:1rem;}
html .bdw-footer .bdw-footer__latest header > .bdw-label {color:#b2e0d6;opacity:1;padding:0;margin:0;font-size:.875rem;}
html .bdw-footer .bdw-footer__markets > p {color:#d2dfdf;font-size:.9375rem;}
html .bdw-footer .bdw-footer__directory section > a {font-size:.9375rem;line-height:1.5;}
html .bdw-footer .bdw-footer__ad .bdw-house-ad > :is(span,p,a) {color:#fffdf9;opacity:1;}
/* Principles: bounded horizontal belt; native swipe, no document overflow. */
html .bdw-principles__viewport {overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;}
html .bdw-principles__track {display:flex;width:max-content;min-width:100%;animation:none;transform:none;will-change:auto;}
html .bdw-principles__set {display:flex;min-width:100%;width:max-content;height:auto;align-items:center;justify-content:space-around;padding:0;gap:0;}
html .bdw-principles__set p {flex:0 0 auto;min-width:150px;margin:0;color:var(--bdw-ink);font-size:.85rem;line-height:1.5;letter-spacing:.04em;padding:1rem;white-space:nowrap;}
@media (max-width:1040px) and (prefers-reduced-motion:no-preference) {
 html .bdw-principles__viewport:not(:focus-within):not(:hover) .bdw-principles__track {animation:bdw-principles-marquee 24s linear infinite;}
 html .bdw-principles__set {min-width:0;}
}
@media (min-width:1041px), (prefers-reduced-motion:reduce) {html .bdw-principles__set[aria-hidden="true"] {display:none;}}

/* Editorial reading rhythm and compact, theme-aware privacy controls. */
html .bdw-blog-single .bdw-blog-layout {
  padding-block:clamp(1.75rem,4vw,3.75rem) clamp(3rem,6vw,5.5rem);
  gap:clamp(2rem,5vw,4.5rem);
}
html .bdw-blog-single .bdw-blog-main {scroll-margin-top:calc(var(--bdw-header-visible, 88px) + 1.5rem);}
html .bdw-blog-single .bdw-author {margin-block:0 1.75rem;}
html .bdw-blog-single .bdw-article {max-width:72ch;font-size:clamp(1rem,1.15vw,1.125rem);line-height:1.75;overflow-wrap:anywhere;}
html .bdw-blog-single .bdw-article :is(p,ul,ol) {margin-block:0 1.25rem;}
html .bdw-blog-single .bdw-article h2 {margin-block:clamp(1.75rem,3vw,2.5rem) .75rem;line-height:1.2;}
html .bdw-blog-single .bdw-article h3 {margin-block:1.5rem .65rem;line-height:1.3;}
html .bdw-blog-single .bdw-article > :first-child {margin-top:0;}
html .bdw-blog-single .bdw-blog-sidebar {gap:2rem;min-width:0;}
html .bdw-blog-single .bdw-blog-sidebar__title :is(span,a) {font-size:.875rem;line-height:1.5;color:var(--bdw-ink);}
html .bdw-blog-single .bdw-blog-latest :is(small,span) {font-size:.8125rem;color:var(--bdw-ink);opacity:1;}
html .bdw-blog-single .bdw-blog-latest strong {font-size:1rem;line-height:1.45;color:var(--bdw-ink);}
.bdw-privacy-control {color:inherit;background:transparent;border:0;padding:.5rem 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;}
.bdw-privacy-panel {position:fixed;z-index:9999;inset-inline-end:clamp(.75rem,2vw,1.5rem);bottom:calc(var(--bdw-footer-dock-height,44px) + .75rem + env(safe-area-inset-bottom,0px));width:min(19rem,calc(100vw - 1.5rem));max-height:calc(100dvh - 6rem);overflow:auto;box-sizing:border-box;padding:1rem;border:1px solid var(--bdw-line);border-radius:14px;background:var(--bdw-paper);color:var(--bdw-ink);box-shadow:0 12px 32px #0003;line-height:1.5;font-size:.875rem;}
.bdw-privacy-panel[hidden] {display:none;}
.bdw-privacy-panel > strong {display:block;font-size:1rem;line-height:1.4;}
.bdw-privacy-actions {display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-block:.75rem;}
.bdw-privacy-actions button {min-height:44px;border:1px solid var(--bdw-ink);border-radius:9px;padding:.4rem .75rem;background:var(--bdw-paper);color:var(--bdw-ink);cursor:pointer;font:inherit;font-weight:650;}
.bdw-privacy-panel :is(summary,a) {color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.bdw-privacy-panel > a {display:inline-block;margin-top:.5rem;}
.bdw-privacy-panel label {display:flex;gap:.5rem;align-items:center;min-height:44px;}
.bdw-privacy-panel input {inline-size:1.15rem;block-size:1.15rem;accent-color:var(--bdw-ink);}
.bdw-privacy-panel :focus-visible,.bdw-privacy-control:focus-visible {outline:3px solid currentColor;outline-offset:3px;}

/* Editorial links and keyboard focus: use the component's current foreground. */
html :is(.bdw-article,.bdw-academy__about,.bdw-editorial-crosslink) a {text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere;}
html :is(.bdw-article,.bdw-academy,.bdw-guide,.bdw-contact) :focus-visible {outline:3px solid currentColor;outline-offset:4px;}
html .bdw-academy__route {scroll-margin-block-start:1rem;}
html .bdw-editorial-crosslink {margin-block:1.5rem;gap:.75rem;}
@media (prefers-reduced-motion:reduce){html {scroll-behavior:auto;}}

/* V60: shared commercial and discovery surfaces */
html .bdw-growth-decision,html .bdw-topical,html .bdw-geo-expansion{padding-block:clamp(1.5rem,4vw,3.5rem);}
:is(.bdw-growth-decision,.bdw-topical,.bdw-geo-expansion) > .bdw-shell{display:grid;gap:.85rem;min-width:0;}
:is(.bdw-growth-decision,.bdw-topical,.bdw-geo-expansion) h2{font-size:clamp(1.45rem,2.4vw,2.15rem);line-height:1.18;margin:0;letter-spacing:-.025em;}
:is(.bdw-growth-decision,.bdw-topical,.bdw-geo-expansion) p{margin:0;line-height:1.65;max-width:76ch;}
.bdw-growth-decision h3{margin:.65rem 0 0;font-size:1.05rem;}
.bdw-growth-decision .bdw-cta{justify-self:start;margin-top:.3rem;max-width:100%;white-space:normal;}
.bdw-growth-grid,.bdw-geo-expansion-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.75rem;}
.bdw-growth-grid>a,.bdw-geo-expansion-grid>a,.bdw-topical-grid li>a{display:grid;gap:.45rem;padding:1rem 1.15rem;border:1px solid var(--bdw-line);border-radius:14px;background:var(--bdw-soft);color:var(--bdw-ink);text-decoration:none;min-width:0;overflow-wrap:anywhere;}
.bdw-growth-grid>a span,.bdw-topic-kind{font-size:.75rem;color:var(--bdw-muted);}
.bdw-geo-expansion-grid>a{grid-template-columns:1fr auto;align-items:center;}
.bdw-geo-expansion-grid>a .bdw-label{grid-column:1/-1;}
html .bdw-topical-grid{gap:1rem;margin:0;}
html .bdw-topical-grid>section{border:1px solid var(--bdw-line);background:var(--bdw-paper);padding:clamp(1rem,2vw,1.6rem);}
html .bdw-topical-grid ul{list-style:none;padding:0;margin:1rem 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.65rem;}
html .bdw-topical-grid li{margin:0;min-width:0;}
html .bdw-topical-grid li>a{height:100%;grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center;line-height:1.4;font-size:.9rem;}
.bdw-topic-kind{grid-column:1/-1;text-transform:uppercase;letter-spacing:.06em;font-weight:700;}
.bdw-topic-arrow{align-self:center;color:var(--bdw-muted);}
:is(.bdw-growth-grid,.bdw-geo-expansion-grid,.bdw-topical-grid li)>a:hover{border-color:var(--bdw-ink);background:color-mix(in srgb,var(--bdw-mint) 22%,var(--bdw-paper));}
:is(.bdw-growth-grid,.bdw-geo-expansion-grid,.bdw-topical-grid li)>a:focus-visible,.bdw-author__signature a:focus-visible{outline:2px solid var(--bdw-ink);outline-offset:3px;}
html .bdw-blog-single .bdw-author{display:inline-flex;align-items:center;min-width:0;width:fit-content;max-width:100%;padding:7px 10px;gap:8px;margin-block:0 1.15rem;border-radius:10px;border-color:var(--bdw-line);background:var(--bdw-soft);}
html .bdw-blog-single .bdw-author__avatar{width:30px;height:30px;flex:0 0 30px;border-radius:8px;}
html .bdw-blog-single .bdw-author__details{gap:2px;min-width:0;}
.bdw-author__signature{display:block;line-height:1.4;overflow-wrap:anywhere;font-size:.88rem;}
html .bdw-blog-single .bdw-author__signature a,html .bdw-blog-single .bdw-author__signature strong{display:inline;color:var(--bdw-ink);font-size:inherit;font-weight:750;text-decoration:none;}
html .bdw-blog-single .bdw-author__signature a:hover{text-decoration:underline;text-underline-offset:3px;}
@media(max-width:560px){html .bdw-topical-grid ul,.bdw-growth-grid,.bdw-geo-expansion-grid{grid-template-columns:minmax(0,1fr);}html .bdw-blog-single .bdw-author{padding:6px 8px;}}

/* V61: commercial trust */
html .bdw-trust{padding-block:clamp(1.5rem,4vw,3.5rem);}
.bdw-trust>.bdw-shell{display:grid;gap:1rem;min-width:0;}
.bdw-trust h2{font-size:clamp(1.45rem,2.4vw,2.15rem);line-height:1.18;margin:0;letter-spacing:-.025em;}
.bdw-trust h3{font-size:1.05rem;margin:0;line-height:1.35;}
.bdw-trust p{margin:0;line-height:1.65;max-width:76ch;}
.bdw-trust-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.75rem;}
.bdw-trust-steps>li,.bdw-trust-scope,.bdw-trust-bottom> *{display:grid;align-content:start;gap:.6rem;padding:clamp(1rem,2vw,1.4rem);border:1px solid var(--bdw-line);border-radius:14px;background:var(--bdw-soft);color:var(--bdw-ink);min-width:0;overflow-wrap:anywhere;}
.bdw-trust-number{font-weight:750;font-size:.8rem;color:var(--bdw-ink);background:var(--bdw-paper);border:1px solid var(--bdw-line);border-radius:8px;justify-self:start;padding:.35rem .6rem;}
.bdw-trust-scope ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.4rem 1.2rem;margin:0;padding-inline-start:1.2rem;}
.bdw-trust-bottom{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:.75rem;align-items:start;}
.bdw-trust-bottom details{display:block;}
.bdw-trust-bottom summary{cursor:pointer;font-weight:700;line-height:1.5;}
.bdw-trust-bottom details[open] p{margin-top:.75rem;}
.bdw-trust-identity a{text-decoration:underline;text-underline-offset:.2em;color:inherit;justify-self:start;}
.bdw-trust .bdw-cta{justify-self:start;white-space:normal;max-width:100%;}
.bdw-trust :focus-visible{outline:2px solid currentColor;outline-offset:3px;}

/* V66: founder identity */
.bdw-founder__monogram{display:grid;place-items:center;width:64px;aspect-ratio:1;border-radius:16px;background:#b2e0d6;color:#374550;font-size:1.7rem;font-weight:800;margin-block:1rem;}
.bdw-founder .bdw-sls__card a{overflow-wrap:anywhere;}
.bdw-company__meta a{color:inherit;text-underline-offset:3px;}

/* V67.1: institutional layout, scoped to AboutPage. */
.bdw-founder .bdw-sls__section {padding-block:clamp(2.75rem,6vw,5.5rem);}
.bdw-founder .bdw-sls__section[id] {scroll-margin-top:calc(var(--bdw-header-visible, 80px) + 1rem);}
.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities,.bdw-portfolio__grid) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.75rem,1.5vw,1.25rem);align-items:stretch;}
.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities,.bdw-portfolio__grid) > article {align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;min-width:0;padding:clamp(1rem,2vw,1.65rem);background:var(--bdw-paper);}
.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities,.bdw-portfolio__grid) > article :is(h3,p) {margin:0;}
.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities) > article > a {margin-top:auto;padding-top:.5rem;font-weight:700;text-decoration:underline;text-underline-offset:.25em;}
.bdw-founder .bdw-portfolio {background:var(--bdw-soft);}
.bdw-founder .bdw-portfolio__grid {grid-template-columns:repeat(6,minmax(0,1fr));}
.bdw-founder .bdw-portfolio__card {grid-column:span 2;}
.bdw-founder .bdw-portfolio__card:nth-last-child(-n+2) {grid-column:span 3;}
.bdw-portfolio__meta {display:flex;align-items:center;justify-content:space-between;width:100%;gap:.75rem;}
.bdw-portfolio__number {font-size:.75rem;font-weight:750;color:var(--bdw-muted);font-variant-numeric:tabular-nums;}
.bdw-portfolio__sector {font-size:.85rem;line-height:1.4;color:var(--bdw-muted);}
.bdw-founder .bdw-portfolio__links {gap:.4rem;padding-block:.3rem;}
.bdw-founder .bdw-portfolio__links a {border:1px solid var(--bdw-line);border-radius:8px;padding:.35rem .6rem;color:var(--bdw-ink);text-decoration:none;font-size:.78rem;}
.bdw-founder .bdw-portfolio__links a:hover {text-decoration:underline;}
.bdw-founder .bdw-portfolio__card > .bdw-sls__button {margin-top:auto;}
.bdw-founder .bdw-portfolio__cta {margin:clamp(1.5rem,3vw,2.5rem) 0 0;display:flex;justify-content:center;}
.bdw-founder__icon {display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#b2e0d6;color:#374550;}
.bdw-founder__icon img {filter:none;}
.bdw-founder__closing {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(1rem,3vw,2.5rem);margin-top:clamp(2rem,4vw,3.5rem);padding:clamp(1.25rem,3.5vw,2.75rem);border:1px solid var(--bdw-line);border-radius:20px;background:var(--bdw-soft);}
.bdw-founder .bdw-founder__closing h2 {font-size:clamp(1.5rem,3vw,2.5rem);margin:.6rem 0;}
.bdw-founder__closing p {margin:0;color:var(--bdw-muted);line-height:1.65;max-width:58ch;}
.bdw-founder__actions {display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;}
.bdw-founder .bdw-sls__button {border-radius:12px;white-space:normal;text-align:center;max-width:100%;}
.bdw-founder a:focus-visible {outline:2px solid currentColor;outline-offset:4px;}
@media(max-width:1000px){.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities,.bdw-portfolio__grid){grid-template-columns:repeat(2,minmax(0,1fr));}.bdw-founder .bdw-portfolio__card,.bdw-founder .bdw-portfolio__card:nth-last-child(-n+2){grid-column:auto;}.bdw-founder .bdw-portfolio__card:last-child{grid-column:1/-1;}.bdw-founder__closing{grid-template-columns:minmax(0,1fr);}}
@media(max-width:620px){.bdw-founder :is(.bdw-founder__profiles,.bdw-founder__capabilities,.bdw-portfolio__grid){grid-template-columns:minmax(0,1fr);}.bdw-founder__actions,.bdw-founder .bdw-portfolio__cta{display:grid;grid-template-columns:minmax(0,1fr);}.bdw-founder .bdw-founder__actions .bdw-sls__button,.bdw-founder .bdw-portfolio__cta .bdw-sls__button{width:100%;}}

/* Privacy preferences: normal document flow, no overlay or viewport coupling. */
html .bdw-privacy-panel {position:static; inset:auto; z-index:auto; width:min(calc(100% - 2rem), 32rem); max-width:100%; min-width:0; max-height:none; height:auto; overflow:visible; margin:0 auto 1.5rem; box-shadow:none; overflow-wrap:anywhere;}
html .bdw-privacy-panel[hidden] {display:none !important;}
html .bdw-privacy-panel label {min-width:0;}
html .bdw-privacy-panel input {flex:none;}

/* Mobile viewport stability: keep one document scroll container. */
@media (max-width:1040px) {
  html { overflow-x:clip; }
  body { overflow-x:clip; }
  body:not(.bdw-nav-open) { overflow-y:visible; }
  .bdw-header { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; background:var(--bdw-paper); transition:none!important; }
  .bdw-footer__rail { width:100%; max-width:100%; }
  .bdw-footer__rail-inner { flex-wrap:nowrap; width:100%; max-width:100%; min-width:0; min-height:var(--bdw-footer-dock-height); }
  .bdw-footer__rail-inner > a,.bdw-footer__rail-inner > div { min-width:0; max-width:100%; }
  .bdw-footer__rail-inner > div { flex-wrap:nowrap; }
  .bdw-footer__rail-inner > div a { white-space:nowrap; font-size:12px; }
  .bdw-footer__legal { flex-wrap:wrap; min-width:0; overflow-wrap:anywhere; }
  .bdw-fx-reveal { opacity:1!important; transform:none!important; }
  .bdw-lead-dialog::backdrop,.bdw-service-dialog::backdrop { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
  dialog:not([open]), .bdw-privacy-panel[hidden] { display:none!important; }
}

/* Production navigation: bounded intrinsic panel, independent of page scroll. */
@media (max-width:1040px) {
  html body.bdw-nav-open { overflow-y:visible; }
  html .bdw-header .bdw-nav { box-sizing:border-box; height:auto!important; min-height:0!important; max-height:calc(100dvh - var(--bdw-layout-header) - var(--bdw-layout-dock) - 12px)!important; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:6px; padding:10px; margin:0; overscroll-behavior:contain; scrollbar-gutter:auto; }
  html .bdw-header .bdw-nav > :is(a,button) { box-sizing:border-box; flex:0 0 auto; min-height:44px; padding:9px 12px; margin:0; }
  html .bdw-header .bdw-nav > .bdw-nav__mobile-cta { display:none!important; }
  html .bdw-header .bdw-nav > .bdw-mega { flex:0 0 auto; height:auto!important; min-height:0!important; max-height:none!important; }
  html .bdw-mega__layout { width:100%; margin:0; padding:0; }
  html .bdw-mega__groups { grid-template-columns:minmax(0,1fr); gap:6px; }
  html .bdw-mega-group { min-width:0; padding:0; }
  html .bdw-mega-group > header { display:none; }
  html .bdw-mega-group .bdw-mega__mobile-group-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:10px; text-align:start; }
  html .bdw-mega-group > div { grid-template-columns:minmax(0,1fr); padding:6px; }
  html .bdw-mega-group > div[hidden] { display:none!important; }
  html .bdw-mega__right { display:none; }
  html .bdw-mega__close { position:static; margin:0 0 6px auto; }
}
