/* Shared controls retain the incumbent dark appearance; color changes are scoped to light. */
html[data-ps-theme]{--pt-bg:#07090c;--pt-surface:#101820;--pt-ink:#edf0f3;--pt-muted:#b6c2cc;--pt-accent:#a4c6d9;--pt-border:#52616a;scrollbar-color:#617686 #101820}
html[data-ps-theme=light]{--pt-bg:#f7f9fb;--pt-surface:#fff;--pt-alt:#edf2f6;--pt-ink:#172b3a;--pt-muted:#465e70;--pt-accent:#1d638a;--pt-warm:#7b5526;--pt-border:#c4d1da;background:var(--pt-bg);scrollbar-color:#8c9fab #edf2f6}
html.ps-theme-changing *,html.ps-theme-changing *::before,html.ps-theme-changing *::after{transition:none!important}
.ps-header-inner>.ps-brand{order:0}.ps-header-inner>.ps-navigation{order:1;margin-left:auto!important}.ps-header-inner>.ps-theme-toggle{order:2}.ps-header-inner>.ps-menu-toggle{order:3}.ps-header-inner{gap:20px}
.ps-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px!important;border:1px solid var(--pt-border)!important;border-radius:50%!important;background:transparent!important;color:var(--pt-ink)!important;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color 160ms ease,color 160ms ease}
.ps-theme-toggle svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.ps-theme-moon{display:none}html[data-ps-theme=light] .ps-theme-sun{display:none}html[data-ps-theme=light] .ps-theme-moon{display:block}
.ps-theme-toggle:focus-visible{outline:2px solid var(--pt-accent)!important;outline-offset:4px!important}.ps-theme-toggle:active{transform:scale(.96)}.ps-theme-status{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{color:#1d638a!important}
@media(hover:hover) and (pointer:fine){.ps-theme-toggle:hover{background:#83b7d51a!important}html[data-ps-theme=light] .ps-theme-toggle:hover{background:#e5eef4!important}}
/* Brand chrome */
html[data-ps-theme=light] body{background:var(--pt-bg)!important;color:var(--pt-ink)!important;--ps-bg:var(--pt-bg);--ps-text:var(--pt-ink);--ps-muted:var(--pt-muted);--ps-accent:var(--pt-accent)}
html[data-ps-theme=light] body .ps-header{background:#f7f9fbf5!important;border-bottom-color:var(--pt-border)!important}
html[data-ps-theme=light] body :is(.ps-header .ps-brand,.ps-header .ps-navigation a,.ps-dropdown-toggle,.ps-menu-toggle){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-navigation a[aria-current],html[data-ps-theme=light] body .ps-navigation a:hover{color:var(--pt-accent)!important;border-bottom-color:var(--pt-accent)!important}
html[data-ps-theme=light] body .ps-navigation>a:last-child,html[data-ps-theme=light] body :is(.ps-menu-toggle,.ps-dropdown-toggle){border-color:var(--pt-border)!important}
html[data-ps-theme=light] body :is(.ps-dropdown-panel,.ps-open .ps-navigation){background:var(--pt-surface)!important;border-color:var(--pt-border)!important;box-shadow:0 16px 32px #172b3a12}
html[data-ps-theme=light] body :is(.ps-header a,.ps-header button,.ps-footer a):focus-visible{outline-color:var(--pt-accent)!important}
html[data-ps-theme=light] body .ps-footer{background:var(--pt-alt)!important;border-top-color:var(--pt-border)!important}
html[data-ps-theme=light] body .ps-footer :is(.ps-brand,a){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-footer h2{color:var(--pt-accent)!important}
html[data-ps-theme=light] body .ps-footer :is(p,.ps-footer-bottom){color:var(--pt-muted)!important}
html[data-ps-theme=light] body .ps-footer-bottom{border-color:var(--pt-border)!important}
html[data-ps-theme=light] body ::selection{background:#b9d9ec;color:#102b3b}
html[data-ps-theme=light] body :is(.skip,.skip-link){color:var(--pt-accent)!important}
html[data-ps-theme=light] body :is(.skip,.skip-link):focus{background:var(--pt-surface)!important;color:var(--pt-accent)!important}
/* Public Elementor wrappers, editorial pages and semantic text. */
html[data-ps-theme=light] body .elementor>.e-con{background-color:transparent!important;background-image:none!important}
html[data-ps-theme=light] body :is(.ps-blog,.ps-landing,.ps-detail,.pp-main,.site-main,.page-content){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-detail{background:var(--pt-bg)!important}
html[data-ps-theme=light] body :is(.ps-blog,.ps-landing,.ps-detail,.pp-main,.site-main,.elementor) :is(h1,h2,h3,h4,h5,h6,.elementor-heading-title){color:var(--pt-ink)!important;text-shadow:none!important}
html[data-ps-theme=light] body :is(.ps-blog,.ps-landing,.ps-detail,.site-main) :is(p,li,.ps-date,.ps-back,.ps-guide-lede,.ps-blog-intro,.ps-detail-crumb){color:var(--pt-muted)!important}
html[data-ps-theme=light] body :is(.ps-blog,.ps-landing,.ps-detail,.site-main) a{color:var(--pt-accent)!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-detail-step article,.ps-form-card,.ps-robot-card){background:var(--pt-surface)!important;border-color:var(--pt-border)!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-robot-grid){--warm:var(--pt-warm);--ice:var(--pt-accent)}
html[data-ps-theme=light] body :is(.ps-kicker,.ps-guide svg,.ps-read,.ps-detail-crumb a,.ps-detail-icon){color:var(--pt-accent)!important;stroke:var(--pt-accent)}
html[data-ps-theme=light] body :is(.ps-read,.ps-post-card,.ps-detail-end,.ps-detail-faq article,.ps-pagination a,.ps-pagination span){border-color:var(--pt-border)!important}
html[data-ps-theme=light] body .ps-step-number{background:#e5eef4!important;border-color:#91b3c9!important;color:#1d638a!important}
html[data-ps-theme=light] body .ps-detail-step:not(:last-child)::before{background:var(--pt-border)!important}
html[data-ps-theme=light] body .ps-faq-toggle{color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-faq-toggle span{color:var(--pt-accent)!important}
html[data-ps-theme=light] body .ps-article{color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-detail :is(a,button,input,select,textarea):focus-visible{outline-color:var(--pt-accent)!important}
/* Three-dimensional scenes stay transparent; only the surrounding materials change. */
html[data-ps-theme=light] body .film{background:var(--pt-bg)!important;color:var(--pt-ink)!important}
html[data-ps-theme=light] body .film .screen{background:radial-gradient(ellipse at 73% 48%,#dce8ef 0,#eef3f7 47%,#f7f9fb 85%)!important}
html[data-ps-theme=light] body .film .scrim{background:linear-gradient(90deg,#f7f9fbf7 0%,#f7f9fbd9 30%,#f7f9fb20 68%,transparent 100%)!important}
html[data-ps-theme=light] body .film .grain{opacity:0!important}
html[data-ps-theme=light] body .film :is(.story,.story h1,.story h2,.contact-panel h2){color:var(--pt-ink)!important;text-shadow:none!important}
html[data-ps-theme=light] body .film :is(.eyebrow,.lede,.scene-services,.scroll-note,.film-footer,.form-note){color:var(--pt-muted)!important}
html[data-ps-theme=light] body .film :is(.scene-services li,.scene-services span,.scene-actions a,.progress){border-color:#a2b8c7!important}
html[data-ps-theme=light] body .film .scene-actions a{color:var(--pt-ink)!important;background:transparent!important}
html[data-ps-theme=light] body .film .scene-actions a:hover{background:#e3edf3!important}
html[data-ps-theme=light] body .film :is(.render-fallback,.pa-contact){background:var(--pt-alt)!important;color:var(--pt-ink)!important}
html[data-ps-theme=light] body :is(.ps-contact-section,.ps-contact-independent){background:var(--pt-bg)!important;color:var(--pt-ink)!important}
html[data-ps-theme=light] body :is(.ps-contact-section,.ps-contact-independent,.contact-panel) :is(h2,label){color:var(--pt-ink)!important}
html[data-ps-theme=light] body #contact .eyebrow{color:var(--pt-muted)!important}
/* All public forms, including browser-native controls, have real light surfaces. */
html[data-ps-theme=light] body #project-form :is(input,textarea,select),html[data-ps-theme=light] body .contact-panel :is(input,textarea,select){background:var(--pt-surface)!important;color:var(--pt-ink)!important;border-color:#91a7b6!important;box-shadow:none!important;caret-color:var(--pt-accent);color-scheme:light}
html[data-ps-theme=light] body #project-form label{color:var(--pt-ink)!important}
html[data-ps-theme=light] body #project-form :is(input,textarea)::placeholder{color:#536b7b!important;opacity:1}
html[data-ps-theme=light] body #project-form :is(input,textarea,select):focus{border-color:var(--pt-accent)!important;outline-color:var(--pt-accent)!important}
html[data-ps-theme=light] body :is(.ps-detail-button,#project-form button[type=submit],.contact-panel button[type=submit]){background:#1d638a!important;color:#fff!important;border-color:#1d638a!important}
html[data-ps-theme=light] body :is(.form-note,.form-status){color:var(--pt-muted)!important}
html[data-ps-theme=light] body :is(.ps-contact-section,.ps-form-card) a[href^=mailto]{color:var(--pt-accent)!important}
/* Projects: preserve every client screenshot and every branded project backdrop. */
html[data-ps-theme=light] body.pp-page{--pp-bg:var(--pt-bg);--pp-ink:var(--pt-ink);--pp-muted:var(--pt-muted);--pp-accent:var(--pt-accent);--pp-line:var(--pt-border)}
html[data-ps-theme=light] body .pp-main .pp-intro h1 span{color:var(--pt-accent)!important}
html[data-ps-theme=light] body .pp-main :is(p,.pp-category){color:var(--pt-muted)!important}
html[data-ps-theme=light] body .pp-main :is(.pp-link,.pp-link:visited){color:var(--pt-accent)!important;text-decoration-color:#8ea6b6}
html[data-ps-theme=light] body .pp-main .pp-button{background:#1d638a!important;color:#fff!important}
html[data-ps-theme=light] body .pp-layout-controls button{background:transparent;color:var(--pt-muted);border-color:#91a7b6}
html[data-ps-theme=light] body .pp-layout-controls button[aria-pressed=true]{background:var(--pt-ink);color:#fff;border-color:var(--pt-ink)}
html[data-ps-theme=light] body .pp-main .pp-tool,html[data-ps-theme=light] body .pp-main .pp-cta{border-color:var(--pt-border)!important}
html[data-ps-theme=light] body .pp-case-image{box-shadow:0 20px 50px #172b3a16}
html[data-ps-theme=light] body .pp-deliverables li{color:var(--pt-ink);border-color:var(--pt-border)}
/* Hand-authored mini UI previews are artwork; their dark display surfaces remain self-contained. */
html[data-ps-theme=light] body :is(.ps-production-copy,.ps-robot-grid,.ps-guide){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-robot-grid :is(h2,h3){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-robot-grid p{color:var(--pt-muted)!important}
html[data-ps-theme=light] body .ps-robot-grid .ps-read{color:var(--pt-accent)!important;border-color:#91a7b6!important}
html[data-ps-theme=light] body :is(.ps-detail-card,.ps-guide,.ps-robot-card)::before{opacity:0!important}
html[data-ps-theme=light] body :is(.ps-step-number,.ps-guide,.ps-robot-grid,.ps-detail){--warm:#7b5526;--ice:#1d638a}
/* SVG illustrations, unlike client screenshots, share theme-aware canvas and label colors. */
html[data-ps-theme=light] body .ps-service-art [fill="#0d1721"],html[data-ps-theme=light] body .ps-service-art [fill="#101820"]{fill:#e5eef4}
html[data-ps-theme=light] body .ps-service-art [stroke="#a8cad4"]{stroke:#1d638a}
html[data-ps-theme=light] body .ps-production-copy h1{background:none!important;-webkit-text-fill-color:var(--pt-ink)!important}
html[data-ps-theme=light] body .ps-header .ps-navigation a{-webkit-text-fill-color:currentColor!important;background-image:none!important}
html[data-ps-theme=light] body .ps-rich-preview p{color:#b5c9d7!important}
/* The robot consultancy guide uses the older editorial service template. */
html[data-ps-theme=light] body .svc{background:var(--pt-bg)!important;color:var(--pt-ink)!important;--accent:var(--pt-accent)}
html[data-ps-theme=light] body .svc :is(h1,h2,h3){color:var(--pt-ink)!important}
html[data-ps-theme=light] body .svc :is(p,li,figcaption,.svc-crumb){color:var(--pt-muted)!important}
html[data-ps-theme=light] body .svc a{color:var(--pt-accent)!important}
html[data-ps-theme=light] body .svc :is(.svc-list,.svc-end){background:var(--pt-alt)!important;border-color:var(--pt-border)!important}
html[data-ps-theme=light] body .svc :is(.svc-body,.svc-aside,.svc-related a){border-color:var(--pt-border)!important}
html[data-ps-theme=light] body .svc .svc-end a{background:var(--pt-accent)!important;color:#fff!important}
body.page-id-111 .ps-landing::before{left:0!important;right:0!important}
@media(max-width:1180px) and (min-width:951px){.ps-header-inner{gap:12px}.ps-header-inner .ps-navigation{gap:14px}.ps-header-inner .ps-brand{font-size:20px!important;gap:10px!important}.ps-header-inner .ps-brand svg{width:62px!important}}
@media(max-width:950px){.ps-header-inner{gap:10px}.ps-header-inner>.ps-theme-toggle{margin-left:auto}.ps-header-inner>.ps-navigation{margin-left:0!important}.ps-theme-toggle{flex-basis:44px}.ps-header-inner .ps-brand{font-size:18px!important;gap:8px!important}.ps-header-inner .ps-brand svg{width:50px!important;height:44px!important}}
@media(max-width:1100px){.ps-header-inner>.ps-navigation{display:none!important;position:absolute!important;left:0;right:0;top:100%;margin-left:0!important;padding:16px 6vw 24px!important;flex-direction:column;align-items:stretch;gap:4px;background:#0d131a;border-bottom:1px solid #ffffff30;max-height:calc(100dvh - 130px);overflow:auto}.ps-open .ps-header-inner>.ps-navigation{display:flex!important}.ps-header-inner>.ps-menu-toggle{display:inline-flex!important;align-items:center;gap:8px;min-height:44px;padding:8px 12px!important;border:1px solid #52616a!important;border-radius:6px;background:transparent!important;color:var(--pt-ink)!important;font:500 14px 'DM Sans',sans-serif!important}.ps-header-inner>.ps-theme-toggle{margin-left:auto}}
@media(max-width:420px){.ps-header-inner{gap:8px}.ps-header-inner .ps-brand{font-size:16px!important;letter-spacing:-.3px!important}.ps-header-inner .ps-brand svg{width:42px!important;height:40px!important}.ps-header-inner .ps-menu-toggle{font-size:13px!important;gap:6px;padding:8px 10px!important}.ps-theme-toggle{flex-basis:44px;width:44px}}
@media(max-width:360px){body .ps-header{padding-inline:4vw!important}.ps-header-inner .ps-brand{font-size:15px!important;gap:6px!important}.ps-header-inner .ps-brand svg{width:38px!important}}
@media(max-width:760px),(max-width:1024px) and (orientation:portrait){html[data-ps-theme=light] body .film .scrim{background:linear-gradient(180deg,#f7f9fbfc 0%,#f7f9fbf0 30%,#f7f9fb66 55%,transparent 80%)!important}}
@media(prefers-reduced-motion:reduce){.ps-theme-toggle{transition:none}.ps-theme-toggle:active{transform:none}}

/* Keep the original scene contrast: the reading scrim ends before the project artwork. */
html[data-ps-theme=light] body .film .scrim{background:linear-gradient(90deg,#f7f9fbfa 0%,#f7f9fbe6 24%,#f7f9fb00 46%)!important}
html[data-ps-theme=light] body .film #stage{filter:contrast(1.12) saturate(1.08)!important}
/* The gold card material is part of the brand in both themes. */
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-detail-step article,.ps-robot-card){background:linear-gradient(145deg,#fffaf1 0%,#f5e6c9 62%,#e9d0a1 100%)!important;border-color:#b88c4c!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-detail-step article,.ps-robot-card) :is(h2,h3){color:#382b1d!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-detail-step article,.ps-robot-card)>p{color:#5c4a34!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-robot-card) .ps-read{color:#76501e!important;border-color:#b88c4c!important;background:#fff6e5!important}
html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-robot-card)>:is(.ps-service-icon,.ps-unique-icon){stroke:#986423!important}
@media(hover:hover) and (pointer:fine){html[data-ps-theme=light] body :is(.ps-guide,.ps-detail-card,.ps-robot-card):hover{border-color:#8f5c22!important}}
@media(max-width:760px),(max-width:1024px) and (orientation:portrait){html[data-ps-theme=light] body .film .scrim{background:linear-gradient(180deg,#f7f9fbfc 0%,#f7f9fbe6 25%,#f7f9fb00 48%)!important}}

/* A dark display surface keeps the gold model legible in the light theme. */
html[data-ps-theme=light] body .ps-production-art{background:#14232c!important;border-radius:16px;overflow:hidden;isolation:isolate}
@media(max-width:760px){html[data-ps-theme=light] body .ps-production-art{margin:24px auto 16px}}
