:root{color-scheme:light}
body{position:relative;isolation:isolate;min-height:100vh}
.header-actions{display:flex;align-items:center;gap:16px;min-width:0}
.theme-toggle{
  position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;align-items:center;
  flex:0 0 80px;width:80px;height:40px;padding:4px;gap:4px;cursor:pointer;
  border:1px solid rgba(151,185,236,.55);border-radius:99px;
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(218,234,255,.7));
  box-shadow:inset 0 1px 1px #fff,inset 0 -2px 4px rgba(79,135,218,.08),0 5px 14px rgba(28,80,158,.09);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.theme-toggle__thumb{position:absolute;z-index:-1;top:4px;left:4px;width:30px;height:30px;border:1px solid rgba(255,255,255,.95);border-radius:50%;background:linear-gradient(145deg,#fff,#deebff);box-shadow:inset 0 1px 1px #fff,0 2px 7px rgba(32,82,160,.18);transition:transform .35s cubic-bezier(.2,.8,.2,1),background .35s}
.theme-toggle__sun,.theme-toggle__moon{display:grid;place-items:center;pointer-events:none}
.theme-toggle svg{display:block;width:17px;height:17px}
.theme-toggle__sun{color:#0757e8}
.theme-toggle__moon{color:#637b9d}
.theme-toggle:focus-visible{outline:3px solid #0757ff;outline-offset:4px}
.theme-toggle:hover{box-shadow:inset 0 1px 1px rgba(255,255,255,.8),0 6px 18px rgba(37,105,220,.2)}
.blog-header .header-actions{justify-content:flex-end}
.blog-header .back-link{white-space:nowrap}

/* A quiet, code-native starfield and a distant orbital arc. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .6s;background-image:radial-gradient(ellipse at 82% 6%,rgba(37,96,204,.22),transparent 52%),radial-gradient(ellipse at 5% 70%,rgba(83,47,139,.13),transparent 48%),radial-gradient(1px 1px at 25px 35px,rgba(218,233,255,.7) 95%,transparent),radial-gradient(1px 1px at 98px 151px,rgba(160,194,244,.42) 95%,transparent),radial-gradient(1.3px 1.3px at 180px 90px,rgba(213,231,255,.55) 95%,transparent);background-size:auto,auto,173px 219px,251px 307px,359px 433px}
body::after{content:"";position:fixed;z-index:-1;pointer-events:none;width:86vw;height:86vw;right:-43vw;top:18vh;border:1px solid rgba(133,187,255,.07);border-radius:50%;box-shadow:0 0 0 90px rgba(114,161,241,.018),0 0 100px rgba(31,94,209,.035);opacity:0;transition:opacity .6s}
html[data-theme="dark"]{color-scheme:dark;--navy:#edf3ff;--blue:#87b6ff;--muted:#a7b6ce;--line:rgba(157,186,232,.19);--pale:rgba(34,58,99,.46)}
html[data-theme="dark"] body{background:#060b16;color:var(--navy)}
html[data-theme="dark"] body::before,html[data-theme="dark"] body::after{opacity:1}
.space-dots{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:0;transition:opacity .6s}
html[data-theme="dark"] .space-dots{opacity:1}
.space-dots-ready body::before{background-image:radial-gradient(ellipse at 82% 6%,rgba(37,96,204,.22),transparent 52%),radial-gradient(ellipse at 5% 70%,rgba(83,47,139,.13),transparent 48%);background-size:auto}
html[data-theme="dark"] ::selection{background:#245393;color:#fff}
html[data-theme="dark"] .theme-toggle{border-color:rgba(134,175,237,.28);background:linear-gradient(145deg,rgba(30,49,80,.85),rgba(10,22,43,.95));box-shadow:inset 0 1px 1px rgba(211,232,255,.14),0 6px 20px rgba(0,0,0,.25)}
html[data-theme="dark"] .theme-toggle__thumb{transform:translateX(40px);border-color:rgba(173,209,255,.55);background:linear-gradient(145deg,#5f9bea,#155bcd 65%,#123f8d);box-shadow:inset 0 1px 1px rgba(255,255,255,.6),0 0 16px rgba(63,139,255,.25)}
html[data-theme="dark"] .theme-toggle__sun{color:#95aaca}
html[data-theme="dark"] .theme-toggle__moon{color:#fff}
html[data-theme="dark"] .brand img{filter:invert(1) hue-rotate(180deg) brightness(1.15)}
html[data-theme="dark"] :is(.header-note,.micro,.visual-caption,.number,.principles,footer,.article-meta,.post-meta,.concept-note){color:#a0b2cf}
html[data-theme="dark"] .service ul{color:#b3c4dd}
html[data-theme="dark"] .email{color:#a9caff}
html[data-theme="dark"] .hero-visual{background:radial-gradient(ellipse,rgba(43,96,179,.17),transparent 72%)}
html[data-theme="dark"] .art{filter:invert(1) hue-rotate(180deg) saturate(1.12);mix-blend-mode:screen}
html[data-theme="dark"] .visual-label{color:#ecf4ff;border-color:rgba(146,182,234,.22);background:linear-gradient(145deg,rgba(27,46,76,.94),rgba(12,25,46,.9));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 16px 35px rgba(0,0,0,.25)}
html[data-theme="dark"] :is(.service,.featured-post,.post-card){border-color:var(--line);background:linear-gradient(145deg,rgba(25,42,69,.85),rgba(10,22,41,.85));box-shadow:inset 0 1px 0 rgba(223,238,255,.055),0 16px 40px rgba(0,0,0,.15)}
html[data-theme="dark"] .service.featured{border-color:rgba(97,155,245,.37);background:linear-gradient(145deg,rgba(40,73,126,.65),rgba(15,33,63,.85))}
html[data-theme="dark"] .examples{background:linear-gradient(180deg,rgba(14,26,46,.48),rgba(8,18,35,.65));border-block:1px solid rgba(134,169,221,.08)}
html[data-theme="dark"] .example-grid article{border-color:var(--line)}
html[data-theme="dark"] :is(.results,.contact,.blog-cta,.article-cta){background:linear-gradient(120deg,rgba(19,40,75,.92),rgba(10,21,41,.95) 55%,rgba(24,47,84,.88));border:1px solid rgba(118,162,229,.16)}
html[data-theme="dark"] :is(.results>div>p:last-child,.benefits p){color:#b1c1da}
html[data-theme="dark"] :is(.blog-button,.back-link,.post-link,.post-card>a,.service>a,.contact-modal__close){border-color:rgba(135,178,242,.27);color:#d3e5ff;background:linear-gradient(145deg,rgba(44,71,112,.85),rgba(17,34,60,.9));box-shadow:inset 0 1px 1px rgba(222,238,255,.14),inset 0 -2px 4px rgba(0,0,0,.16),0 6px 16px rgba(0,0,0,.18)}
html[data-theme="dark"] :is(.blog-button,.back-link,.post-link,.post-card>a,.service>a,.contact-modal__close):hover,html[data-theme="dark"] .contact-modal__close:focus-visible{color:#f0f6ff;background:linear-gradient(145deg,rgba(55,88,137,.95),rgba(24,47,81,.95));border-color:rgba(156,198,255,.43)}
html[data-theme="dark"] .service-icon,html[data-theme="dark"] .steps span{border-color:rgba(146,191,250,.25);background:linear-gradient(145deg,rgba(83,131,200,.38),rgba(21,44,77,.85));box-shadow:inset 0 1px 1px rgba(233,246,255,.23),inset 0 -2px 5px rgba(0,0,0,.15),0 6px 16px rgba(0,0,0,.18);color:#a6ccff;text-shadow:none}
html[data-theme="dark"] .featured .service-icon{background:linear-gradient(145deg,#4389f8,#0757ed 55%,#0643bb);color:#fff;border-color:rgba(167,205,255,.6)}
html[data-theme="dark"] .service-icon::before{opacity:.45}
html[data-theme="dark"] .steps span::after{border-color:rgba(215,236,255,.23)}
html[data-theme="dark"] .steps li:not(:last-child)::after{background:linear-gradient(90deg,rgba(71,139,248,.35),rgba(84,135,214,.2));box-shadow:inset 0 1px 0 rgba(206,228,255,.12),0 2px 5px rgba(0,0,0,.15)}
html[data-theme="dark"] .mini-flow{border-color:rgba(100,153,234,.23);background:radial-gradient(ellipse at 10% 0%,rgba(62,114,193,.2),transparent 72%),linear-gradient(135deg,rgba(24,46,80,.83),rgba(10,24,46,.85));box-shadow:inset 0 1px 0 rgba(213,233,255,.13),0 12px 27px rgba(0,0,0,.2)}
html[data-theme="dark"] .mini-flow span{border-color:rgba(155,196,255,.2);color:#d9e9ff;background:linear-gradient(145deg,rgba(79,125,193,.32),rgba(22,42,72,.9));box-shadow:inset 0 1px 1px rgba(227,240,255,.16),0 5px 12px rgba(0,0,0,.18)}
html[data-theme="dark"] .mini-flow span:last-child{color:#fff;background:linear-gradient(145deg,#4d8ce9,#0757ed 60%,#123f9c);border-color:rgba(158,200,255,.6)}
html[data-theme="dark"] .mini-flow b{color:#93bdff;text-shadow:none}
html[data-theme="dark"] .feature-visual{background:linear-gradient(135deg,#0d1e37,#142e52)}
html[data-theme="dark"] :is(.feature-visual img,.article-cover img,.post-card__image){filter:invert(1) hue-rotate(180deg) saturate(1.1)}
html[data-theme="dark"] .card-number{background:rgba(61,115,198,.2);border:1px solid rgba(129,178,246,.22)}
html[data-theme="dark"] .article-body{color:#bfcee3}
html[data-theme="dark"] :is(.question-list,.before-after>div){background:rgba(20,39,69,.7);border-color:var(--line)}
html[data-theme="dark"] .before-after>div:last-child{background:#172c4d;color:#fff;border-color:#294972}
html[data-theme="dark"] .article-cover{background:#0d1e37;box-shadow:0 18px 45px rgba(0,0,0,.25);border:1px solid rgba(123,169,235,.16)}
html[data-theme="dark"] .contact-modal{color:var(--navy);background:#0b1527;border:1px solid rgba(151,190,248,.22)}
html[data-theme="dark"] .contact-modal::backdrop{background:rgba(1,5,14,.78)}
html[data-theme="dark"] .contact-modal__intro{background:#0a1425;border-color:var(--line)}
html[data-theme="dark"] .contact-modal__art{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen;mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 76%,transparent)}
html[data-theme="dark"] .contact-modal__intro>p:not(.contact-modal__eyebrow){color:#aebfda}
html[data-theme="dark"] #contact-form :is(input:not([type=hidden]):not(.contact-modal__honey),select,textarea){background:rgba(4,12,26,.8);color:#eaf2ff;border-color:#314869}
html[data-theme="dark"] #contact-form select:invalid{color:#a8b8d0}
html[data-theme="dark"] #contact-form option{background:#111e34;color:#eaf2ff}
html[data-theme="dark"] :is(.contact-modal__privacy,.contact-modal__success small,#contact-form label small){color:#a0b2cc}
html[data-theme="dark"] .contact-modal__success p{color:#c2d4ee}
html[data-theme="dark"] .contact-modal__check{background:rgba(53,111,201,.2);color:#9dc7ff;box-shadow:inset 0 1px 0 rgba(216,235,255,.16)}
html[data-theme="dark"] .contact-modal__error{background:#321d29;color:#ffc5cc;border-color:#744353}

.theme-ready :is(body,.service,.featured-post,.post-card,.examples,.contact,.blog-cta,.article-cta,.visual-label,.contact-modal,.contact-modal__intro,.article-body,.question-list,.before-after>div){transition:background-color .4s,color .4s,border-color .4s,box-shadow .4s}
.theme-ready :is(.brand img,.art,.feature-visual img,.article-cover img,.post-card__image){transition:filter .45s}
::view-transition-old(root){animation:dm-theme-fade .4s ease both}
::view-transition-new(root){animation:dm-theme-reveal .65s cubic-bezier(.2,.7,.2,1) both;mix-blend-mode:normal}
@keyframes dm-theme-reveal{from{clip-path:circle(0 at var(--theme-x,90vw) var(--theme-y,50px))}to{clip-path:circle(145vmax at var(--theme-x,90vw) var(--theme-y,50px))}}
@keyframes dm-theme-fade{to{opacity:.8}}
@media(max-width:1000px){.header-actions{gap:12px}.header-note{font-size:10px}}
@media(max-width:720px){
  .header-actions{gap:8px}
  .blog-header .back-link{font-size:0;min-width:0;min-height:40px;padding:8px 11px;gap:7px}
  .blog-header .back-link span{font-size:17px}
  .blog-header .back-link::after{content:attr(data-short-label);font-size:12px;line-height:1}
}
@media(max-width:420px){.masthead .brand{width:110px;flex-basis:110px}.theme-toggle{width:72px;flex-basis:72px;gap:0}.theme-toggle__thumb{left:4px}html[data-theme="dark"] .theme-toggle__thumb{transform:translateX(32px)}}
@media(prefers-reduced-motion:reduce){body::before,body::after,.theme-toggle__thumb{transition:none}.theme-ready :is(body,.service,.featured-post,.post-card,.examples,.contact,.blog-cta,.article-cta,.visual-label,.contact-modal,.contact-modal__intro,.article-body,.question-list,.before-after>div,.brand img,.art,.feature-visual img,.article-cover img,.post-card__image){transition:none}::view-transition-old(root),::view-transition-new(root){animation:none}}
