/* Interface colors are separate from the locked brand tokens. */
:root{--ui-obsidian:var(--r3-obsidian);--ui-carbon:var(--r3-carbon);--ui-graphite:var(--r3-graphite);--ui-cyan:var(--r3-cyan);--ui-cyan-light:var(--r3-cyan-light);--ui-white:var(--r3-white);--ui-titanium:var(--r3-titanium);--ui-steel:var(--r3-steel)}
.wordmark{display:block}.wordmark img{width:100%;height:auto}.brand-light{display:none}
.theme-toggle{display:none;order:3;flex:none;align-items:center;justify-content:center;gap:9px;min-width:88px;min-height:44px;padding:8px 12px;border:1px solid var(--line);background:transparent;color:var(--text);font:11px var(--mono);cursor:pointer}
.theme-ready .theme-toggle{display:flex}.theme-toggle:hover{background:var(--surface);border-color:var(--subtle)}
.theme-toggle svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.theme-sun{display:none}[data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}
.header-inner{gap:22px}.site-nav{order:2;margin-left:auto;gap:24px}.menu-toggle{order:4}
@media(max-width:1250px){.site-nav,.kal-case .site-nav{gap:20px}.site-nav .nav-contact{padding-left:18px;margin-left:0;gap:12px}.header-inner{gap:16px}.theme-toggle{min-width:44px;padding:10px}.theme-toggle [data-theme-label]{display:none}}
@media(max-width:900px){.site-header .header-inner{column-gap:12px}.theme-toggle{margin-left:auto}.site-nav{order:5;margin-left:0}.js .menu-toggle{gap:9px;padding:6px 0;min-width:58px}}
@media(max-width:359px){.site-header .header-inner{column-gap:8px}.js .menu-toggle{font-size:11px;gap:6px;min-width:54px}}
/* "light" is the stored illuminated mode: dark surfaces, white identity, cyan lamp glow. */
:root:not([data-theme=dark]){
 color-scheme:dark;--ui-obsidian:#09151b;--ui-carbon:#10212a;--ui-graphite:#17333f;--ui-titanium:#c2d0d8;--ui-steel:#afc3cd;
 --bg:var(--ui-obsidian);--surface:var(--ui-carbon);--text:var(--ui-white);--muted:var(--ui-titanium);--subtle:var(--ui-steel);--line:#96c9dc38
}
:root:not([data-theme=dark]) body{
 background-image:radial-gradient(ellipse 85vw 720px at 100% 10%,#38d6ff1f,transparent 72%),radial-gradient(ellipse 70vw 620px at -10% 85%,#38d6ff1c,transparent 74%);
 background-attachment:fixed
}
:root:not([data-theme=dark]) .site-header{background:radial-gradient(ellipse at 86% 0,#38d6ff1a,transparent 65%),#09151bf7}
:root:not([data-theme=dark]) :is(.current-section,.site-footer){background:radial-gradient(ellipse at 95% 20%,#38d6ff22,transparent 70%),var(--surface)}
:root:not([data-theme=dark]) .page-intro{background:radial-gradient(ellipse at 77% 0,#38d6ff21,transparent 70%)}
:root:not([data-theme=dark]) .hero-cinematic{background:var(--bg)}
:root:not([data-theme=dark]) .hero-cinematic::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 20% 75% at 84% 0,#98eeff42,#38d6ff29 38%,transparent 75%),radial-gradient(ellipse 72% 75% at 8% 24%,#38d6ff40,transparent 76%)}
:root:not([data-theme=dark]) .hero-cinematic .hero-object::after{
 background:linear-gradient(90deg,#09151bd9,transparent 62%),linear-gradient(0deg,#09151b,transparent 25%)
}
:root:not([data-theme=dark]) .hero-cinematic .hero-description{color:var(--muted)}
:root:not([data-theme=dark]) .hero-cinematic .hero-actions .secondary{background:#10232dcb;border-color:#a1ccd96b}
:root:not([data-theme=dark]) .hero-cinematic .object-light{display:none}
:root:not([data-theme=dark]) .kal-case{background-color:var(--bg)}
:root:not([data-theme=dark]) .kal-hero{background:radial-gradient(ellipse at 12% 15%,#193a48,transparent 65%),var(--bg)}
:root:not([data-theme=dark]) .kal-hero::after{
 background:radial-gradient(ellipse 20% 75% at 84% 0,#98eeff42,#38d6ff29 38%,transparent 75%),radial-gradient(ellipse 72% 75% at 8% 24%,#38d6ff40,transparent 76%),linear-gradient(90deg,#09151bd9,transparent 62%),linear-gradient(0deg,#09151b,transparent 25%)
}
:root:not([data-theme=dark]) .kal-rift-bridge{background:radial-gradient(ellipse at 75% 0,#38d6ff26,transparent 70%),var(--bg)}
:root:not([data-theme=dark]) .kal-section-nav{background:#09151bf7;border-color:var(--line)}
:root:not([data-theme=dark]) .kal-affine-section{background:radial-gradient(ellipse at 95% 40%,#38d6ff26,transparent 70%),linear-gradient(120deg,var(--surface),var(--bg) 75%)}
:root:not([data-theme=dark]) .kal-authoring-manifest{background:radial-gradient(ellipse at 50% 75%,#16485fa3,transparent 68%)}
:root:not([data-theme=dark]) .kal-validation-section{background:radial-gradient(ellipse at 85% 12%,#38d6ff2e,transparent 70%),#102631;color:var(--text)}
:root:not([data-theme=dark]) .kal-validation-section :is(.kal-label,.kal-boundary,p){color:var(--muted)!important}
:root:not([data-theme=dark]) .kal-validation-section .kal-large-copy{color:var(--text)!important}
:root:not([data-theme=dark]) .kal-validation-section .kal-label>span{color:var(--r3-cyan)}
:root:not([data-theme=dark]) .kal-validation-section h2 span:not(.heading-mask):not(.heading-line){color:var(--subtle)}
:root:not([data-theme=dark]) :is(.kal-regression-number span,.kal-measurements thead th,.kal-measurements th small,.kal-measurements td:last-child){color:var(--subtle)}
@media(max-width:1100px){
 :root:not([data-theme=dark]) .hero-cinematic .hero-object::after{background:linear-gradient(90deg,#09151beb,transparent 83%),linear-gradient(0deg,#09151b,transparent 25%)}
 :root:not([data-theme=dark]) .kal-hero::after{background:radial-gradient(ellipse 35% 75% at 80% 0,#82e8ff42,transparent 75%),radial-gradient(ellipse 80% 70% at 10% 20%,#38d6ff40,transparent 80%),linear-gradient(90deg,#09151beb,transparent 83%),linear-gradient(0deg,#09151b,transparent 25%)}
}
@media(max-width:760px){
 :root:not([data-theme=dark]) .kal-hero::after{background:radial-gradient(ellipse 95% 50% at 65% 8%,#62dfff42,transparent 80%),linear-gradient(180deg,#09151b 0,#09151bf0 32%,#09151b8a 45%,transparent 64%,#09151b 98%)}
}
@media(max-width:650px){
 :root:not([data-theme=dark]) .hero-cinematic::before{background:radial-gradient(ellipse 110% 50% at 75% 4%,#62dfff42,transparent 80%)}
 :root:not([data-theme=dark]) .hero-cinematic .hero-object::after{background:linear-gradient(#09151b 0,#09151bb8 20%,transparent 48%,#09151b 99%)}
}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
