/* Permanent black gradient, matched to the Soundfam dark palette. */
html[data-theme]{--page-bg:#090b0d;--page-text:#f6f6f7;--page-blue:#f5f5f6;--page-muted:#afb1b8;--ink:#f6f6f7;--muted:#afb1b8;--line:#42464c;--ocean-blue:#f5f5f6;--atmosphere:url('/themes/dark-atmosphere.svg');background:var(--page-bg);color:var(--page-text);color-scheme:dark}
html[data-theme] body{background:var(--page-bg);color:var(--page-text)}
html[data-theme] .grain{display:none}
html[data-theme] body::after,html[data-theme] .portfolio-frame,html[data-theme] .loader{background:var(--page-bg)}
html[data-theme] .hero-backdrop,html[data-theme] .hero-services{color:var(--page-text)}
html[data-theme="dark"] a,html[data-theme="dark"] .mission-inline p,html[data-theme="dark"] .contact-cta,html[data-theme="dark"] #contact-dialog h2{color:var(--page-blue)}
html[data-theme="dark"] .hero-services a{color:var(--page-text)}
html[data-theme="dark"] .brand-logo,html[data-theme="dark"] .page-logo{background:var(--page-blue)}
html[data-theme="dark"] .mission-inline h2,html[data-theme="dark"] .panel-index,html[data-theme="dark"] .index-heading>span,html[data-theme="dark"] .count,html[data-theme="dark"] .window-count,html[data-theme="dark"] .empty p,html[data-theme="dark"] dialog>p{color:var(--page-muted)}
html[data-theme="dark"] dialog{background:#1c2329;color:var(--page-text);border-color:#46505a}
html[data-theme="dark"] .window-bar{background:linear-gradient(#323c45,#252d34);border-color:#46505a}
html[data-theme="dark"] .window-path,html[data-theme="dark"] .work-category,html[data-theme="dark"] .index-heading,html[data-theme="dark"] footer,html[data-theme="dark"] section{border-color:#384047}
html[data-theme="dark"] .window-path>span,html[data-theme="dark"] .optional{color:var(--page-muted)}
html[data-theme="dark"] input,html[data-theme="dark"] textarea{color:var(--page-text);border-color:#66727d}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a0abb4}
html[data-theme="dark"] .cta,html[data-theme="dark"] .submit-button{background:#85b4ff;color:#111519}
html[data-theme="dark"] .folder-caption{color:var(--page-text)}

/* Shared inner-page navigation: back arrow directly beneath the wordmark. */
.page-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
header .page-back{display:flex;align-items:center;justify-content:flex-start;width:70px;height:48px;color:var(--page-blue);text-decoration:none;transition:transform .2s}
.page-back svg{display:block;width:64px;height:40px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
header .page-back:hover{transform:translateX(-5px)}
body:has(.page-brand)>header{align-items:flex-start}
@media(prefers-reduced-motion:reduce){header .page-back{transition:none}}

html[data-theme] body,html[data-theme] body::after,html[data-theme] .portfolio-frame,html[data-theme] .loader,html[data-theme] #contact-dialog,html[data-theme] #contact-dialog::backdrop{background-color:var(--page-bg);background-image:var(--atmosphere);background-size:100vw 100vh;background-position:center top;background-repeat:no-repeat;background-attachment:fixed}
html[data-theme] a,html[data-theme] .mission-inline p,html[data-theme] .contact-cta,html[data-theme] .eyebrow{color:var(--page-blue)}
html[data-theme] .brand-logo,html[data-theme] .page-logo{background:var(--page-blue)}
html[data-theme] .mission-inline h2,html[data-theme] .panel-index,html[data-theme] .optional,html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--page-muted)}
html[data-theme] .cta{background:var(--page-blue);color:var(--page-bg)}
html[data-theme] .folder-caption{color:var(--page-text)}

/* Shared service locations, aligned with the homepage corner markers. */
.service-locations{margin:0;padding:18px 16px 22px;text-align:center;color:var(--page-muted);font-family:Aleph,Arial,sans-serif;font-size:11px;line-height:1;letter-spacing:.06em;font-weight:400;pointer-events:none}
.home-locations{position:absolute;z-index:6;left:0;right:0;bottom:22px;padding:0 16px}
.contact-locations{margin-top:auto;padding-top:20px;padding-bottom:0}
@media(max-width:650px){.home-locations{bottom:13px;font-size:9px;letter-spacing:.03em}.service-locations{font-size:10px}}
