/* Shared header, language and theme preferences. */
body .header .header-inner { position:relative; }
body .header .brand-lockup img { width:126px; height:auto; }
body .header .nav-links { gap:22px; }
body .header .nav-links .nav-link { font-size:16px; font-weight:650; }
body .header .header-socials { gap:12px; margin-right:154px; }
body .header .header-socials a { display:inline-flex; align-items:center; justify-content:center; width:28px; min-height:44px; padding:0; }
body .header .header-socials a:hover { opacity:.6; }
.header-socials svg { display:block; width:20px; height:20px; }
.site-preferences { position:absolute; right:0; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:12px; color:var(--ink); }
.site-preferences button { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:44px; padding:5px; border:0; background:transparent; color:inherit; cursor:pointer; font-size:12px; font-weight:650; line-height:1; }
.theme-toggle svg { width:19px; height:19px; }
.theme-sun { display:none; }
[data-theme="dark"] .theme-sun { display:block; }
[data-theme="dark"] .theme-moon { display:none; }
.language-options { display:flex; align-items:center; gap:0; }
.language-options>span { color:#969696; font-size:11px; }
.language-options button[aria-pressed="false"] { color:#828286; }
.language-options button[aria-pressed="true"] { text-decoration:underline; text-underline-offset:5px; }
.site-preferences button:focus-visible { outline:2px solid currentColor; outline-offset:0; border-radius:4px; }
@media(max-width:80rem) {
 body .header .header-inner { grid-template-columns:minmax(0,1fr) auto auto; gap:18px; }
 body .header .brand-lockup { grid-column:1; grid-row:1; }
 body .header .brand-lockup img { width:110px; }
 body .header .site-preferences { position:static; transform:none; grid-column:2; grid-row:1; }
 body .header .menu { grid-column:3; grid-row:1; }
 body .header .nav-links .nav-link { font-size:16px; font-weight:650; }
 body .header .header-socials { margin-right:0; gap:16px; padding-top:12px; }
 body .header .header-socials a { width:32px; }
}
@media(max-width:400px) { body .header .header-inner { gap:8px; } .site-preferences { gap:3px; } body .header .brand-lockup img { width:96px; } body .header .menu { font-size:0; gap:0; width:30px; } body .header .menu svg { width:20px; height:20px; } }

/* Dark mode changes interface surfaces, never project photography or artwork. */
html[data-theme="dark"] { color-scheme:dark; --ink:#F2F2F3; --muted:#D2D2D7; --paper:#101012; --quiet:#1C1C20; --line:#414146; background:#101012; color:#F2F2F3; }
html[data-theme="dark"] body { background:#101012; color:#F2F2F3; }
html[data-theme="dark"] body>.header,
html[data-theme="dark"] body .header #navigation,
html[data-theme="dark"] body .header:has(#navigation[data-open]),
html[data-theme="dark"] body #contact.contact-editorial { background:#101012; }
html[data-theme="dark"] body .header .brand-lockup img { filter:invert(1); }
html[data-theme="dark"] body .header :is(.nav-link,.header-socials a,.menu),
html[data-theme="dark"] body .header:has(#navigation[data-open]) :is(.nav-link,.header-socials a,.menu),
html[data-theme="dark"] body :is(h1,h2,h3,p,dt,dd,label,.eyebrow,.service-description,.service-number,.help-aside,.contact-editorial-link) { color:#F2F2F3; }
html[data-theme="dark"] body :is(.service-tagline,.service-deliverables,.case-context dt,.note,.contact-editorial-copy p) { color:#B0B0B8; }
html[data-theme="dark"] body.home-page #section-13.compact-faq { background:#101012; box-shadow:0 0 0 100vmax #101012; }
html[data-theme="dark"] body.home-page #section-13 .faq-answer-inner p { color:#D2D2D7; }
html[data-theme="dark"] .section-marker { border-color:#515159; }
html[data-theme="dark"] body .text-gradient { background-image:linear-gradient(100deg,#FF565B 0%,#F14DA6 50%,#A475FF 100%); }
html[data-theme="dark"] body :is(.hero-showreel,.case-media,.studio-photo,.work-tile,.project-tile) { background-color:#1C1C20; }
html[data-theme="dark"] body :is(input,select,textarea) { background:#1C1C20; color:#F2F2F3; border-color:#56565E; }
html[data-theme="dark"] body :is(input,textarea)::placeholder { color:#A0A0AA; }
html[data-theme="dark"] body .button.secondary { color:#F2F2F3; border-color:#64646D; background:#1C1C20; }
html[data-theme="dark"] body .footer-aperios { background:#0A0A0C; }
html[data-theme="dark"] body .footer-aperios :is(p,h2) { color:#96969E; }
html[data-theme="dark"] body :focus-visible { outline-color:#C9B8FF; }
html[data-theme="dark"] .wipe-label[data-wipe-hovered] { color:#A8A8B0; }
html[data-theme="dark"] .skip { background:#232327; color:#F2F2F3; }
html[lang="pt-BR"] .contact-editorial-copy h2 { text-wrap:balance; }

html[data-theme="dark"] body.home-page #section-01.pixel-hero,
html[data-theme="dark"] body.home-page #work.work-section,
html[data-theme="dark"] body.home-page #services.service-synthesis .service-row,
html[data-theme="dark"] body.home-page #services.service-synthesis .section-end { background:#101012; }
html[data-theme="dark"] body.home-page #section-01 :is(h1,.hero-description,.hero-portfolio-link),
html[data-theme="dark"] body.home-page #services.service-synthesis .service-no { color:#F2F2F3; }
html[data-theme="dark"] body.home-page #services.service-synthesis :is(.service-subtitle,.service-scope) { color:#B0B0B8; }
html[data-theme="dark"] body .case-contact { background:#1C1C20; }
body .header .header-inner .brand-lockup img { width:126px; }
body .header .header-inner .nav-links .nav-link { font-size:16px; font-weight:650; }
@media(max-width:80rem) { body .header .header-inner .brand-lockup img { width:110px; } }
@media(max-width:400px) { body .header .header-inner .brand-lockup img { width:96px; } }

html[data-theme="dark"] body.home-page #section-01 .kv-stage { background:#101012; }
html[data-theme="dark"] body .header .header-inner .nav-links .nav-link { color:#F2F2F3; }
html[data-theme="dark"] body .header .header-inner .header-socials a { color:#F2F2F3; }

body .header .header-socials { margin-right:214px; }
.language-options button { gap:5px; white-space:nowrap; }
.language-flag { width:20px; height:14px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px #8884; }
@media(max-width:80rem) { body .header .header-socials { margin-right:0; } }
@media(max-width:400px) { .site-preferences button { padding-inline:4px; } .language-options button { gap:4px; font-size:11px; } .language-flag { width:18px; height:13px; } }
