/* Light palette/layout is inherited unchanged from version 28. */
:root{color-scheme:light}.theme-toggle{order:3;flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;padding:10px;margin-left:14px;background:transparent;color:var(--ink);border:1px solid transparent;border-radius:50%}.theme-toggle:hover{background:#22222208;border-color:var(--line)}.theme-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px}.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.theme-sun{display:none}html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-moon{display:none}
html[data-theme=dark]{color-scheme:dark;--ink:#EAE7DF;--muted:#BFC0BB;--line:#45494B;--red:#DB928B;--paper:#151719;--stone:#B5A48B}
html[data-theme=dark] body,html[data-theme=dark] header,html[data-theme=dark] nav,html[data-theme=dark] .skip{background:#151719;color:var(--ink)}
html[data-theme=dark] header{border-bottom-color:var(--line)}
html[data-theme=dark] :is(.projects,.surface-section,.project-gallery,footer,.technical-intro figure,.project-cover-frame){background:#242729}
html[data-theme=dark] :is(.project-photo,.photo-grid .photo-open,.crew-grid .photo-open,.surface-grid .photo-open,.expertise-film video){background:#242729}
html[data-theme=dark] :is(.project-arrow,.photo-zoom){background:#242729;color:var(--ink)}
html[data-theme=dark] .cover-label{background:#242729ed;color:var(--ink)}
html[data-theme=dark] .placeholder{background:repeating-linear-gradient(45deg,#242729,#242729 49px,#3a3f3e 50px,#242729 51px)}
html[data-theme=dark] .placeholder>span{color:var(--stone)}
html[data-theme=dark] :is(.footer-bottom,.page-title,.service){border-color:var(--line)}
html[data-theme=dark] :is(.footer-bottom,.gallery figcaption,.history-relief figcaption,label,.language-switch a,.filters button){color:var(--muted)}
html[data-theme=dark] .language-switch a[aria-current],html[data-theme=dark] .filters .active{color:var(--ink)}
html[data-theme=dark] .tags>span{background:#242729;color:var(--ink)}
html[data-theme=dark] :is(input,textarea){background:#242729;border-color:#62696B;color:var(--ink)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted)}
html[data-theme=dark] .button{background:#B5A48B;border-color:#B5A48B;color:#151719}
html[data-theme=dark] .button:hover{background:#D2C4AE;border-color:#D2C4AE;color:#151719}
html[data-theme=dark] .button:disabled{background:#242729;border-color:#62696B;color:#BFC0BB;opacity:1}
html[data-theme=dark] .menu{color:var(--ink)}
html[data-theme=dark] .theme-toggle:hover{background:#242729;border-color:var(--line)}
html[data-theme=dark] .technical-feature{background:#242729}
html[data-theme=dark] .technical-copy p{color:var(--muted)}
html[data-theme=dark] .technical-copy>.eyebrow{color:var(--red)}
html[data-theme=dark] .process-mini span{border-color:var(--line)}
html[data-theme=dark] .photo-dialog,html[data-theme=dark] .photo-dialog::backdrop{background:#151719;color:var(--ink)}
html[data-theme=dark] .photo-dialog figcaption{color:var(--ink)}
html[data-theme=dark] .photo-dialog button{color:var(--ink);border-color:#798082;background:#242729}
html[data-theme=dark] .photo-dialog button:hover{background:#45494B}
html[data-theme=dark] :is(a,button,input,textarea):focus-visible{outline:2px solid #B5A48B;outline-offset:4px}
/* Never transition media or hero composition; animate only interface surfaces on user toggle. */
html[data-theme-transition=true] :is(body,header,nav,footer,.projects,.surface-section,.project-gallery,.button,.tags>span,.theme-toggle,input,textarea,.project-arrow,.photo-zoom){transition:background-color .18s ease,color .18s ease,border-color .18s ease}
@media(max-width:900px){.theme-toggle{margin-left:8px;order:4}.menu{order:5;margin-left:8px}}
@media(max-width:400px){.theme-toggle{flex-basis:40px;width:40px;margin-left:5px}.menu{margin-left:5px}header{column-gap:0}}
@media(prefers-reduced-motion:reduce){html[data-theme-transition=true] *{transition:none!important}}

.theme-logo{display:block}.theme-logo .logo-dark{display:none}html[data-theme=dark] .theme-logo .logo-light{display:none}html[data-theme=dark] .theme-logo .logo-dark{display:block}.brand .theme-logo{width:240px}.brand .theme-logo img{display:block;width:100%;height:auto;background:transparent;box-shadow:none;border:0;border-radius:0;padding:0}.brand .theme-logo .logo-dark{display:none}html[data-theme=dark] .brand .logo-light{display:none}html[data-theme=dark] .brand .logo-dark{display:block}.footer-top .theme-logo{width:240px}.footer-top .theme-logo img{width:100%;height:auto;background:transparent;box-shadow:none}.theme-logo{padding:0;border:0;background:transparent;box-shadow:none}@media(max-width:900px){.brand .theme-logo{width:180px}}@media(max-width:500px){.brand .theme-logo{width:150px}}@media(max-width:360px){.brand .theme-logo{width:115px}}
/* Use the original v28 navigation border behavior and brand red in both themes. */
header #nav a{--red:#a43b38}
/* Separate the headline/CTA and project caption into non-overlapping rows. */
@media(min-width:901px){
 body[data-hero-variant=c] .hero{display:grid;grid-template-rows:minmax(0,1fr) auto;row-gap:32px;padding:32px 7%}
 body[data-hero-variant=c] .hero-copy{position:relative;inset:auto;align-self:center;min-width:0;z-index:1}
 body[data-hero-variant=c] .hero-copy h1{margin-bottom:24px}
 body[data-hero-variant=c] .hero-copy>p:not(.eyebrow){margin-bottom:24px}
 body[data-hero-variant=c] .hero-bottom{position:relative;inset:auto;min-width:0;gap:24px;z-index:1}
 body[data-hero-variant=c] .hero-bottom>a{min-width:0;max-width:65%}
 body[data-hero-variant=c] .hero-bottom .slide-controls{flex-shrink:0}
}
@media(min-width:901px) and (max-height:780px){
 body[data-hero-variant=c] .hero-copy h1{font-size:clamp(34px,3.5vw,48px);line-height:1.12;margin-bottom:18px}
 body[data-hero-variant=c] .hero-copy .eyebrow{margin-bottom:18px}
 body[data-hero-variant=c] .hero-copy>p:not(.eyebrow){margin-bottom:20px}
}
/* Both themes: reveal the actual page background through the final 12% edge. */
@media(min-width:701px){
 html[data-theme] .technical-intro figure{background:transparent}
 html[data-theme] .technical-intro figure img{-webkit-mask-image:linear-gradient(to right,#000 0%,#000 88%,transparent 100%);mask-image:linear-gradient(to right,#000 0%,#000 88%,transparent 100%)}
}
