html{color-scheme:dark;}
.theme-control{position:relative;flex:0 0 auto;z-index:150;order:2;}
.theme-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#111114;color:#ecece8;cursor:pointer;}
.theme-toggle:hover{background:#222228;}
header>.brand{order:0;}header>.page-nav,.header>nav{order:1;margin-left:auto;}header>.page-menu-toggle,.header>.menu-toggle{order:3;}
header,.header{gap:12px;}
.theme-toggle{width:auto;min-height:44px;height:auto;padding:10px 14px;border-radius:24px;gap:8px;font:400 13px 'DM Sans',sans-serif;white-space:nowrap;}
@media(max-width:900px){header>.page-nav,.header>nav{margin-left:0;}nav .theme-control{margin:6px 0 0;width:100%;order:4;}nav .theme-toggle{width:100%;justify-content:center;}}
@media(max-width:380px){header,.header{gap:8px;}.menu-toggle,.page-menu-toggle{gap:8px;font-size:12px;}}
/* The light palette uses the same shapes, fonts and layout as the dark palette. */
html[data-theme=light]{color-scheme:light;--paper:#f7f7f5;--ink:#17171d;--muted:#62636d;--line:#17171d26;--dark:#ececea;--blue:#2758c7;}
html[data-theme=light] body{background:#f7f7f5;color:#17171d;}
html[data-theme=light] .brand img{filter:none;mix-blend-mode:multiply;}
html[data-theme=light] .hero h1 .serif{color:#52535f;}
html[data-theme=light] .hero-bottom>p,html[data-theme=light] .intro-copy p,html[data-theme=light] .intro-copy p+p,html[data-theme=light] .studio-principles p,html[data-theme=light] .service-body>p,html[data-theme=light] .process-steps p,html[data-theme=light] .services-heading>p,html[data-theme=light] .process-heading>p,html[data-theme=light] .services-open-note p,html[data-theme=light] .contact-bottom>p{color:#565862;background:#f7f7f5d6;box-shadow:0 0 22px 9px #f7f7f5d6;}
html[data-theme=light] .intro-copy p:first-of-type{color:#282930;}
html[data-theme=light] .section-caption,html[data-theme=light] .process-steps article>span,html[data-theme=light] .contact-top>span{color:#60616c;}
html[data-theme=light] .little-line{border-color:#777782;}
html[data-theme=light] .service-tags span{border-color:#17171d30;color:#555762;}
html[data-theme=light] .service-more{color:#2454b5;border-color:#2454b566;}
html[data-theme=light] .under-link,html[data-theme=light] .hero-bottom .text-link{border-color:#17171d55;}
html[data-theme=light] .header nav .nav-contact,html[data-theme=light] .header-contact{border-color:#17171d45;}
html[data-theme=light] .header nav .nav-contact:hover{background:#17171d;color:#fff;}
html[data-theme=light] .header.menu-open,html[data-theme=light] .header nav,html[data-theme=light] .header.menu-open nav,html[data-theme=light] .header nav .nav-contact,html[data-theme=light] .page-nav{background:#f7f7f5;color:#17171d;border-color:#17171d26;}
html[data-theme=light] .header nav a,html[data-theme=light] .page-nav a{color:#17171d;}
html[data-theme=light] .process-steps article:before{box-shadow:0 0 0 5px #f7f7f5,0 0 15px #316bff22;}
html[data-theme=light] .contact{color:#17171d;border-color:#17171d26;}
html[data-theme=light] .contact:before{background:radial-gradient(ellipse at var(--mx,70%) var(--my,50%),#17171d05,transparent 65%);}
html[data-theme=light] .contact-bottom{border-color:#17171d26;}
html[data-theme=light] .contact-title:hover .serif{color:#51535f;}
html[data-theme=light] .contact-options .contact-primary{background:#17171d;color:#fff;border-color:#17171d;}
html[data-theme=light] .contact-options .contact-primary:hover{background:#34343d;color:#fff;}
html[data-theme=light] .contact-options .contact-secondary{background:#fff;color:#17171d;border-color:#17171d33;}
html[data-theme=light] .contact-options .contact-secondary:hover{background:#eaeaec;color:#17171d;border-color:#17171d66;}
html[data-theme=light] .contact-form-panel>p,html[data-theme=light] .form-privacy,html[data-theme=light] #lead-form-status,html[data-theme=light] .contact-fields label{color:#565862;}
html[data-theme=light] .contact-fields label span{color:#686974;}
html[data-theme=light] .contact-fields input,html[data-theme=light] .contact-fields textarea{background:#fff;color:#17171d;border-color:#17171d40;}
html[data-theme=light] .contact-form-panel .contact-button{color:#17171d;border-color:#17171d50;}
html[data-theme=light] footer>span,html[data-theme=light] footer>a:not(.brand),html[data-theme=light] footer p{color:#60616c;}
html[data-theme=light] footer .footer-services,html[data-theme=light] footer .social-links,html[data-theme=light] footer .copyright{color:#565862;background:#f7f7f5bd;box-shadow:0 0 22px 9px #f7f7f5bd;}
html[data-theme=light] footer a:hover{color:#17171d;}
html[data-theme=light] .privacy-links{color:#60616c;}
html[data-theme=light] .privacy-links a,html[data-theme=light] .privacy-links button,html[data-theme=light] footer .social-links a{border-color:#17171d40;}
html[data-theme=light] .scroll-progress{background:#17171d;box-shadow:none;}
html[data-theme=light] .cursor-halo{border-color:#17171d55;mix-blend-mode:normal;}
html[data-theme=light] .cursor-halo.active{background:#17171d08;}
html[data-theme=light] .theme-toggle{background:#fff;color:#17171d;border-color:#17171d30;}
html[data-theme=light] .theme-toggle:hover{background:#eaeaec;}
html[data-theme=light] .service-hero .lead,html[data-theme=light] .service-chapter p,html[data-theme=light] .questions p,html[data-theme=light] .cta p{color:#565862;}
html[data-theme=light] .button,html[data-theme=light] .mail,html[data-theme=light] .page-nav .nav-contact,html[data-theme=light] .related a{border-color:#17171d50;}
html[data-theme=light] .button:hover{background:#17171d;color:#fff;}
html[data-theme=light] .analytics-consent{background:#fff;color:#17171d;border-color:#17171d30;box-shadow:0 10px 45px #0002;}
html[data-theme=light] .analytics-consent p,html[data-theme=light] .analytics-browser summary,html[data-theme=light] .analytics-browser [role=status]{color:#565862;}
html[data-theme=light] .analytics-actions button{color:#17171d;border-color:#17171d50;}
html[data-theme=light] .analytics-actions button:last-child{background:#17171d;color:#fff;}

/* Remove blue click/tap highlights; retain a neutral keyboard focus indicator. */
:root{--focus-ring:#b7b7c1;}
html[data-theme=light]{--focus-ring:#60616c;}
a,button,summary,input,textarea,select{-webkit-tap-highlight-color:transparent;}
html[data-theme] :is(a,button,summary,input,textarea,select):focus{outline:none;box-shadow:none;}
html[data-theme] :is(a,button,summary,input,textarea,select):focus-visible{outline:2px solid var(--focus-ring);outline-offset:4px;}
html[data-theme] input{accent-color:var(--focus-ring);}
@media(max-width:900px){header>.theme-control{display:none;}nav .theme-control{display:block;}}
/* Keep the light-mode particle field out of service titles and controls. */
html[data-theme=light] .services summary h3{width:fit-content;max-width:100%;position:relative;z-index:1;background:#f7f7f5;box-shadow:0 0 16px 10px #f7f7f5;border-radius:3px;}
html[data-theme=light] .services summary .detail-icon{position:relative;z-index:1;background:#f7f7f5;box-shadow:0 0 12px 7px #f7f7f5;}
html[data-theme=light] .services .service-more,html[data-theme=light] .services .under-link{position:relative;background:#f7f7f5;box-shadow:0 0 14px 8px #f7f7f5;}
html[data-theme=light] .services-open-note>span,html[data-theme=light] .services-heading h2{position:relative;background:#f7f7f5;box-shadow:0 0 16px 10px #f7f7f5;border-radius:3px;}
/* Protect the letter edges, not a large rectangle around each text block. */
:root{--reading-edge:#0c0c0e;}
html[data-theme=light]{--reading-edge:#f7f7f5;}
html[data-theme] :is(.hero-bottom>p,.intro-copy p,.studio-principles p,.service-body>p,.services-heading>p,.process-heading>p,.process-steps p,.services-open-note p,.contact-bottom>p,footer .footer-services,footer .copyright,footer .social-links,.services summary h3,.services summary .detail-icon,.services .service-more,.services .under-link,.services-open-note>span,.services-heading h2){background:transparent;box-shadow:none;border-radius:0;text-shadow:0 1px 2px var(--reading-edge),0 -1px 2px var(--reading-edge),1px 0 2px var(--reading-edge),-1px 0 2px var(--reading-edge);}
/* Draw the menu mark geometrically so its center does not depend on a glyph. */
.header .menu-toggle,.page-menu-toggle{align-items:center;line-height:1;gap:12px;}
.header .menu-toggle>span,.page-menu-toggle>span{position:relative;display:inline-block;flex:0 0 20px;width:20px;height:20px;font-size:0!important;line-height:0;}
.header .menu-toggle>span:before,.header .menu-toggle>span:after,.page-menu-toggle>span:before,.page-menu-toggle>span:after{content:'';position:absolute;left:50%;top:50%;width:17px;height:1.5px;background:currentColor;transform:translate(-50%,-50%);border-radius:1px;}
.header .menu-toggle>span:after,.page-menu-toggle>span:after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .2s ease;}
.header .menu-toggle[aria-expanded=true]>span:after,.page-menu-toggle[aria-expanded=true]>span:after{transform:translate(-50%,-50%) rotate(0deg);}
@media(prefers-reduced-motion:reduce){.header .menu-toggle>span:after,.page-menu-toggle>span:after{transition:none;}}
