/* Shared photography frames, display type and color pairs for the site. */
:root{
 --ed-paper:#f4eae4;--ed-white:#fff8f4;--ed-soft:#ead6cd;--ed-ink:#32160d;
 --ed-muted:#65483e;--ed-accent:#852737;--ed-line:#b67f83;--ed-button:#852737;
 --ed-on-button:#fff8f3;--ed-dark:#4d2025;--ed-serif:Georgia,"Times New Roman",serif;
 --ed-shadow:0 18px 42px #4e201711;--ed-align:min(100% - clamp(2rem,7vw,7rem),100rem);
}
:root[data-theme=dark]{
 --ed-paper:#22211e;--ed-white:#2c2b27;--ed-soft:#36342f;--ed-ink:#eee9df;
 --ed-muted:#c8c0b4;--ed-accent:#cbbfa9;--ed-line:#555249;
 --ed-button:#cbbfa9;--ed-on-button:#26231e;--ed-dark:#e5ddcf;--ed-shadow:0 18px 42px #0003;
}
html body:is(.editorial-content,.editorial-workspace){
 --paper:var(--ed-paper);--ink:var(--ed-ink);--muted:var(--ed-muted);--line:var(--ed-line);--gold:var(--ed-accent);--dark:var(--ed-dark);
 background:var(--ed-paper);color:var(--ed-ink);
}
html[data-theme] body.editorial-content{
 --ui-bg:var(--ed-paper);--ui-surface:var(--ed-white);--ui-text:var(--ed-ink);--ui-muted:var(--ed-muted);
 --ui-line:var(--ed-line);--ui-border:var(--ed-line);--ui-accent:var(--ed-accent);--ui-selected:var(--ed-button);--ui-selected-text:var(--ed-on-button);
 --atelier-dark:var(--ed-ink);--atelier-accent:var(--ed-accent);--atelier-copper:var(--ed-accent);--atelier-soft:var(--ed-soft);
 --xp-ink:var(--ed-ink);--xp-muted:var(--ed-muted);--xp-line:var(--ed-line);--xp-surface:var(--ed-white);
 background:radial-gradient(ellipse at 40% 10%,var(--ed-white),transparent 46rem),var(--ed-paper)!important;
}
html[data-theme] body.editorial-content header.wrap,html[data-theme] body.editorial-workspace header.wrap{
 width:var(--ed-align);max-width:none;min-height:clamp(4rem,5.15vw,5.4rem);height:auto;padding:.55rem 0;
 border-bottom:1px solid var(--ed-line)!important;color:var(--ed-ink)!important;background:var(--ed-paper)!important;
 box-shadow:none;
}
body:is(.editorial-content,.editorial-workspace) header.wrap .brand{flex:0 0 auto;color:var(--ed-ink)!important}
body:is(.editorial-content,.editorial-workspace) header.wrap .brand .editorial-name{
 display:block;font:400 clamp(1.28rem,2.04vw,2.4rem)/1.1 var(--ed-serif)!important;letter-spacing:-.045em!important;
 color:var(--ed-ink);text-transform:none!important;white-space:nowrap;
}
html[data-theme] body.editorial-content header.wrap #navigation{
 gap:clamp(.75rem,1.7vw,2.2rem);background:var(--ed-paper)!important;
}
html[data-theme] body.editorial-content header.wrap #navigation>a{
 min-height:44px;color:var(--ed-ink)!important;background:transparent!important;
 font:400 clamp(.95rem,1.18vw,1.35rem)/1.1 var(--ed-serif)!important;letter-spacing:-.018em!important;
}
html[data-theme] body.editorial-content header.wrap #navigation a:is([aria-current],:hover){
 color:var(--ed-accent)!important;text-decoration:underline;text-underline-offset:.29em;
}
html[data-theme] body:is(.editorial-content,.editorial-workspace) header.wrap .client-entry-link{
 background:var(--ed-button)!important;color:var(--ed-on-button)!important;border:1px solid var(--ed-button)!important;border-radius:0!important;
}
html[data-theme] body:is(.editorial-content,.editorial-workspace) header.wrap :is(.theme-toggle,.menu-toggle){color:var(--ed-ink)!important;border-color:var(--ed-line)!important}
body.editorial-content .reading-progress{background:var(--ed-accent)!important}
body.editorial-content :focus-visible,body.editorial-workspace :focus-visible{outline-color:var(--ed-accent)!important}

