/* Theme surfaces are deliberately independent of artwork and layout. */
:root{--page-bg:#F5F2EF;color-scheme:light;background:var(--page-bg)}
:root[data-theme=dark]{--page-bg:#121015;color-scheme:dark}
.theme-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:1px solid var(--rule);border-radius:0;background:transparent;color:var(--ink);transition:background-color .25s cubic-bezier(.16,1,.3,1),border-color .25s}
.theme-toggle:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.theme-sun{display:none}
[data-theme=dark] .theme-sun{display:block}
[data-theme=dark] .theme-moon{display:none}
[data-theme=dark] body.variant-b{--bg:#121015;--ink:#F5F2EF;--muted:#BCB4BF;--rule:#4B414F;--accent:#DD89D5;--type-gradient:linear-gradient(105deg,#C65FC2,#F16A83 54%,#FF9860);background:var(--bg);color:var(--ink);color-scheme:dark}
[data-theme=dark] .variant-b .logo-crop img{filter:invert(1);mix-blend-mode:screen}
[data-theme=dark] .variant-b .hero-line-two>span,[data-theme=dark] .gradient-text{background-image:var(--type-gradient)}
[data-theme=dark] .variant-b .action.primary{background:#F5F2EF;border-color:#F5F2EF;color:#211A25}
[data-theme=dark] .variant-b .action.primary:hover{background:#E3C8DE;border-color:#E3C8DE}
[data-theme=dark] .variant-b .action.secondary{border-color:#918295;color:#F5F2EF}
[data-theme=dark] .variant-b .action.secondary:hover{background:#332636;border-color:#BC86B2}
[data-theme=dark] .variant-b .project-open{background:#F5F2EF;border-color:#F5F2EF;color:#211A25}
[data-theme=dark] .variant-b .hero-keyvisual:before{background:linear-gradient(90deg,#121015 0%,#121015 14%,#121015B0 31%,#12101500 49%),linear-gradient(0deg,#121015,transparent 15%)}
[data-theme=dark] .hero-keyvisual .hero-picture,[data-theme=dark] .hero-mobile-art{background:#121015}
[data-theme=dark] .index-game{border-bottom-color:var(--rule)}
[data-theme=dark] .index-game:before{background:#2D2331}
[data-theme=dark] .index-game[aria-pressed=true]:before{background:linear-gradient(105deg,#8A2387,#AF2C62 60%,#B84F27)}
[data-theme=dark] .index-game[aria-pressed=true]{color:#FFF;border-bottom-color:transparent}
[data-theme=dark] .variant-b .services,[data-theme=dark] :is(.delivery-band,.systems-band,.process-band,.recruit-band){background:#1B161F;--ink:#F5F2EF;--muted:#C8BCCB;--rule:#58465B}
[data-theme=dark] .variant-b .service-panel.has-service-art,[data-theme=dark] .has-service-art .service-ghost,[data-theme=dark] .delivery-panel.has-delivery-art,[data-theme=dark] .delivery-panels:has(.has-delivery-art){background:#28202D}
[data-theme=dark] .variant-b .service-highlight{background:#4C3048;border-left-color:#F16A83}
[data-theme=dark] .variant-b .services-foot>.action{color:#F5F2EF;border-color:#A18BA0}
[data-theme=dark] .has-scroll-thread #games .chapter-lead>p{--thread-copy-bg:#121015}
[data-theme=dark] .has-scroll-thread #services :is(.chapter-lead>p,.services-foot>p){--thread-copy-bg:#1B161F}
[data-theme=dark] #qfs-thread-color stop:first-child{stop-color:#C65FC2}
[data-theme=dark] .studio-forge{background:#121015;color:#F5F2EF}
[data-theme=dark] .forge-face{color:#F5F2EF}
[data-theme=dark] .forge-topline>p,[data-theme=dark] .forge-approach-sign{color:var(--accent)}
[data-theme=dark] .forge-topline>span,[data-theme=dark] .forge-focus-copy,[data-theme=dark] .forge-approach-content,[data-theme=dark] .studio-forge .studio-values{color:#BCB4BF}
[data-theme=dark] .forge-description>p{color:#D9CFDA}
[data-theme=dark] .forge-approach{border-color:var(--rule)}
[data-theme=dark] .forge-approach summary:focus-visible{outline-color:var(--accent)}
[data-theme=dark] .initials-media{background:#322D36}
[data-theme=dark] .initials-media:before{background:#FFFFFF08}
[data-theme=dark] .portrait-initials{color:#8B818E}
[data-theme=dark] .journal{background:#211A25}
[data-theme=dark] .contact{background:#211A25}
[data-theme=dark] .contact:before{opacity:.55}
[data-theme=dark] .brief-form :is(input,textarea),[data-theme=dark] .journal-filters :is(input,select),[data-theme=dark] .filter-reset{border-color:#89778A}
[data-theme=dark] .brief-form :is(input,textarea)::placeholder,[data-theme=dark] .journal-filters input::placeholder{color:#AFA2B2}
[data-theme=dark] select option{background:#211A25;color:#F5F2EF}
[data-theme=dark] .page-cta{background:linear-gradient(120deg,#211A25,#281D29 65%,#30202A)}
[data-theme=dark] .variant-b footer{background:#17131B;--muted:#BCB4BF;--rule:#4B414F}
[data-theme=dark] ::selection{background:#733667;color:#FFF}
@media(max-width:1100px){[data-theme=dark] .variant-b .hero-keyvisual:before{background:none}}
@media(max-width:980px){.nav-shell{gap:20px}}
@media(max-width:760px){.nav-shell{gap:16px}.theme-toggle{margin-left:auto;flex-basis:38px;width:38px;height:38px;padding:9px}.menu-toggle{flex:none}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}
