/* The switch stays alongside the motion control at every viewport size. */
:root{color-scheme:dark}
.header-controls{display:flex;align-items:center;gap:18px;flex-shrink:0}
.header-controls .motion-control{margin:0;flex-shrink:0}
.site-header nav{margin-right:3%}
.theme-toggle{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 13px;border:1px solid #aa96744a;border-radius:24px;background:#16140e55;color:#d9c7a7;font:10px/1 'Courier New',monospace;letter-spacing:1.3px;cursor:pointer;white-space:nowrap;transition:color .45s,background .45s,border-color .45s}
.theme-toggle svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{display:none}
.theme-toggle:hover{border-color:#d3b17c;background:#bb925719}
.theme-toggle:focus-visible{outline:2px solid #d8784b;outline-offset:4px}
@media(max-width:640px){.header-controls{margin-left:auto;gap:11px}.theme-toggle{min-height:38px;padding:0 10px;font-size:9px;gap:6px}.theme-toggle svg{width:15px;height:15px}.site-header nav{margin:0}}
/* Daylight is rendered in the 3D environment, while HTML uses its own ink palette. */
:root[data-theme=day]{color-scheme:light;--ink:#f5faff;--cream:#302d26;--muted:#665f53;--line:#50483740;--red:#b64227}
[data-theme=day] .unified-exhibition{background:#f5faff;color:#302d26}
[data-theme=day] .site-header{background:transparent}
[data-theme=day] .site-header :is(.brand,nav a){color:#332e26}
[data-theme=day] .site-header nav a[aria-current=true]{color:#963c23}
[data-theme=day] .theme-toggle{background:#f6f0e799;color:#433b2f;border-color:#71634c55}
[data-theme=day] .theme-toggle:hover{background:#fff7e3;border-color:#a05f36}
[data-theme-target=day] .theme-toggle .theme-sun{display:none}
[data-theme-target=day] .theme-toggle .theme-moon{display:block}
[data-theme=day] .motion-control{color:#3d3529;border-color:#78684d}
[data-theme=day] .motion-control:before,[data-theme=day] .motion-control:after{background:#f1f8fd}
[data-theme=day] .motion-control[aria-pressed=true]{color:#a63520}
[data-theme=day] #exhibition-world{background:#f5faff}
:root[data-theme=day]{--room-visibility:0}
#exhibition-world .gallery-vignette{opacity:var(--room-visibility,1)}
#exhibition-world:after{opacity:calc(var(--journey-shade,0) * var(--room-visibility,1))}
[data-theme=day] :is(.gallery-manifesto,.handwritten,.gallery-bottom,.gallery-rail,.explore-link){color:#51483a}
[data-theme=day] .gallery-title h1{color:#352f26;text-shadow:0 1px 9px #eee5d380}
[data-theme=day] :is(.object-label,.object-label strong,.object-label .object-no,.object-label>span:not(.object-no)){color:#40392f;text-shadow:0 1px 5px #f7f0df88}
[data-theme=day] .object-label{border-color:#74664d66}
[data-theme=day] :is(.object-label:hover,.object-label:focus-visible,.object-label.is-hover){border-color:#af4528}
[data-theme=day] .object-label em{color:#a33921}
[data-theme=day] .label-lines line{stroke:#6e563c77}
[data-theme=day] #living-line{stroke:#ba3e25}
[data-theme=day] :is(.gallery-bottom i,.explore-link span,.gallery-rail i){background:#81705088}
[data-theme=day] #hidden-24{color:#4d3322;text-shadow:0 0 60px #ebd9b3}
[data-theme=day] .cube-reveal{color:#573326;text-shadow:0 1px 8px #eddbb966}
[data-theme=day] .cube-reveal em{color:#9b311e}
[data-theme=day] :is(.journey-status,#object-drag-hint){color:#534531;text-shadow:0 1px 7px #f8eccc99}
[data-theme=day] .journey-status #journey-number{color:#a43b24}
[data-theme=day] .station{color:#433c30}
[data-theme=day] :is(.station-heading h2,.contact-intro h2,.object-annotation h3){color:#332d24;text-shadow:0 1px 9px #e8dfcd77}
[data-theme=day] :is(.station-heading>.eyebrow,.station-aside,.station .frame-footnote,.project-meta,.project>p,.work-index,.object-annotation){text-shadow:none}
[data-theme=day] :is(.station-heading>.eyebrow,.station-aside,.station-caption,.exhibit-marker,.frame-footnote,.station-next,.station-next>span,.object-annotation>span,.object-annotation p,.contact-coordinate){color:#5d4f3b}
[data-theme=day] .station-next:hover{color:#9e3a20}
[data-theme=day] .project-image-wrap{background:linear-gradient(132deg,#f0dbb2,#8f785b 4%,#8f785b 94%,#dec594);box-shadow:12px 22px 35px #3b2c1c33,-1px -1px 0 #fff5df}
[data-theme=day] .project-grid .project-open img{filter:saturate(.75) brightness(.95)}
[data-theme=day] .project-grid :is(.project-meta h3,.project-meta>span,.project>p){color:#493d2d}
[data-theme=day] .work-caption .exhibit-marker{border-color:#75604366}
[data-theme=day] .work-index button{border-color:#75604344;color:#60503a}
[data-theme=day] .work-index button>span{color:#756047}
[data-theme=day] .work-index button[aria-pressed=true]{color:#29221a;border-color:#a25133}
[data-theme=day] .work-index button[aria-pressed=true]>span{color:#a23e25}
[data-theme=day] :is(.column-intro,.service h3,.studio-copy p,.studio-copy p:last-child,.contact-intro>p){color:#463d30}
[data-theme=day] :is(.service-list,.service,.service[open]){border-color:#67533944}
[data-theme=day] .service[open] h3{color:#973d25}
[data-theme=day] :is(.service-index,.service-tags,.services-note){color:#6e583c}
[data-theme=day] .service-body p{color:#4c402f}
[data-theme=day] .service-symbol:before,[data-theme=day] .service-symbol:after{background:#6b5436}
[data-theme=day] .studio-composition{filter:grayscale(.6) sepia(.22) brightness(.96);border-color:#a28a64;outline-color:#88715166;box-shadow:9px 16px 30px #38261138}
[data-theme=day] .contact-frame{background:linear-gradient(115deg,#f3ecdcdb,#e8dfcd99)}
[data-theme=day] :is(.contact-address,.contact-address>.eyebrow,.contact-address>#agency-email,.contact-demo,.form-coordinate,.form-row label,.form-actions>span){color:var(--brand-muted,#615039)}
[data-theme=day] :is(.form-row input,.form-row textarea){color:#30271d;border-color:#79614466}
[data-theme=day] .form-row input::placeholder,[data-theme=day] .form-row textarea::placeholder{color:#82715b}
[data-theme=day] .form-row input:focus,[data-theme=day] .form-row textarea:focus{border-color:#b34729}
[data-theme=day] :is(.form-actions .button,.button-dark){color:#443320;border-color:#94704b;background:#f0e3c729}
[data-theme=day] :is(.form-actions .button:hover,.button-dark:hover){background:#b76c3222;border-color:#a9512e}
[data-theme=day] .contact #form-status{color:#664725}
[data-theme=day] .site-footer{color:#60513d;border-color:#7c674a55}
[data-theme=day] .site-footer .brand{color:#3c3225}
[data-theme=day] dialog{background:#eee7daed;border-color:#88704b66;color:#3c3225;box-shadow:0 20px 100px #35291d44}
[data-theme=day] dialog::backdrop{background:#d9ccad77}
[data-theme=day] .case-toolbar{background:#eee6d9f5;border-color:#86705244}
[data-theme=day] :is(.case-brand,.case-close,.case-intro h2){color:#392d20}
[data-theme=day] :is(.case-intro>p,.case-info,.case-section>p,.case-end p,.case-end .text-link){color:#64513a}
[data-theme=day] dialog .eyebrow{color:#6b583e}
[data-theme=day] .case-hero{border-color:#aa9168;outline-color:#967b4d66;box-shadow:10px 16px 35px #3d2c1533}
[data-theme=day] .case-detail-board{color:#4a341d;background:#d8c6a6;border-color:#9b7b4e66}
[data-theme=day] .case-deliverables span{border-color:#9b7b4e66}
[data-theme=day] #exhibition-world .gallery-stage{background:radial-gradient(circle at 76% 20%,#fffce9 0%,transparent 20%),linear-gradient(#d1e7f8,#faffff 82%);filter:none}
[data-theme=day] .scene-fallback .object-label{background:#e8decbdd}
@media(max-width:700px){
 [data-theme=day] .site-header{background:transparent}
 [data-theme=day] :is(.service-column,.studio-column){background:linear-gradient(#efe6d2bd,#e9dfca88)}
 [data-theme=day] .contact-frame{background:#f1e7d3dd}
}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}



/* Let the header shadow leave with the dissolving room, without a theme jump. */
.scene-ready .site-header{background:transparent;isolation:isolate}
.scene-ready .site-header:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#10100fec,transparent);opacity:var(--room-visibility,1)}