/* Editorial covers keep the content hierarchy from the homepage. */
html[data-theme] body.editorial-content #main :is(.compact-intro,.xp-case-intro,.contact-layout,.people-service-hero,.atelier-sites-hero,.recruit-hero) h1,
body.editorial-workspace :is(.client-welcome,.portal-admin-copy,.portal-account-settings,.sales-entry-copy,.condo-login) h1{
 font-family:var(--ed-serif)!important;font-weight:400!important;letter-spacing:-.056em!important;line-height:1!important;
}
html[data-theme] body.editorial-content #main :is(.compact-intro,.xp-case-intro,.contact-layout,.people-service-hero,.atelier-sites-hero,.recruit-hero) h1{color:var(--ed-ink)!important}
html[data-theme] body.editorial-content #main :is(.compact-intro,.xp-case-intro,.contact-layout,.people-service-hero,.atelier-sites-hero,.recruit-hero) h1 em{
 color:var(--ed-accent)!important;font-weight:400!important;font-style:italic!important;
}
body.editorial-content :is(.compact-intro,.xp-case-intro,.contact-layout,.people-service-hero,.atelier-sites-hero,.recruit-hero) :is(.eyebrow,.xp-back){color:var(--ed-accent)!important}
html[data-theme] body.editorial-content :is(.world-opening,.condo-hero,.connect-hero) h1{
 font-family:var(--ed-serif)!important;font-weight:400!important;line-height:1!important;letter-spacing:-.055em!important;
}
body.editorial-content :is(.world-opening,.condo-hero,.connect-hero) h1 em{font-style:italic!important;font-weight:400!important}
html[data-theme] body.editorial-content :is(.service-area-heading,.portfolio-group-heading,.section-heading,.web-copy,.team-intro,.team-roles,.people-deliveries,.systems-story,.recruit-section,.case-overview) h2,
html[data-theme] body.editorial-content :is(.project-meta,.service-option,.service-picker) h3{
 font-family:var(--ed-serif)!important;font-weight:400!important;letter-spacing:-.035em!important;
}
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro{
 position:relative;isolation:isolate;overflow:hidden;min-height:clamp(13rem,26vw,27rem);
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 border-bottom:1px solid var(--ed-line);padding-block:clamp(2.4rem,5vw,5rem);
}
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro>*{position:relative;z-index:1;max-width:78%}
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro::after,
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro::before{
 content:"";position:absolute;width:clamp(9rem,25vw,25rem);height:clamp(12rem,35vw,35rem);
 border-radius:50% 50% 0 0 / 42% 42% 0 0;pointer-events:none;bottom:-37%;right:3%;
}
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro::before{
 border:1px solid var(--ed-line);right:7.5%;bottom:-29%;
}
body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro::after{
 background:linear-gradient(155deg,var(--ed-button),var(--ed-soft));opacity:.66;z-index:-1;
}
html[data-theme] body.editorial-content .compact-intro h1{font-size:clamp(2.95rem,7vw,7rem)!important}
body.editorial-content .service-picker{margin-block:clamp(1.6rem,3vw,3rem)}
html[data-theme] body.editorial-content .service-picker>button{
 background:var(--ed-white)!important;color:var(--ed-ink)!important;border:1px solid var(--ed-line)!important;border-radius:0!important;box-shadow:none;
}
body.editorial-content .service-picker>button:is(:hover,[aria-expanded=true]){box-shadow:var(--ed-shadow);border-color:var(--ed-accent)!important}
body.editorial-content .service-picker .studio-service-copy{padding-inline:clamp(.55rem,1.4vw,1.2rem)}
body.editorial-content .service-picker .studio-service-copy strong{font-family:var(--ed-serif);font-weight:400}
body.editorial-content .service-picker .studio-service-copy small,body.editorial-content .service-picker .studio-service-copy>span{color:var(--ed-accent)!important}
body.editorial-content .filters button{border-radius:0!important}
body.editorial-content .portfolio-tools{border-top:0!important;border-bottom:1px solid var(--ed-line)}
body.editorial-content .project-image{box-shadow:var(--ed-shadow)}
body.editorial-content .project-card:hover .project-meta h3{color:var(--ed-accent)!important}
body.editorial-content :is(.people-service-hero,.atelier-sites-hero) :is(figure img,.people-hero-image img,.atelier-sites-visual img){
 border-radius:45% 45% 0 0 / 34% 34% 0 0;
}
body.editorial-content :is(.contact-layout,.recruit-application) form{
 background:var(--ed-white)!important;border:1px solid var(--ed-line)!important;
 padding:clamp(1.2rem,3.5vw,3.5rem);box-shadow:var(--ed-shadow);
}
html[data-theme] body.editorial-content :is(.contact-layout,.recruit-application,.portfolio-tools) :is(input,textarea,select):not([type=checkbox],[type=radio]){
 color:var(--ed-ink);background:var(--ed-white);border-color:var(--ed-line);
}
html[data-theme] body.editorial-content :is(.button.dark,.filters button[aria-pressed=true],.xp-primary){
 background:var(--ed-button)!important;color:var(--ed-on-button)!important;border-color:var(--ed-button)!important;border-radius:0!important;
}
html[data-theme] body.editorial-content :is(.text-link,.back-link):hover{color:var(--ed-accent)!important}
html[data-theme] body.editorial-content footer.wrap{border-top:1px solid var(--ed-line)!important;color:var(--ed-muted)!important}
html[data-theme] body.editorial-content :is(.footer-map,.footer-directory){border-color:var(--ed-line)!important}

