/* Toggleable lead-metal dark mode with the entry portal's animated star field. */
html.theme-dark{color-scheme:dark;scrollbar-color:#48545b #0b0e12}
html.theme-dark body{background:#0b0e12;color:#edf2f3;background-image:radial-gradient(#c6dadd0a .7px,transparent .85px);background-size:6px 6px}
html.theme-dark main,html.theme-dark footer{position:relative;z-index:1}
html.theme-dark .ambient-webgl{display:none}
.studio-dark-scene{display:none;position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
html.theme-dark .studio-dark-scene{display:block;opacity:.8;mix-blend-mode:screen}
.studio-dark-scene canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
/* A continuous, low-contrast vaporwave layer drifts over the surfaces, like the entry portal. */
.studio-vaporwave-overlay{display:none;position:fixed;z-index:2;inset:-12vh -8vw;pointer-events:none;mix-blend-mode:screen;opacity:.68;filter:blur(30px) saturate(1.5);background-image:repeating-linear-gradient(180deg,transparent 0 13vh,#ff2fa33a 16vh,#ff2fa300 26vh,transparent 40vh),repeating-linear-gradient(180deg,transparent 0 36vh,#28edff36 40vh,#28edff00 52vh,transparent 68vh),repeating-linear-gradient(180deg,transparent 0 62vh,#9b54ff34 66vh,#ffb84b28 75vh,transparent 90vh);background-size:100% 126vh;background-repeat:repeat-y}
html.theme-dark .studio-vaporwave-overlay{display:block;animation:studio-vapor-cascade 28s linear infinite}
@keyframes studio-vapor-cascade{to{background-position:0 126vh}}
html[data-motion="paused"].theme-dark .studio-vaporwave-overlay{animation-play-state:paused}

html.theme-dark .header{color:#edf2f3;background:linear-gradient(180deg,#0b0e12ed,#0e1316cf);border-color:#d9e1e21c;box-shadow:0 4px 24px #0003}
html.theme-dark .wordmark span,html.theme-dark .main-nav a:hover,html.theme-dark .motion-control>span:first-child,html.theme-dark .small-cta span{color:#9beef4}
html.theme-dark .motion-control{color:#ccd6d8}
html.theme-dark .small-cta{border-color:#8eeaf1}
html.theme-dark .menu-button{color:#d7e0e2}
html.theme-dark #mobile-nav{background:#10171beF;border-color:#d9e1e226;color:#e7edef}
.theme-control{display:inline-flex;align-items:center;gap:8px;padding:8px 0;border:0;background:transparent;color:#596468;font-size:11px;white-space:nowrap}
html.theme-dark .theme-control{display:inline-flex;align-items:center;gap:8px;padding:8px 0;border:0;background:transparent;color:#c5d0d3;font-size:11px;white-space:nowrap}
.theme-control__icon{font-size:15px;line-height:1;color:#9beef4}
.theme-control__track{width:30px;height:16px;padding:2px;border:1px solid #7a8a90;border-radius:99px;display:inline-flex;align-items:center;transition:background .25s,border-color .25s}
.theme-control__track i{display:block;width:10px;height:10px;border-radius:50%;background:#9ba9ad;transition:transform .25s,background .25s}
html.theme-dark .theme-control{color:#e6f1f2}
html.theme-dark .theme-control__track{background:#55d8e21f;border-color:#7be7f0}
html.theme-dark .theme-control__track i{transform:translateX(14px);background:#9beef4;box-shadow:0 0 9px #5ce5f5}
.theme-control:focus-visible{outline:2px solid #6de8f2;outline-offset:4px}

html.theme-dark .hero{color:#edf2f3;background:radial-gradient(ellipse at 76% 38%,#182127d9 0%,#11171bd1 35%,transparent 66%),linear-gradient(180deg,#101619e8 0%,#0d1216da 70%,#0b0e12c9 100%)}
html.theme-dark .hero:before{background:linear-gradient(90deg,#101619 0 3%,#263137 3.2% 27%,#101619 27.2% 27.5%,#182126 27.7% 72%,#101619 72.2% 72.5%,#263137 72.7% 97%,#101619 97.2%);border-color:#8c9ba022;box-shadow:0 4px 18px #0005}
html.theme-dark .hero:after{background:radial-gradient(ellipse at 50% 48%,#42515848 0%,#202a2e3b 32%,transparent 68%)}
html.theme-dark .hero .eyebrow,html.theme-dark .eyebrow{color:#a5b2b6}
html.theme-dark .spark{background:#77e9f1;box-shadow:0 0 12px #49e6f1a8}
html.theme-dark .hero h1,html.theme-dark .practice h2,html.theme-dark .partnership h2,html.theme-dark .contact h2{color:#eef3f3}
html.theme-dark .hero h1 em{color:#aab8bc}
html.theme-dark .hero-description{color:#bdc8cb}
html.theme-dark .gold-button{color:#f6fbfb;background:#202a2f;border-color:#73838a;box-shadow:0 3px 18px #0004}
html.theme-dark .gold-button:hover{background:#2b3b41;border-color:#a4edf2;box-shadow:0 8px 26px #47dce42a}
html.theme-dark .hero-brand:before{border-color:#71808766;background:linear-gradient(145deg,#263138,#11171b 62%,#20292e);box-shadow:inset 0 1px #ffffff14,0 24px 55px #0007}
html.theme-dark .hero-brand:after{border-color:#93a5aa3a;background:linear-gradient(90deg,transparent calc(50% - .5px),#8ca0a344 calc(50% - .5px),#8ca0a344 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(0deg,transparent calc(50% - .5px),#8ca0a344 calc(50% - .5px),#8ca0a344 calc(50% + .5px),transparent calc(50% + .5px))}
html.theme-dark .logo-scene,html.theme-dark .hero-logo{filter:grayscale(1) invert(1) brightness(.88) contrast(.9)}
html.theme-dark .brand-caption{background:#10171bb8;border-color:#71808766;color:#cad5d7}
html.theme-dark .hero-footer{border-color:#a5b3b733;color:#96a4a8}
html.theme-dark .hero-scroll{color:#b8c4c7}
html.theme-dark .hero-scroll i{border-color:#6c7d83;background:#11181c;color:#dbe5e7}
html.theme-dark .scene-selector button{color:#aab7bb}
html.theme-dark .scene-selector button[aria-pressed=true]{color:#dff8fa;border-color:#8eeaf1}

html.theme-dark #in-practice:after{background:linear-gradient(90deg,#101619 0 3%,#263137 3.2% 25%,#182126 25.2% 25.5%,#11181c 25.7% 74%,#263137 74.2% 74.5%,#182126 74.7% 97%,#101619 97.2%);border-color:#84939833;box-shadow:0 4px 10px #0005}
html.theme-dark .practice{background:radial-gradient(ellipse at 75% 25%,#1c292ed6 0%,#12191dcf 54%,#0b0e12c2 100%)}
html.theme-dark .practice-heading>p:last-child,html.theme-dark .partnership-copy>p,html.theme-dark .scenario-columns p{color:#bac6c9}
html.theme-dark .sculpture-stage:before{border-color:#9aadb333;background:radial-gradient(ellipse at 50% 44%,#8da1a51c,transparent 62%),linear-gradient(145deg,#202a2e99,#0d12168c);box-shadow:inset 0 1px #ffffff0c,0 12px 35px #0006}
html.theme-dark .sculpture-stage .scene canvas{filter:drop-shadow(0 18px 24px #0008)}
html.theme-dark .stage-caption{color:#bcc9cc}
html.theme-dark .scenario-shell{border-color:#71808755;background:linear-gradient(110deg,#1b2529dc,#101619d9);box-shadow:0 16px 42px #0006}
html.theme-dark .scenario-tabs{border-color:#71808755}
html.theme-dark .scenario-tabs button{color:#aebdc0}
html.theme-dark .scenario-tabs button[aria-selected=true]{border-color:#75dfe755;background:linear-gradient(100deg,#28707a38,#a9499b15);color:#eef7f8}
html.theme-dark .scenario-panel .eyebrow,html.theme-dark .mini-label{color:#9be2e7}
html.theme-dark .scenario-note{color:#9eadaf}
html.theme-dark .partnership{border-color:#7e8b8f36;background:linear-gradient(180deg,#0d121630,#0d121600)}
html.theme-dark .ways span{border-color:#80919677;color:#d7e5e7}
html.theme-dark .contact{background:radial-gradient(ellipse at 0 100%,#24343ade,#0d1216c4 72%);border-color:#71808755}
html.theme-dark .contact:before{background:linear-gradient(90deg,rgba(11,15,18,.72) 0%,rgba(14,19,22,.6) 42%,rgba(16,22,25,.42) 100%),linear-gradient(0deg,rgba(11,15,18,.52),rgba(14,19,22,.38))}
html.theme-dark .contact-copy>p:not(.eyebrow){color:#c1ccce}
html.theme-dark .contact-direct a{color:#a4edf2;border-color:#6ecbd377}
html.theme-dark form label{color:#c4d0d2}
html.theme-dark input,html.theme-dark select,html.theme-dark textarea{border-bottom-color:#82939877;color:#edf4f4}
html.theme-dark select{background:#161f23}
html.theme-dark input::placeholder,html.theme-dark textarea::placeholder{color:#819195}
html.theme-dark .optional,html.theme-dark .form-note{color:#9eadaf}
html.theme-dark #brief-status{color:#9beef4}
html.theme-dark footer{color:#e3eded;background:#0b0e1280}
html.theme-dark footer p,html.theme-dark footer small{color:#9eadaf}
html.theme-dark footer small{border-color:#7e8b8f36}
html.theme-dark footer>a:last-of-type{color:#b4eaf0}
html.theme-dark dialog{background:linear-gradient(145deg,#202a2e,#101619);color:#edf2f3;border-color:#80919677;box-shadow:0 30px 100px #000b}
html.theme-dark dialog::backdrop{background:#030608c7}
html.theme-dark dialog>p:not(.eyebrow){color:#c0cbce}
html.theme-dark dialog li{border-color:#68777b66;color:#b8edf0}
html.theme-dark .dialog-close,html.theme-dark .round-button{color:#e5eff0;border-color:#748489;background:#141c20}
html.theme-dark .round-button:hover{background:#253237}
html.theme-dark .service-card{border-color:#78868a66;background:linear-gradient(145deg,#202a2edb,#12181bd9);box-shadow:inset 0 1px #ffffff0b,0 12px 30px #0005}
html.theme-dark .service-card:after{border-color:#a6b4b322}
html.theme-dark .service-card img{border-color:#81909466;filter:grayscale(.72) brightness(.82)}
html.theme-dark .card-kicker,html.theme-dark .card-link,html.theme-dark .text-button,html.theme-dark .carousel-controls>span,html.theme-dark .explorer-bottom{color:#a8b6b9}
html.theme-dark .service-card h2{color:#edf3f4}
html.theme-dark .service-card .card-copy>p:not(.card-kicker){color:#b9c5c7}
html.theme-dark .card-link,html.theme-dark .text-button{border-color:#82929788}
html.theme-dark .round-button{color:#d9e6e8;border-color:#738389;background:#172024}
html.theme-dark .round-button:hover{background:#2a3b40}
html.theme-dark .service-dots button:after{background:#69777a}
html.theme-dark .service-dots button[aria-pressed=true]:after{background:#8eeaf1}
html.theme-dark .showcase-viewport{border-color:#77868a;background:linear-gradient(145deg,#20292d,#11171a 54%,#0b0f12);box-shadow:inset 0 1px #ffffff0c,0 24px 55px #0005}
html.theme-dark .showcase-panel,html.theme-dark .showcase-panel:nth-child(2),html.theme-dark .showcase-panel:nth-child(3),html.theme-dark .showcase-panel:nth-child(4){background:radial-gradient(ellipse at 50% 48%,#d4e3e710,transparent 46%),linear-gradient(145deg,#20292dc9,#131a1ecf 56%,#0e1316c9);border-color:#71808766}
html.theme-dark .showcase-panel:after{background:linear-gradient(90deg,transparent 49.85%,#d0e3e222 50%,transparent 50.15%),linear-gradient(0deg,transparent 49.85%,#d0e3e21c 50%,transparent 50.15%)}
html.theme-dark .scroll-progress{background:#ffffff10}
html.theme-dark .scroll-progress span{background:#9beef4}
html.theme-dark button:focus-visible,html.theme-dark a:focus-visible,html.theme-dark input:focus-visible,html.theme-dark textarea:focus-visible,html.theme-dark select:focus-visible,html.theme-dark [tabindex]:focus-visible{outline-color:#85edf4}
html.theme-dark .skip{background:#a8f2f5;color:#081014}
html.theme-dark .hero-footer{border-color:#7b888b55}
html.theme-dark .hero-brand .scene-fallback{opacity:.18}
html.theme-dark .logo-scene.scene-ready .scene-fallback{opacity:0}
@media(max-width:720px){html.theme-dark .header{background:#0e1418ed}html.theme-dark #mobile-nav{background:#10171bf5}html.theme-dark .hero-scroll{color:#c1ccce}}
@media(max-width:360px){.theme-control__label{display:none}}
@media(prefers-reduced-motion:reduce){.theme-control__track,.theme-control__track i{transition:none}html.theme-dark .studio-vaporwave-overlay{animation:none}}
@media(max-width:720px){.theme-control{gap:5px}.theme-control__label{display:none}.theme-control__track{width:26px;height:14px}.theme-control__track i{width:8px;height:8px}html.theme-dark .theme-control__track i{transform:translateX(12px)}}
