/* Dark by default; the light palette retains the original editorial character. */
html[data-theme=dark]{color-scheme:dark;--paper:#0b111b;--ink:#eaf0fa;--muted:#a2afbf;--line:#2b384b;--blue:#a4b6ff;--light-blue:#202d4b;--lime:#dcf3ab;--lavender:#292b43;--surface:#121d2b;--surface-raised:#19273a;--border:#2b3b50;--text-soft:#b5c1cf}
html[data-theme=light]{color-scheme:light;--surface:#fff;--surface-raised:#f0f3ea;--border:#d5dfcf;--text-soft:#5d6b72}
.header-tools{gap:8px}.theme-toggle{width:36px;height:36px;border:1px solid var(--line,#d2dacc);border-radius:50%;display:grid;place-items:center;background:var(--surface,#fff);color:var(--ink,#172431);font-size:19px;line-height:1;cursor:pointer;flex:none}.theme-toggle:hover{border-color:var(--blue,#304cff)}.theme-toggle:focus-visible{outline:2px solid var(--blue,#304cff);outline-offset:4px}.theme-standalone{position:absolute;right:22px;top:20px;z-index:2}
html[data-theme=dark] body{background:#0b111b;background-image:radial-gradient(#9db9df0c .7px,transparent .7px);background-size:22px 22px;color:var(--ink)}
html[data-theme=dark] .site-header{background:#0b111bed;border-color:#27354a}html[data-theme=dark] :is(.identity-sub,.hero-intro,.hero-location){color:#b5c1cf}html[data-theme=dark] .preview-strip{background:#192336;color:#bac7dc}html[data-theme=dark] .preview-dot{background:#bbd88b}html[data-theme=dark] :is(.nav-contact,.motion-toggle){background:#152235;border-color:#34445b;color:#e3ebf7}html[data-theme=dark] .motion-toggle[aria-pressed=true]{background:#d9e5f5;color:#17283b}html[data-theme=dark] :is(.nav-contact,.motion-toggle):hover{background:#263a50;color:#eaf0fa}html[data-theme=dark] .eyebrow{color:#aabdc8}html[data-theme=dark] .hero-location svg{stroke:#b1c3d2}html[data-theme=dark] :is(.button.primary,button.primary){background:#a4b6ff;border-color:#a4b6ff;color:#0b152a;box-shadow:0 5px 20px #8ba4ff16}html[data-theme=dark] :is(.button.primary,button.primary):hover{background:#c0ccff;border-color:#c0ccff}html[data-theme=dark] .button:not(.primary){border-color:#3b4c66}html[data-theme=dark] .text-button{color:#dbe5f4}
html[data-theme=dark] :is(.facts-strip,.home-index-links>a,.content-card,.panel){background:#132132;border-color:#293c50}html[data-theme=dark] .facts-strip .fact-label{color:#b0c0d1}html[data-theme=dark] .facts-strip>div+div{border-color:#31435b}html[data-theme=dark] :is(.home-index-links>a,.content-card):hover{background:#17263a;border-color:#61738e;box-shadow:0 20px 35px #0003}html[data-theme=dark] .home-index-arrow{background:#22334a}html[data-theme=dark] .home-index-links>a:hover .home-index-arrow{background:#354a32}html[data-theme=dark] :is(.home-index-number,.collection-kicker,.collection-meta){color:#b0c5b5}html[data-theme=dark] :is(.current-work-heading>p,.collection-heading>p,.card-summary,.home-index-links p,.content-card .entry-meta,.content-card .eyebrow){color:#b0bdcc}html[data-theme=dark] .collection-heading{border-color:#2b3d51}html[data-theme=dark] .collection-heading h1 span{color:#a5b8c7}html[data-theme=dark] .card-actions{border-color:#2c4055}html[data-theme=dark] .card-actions .inline-link{color:#c3d3f3}html[data-theme=dark] .build-badge{background:#243226;border-color:#42573b;color:#d3e8b4}html[data-theme=dark] .entry-art{background:#182a2e;border-color:#314849}html[data-theme=dark] :is(.entry-art.hackathon,.entry-art.event){background:#24283e}html[data-theme=dark] .entry-art.writing{background:#222d3d}html[data-theme=dark] :is(.art-index,.art-caption){color:#bdcec4}html[data-theme=dark] .orbit-label{color:#c9c8e5}
html[data-theme=dark] .about-section{background:#111e2b;border-color:#2b3a4b}html[data-theme=dark] .page-about .about-section h1 em{color:#c4dda9}html[data-theme=dark] :is(.about-copy>p,.interest-note){color:#b3c1cf}html[data-theme=dark] .about-copy .large-copy{color:#e1eaf7}html[data-theme=dark] .interest-tags span{background:#1c2b3e;border-color:#3c4d60;color:#d1deeb}html[data-theme=dark] :is(.about-portrait img,.home-portrait){border-color:#3b4c60;box-shadow:7px 7px 0 #8daa5930}html[data-theme=dark] .page-next{border-color:#314152}html[data-theme=dark] .page-next a:last-child{background:#192b3b}html[data-theme=dark] .page-next a:last-child:hover{background:#2a3b4b}html[data-theme=dark] .page-next>a:last-child>span{color:#b6c7ce}html[data-theme=dark] .page-breadcrumb{border-color:#2a394d;color:#aebdcf}
html[data-theme=dark] .note-slot{background:#162232;border-color:#344257;box-shadow:8px 8px 0 #748caa10}html[data-theme=dark] .note-slot:after{background:linear-gradient(45deg,#293a4e 50%,var(--paper) 50%)}html[data-theme=dark] :is(.editorial-aside>p:not(.eyebrow),.note-slot p){color:#b3c0cf}html[data-theme=dark] .recruiter-sheet{background:#152235;border-color:#3b4c62;box-shadow:12px 14px 0 #7f9db519}html[data-theme=dark] .sheet-head{background:#1d3041;color:#d3e3d9;border-color:#34495b}html[data-theme=dark] .sheet-footer{background:#243355;color:#c4d3ff}html[data-theme=dark] .sheet-footer:hover{background:#30426c}html[data-theme=dark] .recruiter-sheet dl>div{border-color:#34465e}html[data-theme=dark] :is(.recruiter-sheet dt,.recruiter-sheet dd>span){color:#b3c4d1}html[data-theme=dark] .recruiter-sheet dd{color:#e2ebf7}
html[data-theme=dark] .contact-section{background:#101f28;border-color:#2d4550}html[data-theme=dark] .contact-section:after{color:#1b343d}html[data-theme=dark] .contact-card{background:#192e36;border-color:#3d555d}html[data-theme=dark] :is(.contact-card>p,.contact-card>.contact-pending){color:#b7ced0}html[data-theme=dark] .site-footer{border-color:#2b3b4f;color:#b3c2d0}html[data-theme=dark] .entry-story .entry-lead{color:#c6d2e0}html[data-theme=dark] .entry-story .entry-meta{background:#182a39;color:#b8c8d6;border-color:#34485c}html[data-theme=dark] .entry-story p{color:#b7c6d5}html[data-theme=dark] .entry-story .eyebrow{color:#a4b8cc}html[data-theme=dark] .entry-story .build-badge{color:#d3e8b4}
html[data-theme=dark] .ld-note{background:#1d2c43;border-color:#405778;color:#c4d4e8}html[data-theme=dark] .ld-nav a{background:#1b2d42;color:#c5d8ee}html[data-theme=dark] .ld-section{border-color:#2c3d52}html[data-theme=dark] :is(.ld-section>p,.ld-section>ul,.ld-card p,.ld-evidence p){color:#b6c6d6}html[data-theme=dark] :is(.ld-card,.ld-evidence>div){background:#162437;border-color:#324960}html[data-theme=dark] :is(.ld-card strong,.ld-evidence strong){color:#e3edf8}html[data-theme=dark] .ld-table{border-color:#344a61}html[data-theme=dark] .ld-table th{background:#203248;color:#dce8f5}html[data-theme=dark] .ld-table td{border-color:#30455c;color:#c1d0df}html[data-theme=dark] :is(.ld-code,.ld-quick){background:#08121f;border-color:#32445c;color:#c3d6ea}html[data-theme=dark] .ld-lead{color:#c0ccda}html[data-theme=dark] :is(.ld-status,.ld-meta){color:#a9c0ba}
html[data-theme=dark] #assistant-dialog{background:#101c2b;border-color:#40516a;color:#e8eff9;box-shadow:0 28px 100px #0008}html[data-theme=dark] :is(#assistant-dialog .pip-header,.pip-toolbar,.pip-status){background:#1b2b37;color:#cfdfcf;border-color:#3a4b53}html[data-theme=dark] :is(.pip-header>.icon-button,.pip-toolbar button,.pip-play>summary){background:#263b49;color:#e3edec;border-color:#4d6270}html[data-theme=dark] :is(.pip-kicker,.pip-reply-label){color:#b7d1bc}html[data-theme=dark] .pip-gesture-options{background:#152536;border-color:#3a5069}html[data-theme=dark] .pip-gesture-options button:hover{background:#283e4d}html[data-theme=dark] .assistant-tabs button{background:#142437!important;border-color:#3b5068!important;color:#b9cadd}html[data-theme=dark] .assistant-tabs button.active{background:#acc0ff!important;color:#101c32!important;border-color:#acc0ff!important}html[data-theme=dark] .pip-user{background:#293655;color:#e0e8ff}html[data-theme=dark] .pip-card{background:#1a2b3e;border-color:#3b5168;color:#e3edf8}html[data-theme=dark] .pip-card:hover{background:#243b55}html[data-theme=dark] :is(.pip-card .pip-card-link,.pip-sources a){color:#bdcfff}html[data-theme=dark] .pip-card .pip-card-status{color:#c0d6a9}html[data-theme=dark] .pip-sources{color:#b4c6ce}html[data-theme=dark] :is(.pip-followups button,.pip-action){background:#23334e;color:#d4e0ff;border-color:#536685}html[data-theme=dark] .pip-followups button:hover{background:#344866}html[data-theme=dark] .chat-form input{background:#182a3e!important;border-color:#51617d!important;color:#eef3fc}html[data-theme=dark] .chat-form input::placeholder{color:#a8bad0}html[data-theme=dark] .chat-form .send-button{background:#a4b6ff;color:#0f1930}html[data-theme=dark] .assistant-disclosure{color:#a6b9c6!important}html[data-theme=dark] .pip-launch-label{background:#d8e5f4;color:#142339}html[data-theme=dark] .pip-launch-label>span{color:#354c67}html[data-theme=dark] .pip-launch:hover .pip-launch-label{background:#b7caff}
html[data-theme=dark] :is(.pip-project-assist,.pip-project-context){background:#1b2c37;border-color:#3c535b;color:#e1ece9}html[data-theme=dark] .pip-project-assist p{color:#bed0d1}html[data-theme=dark] :is(.pip-project-assist button,.pip-project-shortcuts button,.pip-answer-actions button){background:#253d4b;color:#d7e8e9;border-color:#58717a}html[data-theme=dark] :is(.pip-project-assist button,.pip-project-shortcuts button,.pip-answer-actions button):hover{background:#345663}
html[data-theme=dark] .guide-mode label{color:#c0d0de}html[data-theme=dark] :is(.guide-mode input,.guide-mode textarea){background:#16283c;color:#e6eef8;border-color:#4c617a}html[data-theme=dark] :is(.mode-intro p,.inquiry-result p){color:#b4c6d3}html[data-theme=dark] .fit-result:not(:empty){background:#182c3c;border-color:#3f586d}html[data-theme=dark] :is(.fit-result p,.fit-result ul,.fit-result .fit-conclusion){color:#c2d5e6}html[data-theme=dark] .summary-dialog{background:#142234;color:#e8eff9;border-color:#42566c}html[data-theme=dark] :is(.summary-facts dt,.summary-footnote){color:#b1c4d6}html[data-theme=dark] .summary-facts dd{color:#e3edfa}html[data-theme=dark] .summary-facts>div{border-color:#3d5066}
html[data-theme=dark] body>header:not(.site-header){background:#111f30;border-color:#2d3d53}html[data-theme=dark] :is(.panel input,.panel textarea,.panel select){background:#0c1929;color:#e9f0fa;border-color:#445b75}html[data-theme=dark] :is(.panel button,.panel a){color:#cadbff}html[data-theme=dark] .panel button:not(.primary){background:#20344b;border-color:#4b637d}html[data-theme=dark] .panel button.primary{color:#0b152a}html[data-theme=dark] :is(.intro p,.hint){color:#b2c4d3}html[data-theme=dark] .entry{background:#15283d;border-color:#3a526c}html[data-theme=dark] .entry[aria-current=true]{background:#253e59}html[data-theme=dark] .badge{background:#344052;color:#d7e2ee}html[data-theme=dark] .badge.published{background:#304633;color:#d5edc1}html[data-theme=dark] #notice{background:#253b30;color:#d8edcc}html[data-theme=dark] #notice.error{background:#492b35;color:#ffe0e6}
/* The 3D lab is a real perspective scene rendered locally, with static fallback art. */
.signal-lab{padding:24px!important;border:1px solid var(--border);border-radius:26px;position:relative;overflow:hidden;background:var(--surface);box-shadow:0 26px 60px -35px #0008;isolation:isolate}.signal-lab:before{content:'';position:absolute;width:350px;height:350px;border-radius:50%;background:radial-gradient(#668fe315,transparent 70%);top:20px;left:15%;pointer-events:none;z-index:-1}.lab-topline{display:flex;justify-content:space-between;align-items:center;font:8px var(--mono);letter-spacing:1.2px;color:var(--text-soft);padding-bottom:18px;border-bottom:1px solid var(--border)}.lab-topline>span:first-child{display:flex;align-items:center;gap:8px}.lab-topline i{display:block;width:5px;height:5px;border-radius:50%;background:var(--blue)}.lab-heading{display:flex;align-items:center;justify-content:space-between;margin-top:21px;gap:12px}.lab-heading h2{font:500 27px/1.08 var(--sans);letter-spacing:-1px}.lab-heading h2 em{font-family:var(--sans);color:var(--blue);font-style:normal}.lab-index{font:9px/1.7 var(--mono);color:var(--text-soft);text-align:right;letter-spacing:1px}.lab-stage{position:relative;margin:-10px -16px -16px;height:365px}.lab-stage canvas,.lab-fallback{display:block;width:100%;height:100%;outline-offset:-8px}.lab-stage canvas{touch-action:pan-y;cursor:grab;opacity:0}.lab-stage canvas:active{cursor:grabbing}.signal-lab[data-ready=true] canvas{opacity:1}.lab-fallback{position:absolute;inset:0;pointer-events:none}.signal-lab[data-ready=true] .lab-fallback{display:none}.lab-stage-label,.lab-coordinate{position:absolute;pointer-events:none;font:7px var(--mono);letter-spacing:1px;color:var(--text-soft);opacity:.65}.lab-stage-label{left:16px;top:24px}.lab-coordinate{right:16px;bottom:30px}.lab-mode-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}.lab-mode-switch{display:flex;gap:4px;padding:3px;background:var(--surface-raised);border:1px solid var(--border);border-radius:10px}.lab-mode-switch button,.lab-mode-row>button{font-size:9px;padding:7px 9px;border-radius:7px;color:var(--text-soft);white-space:nowrap}.lab-mode-switch button[aria-pressed=true]{background:var(--blue);color:#0c1830}html[data-theme=light] .lab-mode-switch button[aria-pressed=true]{color:white}.lab-mode-row>button{border:1px solid var(--border);padding:9px 10px}.lab-mode-row>button:disabled{opacity:.5;cursor:default}.lab-controls{display:grid;grid-template-columns:1fr 1fr;gap:23px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}.lab-controls label{min-width:0}.lab-controls label>span{display:flex;justify-content:space-between;gap:5px;font:9px var(--mono);color:var(--text-soft)}.lab-controls output{color:var(--ink);font-weight:500}.lab-controls input{width:100%;accent-color:var(--blue);margin:11px 0 0;height:16px}.lab-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:13px;border-top:1px solid var(--border)}.lab-bottom p{font:8px/1.6 var(--mono);color:var(--text-soft);max-width:180px}.lab-view-controls{display:flex;align-items:center;gap:2px;flex:none}.lab-view-controls button{font-size:9px;padding:7px 5px;border-radius:5px;color:var(--text-soft)}.lab-view-controls button:hover{background:var(--surface-raised)}.lab-caption{font:8px/1.7 var(--mono);color:var(--text-soft);padding-top:13px;margin-top:11px;border-top:1px dashed var(--border)}
@media(min-width:931px) and (max-width:1100px){.hero{gap:35px}.signal-lab{padding:20px!important}.lab-stage{height:340px}.lab-mode-switch button{padding:7px 5px;font-size:8px}}
@media(max-width:700px){.header-tools{gap:6px}.theme-toggle,.motion-toggle{width:30px;height:30px}.theme-toggle{font-size:17px}.signal-lab{padding:18px!important;border-radius:20px}.lab-heading h2{font-size:27px}.lab-stage{height:330px;margin-inline:-12px}.lab-controls{gap:18px}.lab-bottom{align-items:flex-start}.lab-bottom p{font-size:7px;max-width:140px}.lab-mode-switch button{padding:7px;font-size:9px}.lab-mode-row>button{font-size:9px;padding:9px}.lab-caption{font-size:8px}.lab-topline{font-size:7px}.lab-stage-label{font-size:6px}.lab-view-controls button{padding:6px 4px}}
@media(max-width:400px){.site-header .identity{font-size:13px;gap:10px}.site-header .menu-button{font-size:11px;gap:9px}.lab-mode-switch button{font-size:8px;padding:7px 5px}.lab-mode-row>button{font-size:8px;padding:9px 7px}.lab-controls label>span{font-size:8px}.lab-stage{height:300px}.lab-heading h2{font-size:25px}.lab-bottom{flex-wrap:wrap}.lab-caption{font-size:7px}.lab-index{font-size:8px}}
@media(max-width:1100px){html[data-theme=dark] .site-header nav#main-nav{background:#132236;border-color:#40516b;box-shadow:0 20px 40px #0005}}
@media print{html[data-theme]{--paper:white;--ink:#172431;--muted:#596777;color-scheme:light}html[data-theme] body{background:white!important;color:#172431!important}.theme-toggle,.theme-standalone,.signal-lab{display:none!important}html[data-theme] #summary-dialog,html[data-theme] #summary-dialog *{background:white!important;color:#172431!important;border-color:#ccd2d8!important}html[data-theme] .recruiter-sheet,html[data-theme] .recruiter-sheet *{background:white!important;color:#172431!important}}
html[data-theme=dark] .small-heading{color:#b9cdb7}html[data-theme=dark] .about-copy>.interest-note{color:#b4c6cf!important}html[data-theme=dark] .chat-form{background:#182a3e;border-color:#51617d}html[data-theme=dark] body:not([class]) a{color:#bed0ff}html[data-theme=dark] body:not([class]) small{color:#b5c4d1}
.lab-mode-row button,.lab-view-controls button{min-height:32px}.lab-controls label>span{font-size:10px}.lab-mode-switch button,.lab-mode-row>button{font-size:10px}.lab-view-controls button{font-size:10px}
@media(max-width:400px){.lab-mode-switch button,.lab-mode-row>button{font-size:8px}.lab-controls label>span{font-size:9px}}
@media(max-width:360px){.site-header{padding-inline:16px;gap:8px}.site-header .identity{white-space:nowrap;gap:8px;font-size:12px}.site-header .identity .monogram{width:38px;height:38px}.header-tools{gap:5px}.theme-toggle,.motion-toggle{width:28px;height:28px}.lab-index{display:none}.lab-heading h2{font-size:24px}.lab-stage{height:285px}}