/* Private workspaces share the palette; status colors stay semantic. */
html[data-theme] body.editorial-workspace.client-portal-page{
 --portal-field-bg:var(--ed-white);--portal-field-border:var(--ed-line);
 --portal-field-focus:var(--ed-accent);--portal-field-placeholder:var(--ed-muted);
 --portal-field-text:var(--ed-ink);--portal-form-bg:var(--ed-white);
}
html[data-theme] body.admin-platform.editorial-workspace{
 --admin-bg:var(--ed-paper);--admin-surface:var(--ed-white);--admin-subtle:var(--ed-soft);
 --admin-ink:var(--ed-ink);--admin-muted:var(--ed-muted);--admin-line:var(--ed-line);
 --admin-accent:var(--ed-accent);--admin-primary:var(--ed-button);--admin-on-primary:var(--ed-on-button);
}
html[data-theme] body.editorial-workspace :is(.client-welcome,.portal-admin,.portal-account-settings) h1 em{color:var(--ed-accent)!important}
body.editorial-workspace :is(.portal-login-card,.portal-admin-gate){
 border-top:2px solid var(--ed-accent);box-shadow:var(--ed-shadow);background:var(--ed-white);
}
body.editorial-workspace :is(.portal-admin,.client-dashboard,.sales-main) > :is(h1,.portal-section-title h1){font-family:var(--ed-serif)}
html[data-theme] body.sales-seller-page.editorial-workspace .sales-entry-copy{
 --admin-ink:#fff3e9;--admin-muted:#ead0c7;--admin-accent:#f2a6ad;
 background:linear-gradient(142deg,#3f181e,#692733);border-radius:0 42% 0 0;
}
html[data-theme] body.sales-seller-page.editorial-workspace .sales-entry-copy::after{
 border-color:#e5a6a17a;box-shadow:0 0 0 45px #ffdfce0a,0 0 0 90px #ffdfce0a;
}
body.editorial-workspace:is(.sales-seller-page,.condo-app) :is(.sales-top,.condo-top){border-bottom:1px solid var(--ed-line)}
body.editorial-workspace:is(.sales-seller-page,.condo-app) :is(.sales-brand,.condo-brand)>span{
 font:400 clamp(1.03rem,2vw,1.65rem)/1.15 var(--ed-serif);letter-spacing:0;
}
html[data-theme] body.condo-app.editorial-workspace{
 --cb:var(--ed-paper);--cs:var(--ed-white);--ci:var(--ed-ink);--cm:var(--ed-muted);
 --cl:var(--ed-line);--ca:var(--ed-accent);--cp:var(--ed-button);--ct:var(--ed-on-button);
 --ce-soft:var(--ed-soft);--ce-shadow:var(--ed-shadow);
 background:var(--ed-paper);color:var(--ed-ink);
}
html[data-theme] body.condo-app.editorial-workspace .condo-login-intro h1{color:var(--ed-ink)}
html[data-theme] body.condo-app.editorial-workspace .condo-login-intro{
 --ci:var(--ed-ink);--cm:var(--ed-muted);--ca:var(--ed-accent);background:transparent;
}

/* The Instagram entrances use the same editorial canvas. */
html.editorial-bio-root{
 color-scheme:light;--bg:var(--ed-paper);--ink:var(--ed-ink);--soft:var(--ed-muted);--gold:var(--ed-accent);--line:var(--ed-line);
}
html.editorial-bio-root .editorial-bio .bio-atmosphere{
 background:radial-gradient(ellipse at 90% 30%,#bd697648,transparent 46%),var(--ed-paper);
}
html.editorial-bio-root .editorial-bio .bio-atmosphere::after{background:none}
html.editorial-bio-root .editorial-bio .bio-path{
 background:var(--ed-white);border-color:var(--ed-line);color:var(--ed-ink);border-radius:0;
}
html.editorial-bio-root .editorial-bio .bio-path-featured{
 background:var(--ed-button);color:var(--ed-on-button);
}
html.editorial-bio-root .editorial-bio .bio-path-featured :is(span,strong,small,svg){color:inherit}
html.editorial-bio-root .editorial-bio .bio-path:hover{border-color:var(--ed-accent);box-shadow:var(--ed-shadow)}
html.editorial-bio-root .editorial-bio .bio-chat{background:var(--ed-white);color:var(--ed-ink);border-color:var(--ed-line)}

@media(max-width:900px){
 html[data-theme] body.editorial-content header.wrap #navigation{gap:0;border-color:var(--ed-line)!important}
 body.editorial-content .compact-intro::after{opacity:.44}
}
@media(max-width:460px){
 html[data-theme] body.editorial-content header.wrap{gap:.45rem;flex-wrap:wrap}
 body.editorial-content header.wrap .brand .editorial-name{font-size:clamp(1rem,5.25vw,1.4rem)!important}
 body.editorial-content .compact-intro>*{max-width:100%}
 body.editorial-content:is(.solutions-page,.portfolio-page) .compact-intro::after{opacity:.24}
 html[data-theme] body.editorial-content .compact-intro h1{font-size:clamp(2.47rem,12vw,3.5rem)!important}
 body.editorial-workspace:is(.sales-seller-page,.condo-app) :is(.sales-brand,.condo-brand) img{display:none}
}

/* Public service openings: the copy and the complete image have separate spaces. */
body.editorial-content .service-editorial{
 display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);align-items:center;
 gap:clamp(1.4rem,4.7vw,5.5rem);padding-block:clamp(2rem,5.3vw,6rem);
 border-bottom:1px solid var(--ed-line);
}
html[data-theme] body.editorial-content .service-editorial h1{
 font:400 clamp(2.45rem,5.7vw,6.2rem)/.99 var(--ed-serif)!important;
 letter-spacing:-.058em;color:var(--ed-ink)!important;margin:1rem 0 1.25rem;
}
html[data-theme] body.editorial-content .service-editorial h1 em{
 display:block;font:italic 400 1em/1.02 var(--ed-serif);color:var(--ed-accent)!important;
}
body.editorial-content .service-editorial .eyebrow{color:var(--ed-accent)!important}
body.editorial-content .service-editorial p{
 color:var(--ed-muted)!important;max-width:37rem;margin:0;font-size:clamp(1rem,1.4vw,1.2rem);
}
.service-editorial-actions{display:flex;align-items:center;gap:.45rem 1.25rem;flex-wrap:wrap;margin-top:1.5rem}
.service-editorial-actions a{
 display:inline-flex;align-items:center;min-height:44px;font:400 1.06rem/1.3 var(--ed-serif);
}
html[data-theme] body.editorial-content .service-editorial-actions .service-editorial-primary{
 padding:.65rem .95rem;background:var(--ed-button);color:var(--ed-on-button)!important;
}
html[data-theme] body.editorial-content .service-editorial-actions .service-editorial-secondary{
 color:var(--ed-accent)!important;text-decoration:underline;text-underline-offset:.28em;
}
.service-editorial-actions a:hover{text-decoration:underline;text-underline-offset:.28em}
body.editorial-content .service-editorial-art{
 margin:0;min-width:0;padding:clamp(.55rem,1.25vw,1.1rem);background:var(--ed-white);
 border:1px solid var(--ed-line);box-shadow:var(--ed-shadow);
}
body.editorial-content .service-editorial-art img{display:block;width:100%;height:auto;object-fit:contain}
body.editorial-content .service-category-back{
 display:inline-flex;align-items:center;min-height:44px;margin-bottom:.75rem;
 color:var(--ed-accent);text-decoration:underline;text-underline-offset:.26em;
}
body.editorial-content .service-options .service-option h3{margin-bottom:.5rem}
html[data-theme] body.editorial-content .xp-case-intro .xp-back{
 display:inline-flex;align-items:center;min-height:44px;margin-bottom:1rem;text-decoration:underline;text-underline-offset:.26em;
}
/* Make subtle text stay readable over each project photograph. */
html[data-theme] body.editorial-content.case-page .world-copy>p,
html[data-theme] body.editorial-content.case-page .world-copy .world-next,
html[data-theme] body.editorial-content.case-page .world-copy .eyebrow{
 color:#fff7ed!important;text-shadow:0 1px 4px #160e0d;
}
html[data-theme] body.editorial-workspace :is(.portal-login-card,.portal-admin-gate,.condo-login-form) :is(input,select,textarea):not([type=checkbox],[type=radio]){
 min-height:44px;min-width:0;
}
@media(max-width:760px){
 body.editorial-content .service-editorial{grid-template-columns:1fr;gap:1.4rem}
 html[data-theme] body.editorial-content .service-editorial h1{font-size:clamp(2.5rem,10vw,4.25rem)!important}
 body.editorial-content .service-editorial-art{width:min(100%,36rem);justify-self:center}
 body.editorial-workspace :is(.portal-login-card,.portal-admin-gate,.condo-login-form){
  padding-inline:clamp(1rem,5vw,1.8rem);min-width:0;max-width:100%;
 }
}
@media(max-width:999px),(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){
 body.editorial-content.case-page .world-motion-toggle{display:none}
}

/* Menos chamadas e mais leitura funcional nas páginas públicas. */
:root:not([data-theme=dark]) body.editorial-content{
 --ed-paper:#ede8df;--ed-white:#f7f4ee;--ed-soft:#e4ded4;--ed-ink:#302e2b;
 --ed-muted:#59554f;--ed-accent:#692d39;--ed-line:#b9b2a8;--ed-button:#692d39;
 --ed-on-button:#faf7f1;--ed-dark:#302e2b;--ed-shadow:0 10px 28px #302e2b0d;
 background:var(--ed-paper)!important;
}
body.editorial-content .end-cta{padding-block:1.5rem!important;min-height:0!important}
html[data-theme] body.editorial-content .end-cta>a{font-size:clamp(1.2rem,2vw,1.75rem)!important;line-height:1.3!important}
body.editorial-content .case-narrative{margin-block:1.5rem;border-top:1px solid var(--ed-line);border-bottom:1px solid var(--ed-line);padding-block:1rem}
body.editorial-content .case-narrative>summary{cursor:pointer;min-height:44px;display:list-item;list-style-position:inside;color:var(--ed-ink);font-size:1rem;line-height:1.5;padding:.6rem 0}
body.editorial-content .case-narrative>summary:focus-visible{outline:2px solid var(--ed-accent);outline-offset:4px}
body.editorial-content .case-narrative .cafe-story{padding-block:1rem}
body.editorial-content .case-delivery{padding-block:2rem}
body.editorial-content .web-format h2,body.editorial-content .material-card h2{max-width:22ch}
html[data-theme] body.editorial-content .atelier-site-test{--lab-paper:var(--ed-white);--lab-accent:var(--ed-soft);--lab-ink:var(--ed-ink);background:var(--ed-soft)!important}
html[data-theme] body.editorial-content .atelier-site-test>.eyebrow,html[data-theme] body.editorial-content .atelier-site-test>p{color:var(--ed-muted)!important}

/* Modo escuro neutro: bege nas ações, linhas suaves e superfícies em grafite. */
html[data-theme=dark] body.admin-platform.editorial-workspace{--chart-in:#cbbfa9;--chart-out:#a8b0b6}
html[data-theme=dark] body.sales-seller-page.editorial-workspace .sales-entry-copy{--admin-ink:#eee9df;--admin-muted:#c8c0b4;--admin-accent:#cbbfa9;background:#2c2b27}
html[data-theme=dark] body.sales-seller-page.editorial-workspace .sales-entry-copy::after{border-color:#79726466;box-shadow:0 0 0 45px #cbbfa908,0 0 0 90px #cbbfa908}
html[data-theme=dark] body.editorial-workspace{background:var(--ed-paper)!important}
