/* SG METAIS 0.22.8.8: compact Home headings and full-bleed Cases. */
main[data-sg-home-labels="compact"] [data-sg-retired-heading]{display:none!important}
main[data-sg-home-labels="compact"] > section:not(#top) .section-index[role="heading"]{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 14px;color:inherit;font-size:14px;font-weight:700;line-height:1.35;letter-spacing:.015em;text-transform:none}
main[data-sg-home-labels="compact"] .section-index[role="heading"]::before{content:"";display:block;flex:0 0 18px;width:18px;height:13px;background:#f2303a;clip-path:polygon(0 50%,42% 0,42% 38%,100% 38%,100% 62%,42% 62%,42% 100%)}
main[data-sg-home-labels="compact"] #sistema .system-head{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center}
main[data-sg-home-labels="compact"] #sistema .system-head :is(.section-index,.system-overline,.system-intro){margin:0}
main[data-sg-home-labels="compact"] #sistema.system-section{padding-block:clamp(48px,5vw,70px)}
main[data-sg-home-labels="compact"] #sistema .system-track{margin-top:36px}
main[data-sg-home-labels="compact"] #mercados .markets-copy>.section-index,main[data-sg-home-labels="compact"] #presenca .presence-copy>.section-index{margin:0 0 18px}
main[data-sg-home-labels="compact"] #mercados .markets-copy>p,main[data-sg-home-labels="compact"] #presenca .presence-copy>p{margin:0 0 16px}
main[data-sg-home-labels="compact"] #ativos .assets-head{grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding-block:clamp(42px,5vw,64px) 20px}
main[data-sg-home-labels="compact"] #ativos .assets-head .section-index{margin:0}
main[data-sg-home-labels="compact"] #ativos .assets-head>div:not(.section-index){display:none}
main[data-sg-home-labels="compact"] #ativos .assets-head-copy{border:0;padding:0;max-width:none;justify-self:end}
main[data-sg-home-labels="compact"] #sustentabilidade .sustainability-head .section-index{margin:0 0 14px}
main[data-sg-home-labels="compact"] #sustentabilidade .sustainability-head>p:not(.sustainability-kicker){margin-top:10px}
main[data-sg-home-labels="compact"] #contato .contact-grid{min-height:0;padding-block:42px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:20px}
main[data-sg-home-labels="compact"] #contato .contact-grid :is(.section-index,.contact-kicker){margin:0}
/* The only light strip is the small section header. No inset panel or separate info box. */
main[data-sg-home-labels="compact"] #projetos.projects{width:100%;margin:0;padding:0!important;background:#f1f1ed;border:0;overflow:hidden;isolation:isolate}
main[data-sg-home-labels="compact"] #projetos .projects-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:none;min-height:62px;margin:0;padding:12px clamp(17px,3.25vw,52px);box-sizing:border-box}
main[data-sg-home-labels="compact"] #projetos .projects-head .section-index{margin:0}
main[data-sg-home-labels="compact"] #projetos .projects-archive-link{display:inline-flex;align-items:center;gap:12px;font-size:11px;line-height:1.3;padding:10px 13px;min-height:36px;border:1px solid #bfc1bd;text-transform:none;letter-spacing:0;white-space:nowrap;align-self:center;text-decoration:none}
main[data-sg-home-labels="compact"] #projetos .projects-archive-link:hover{border-color:#222}
#projetos [data-case-layout="full"]{display:block;width:100%;max-width:none;min-width:0;min-height:0;margin:0!important;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none;color:white}
#projetos [data-case-layout="full"] .sg-case-deck{position:relative;display:block;width:100%;margin:0;padding:0;gap:0;isolation:isolate;min-width:0}
#projetos [data-case-layout="full"] .project-visual{position:relative;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;width:100%;min-width:0;height:auto;min-height:clamp(500px,calc(100svh - 62px),1000px);margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:#555b5d}
#projetos [data-case-layout="full"] .sg-case-cover{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center;z-index:0;display:block;border:0;border-radius:0;transform:none}
#projetos [data-case-layout="full"] [hidden]{display:none!important}
#projetos [data-case-layout="full"] .project-visual-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(5,8,9,.13) 0%,transparent 34%,rgba(5,8,9,.22) 53%,rgba(5,8,9,.82) 100%)}
#projetos [data-case-layout="full"] .project-info.project-info--overlay{position:relative;inset:auto;z-index:2;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) auto;gap:clamp(16px,3vw,44px);align-items:end;padding:120px clamp(17px,3.25vw,52px) clamp(24px,4vw,52px);width:100%;min-height:0;margin:0;background:linear-gradient(180deg,transparent,rgba(5,8,9,.42));color:#fff;text-shadow:0 1px 10px #0008}
#projetos [data-case-layout="full"] .project-count{display:inline-block;background:transparent;border:0;backdrop-filter:none;border-radius:0;padding:0;color:#e6e6e3;margin:0 0 10px;font-size:11px;letter-spacing:.12em}
#projetos [data-case-layout="full"] .project-kicker{font-size:10px;margin:0 0 9px;color:#ff999d;letter-spacing:.12em}
#projetos [data-case-layout="full"] .project-info h3{font-size:clamp(24px,2.5vw,38px);line-height:1.09;max-width:26ch;margin:0 0 9px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#projetos [data-case-layout="full"] .project-info [data-project-description]{color:#f0f0ed;font-size:13px;line-height:1.5;max-width:62ch;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#projetos [data-case-layout="full"] .project-facts{min-width:0;align-self:end;grid-template-columns:minmax(0,1fr);gap:0;margin:0;border:0}
#projetos [data-case-layout="full"] .project-facts div{grid-template-columns:minmax(72px,.35fr) minmax(0,1fr);padding:8px 0;border-color:#ffffff38}
#projetos [data-case-layout="full"] .project-facts dt{font-size:10px;overflow-wrap:anywhere}
#projetos [data-case-layout="full"] .project-facts dd{font-size:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#projetos [data-case-layout="full"] .project-actions{grid-column:auto;justify-self:end;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;margin:0}
#projetos [data-case-layout="full"] .project-open{margin:0;padding:12px 14px;border-radius:0;font-size:12px;min-height:44px;background:#12171950;white-space:normal}
#projetos [data-case-layout="full"] .sg-case-arrows{display:flex;gap:6px}
#projetos [data-case-layout="full"] .project-arrow{width:44px;height:44px;border-radius:0;background:#12171950;border-color:#ffffff75;color:white;font-size:20px}
#projetos [data-case-layout="full"] .project-arrow:hover:not(:disabled){background:white;color:#111}
#projetos [data-case-layout="full"] .project-demo-badge{inset:16px auto auto clamp(17px,3.25vw,52px);max-width:calc(100% - 34px);font-size:9px;border-radius:2px;z-index:4}
/* Adjacent cases overlay the stage, never occupy columns beside the cover. */
#projetos [data-case-layout="full"] .sg-case-previews{display:flex;gap:8px;position:absolute;right:clamp(17px,3.25vw,52px);top:22px;z-index:3;align-items:center}
#projetos [data-case-layout="full"] .sg-case-side{position:relative;display:block;width:clamp(90px,10vw,142px);height:clamp(65px,7vw,95px);min-height:0;border:1px solid #ffffff80;border-radius:2px;background:#40474a;box-shadow:none;isolation:isolate}
#projetos [data-case-layout="full"] .sg-case-side::before{z-index:1;background:linear-gradient(transparent,#0b0d0ecc)}
#projetos [data-case-layout="full"] .sg-case-side::after{display:none}
#projetos [data-case-layout="full"] .sg-case-side-media{inset:0;z-index:0;filter:blur(3px);opacity:.88}
#projetos [data-case-layout="full"] .sg-case-side:hover .sg-case-side-media,#projetos [data-case-layout="full"] .sg-case-side:focus-visible .sg-case-side-media{filter:none}
#projetos [data-case-layout="full"] .sg-case-side-copy{left:8px;right:8px;bottom:8px;gap:2px;text-align:left}
#projetos [data-case-layout="full"] .sg-case-side-copy small{font-size:9px;color:#fff}
#projetos [data-case-layout="full"] .sg-case-side-copy strong{font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
#projetos [data-case-layout="full"][data-case-count="0"] .sg-case-arrows,#projetos [data-case-layout="full"][data-case-count="1"] .sg-case-arrows{display:none}
#projetos [data-case-layout="full"][data-case-count="0"] .project-visual{min-height:280px}
main[data-sg-home-labels="compact"] #midia.media-home{padding-block:clamp(38px,5vw,66px);background:#f3f1ec}
main[data-sg-home-labels="compact"] #midia .media-home-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-block:0 20px}
main[data-sg-home-labels="compact"] #midia .media-home-head>div:not(.section-index){display:none}
main[data-sg-home-labels="compact"] #midia .media-home-head .section-index{margin:0}
main[data-sg-home-labels="compact"] #midia .media-home-empty{grid-column:1/-1;padding:22px 0;border-top:1px solid #d7d7d2;color:#616466;font-size:13px;margin:0}
@media(max-width:1000px){#projetos [data-case-layout="full"] .project-info.project-info--overlay{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:12px 24px}#projetos [data-case-layout="full"] .project-actions{grid-column:1/-1;justify-self:start;justify-content:flex-start}}
@media(max-width:720px){
 main[data-sg-home-labels="compact"] #sistema .system-head,main[data-sg-home-labels="compact"] #contato .contact-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 main[data-sg-home-labels="compact"] #sistema .system-intro{padding:0;border:0}
 main[data-sg-home-labels="compact"] #ativos .assets-head{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 main[data-sg-home-labels="compact"] #ativos .assets-head-copy,main[data-sg-home-labels="compact"] #midia .media-home-link{font-size:11px}
 main[data-sg-home-labels="compact"] #projetos .projects-head{min-height:56px;padding-block:10px}
 #projetos [data-case-layout="full"] .project-visual{min-height:clamp(520px,calc(100svh - 56px),800px)}
 #projetos [data-case-layout="full"] .project-info.project-info--overlay{grid-template-columns:minmax(0,1fr);gap:12px;padding:120px 17px 22px}
 #projetos [data-case-layout="full"] .project-info h3{font-size:24px}
 #projetos [data-case-layout="full"] .project-actions{grid-column:auto;justify-self:stretch;justify-content:space-between}
 #projetos [data-case-layout="full"] .project-facts{grid-column:auto}
 #projetos [data-case-layout="full"] .sg-case-previews{top:48px;right:17px}
 #projetos [data-case-layout="full"] .sg-case-side{width:70px;height:54px}
 #projetos [data-case-layout="full"] .sg-case-side-copy strong{display:none}
 #projetos [data-case-layout="full"] .sg-case-side-copy small::after{content:""}
 #projetos [data-case-layout="full"][data-case-count="0"] .project-visual{min-height:250px}
}
@media(prefers-reduced-motion:reduce){#projetos [data-case-layout="full"] *{animation:none!important;transition:none!important}}
/* Neutralize legacy title/link spacing in the compact horizontal heading rows. */
main[data-sg-home-labels="compact"] #projetos .projects-head>.section-index,main[data-sg-home-labels="compact"] #midia .media-home-head>.section-index,main[data-sg-home-labels="compact"] #ativos .assets-head>.section-index{margin:0!important}
main[data-sg-home-labels="compact"] #projetos .projects-archive-link{margin:0!important;padding:8px 13px;min-height:36px}
main[data-sg-home-labels="compact"] #midia .media-home-link,main[data-sg-home-labels="compact"] #ativos .assets-head-copy{margin:0!important}

/* v0.22.8.9 — cases without white strip, arrows right, sustainability cards */
main[data-sg-home-labels="compact"] .section-index[role="heading"]::before,
#projetos [data-case-layout="full"] .project-topbar .section-index::before{
  clip-path:polygon(0 38%,58% 38%,58% 0,100% 50%,58% 100%,58% 62%,0 62%);
}

main[data-sg-home-labels="compact"] #projetos.projects{background:#14181b}
main[data-sg-home-labels="compact"] #projetos .projects-head{display:none!important}
#projetos [data-case-layout="full"] .project-feature,
#projetos [data-case-layout="full"]{background:transparent}
#projetos [data-case-layout="full"] .project-visual{min-height:clamp(560px,100svh,1040px);background:#30373a}
#projetos [data-case-layout="full"] .project-topbar{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px clamp(17px,3.25vw,52px) 0;color:#fff}
#projetos [data-case-layout="full"] .project-topbar-title{display:flex;align-items:center;gap:10px;margin:0;color:#fff;font-size:14px;font-weight:700;line-height:1.35;letter-spacing:.015em}
#projetos [data-case-layout="full"] .project-topbar-title::before{content:"";display:block;flex:0 0 18px;width:18px;height:13px;background:#f2303a}
#projetos [data-case-layout="full"] .project-topbar-link{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;min-height:38px;border:1px solid rgba(255,255,255,.32);background:rgba(11,14,17,.18);color:#fff;text-decoration:none;backdrop-filter:blur(8px)}
#projetos [data-case-layout="full"] .project-topbar-link:hover{background:rgba(255,255,255,.12);border-color:#fff}
#projetos [data-case-layout="full"] .project-visual-scrim{background:linear-gradient(180deg,rgba(5,8,9,.48) 0%,rgba(5,8,9,.18) 22%,rgba(5,8,9,.18) 46%,rgba(5,8,9,.78) 100%)}
#projetos [data-case-layout="full"] .project-info.project-info--overlay{padding:150px clamp(17px,3.25vw,52px) clamp(24px,4vw,52px)}
#projetos [data-case-layout="full"] .sg-case-previews{top:78px}
#projetos [data-case-layout="full"] .project-open,
#projetos [data-case-layout="full"] .project-arrow{background:rgba(11,14,17,.28)}
#projetos [data-case-layout="full"] .project-open{border-color:rgba(255,255,255,.28)}
#projetos [data-case-layout="full"] .project-arrow{border-color:rgba(255,255,255,.38)}

#sustentabilidade.sg-sustainability-v2 .sustainability-shell{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:clamp(22px,4vw,44px);align-items:start}
#sustentabilidade.sg-sustainability-v2 .sustainability-story{display:block;margin:0;padding-top:4px}
#sustentabilidade.sg-sustainability-v2 .sustainability-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#sustentabilidade.sg-sustainability-v2 .sustainability-card{display:grid;align-content:start;gap:10px;min-height:218px;padding:20px;border:1px solid #d6d1c7;border-radius:20px;background:linear-gradient(180deg,#fff,#f5f2eb);box-shadow:0 10px 30px rgba(8,10,12,.06)}
#sustentabilidade.sg-sustainability-v2 .sustainability-card-tag{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#a31d24}
#sustentabilidade.sg-sustainability-v2 .sustainability-card-tag::before{content:"";display:block;width:10px;height:10px;background:#f2303a;clip-path:polygon(0 38%,58% 38%,58% 0,100% 50%,58% 100%,58% 62%,0 62%)}
#sustentabilidade.sg-sustainability-v2 .sustainability-card h3{margin:0;font-size:22px;line-height:1.15;color:#13181a}
#sustentabilidade.sg-sustainability-v2 .sustainability-card p{margin:0;font-size:14px;line-height:1.6;color:#4d5354}
/* hide retired animated v2 pieces if any survive publication */
#sustentabilidade.sg-sustainability-v2 :is(.sustainability-flow,.sustainability-sticky,.cycle-stage,.cycle-hub,.cycle-copy,.cycle-rotor,.cycle-stage-labels){display:none!important}

@media(max-width:1000px){
  #sustentabilidade.sg-sustainability-v2 .sustainability-shell{grid-template-columns:minmax(0,1fr)}
  #sustentabilidade.sg-sustainability-v2 .sustainability-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  #projetos [data-case-layout="full"] .project-visual{min-height:clamp(540px,100svh,760px)}
  #projetos [data-case-layout="full"] .project-topbar{padding:14px 17px 0;gap:10px;align-items:flex-start}
  #projetos [data-case-layout="full"] .project-topbar-link{padding:9px 12px;min-height:34px;font-size:11px}
  #projetos [data-case-layout="full"] .project-info.project-info--overlay{padding-top:128px}
  #projetos [data-case-layout="full"] .sg-case-previews{top:62px;right:17px}
  #sustentabilidade.sg-sustainability-v2 .sustainability-cards{grid-template-columns:minmax(0,1fr)}
  #sustentabilidade.sg-sustainability-v2 .sustainability-card{min-height:0;padding:18px;border-radius:18px}
}

/* 0.22.8.12 — preserve left copy, three photographic-format editable cards. */
#sustentabilidade.sg-sustainability-v2 .sustainability-shell{grid-template-areas:"head cards";grid-template-columns:minmax(235px,.65fr) minmax(0,1.35fr);align-items:center}
#sustentabilidade.sg-sustainability-v2 .sustainability-head{grid-area:head;min-width:0}
#sustentabilidade.sg-sustainability-v2 .sustainability-story{grid-area:cards;min-width:0;padding:0}
#sustentabilidade.sg-sustainability-v2 .sustainability-cards{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
#sustentabilidade.sg-sustainability-v2 .sustainability-card{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0;padding:0 0 15px;border:1px solid #dedbd5;border-radius:4px;overflow:hidden;background:#fff;box-shadow:none}
#sustentabilidade.sg-sustainability-v2 .sustainability-card h3,#sustentabilidade.sg-sustainability-v2 .sustainability-card p{margin:0 14px;overflow-wrap:anywhere}
#sustentabilidade.sg-sustainability-v2 .sustainability-card h3{font-size:clamp(16px,1.4vw,20px);line-height:1.25}
#sustentabilidade.sg-sustainability-v2 .sustainability-card p{font-size:12px;line-height:1.55}
#sustentabilidade .sg-sust-card-image{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;max-width:100%;background:#202628}
#sustentabilidade .sustainability-card-tag{display:none!important}
#projetos [data-case-layout="full"] .project-demo-badge{top:75px}
#projetos [data-case-layout="full"] .project-visual{padding-top:125px}
#projetos [data-case-layout="full"] .project-info.project-info--overlay{padding-top:36px}
#projetos [data-case-layout="full"] .project-topbar .section-index{margin:0!important}
@media(max-width:1050px){#sustentabilidade.sg-sustainability-v2 .sustainability-shell{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "cards"}}
@media(max-width:620px){#sustentabilidade.sg-sustainability-v2 .sustainability-cards{grid-template-columns:minmax(0,1fr);gap:14px}#sustentabilidade .sg-sust-card-image{aspect-ratio:16/8}#projetos [data-case-layout="full"] .project-visual{padding-top:150px}#projetos [data-case-layout="full"] .project-topbar-link{white-space:normal;text-align:right;max-width:60%}#projetos [data-case-layout="full"] .project-topbar{align-items:center}#projetos [data-case-layout="full"] .project-demo-badge{top:68px;max-width:45%;font-size:8px;white-space:normal}#projetos [data-case-layout="full"] .project-info.project-info--overlay{padding-top:25px}}

/* 0.22.8.12: neutral graphite map and local UF flag watermark. */
#presenca{background:#111416;color:#fff}
#presenca .sg-geographic-map .sg-brazil-outline{fill:#292c2e;stroke:#929698}
#presenca .sg-geographic-map .sg-brazil-borders{stroke:#64696c}
#presenca .sg-geographic-map .state-node .sg-uf-chip{fill:#171a1c;stroke:#878b8d}
#presenca .sg-geographic-map .state-node text{fill:#f5f5f4}
#presenca .sg-geographic-map .sg-uf-leader{stroke:#797d80}
#presenca .sg-geographic-map .state-node .sg-uf-anchor{fill:#b8bbbc}
#presenca .sg-geographic-map .state-node:hover .sg-uf-chip,#presenca .sg-geographic-map .state-node:focus-visible .sg-uf-chip{fill:#484d50;stroke:#fff}
#presenca .sg-geographic-map .state-node.is-active .sg-uf-chip{fill:#f2303a;stroke:#fff}
#presenca .sg-uf-control{color:#ddd}#presenca .sg-uf-control select{background:#1d2022;border-color:#565b5e;color:white}#presenca .sg-map-source{color:#a4a7a9}
#presenca .presence-panel{isolation:isolate}
#presenca .presence-panel>[data-state-flag]{position:absolute;z-index:-1;top:8px;right:0;width:clamp(76px,9vw,120px);max-width:40%;height:auto;max-height:80px;object-fit:contain;object-position:right top;opacity:.17;filter:saturate(.7);pointer-events:none;user-select:none}
#presenca .presence-panel>[hidden]{display:none!important}
@media(max-width:720px){#presenca .presence-panel>[data-state-flag]{top:12px;width:min(88px,30%)}}
