:root{--paper:#f5f2eb;--ink:#193c3b;--muted:#566762;--line:#d7dbd2;--accent:#a94f32}
:root[data-theme="dark"]{--paper:#142625;--ink:#e7eee7;--muted:#b1c4b9;--line:#425c52;--accent:#efad8c;--white:#203a35;color-scheme:dark}
.header-controls{display:flex;align-items:center;gap:10px;order:3;flex-shrink:0}.header nav{order:2;margin-left:auto}.header{gap:24px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:3px;font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;padding:10px 12px;min-height:40px;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{border-color:var(--accent)}.theme-toggle[aria-checked="true"]{background:#2b4841;border-color:#6a8b7b;color:#f1e8d9}.theme-toggle-icon{width:16px;height:16px;flex-shrink:0}.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
:root[data-theme="dark"] .experience,:root[data-theme="dark"] .about-note{background:#203a35}
:root[data-theme="dark"] .career-detail p{color:var(--muted)}
:root[data-theme="dark"] .career-row,:root[data-theme="dark"] .tags li{border-color:#526e60}
:root[data-theme="dark"] .brand-strip{background:var(--paper);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .brand-inner>p{color:var(--muted)}
:root[data-theme="dark"] .employer-brand:not(.employer-brand-cox, .employer-brand-cox-automotive) img{background:#e7ece3;border-radius:3px;padding:9px 12px;box-sizing:content-box;max-width:calc(100% - 24px)}
:root[data-theme="dark"] .portrait-composition:before{background:#36544a}
:root[data-theme="dark"] .portrait-caption{background:#234843;color:#e7eee7}
:root[data-theme="dark"] .case-art:not(.podcast-art):not(.brand-art){background:#234843;color:#e6eee5}
:root[data-theme="dark"] .consulting{background:#0d1d1c;color:#eef0e7}
:root[data-theme="dark"] .button-light{background:#e7ece3;color:#193c3b}
:root[data-theme="dark"] .button-dark:hover{background:#ccdecd}
:root[data-theme="dark"] .case-copy .case-takeaway{border-color:var(--line)}
.scroll-reveal{opacity:0;transform:translateY(20px);transition:opacity 650ms ease,transform 650ms cubic-bezier(.2,.65,.3,1);transition-delay:var(--reveal-delay,0ms)}
.scroll-reveal.is-revealed,.scroll-reveal:focus-within{opacity:1;transform:translateY(0)}
.resume-controls{display:flex;align-items:center;gap:10px}.resume-page{background:var(--paper);color:var(--ink)}
:root[data-theme="dark"] .resume-page main{background:#203a35;border-color:var(--line)}
:root[data-theme="dark"] .resume-page h2,:root[data-theme="dark"] .resume-page footer{border-color:var(--line)}
:root[data-theme="dark"] .resume-page .role,:root[data-theme="dark"] .resume-page footer{color:var(--muted)}
@media(max-width:1050px) and (min-width:801px){.header nav{gap:20px}.header{gap:18px}.theme-toggle>span{display:none}.theme-toggle{width:40px;padding:10px}}
@media(max-width:800px){.header-controls{order:2;margin-left:auto}.header nav{order:3;margin-left:0}.menu-toggle{min-height:40px}.header{gap:14px}}
@media(max-width:580px){.theme-toggle>span{display:none}.theme-toggle{width:40px;padding:10px}.resume-page .toolbar{align-items:center;gap:12px}.resume-controls{gap:8px}.resume-page .toolbar>.resume-controls>button{min-height:40px}.resume-page .theme-toggle{padding:8px}}
@media(prefers-reduced-motion:reduce){.scroll-reveal{opacity:1!important;transform:none!important;transition:none!important}}
@media print{:root[data-theme="dark"]{--paper:#fff;--ink:#000;--muted:#333;--line:#bbb;--accent:#000;color-scheme:light}.scroll-reveal{opacity:1!important;transform:none!important;transition:none!important}.header-controls{display:none}:root[data-theme="dark"] .resume-page main,:root[data-theme="dark"] .experience{background:white}.resume-page{background:white}}
/* Dark-mode marks use the supplied white artwork. The original Autotrader top mark is clipped without changing its pixels. */
.theme-logo-dark{display:none!important}
:root[data-theme="dark"] .theme-logo-light{display:none!important}
:root[data-theme="dark"] .theme-logo-dark{display:block!important}
.autotrader-crop{position:relative;overflow:hidden;aspect-ratio:370 / 100}
.autotrader-crop img{position:absolute;width:108.108108%;height:auto;max-width:none;left:-4.054054%;top:-65%}

/* Use the supplied artwork’s brightness as opacity for solid white lettering. */
.employer-brand-cox-automotive .theme-logo-dark {
  filter: brightness(0) invert(1);
  mask-image: url("assets/cox-automotive-white.webp");
  mask-mode: luminance;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
