/* Two complete palettes, shared by the website and the brand motion page. */
html[data-theme="dark"]{
  color-scheme:dark;
  --theme-bg:#17171C;--theme-elevated:#1D1D24;--theme-card:#23232B;--theme-panel:#25252E;
  --theme-sheet:#292932;--theme-sheet-back:#202028;--theme-sheet-mid:#25252F;
  --theme-fg:#F6F4EF;--theme-muted:#B4B0A6;--theme-faint:#A29E96;
  --theme-line:#3B3B45;--theme-line-strong:#66646C;--theme-focus:#B4B0A6;
  --theme-button:#EDE8DE;--theme-button-fg:#17171C;--theme-hover:#303039;
  --theme-header:#17171CF2;--theme-input:#1C1C23;--theme-shadow:#0005;
  --theme-accent:#E26A4E;--theme-track:#F6F4EF20;--theme-track-inner:#F6F4EF0E;
}
html[data-theme="light"]{
  color-scheme:light;
  --theme-bg:#F6F4EF;--theme-elevated:#EEEAE1;--theme-card:#EFEBE2;--theme-panel:#FBFAF5;
  --theme-sheet:#FBFAF5;--theme-sheet-back:#E3DED1;--theme-sheet-mid:#F1EDE3;
  --theme-fg:#17171C;--theme-muted:#646168;--theme-faint:#6E6A63;
  --theme-line:#DAD4C8;--theme-line-strong:#B2AA9B;--theme-focus:#81796B;
  --theme-button:#17171C;--theme-button-fg:#F6F4EF;--theme-hover:#E4DFD4;
  --theme-header:#F6F4EFF2;--theme-input:#FFFFFF;--theme-shadow:#17171C12;
  --theme-accent:#B9361C;--theme-track:#17171C1A;--theme-track-inner:#17171C0D;
}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:36px;min-height:36px;padding:8px 12px;border:1px solid var(--theme-line-strong);border-radius:999px;background:transparent;color:var(--theme-fg);font:inherit;font-size:11px;white-space:nowrap;cursor:pointer;flex:none}
.theme-toggle:hover{background:var(--theme-hover)}
.theme-toggle:focus-visible{outline:2px solid var(--theme-focus);outline-offset:4px}
.theme-toggle svg{display:block;width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .theme-moon,html[data-theme="light"] .theme-sun{display:none}
.header-actions,.motion-header-actions{display:flex;align-items:center;gap:14px;flex:none}

/* One canvas throughout the home page: no automatic dark/light section changes. */
.site-home{background:var(--theme-bg);color:var(--theme-fg);--accent:var(--theme-accent);--tan:var(--theme-accent)}
.site-home .opening,.site-home .opening-sticky,.site-home .approach,.site-home #scenes.video-orbit-section,.site-home .capability,.site-home .research,.site-home .contact,.site-home .footer{background:var(--theme-bg);color:var(--theme-fg)}
.site-home .capability{padding-top:110px}
.site-home .header{color:var(--theme-fg);background:var(--theme-header);border-bottom:1px solid var(--theme-line)}
.site-home .header.solid{background:var(--theme-header);box-shadow:none}
.site-home .brand small,.site-home .nav,.site-home .footer-brand .mono{color:var(--theme-muted)}
.site-home .nav a:hover{color:var(--theme-fg)}
.site-home .nav a.is-current:after{background:var(--theme-fg)}
.site-home .menu-toggle span{background:var(--theme-fg)}
.site-home .opening-title h1{color:#F6F4EF}
.site-home .opening-title .accent{color:#EF6B48}
.site-home .opening-caption>.mono,.site-home .opening-field-copy .kicker,.site-home .opening-field-copy p{color:var(--theme-muted)}
.site-home .opening-progress{color:var(--theme-muted)}
.site-home .opening-progress i{background:var(--theme-line)}
.site-home .text-link{color:var(--theme-fg);border-color:var(--theme-line-strong)}
.site-home .text-link:hover{border-color:var(--theme-fg)}
.site-home .approach-card{background:var(--theme-elevated);box-shadow:0 -20px 70px var(--theme-shadow)}
.site-home .approach-tag,.site-home .approach-copy p,.site-home .approach-chapters .mono{color:var(--theme-muted)}
.site-home .approach-line:last-child{color:var(--theme-accent)}
.site-home .approach-chapters{border-color:var(--theme-line)}
.site-home .approach-chapters:before{background:var(--theme-line-strong)}
.site-home .approach-chapters li{color:var(--theme-fg)}
.site-home .section-kicker{color:var(--theme-muted)}
.site-home #scenes .scenes-head h2{color:var(--theme-fg)}
.site-home #scenes .scenes-head .tan{color:var(--theme-muted)}
.site-home #scenes .scenes-head .section-kicker,.site-home #scenes .scenes-head p,.site-home #scenes .scene-hint{color:var(--theme-muted)}
.site-home .video-orbit-track{border-color:var(--theme-track)}
.site-home .video-orbit-track>i{border-color:var(--theme-track-inner)}
.site-home .video-orbit-track:before,.site-home .video-orbit-track:after{background:var(--theme-line-strong)}
.site-home .orbit-card .scene-sample{background:var(--theme-card);border-color:var(--theme-line-strong);box-shadow:0 15px 35px var(--theme-shadow)}
.site-home .orbit-card.is-front .scene-sample{border-color:var(--theme-faint)}
.site-home .orbit-arrow{color:var(--theme-fg);border-color:var(--theme-line-strong)}
.site-home .orbit-arrow:hover{background:var(--theme-hover);border-color:var(--theme-fg)}
.site-home .orbit-now-name{color:var(--theme-fg)}
.site-home .orbit-now-count,.site-home .orbit-pause,.site-home .orbit-scene-notice,.site-home .orbit-local-tools button,.site-home .orbit-status{color:var(--theme-muted)}
.site-home .orbit-local-tools button:hover{color:var(--theme-fg)}
.site-home .orbit-play-progress{background:var(--theme-line)}
.site-home .orbit-play-progress>i{background:var(--theme-accent)}
.site-home .case-card,.site-home .standard-card{background:var(--theme-card);border-color:transparent}
.site-home .case-card:hover{background:var(--theme-hover);border-color:var(--theme-line-strong)}
.site-home .audience-index,.site-home .case-card p,.site-home .standard-card p{color:var(--theme-muted)}
.site-home .audience-link{color:var(--theme-fg);border-color:var(--theme-line)}
.site-home .round-btn,.site-home .back-top{background:var(--theme-card);color:var(--theme-fg);border-color:var(--theme-line-strong)}
.site-home .round-btn:hover,.site-home .back-top:hover{background:var(--theme-hover)}
.site-home .paper-back{background:var(--theme-sheet-back);border-color:var(--theme-line)}
.site-home .paper-middle{background:var(--theme-sheet-mid);border-color:var(--theme-line)}
.site-home .paper-front{background:var(--theme-sheet);border-color:var(--theme-line);box-shadow:0 20px 60px var(--theme-shadow)}
.site-home .package-title,.site-home .package-body strong{color:var(--theme-fg)}
.site-home .package-rule,.site-home .paper-lines i{background:var(--theme-line)}
.site-home .package-top,.site-home .package-field,.site-home .package-bottom,.site-home .paper-note,.site-home .delivery-visual-note{color:var(--theme-muted)}
.site-home .package-chips span{border-color:var(--theme-line);color:var(--theme-muted)}
.site-home .package-files span{background:var(--theme-card);color:var(--theme-muted);border-color:var(--theme-line)}
.site-home .delivery-steps,.site-home .delivery-step{border-color:var(--theme-line)}
.site-home .delivery-step:before{border-color:var(--theme-bg);background:var(--theme-line-strong)}
.site-home .delivery-step.is-active:before,.site-home .delivery-step.is-done:before{background:var(--theme-accent)}
.site-home .delivery-step h3,.site-home .delivery-step p,.site-home .step-number{color:var(--theme-muted)}
.site-home .delivery-step.is-active h3,.site-home .delivery-step.is-done h3,.site-home .step-output{color:var(--theme-fg)}
.site-home .delivery-step.is-active .step-number{color:var(--theme-accent)}
.site-home .step-output{border-color:var(--theme-line)}
.site-home .quality-drawing{stroke:var(--theme-fg)}
.site-home .spec-intro p,.site-home .spec-list dd,.site-home .spec-list dt .mono{color:var(--theme-muted)}
.site-home .spec-list>div{border-color:var(--theme-line)}
.site-home .spec-list dt{color:var(--theme-fg)}
.site-home .contact-tag,.site-home .contact p,.site-home .contact-help{color:var(--theme-muted)}
.site-home .next-task-back{background:var(--theme-sheet-back);border-color:var(--theme-line)}
.site-home .next-task-paper{background:var(--theme-sheet);color:var(--theme-fg);box-shadow:0 25px 70px var(--theme-shadow)}
.site-home .next-task:hover .next-task-paper{background:var(--theme-panel)}
.site-home .next-task-top,.site-home .next-task-fields>span,.site-home .next-task-bottom{color:var(--theme-muted)}
.site-home .next-task-top i,.site-home .next-task-bottom>span:last-child{color:var(--theme-fg)}
.site-home .next-task-fields i{background:var(--theme-line)}
.site-home .next-task-bottom,.site-home .footer-top,.site-home .footer-base{border-color:var(--theme-line)}
.site-home .footer-wordmark{color:var(--theme-fg)}
.site-home .footer-base,.site-home .footer-links h5,.site-home .footer-links a{color:var(--theme-muted)}
.site-home .footer-links a:hover{color:var(--theme-fg)}
.site-home .mark-motif path{stroke:var(--theme-fg);fill:none}
.site-home .mark-motif circle,.site-home .mark-motif rect{fill:var(--theme-fg)}
.site-home .pill-light{background:transparent;border-color:var(--theme-line-strong);color:var(--theme-fg)}
.site-home .pill-light:hover{background:var(--theme-hover)}
.site-home .header-cta,.site-home .pill-white,.site-home .contact .pill,.site-home .button-dark{background:var(--theme-button);color:var(--theme-button-fg)}
.site-home .header-cta:hover,.site-home .button-dark:hover{filter:brightness(.94)}
.site-home .button-outline{color:var(--theme-fg);border-color:var(--theme-line-strong)}
.site-home .button-outline:hover{background:var(--theme-hover);border-color:var(--theme-fg)}
.site-home #brief-dialog,.site-home #sample-dialog{background:var(--theme-panel);color:var(--theme-fg);border-color:var(--theme-line)}
.site-home .dialog-top .mono,.site-home .dialog-description,.site-home .sample-top .mono,.site-home .sample-bottom p,.site-home .sample-bottom>span{color:var(--theme-muted)}
.site-home .close-dialog,.site-home .close-sample,.site-home .sample-brief,.site-home .form-status{color:var(--theme-fg)}
.site-home .sample-brief{border-color:var(--theme-line)}
.site-home form input,.site-home form textarea,.site-home form select{background:var(--theme-input);color:var(--theme-fg);border-color:var(--theme-line-strong)}
.site-home form input::placeholder,.site-home form textarea::placeholder{color:var(--theme-faint)}
.site-home form input:focus,.site-home form textarea:focus,.site-home form select:focus{background:var(--theme-input);border-color:var(--theme-focus);outline:none;box-shadow:none}
.site-home .skip-link{background:var(--theme-button);color:var(--theme-button-fg)}

html[data-theme="light"] .site-home .context-plane,html[data-theme="light"] .site-home .annotation-plane{border-color:#17171C45;background:#17171C03;box-shadow:none}
html[data-theme="light"] .site-home .context-grid{background-image:linear-gradient(#17171C12 1px,transparent 1px),linear-gradient(90deg,#17171C12 1px,transparent 1px)}
html[data-theme="light"] .site-home .context-steps{color:var(--theme-muted)}
html[data-theme="light"] .site-home .context-steps span{border-color:var(--theme-line-strong)}
html[data-theme="light"] .site-home .context-steps i{background:var(--theme-line-strong)}
html[data-theme="light"] .site-home .plane-top,html[data-theme="light"] .site-home .plane-bottom,html[data-theme="light"] .site-home .annotation-bottom{color:var(--theme-muted)}
html[data-theme="light"] .site-home .action-map .map-cross,html[data-theme="light"] .site-home .action-map .map-box,html[data-theme="light"] .site-home .action-map .map-track,html[data-theme="light"] .site-home .action-map .map-guide{stroke:#5D5953}
html[data-theme="light"] .site-home .action-map text{fill:#5D5953}

/* The same stored choice also themes the brand story and its vector artwork. */
.brand-motion{--ink:var(--theme-fg);--paper:var(--theme-bg);--muted:var(--theme-muted);background:var(--theme-bg);color:var(--theme-fg)}
.brand-motion header,.brand-motion .controls,.brand-motion .story,.brand-motion footer{border-color:var(--theme-line)}
.brand-motion footer{color:var(--theme-muted)}
.brand-motion .controls button{color:var(--theme-fg);border-color:var(--theme-line-strong)}
.brand-motion .controls button:hover{background:var(--theme-hover)}
.brand-motion .controls #play{background:var(--theme-button);color:var(--theme-button-fg);border-color:var(--theme-button)}
.brand-motion .controls #play:hover{background:var(--theme-button)}
.brand-motion #body-arc{stroke:var(--theme-fg)}
.brand-motion #person1 circle,.brand-motion #person2 circle,.brand-motion #char0 path,.brand-motion #char1 path,.brand-motion #char2 path,.brand-motion #char3 path,.brand-motion #english path{fill:var(--theme-fg)}
.brand-motion #human-label path,.brand-motion #machine-label path{fill:var(--theme-muted)}
.brand-motion .step .number{color:var(--theme-accent)}

@media(max-width:1000px){.header-actions{gap:10px}.site-home .header{gap:18px}.site-home .nav{gap:22px}}
@media(max-width:900px){.site-home .nav{background:var(--theme-header);border-color:var(--theme-line)}.site-home .header-actions{margin-left:auto}.theme-toggle{width:36px;padding:8px}.theme-toggle [data-theme-label]{display:none}}
@media(max-width:680px){.site-home .header{padding:0 18px;gap:10px}.site-home .capability{padding-top:75px}.motion-header-actions{gap:12px}.brand-motion .edition{font-size:8px;letter-spacing:.06em}}
