/*
 * UNIAOBR AMBIENTAL — tema institucional técnico
 * Tipografia: Archivo (sans-serif industrial) · Fragment Mono (dados e unidades)
 * Cores da marca: grafite #373435 · azul petróleo #0085A1
 */

:root {
  --ink: #111415;
  --ink-2: #181c1e;
  --ink-3: #22282a;
  --carbon: #373435;
  --paper: #f1efe9;
  --paper-2: #e6e3db;
  --white: #ffffff;
  --text: #22272a;
  --muted: #5c6366;
  --muted-light: rgba(241, 239, 233, 0.66);
  --rule: rgba(17, 20, 21, 0.14);
  --rule-strong: rgba(17, 20, 21, 0.38);
  --rule-light: rgba(241, 239, 233, 0.14);
  --rule-light-strong: rgba(241, 239, 233, 0.32);
  --teal: #0085a1;
  --teal-ink: #006b82;
  --teal-light: #5cc6dc;
  --teal-deep: #00495a;
  --flare: #e46b2c;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-y: clamp(84px, 11vw, 168px);
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
body.is-locked { overflow: hidden; }

::selection { background: var(--teal); color: var(--white); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--white); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-sans);
  font-stretch: 108%;
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h2 {
  font-family: var(--f-sans);
  font-stretch: 106%;
  font-weight: 680;
  font-size: clamp(32px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-size: 15px; letter-spacing: 0.005em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--white));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--fg-h, var(--ink)); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--accent { --bg: var(--teal); --bd: var(--teal); --fg: var(--white); --fill: var(--white); --fg-h: var(--ink); }
.btn--ghost-light { --bg: transparent; --bd: var(--rule-light-strong); --fg: var(--paper); --fill: var(--paper); --fg-h: var(--ink); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); vertical-align: middle; }
.dot--live { box-shadow: 0 0 0 0 rgba(92, 198, 220, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92,198,220,.55); } 70% { box-shadow: 0 0 0 10px rgba(92,198,220,0); } 100% { box-shadow: 0 0 0 0 rgba(92,198,220,0); } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { position: relative; display: block; flex: 0 0 auto; height: 42px; width: 34px; }
.brand__logo { position: absolute; inset: 0; height: 42px; width: auto; transition: opacity .3s var(--ease); }
.brand__logo--dark { opacity: 0; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 12px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em;
  opacity: .86; transition: opacity .2s;
}
.nav__list a:hover, .nav__list a.is-active { opacity: 1; }
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__idx { font-family: var(--f-mono); font-size: 10px; opacity: .55; letter-spacing: .04em; }
.nav__mobile-foot { display: none; }

.site-header.is-scrolled {
  background: rgba(241, 239, 233, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  border-bottom-color: var(--rule);
}
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid currentColor; background: transparent;
  position: relative; cursor: pointer; opacity: .9;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: max(700px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(ellipse 80% 70% at 82% 28%, rgba(0, 133, 161, 0.16) 0%, transparent 65%), #111415;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-canvas { width: 100%; height: 100%; display: block; }

.hero__inner { padding-top: calc(var(--header-h) + 72px); padding-bottom: 56px; position: relative; z-index: 1; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--teal-light); margin-bottom: 24px; }
.hero__title { max-width: 17ch; }
.hero__row { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 620px) auto; gap: 40px; align-items: end; justify-content: space-between; }
.hero__lead { font-size: 18px; line-height: 1.62; color: rgba(241,239,233,.82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__clients {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--rule-light);
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.hero__clients-label { color: var(--muted-light); flex: 0 0 auto; }
.hero__clients-list { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
.hero__clients-list li {
  font-stretch: 82%; font-weight: 700; font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 0.02em; text-transform: uppercase; color: rgba(241,239,233,.72);
}

.hero__stats { border-top: 1px solid var(--rule-light); background: rgba(17,20,21,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: relative; z-index: 1; }
.hero__stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px 28px 0; display: grid; gap: 6px; border-right: 1px solid var(--rule-light); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__v { font-stretch: 114%; font-weight: 680; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--paper); }
.stat__l { font-size: 14.5px; color: var(--muted-light); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: var(--sec-y) 0; }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--brand { background: var(--teal-deep); color: var(--paper); }
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--rule-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-light) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .32;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}
.section > .wrap { position: relative; }

.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 1100px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "idx idx" "title aside"; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.sec-head--split .sec-head__idx { grid-area: idx; }
.sec-head--split .h2 { grid-area: title; }
.sec-head__aside { grid-area: aside; color: var(--muted); font-size: 17px; max-width: 520px; padding-bottom: 6px; }
.section--ink .sec-head__aside, .section--brand .sec-head__aside { color: var(--muted-light); }
.sec-head__idx {
  display: flex; align-items: center; gap: 14px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.sec-head__idx span {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px;
  border: 1px solid currentColor; color: var(--teal-ink);
}
.section--ink .sec-head__idx, .section--brand .sec-head__idx { color: var(--muted-light); border-bottom-color: var(--rule-light); }
.section--ink .sec-head__idx span { color: var(--teal-light); }
.section--brand .sec-head__idx span { color: var(--paper); }
.section--paper .h2 em, .section--paper-2 .h2 em { color: var(--teal-ink); }
.section--ink .h2 em { color: var(--teal-light); }

/* ---------- 01 Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.about__text { display: grid; gap: 22px; align-content: start; color: var(--muted); }
.pillars { display: grid; }
.pillar { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 26px 0; border-top: 1px solid var(--rule); }
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar__n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-strong); color: var(--teal-ink); }
.pillar h3 { font-stretch: 104%; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.pillar p { color: var(--muted); margin-top: 6px; }

.sectors { margin-top: clamp(64px, 8vw, 112px); }
.sectors__label { color: var(--muted); margin-bottom: 16px; }
.sectors__ruler { display: grid; grid-template-columns: repeat(9, 1fr); border-top: 1px solid var(--ink); }
.sectors__ruler li {
  position: relative; padding: 18px 14px 4px 0; font-weight: 500; font-size: 15px; line-height: 1.25; color: var(--ink);
}
.sectors__ruler li::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 12px; background: var(--ink); }
.sectors__ruler li::after { content: ""; position: absolute; left: 50%; top: -1px; width: 1px; height: 6px; background: var(--rule-strong); }
.sectors__ruler li { padding-left: 10px; }
.sectors__ruler .mono { display: block; font-size: 10px; color: var(--teal-ink); margin-bottom: 6px; }

/* ---------- 02 Obras ---------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.work--sm { margin-top: 0; }
.work__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; }
.work__zoom img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: saturate(.88); }
.work--sm .work__zoom img { aspect-ratio: 16 / 10; object-position: 50% 42%; }
.work__zoom:hover img { transform: scale(1.04); filter: saturate(1); }
.work__plus {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-size: 24px; line-height: 1; font-weight: 300;
  transition: transform .4s var(--ease), background .3s;
}
.work__zoom:hover .work__plus { transform: rotate(90deg); background: var(--teal); color: var(--white); }
.work figcaption { display: flex; gap: 14px; padding-top: 14px; font-size: 14.5px; color: var(--muted-light); border-top: 1px solid var(--rule-light); margin-top: 14px; }
.work figcaption .mono { color: var(--teal-light); flex: 0 0 auto; padding-top: 2px; }

/* ---------- 03 Serviços ---------- */
.services { border-top: 1px solid var(--ink); counter-reset: s; }
.service {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1.1fr) minmax(0, 1fr) 48px;
  gap: 24px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--rule);
  transition: padding .45s var(--ease), color .45s var(--ease);
  isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service__n { color: var(--teal-ink); }
.service__t { font-stretch: 110%; font-weight: 600; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); transition: color .45s var(--ease); }
.service__d { color: var(--muted); transition: color .45s var(--ease); }
.service__arrow { justify-self: end; font-size: 22px; color: var(--ink); transition: transform .45s var(--ease), color .45s; }
@media (hover: hover) {
  .service:hover { padding-left: 18px; padding-right: 18px; }
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service__t { color: var(--paper); }
  .service:hover .service__d { color: var(--muted-light); }
  .service:hover .service__n { color: var(--teal-light); }
  .service:hover .service__arrow { color: var(--teal-light); transform: rotate(45deg); }
}

/* ---------- 04 Como funciona (fluxo) ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(420px, 500px) minmax(0, 0.92fr); align-items: stretch; min-height: 620px; }
.flow__in { display: flex; align-items: center; padding-right: 36px; position: relative; }
.flow__out { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; padding-left: 36px; }
.flow__reactor { position: relative; display: flex; align-items: center; justify-content: center; }
.reactor { width: 100%; max-width: 500px; height: auto; color: var(--paper); overflow: visible; }
.reactor__mixer ellipse { transform-box: fill-box; transform-origin: center; animation: cstrAgitate 4.4s ease-in-out infinite; }
@keyframes cstrAgitate { 0%, 100% { transform: scaleX(1); opacity: 0.85; } 50% { transform: scaleX(0.32); opacity: 0.4; } }
.reactor .ln { stroke: currentColor; stroke-width: 1.2; fill: none; opacity: .8; }
.reactor .ln--strong { stroke-width: 1.8; opacity: 1; }
.reactor .ln--thin { stroke-width: .8; opacity: .45; }
.reactor .ln--dash { stroke-dasharray: 4 4; opacity: .55; }
.reactor .liquid { fill: rgba(92, 198, 220, .1); }
.reactor .pipe { stroke: var(--rule-light-strong); stroke-width: 6; fill: none; stroke-linejoin: miter; }
.reactor .pipe--flow { stroke: var(--teal-light); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.reactor .pipe--gas { stroke: var(--flare); }
.reactor .pipe--sludge { stroke: #b9a37a; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.reactor .bubbles circle { fill: none; stroke: var(--teal-light); stroke-width: 1; animation: rise 4.5s linear infinite; }
.reactor .bubbles circle:nth-child(2n) { animation-duration: 5.6s; animation-delay: -1.8s; }
.reactor .bubbles circle:nth-child(3n) { animation-duration: 3.8s; animation-delay: -2.6s; }
.reactor .bubbles circle:nth-child(4n) { animation-delay: -3.4s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
.reactor .annot text { font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; fill: var(--muted-light); }
.node { position: relative; padding: 20px 22px; border: 1px solid var(--rule-light-strong); background: rgba(17,20,21,.72); }
.node h3 { font-stretch: 106%; font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 8px 0 6px; }
.node p { font-size: 14.5px; color: var(--muted-light); line-height: 1.5; }
.node__tag { color: var(--teal-light); font-size: 10.5px; display: inline-flex; align-items: center; gap: 8px; }
.node__tag::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; }
.node--in { width: 100%; }
.node--in::after { content: ""; position: absolute; left: 100%; top: 50%; width: 36px; border-top: 1px dashed var(--rule-light-strong); }
.node--reactor { position: absolute; left: 50%; bottom: -18px; transform: translate(-50%, 100%); width: 340px; text-align: center; border-color: var(--teal-light); }
.node--reactor .node__tag { justify-content: center; }
.node--out { align-self: center; }
.node--out::before { content: ""; position: absolute; right: 100%; top: 50%; width: 36px; border-top: 1px dashed var(--rule-light-strong); }
.node--gas .node__tag { color: var(--flare); }
.node--sludge .node__tag { color: #cdb88c; }
.flow { margin-bottom: 165px; }

/* ---------- 05 Biogás (ledger) ---------- */
.ledger { display: grid; grid-template-columns: 1fr auto 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ledger__col { padding: 40px clamp(20px, 3vw, 48px) 44px 0; }
.ledger__col--gain { padding-left: clamp(20px, 3vw, 48px); padding-right: 0; }
.ledger__vs { display: grid; place-items: center; padding: 0 18px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); color: var(--muted); }
.ledger__k { color: var(--muted); }
.ledger__col--gain .ledger__k { color: var(--teal-ink); }
.ledger h3 { font-stretch: 108%; font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.015em; line-height: 1.12; margin: 10px 0 24px; color: var(--ink); }
.ledger li { position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--rule); color: var(--muted); }
.ledger li::before {
  content: "−"; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 14px; border: 1px solid var(--rule-strong); color: var(--muted);
}
.ledger__col--gain li { color: var(--ink); }
.ledger__col--gain li::before { content: "+"; background: var(--teal); border-color: var(--teal); color: var(--white); }

.equiv { margin-top: clamp(56px, 7vw, 96px); }
.equiv__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; font-size: 18px; color: var(--ink); margin-bottom: 26px; }
.equiv__head .mono { color: var(--teal-ink); }
.equiv__grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.equiv__grid > div { padding: 24px 18px 0 0; border-right: 1px solid var(--rule); }
.equiv__grid > div + div { padding-left: 18px; }
.equiv__grid > div:last-child { border-right: 0; }
.equiv__grid dt { font-stretch: 120%; font-weight: 600; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.equiv__grid dt small { font-size: .42em; font-stretch: 100%; letter-spacing: 0; color: var(--teal-ink); font-weight: 600; }
.equiv__grid dd { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- 06 Retorno ---------- */
.vectors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.vector {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px;
  padding: 30px 30px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background .4s var(--ease);
}
.vector:hover { background: var(--paper); }
.vector__n { color: var(--muted); }
.vector h3 { font-stretch: 108%; font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); margin-top: 18px; }
.vector p { color: var(--muted); font-size: 16px; }
.vector__tag { margin-top: auto; padding-top: 16px; color: var(--teal-ink); display: flex; align-items: center; gap: 10px; }
.vector__tag::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- 07 Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--rule-light-strong); background: rgba(17,20,21,.6); }
.calc__form { padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 26px; align-content: start; border-right: 1px solid var(--rule-light-strong); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--muted-light); }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.input-unit, .select { position: relative; display: flex; align-items: stretch; border: 1px solid var(--rule-light-strong); background: rgba(241,239,233,.04); transition: border-color .2s, background .2s; }
.input-unit:focus-within, .select:focus-within { border-color: var(--teal-light); background: rgba(92,198,220,.06); }
.input-unit input, .select select, .form input, .form textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 0; background: transparent; outline: none;
  font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.input-unit span { display: grid; place-items: center; padding: 0 14px; color: var(--muted-light); border-left: 1px solid var(--rule-light); font-size: 11px; white-space: nowrap; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; font-size: 16px; }
.select select option { color: var(--ink); }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .7; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.range { --fill: 10%; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin-top: 6px; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--teal-light) var(--fill), var(--rule-light-strong) var(--fill)); }
.range::-moz-range-track { height: 2px; background: var(--rule-light-strong); }
.range::-moz-range-progress { height: 2px; background: var(--teal-light); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--paper); border: 4px solid var(--teal); border-radius: 0; transform: rotate(45deg); }
.range::-moz-range-thumb { width: 12px; height: 12px; background: var(--paper); border: 4px solid var(--teal); border-radius: 0; transform: rotate(45deg); }
.range__scale { display: flex; justify-content: space-between; color: var(--muted-light); font-size: 10px; opacity: .7; }

.assumptions { border-top: 1px solid var(--rule-light); padding-top: 16px; }
.assumptions summary { cursor: pointer; color: var(--teal-light); list-style: none; display: inline-flex; gap: 10px; align-items: center; }
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::before { content: "+"; font-size: 14px; transition: transform .3s; }
.assumptions[open] summary::before { transform: rotate(45deg); }
.assumptions ul { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--muted-light); }
.assumptions li::before { content: "— "; color: var(--teal-light); }

.calc__out { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, rgba(0,133,161,.12), rgba(0,133,161,0) 60%); }
.calc__k { color: var(--teal-light); }
.calc__big { font-stretch: 116%; font-weight: 600; font-size: clamp(44px, 5.2vw, 84px); line-height: .95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.calc__sub { color: var(--muted-light); font-size: 16px; }
.calc__sub strong { color: var(--paper); font-weight: 600; }
.meter { margin: 10px 0 6px; }
.meter__track { position: relative; height: 10px; border: 1px solid var(--rule-light-strong); background: repeating-linear-gradient(90deg, transparent 0 calc(33.333% - 1px), var(--rule-light-strong) calc(33.333% - 1px) 33.333%); }
.meter__fill { height: 100%; width: 40%; background: linear-gradient(90deg, var(--teal), var(--teal-light)); transition: width .6s var(--ease); }
.meter__scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted-light); font-size: 10px; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-light); margin-top: 8px; }
.readouts > div { padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.readouts > div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule-light); }
.readouts > div:nth-child(even) { padding-left: 16px; }
.readouts dt { color: var(--muted-light); font-size: 10.5px; }
.readouts dd { margin-top: 6px; font-stretch: 112%; font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readouts small { font-size: 12px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--muted-light); }
.calc__note { font-size: 13px; color: var(--muted-light); line-height: 1.5; margin: 6px 0 8px; }

/* ---------- 08 Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 92px; height: 1px; background: var(--ink); }
.step { position: relative; padding-right: 26px; }
.step__n { display: block; font-stretch: 125%; font-weight: 300; font-size: clamp(54px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); height: 84px; }
.step__node { display: block; width: 15px; height: 15px; margin: 1px 0 28px; background: var(--paper); border: 1.5px solid var(--ink); transform: translateY(-1px) rotate(45deg); transition: background .3s; }
.step:hover .step__node { background: var(--teal); border-color: var(--teal); }
.step h3 { font-stretch: 106%; font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- 09 Impacto + parceiros ---------- */
.section--brand .h2 em { color: #a9e6f2; }
.impact { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-light-strong); }
.impact > div { padding: 30px 24px 10px 0; border-right: 1px solid var(--rule-light); }
.impact > div + div { padding-left: 24px; }
.impact > div:last-child { border-right: 0; }
.impact dt { font-stretch: 122%; font-weight: 600; font-size: clamp(40px, 4.6vw, 76px); line-height: .95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.impact dd { margin-top: 12px; color: rgba(241,239,233,.75); max-width: 220px; }

.section--calc-band { border-top: 1px solid var(--rule-light); }

.partners--light { margin-top: 0; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.partners--light .partners__head { display: grid; gap: 20px; }
.partners--light .partners__head p:last-child { margin-top: 0; color: var(--muted); }
.partners--light .partners__list { border-top: 1px solid var(--ink); }
.partners--light .partners__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); transition: padding .4s var(--ease); }
.partners--light .partners__list li:hover { padding-left: 12px; }
.partners--light .partners__list strong { font-stretch: 82%; font-weight: 700; font-size: clamp(24px, 2.5vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.partners--light .partners__list .mono { color: var(--muted); text-align: right; }

/* ---------- 10 FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
.faq__head > p:last-child { color: var(--muted); }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { display: grid; grid-template-columns: 48px 1fr 28px; gap: 12px; align-items: baseline; padding: 26px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { color: var(--teal-ink); }
.qa__q { font-stretch: 104%; font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); transition: color .2s; }
.qa summary:hover .qa__q { color: var(--teal-ink); }
.qa__i { position: relative; width: 20px; height: 20px; align-self: center; justify-self: end; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.qa__i::after { transform: rotate(90deg); }
.qa[open] .qa__i::after { transform: rotate(0deg); }
.qa__a { padding: 0 28px 28px 60px; color: var(--muted); max-width: 720px; }

/* ---------- 11 Contato ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__intro { display: grid; gap: 24px; }
.contact__intro > p { color: var(--muted-light); max-width: 480px; }
.contact__data { margin-top: 12px; border-top: 1px solid var(--rule-light-strong); }
.contact__data > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.contact__data dt { color: var(--teal-light); padding-top: 4px; }
.contact__data dd { font-size: 18px; }
.contact__data a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact__data a:hover { background-size: 100% 1px; }

.form { border: 1px solid var(--rule-light-strong); padding: clamp(22px, 3vw, 40px); background: rgba(17,20,21,.6); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1 / -1; }
.form input, .form textarea { border: 1px solid var(--rule-light-strong); background: rgba(241,239,233,.04); font-size: 16px; transition: border-color .2s, background .2s; }
.form textarea { padding: 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus { border-color: var(--teal-light); background: rgba(92,198,220,.06); }
.form input::placeholder, .form textarea::placeholder { color: rgba(241,239,233,.38); }
.form .is-invalid { border-color: var(--flare) !important; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.form__status { font-size: 14px; color: var(--muted-light); }
.form__status.is-ok { color: var(--teal-light); }
.form__status.is-err { color: var(--flare); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0d0e; color: var(--paper); padding: clamp(64px, 8vw, 112px) 0 28px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule-light); }
.site-footer__brand img { height: clamp(64px, 7vw, 88px); width: auto; }
.site-footer__brand p { margin-top: 28px; max-width: 420px; color: var(--muted-light); font-size: 18px; line-height: 1.5; }
.site-footer__brand em { color: var(--paper); }
.site-footer__col .mono { color: var(--teal-light); margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 10px; color: var(--muted-light); }
.site-footer__col a:hover { color: var(--paper); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; color: rgba(241,239,233,.5); font-size: 11px; }
.site-footer__base a:hover { color: var(--paper); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: #1fae5b; color: var(--white);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  transition: transform .35s var(--ease), background .3s;
}
.wa-float:hover { transform: translateY(-3px); background: #19964e; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(11,13,14,.92); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox__cap { color: var(--muted-light); margin-top: 14px; text-align: center; }
.lightbox__close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 1px solid var(--rule-light-strong); background: transparent; color: var(--paper); font-size: 24px; cursor: pointer; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- WordPress: conteúdo genérico (páginas/posts) ---------- */
.wp-page { padding: calc(var(--header-h) + 72px) 0 var(--sec-y); background: var(--paper); }
.wp-page .entry { max-width: 780px; }
.wp-page .entry h1 { font-stretch: 110%; font-weight: 600; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 32px; }
.wp-page .entry-content > * + * { margin-top: 1.1em; }
.wp-page .entry-content a { color: var(--teal-ink); text-decoration: underline; }
.wp-page .entry-content ul { list-style: disc; padding-left: 1.4em; }
.wp-page .entry-content ol { list-style: decimal; padding-left: 1.4em; }
.body--inner .site-header { background: rgba(241,239,233,.92); color: var(--ink); border-bottom-color: var(--rule); }
.body--inner .site-header .brand__logo--light { opacity: 0; }
.body--inner .site-header .brand__logo--dark { opacity: 1; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  .nav__idx { display: none; }
  .nav__list a { padding: 8px 9px; font-size: 14px; }
  .flow { grid-template-columns: minmax(0, 0.85fr) minmax(360px, 420px) minmax(0, 0.9fr); min-height: 520px; }
  .reactor { width: 100%; max-width: 420px; height: auto; }
  .sectors__ruler { grid-template-columns: repeat(5, 1fr); row-gap: 18px; }
}

@media (max-width: 1020px) {
  .site-header__cta { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--ink); color: var(--paper);
    padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--rule-light); }
  .nav__list a { width: 100%; padding: 18px 0; font-stretch: 110%; font-weight: 600; font-size: clamp(28px, 7vw, 40px); letter-spacing: -0.02em; border-bottom: 1px solid var(--rule-light); opacity: 1; }
  .nav__list a::after { display: none; }
  .nav__idx { display: inline; font-size: 12px; color: var(--teal-light); opacity: 1; margin-right: 10px; }
  .nav__mobile-foot { display: grid; gap: 8px; color: var(--muted-light); font-size: 15px; }
  .site-header.menu-open { background: transparent; color: var(--paper); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .brand__logo--light { opacity: 1; }
  .site-header.menu-open .brand__logo--dark { opacity: 0; }

  .hero__row { grid-template-columns: 1fr; gap: 28px; }
  .hero__caption { display: none; }
  .sec-head--split { grid-template-columns: 1fr; grid-template-areas: "idx" "title" "aside"; }
  .about { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .work--sm { margin-top: 0; }
  .work--sm .work__zoom img { aspect-ratio: 16 / 10; }
  .service { grid-template-columns: 64px 1fr 32px; }
  .service__d { grid-column: 2 / 3; }
  .service__arrow { grid-row: 1; grid-column: 3; }

  .flow { grid-template-columns: 1fr; min-height: 0; margin-bottom: 0; gap: 0; }
  .flow__in { padding: 0; }
  .flow__reactor { display: grid; justify-items: center; padding: 28px 0; }
  .reactor { width: min(100%, 320px); height: auto; }
  .node--reactor { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin-top: 8px; }
  .flow__out { padding: 0; gap: 14px; grid-template-rows: none; }
  .node--in::after, .node--out::before { display: none; }
  .flow__reactor::before, .flow__reactor::after { content: ""; width: 1px; height: 28px; border-left: 1px dashed var(--rule-light-strong); }

  .ledger { grid-template-columns: 1fr; }
  .ledger__vs { padding: 12px 0; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .ledger__col, .ledger__col--gain { padding: 32px 0; }
  .equiv__grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .equiv__grid > div:nth-child(3) { border-right: 0; }
  .equiv__grid > div:nth-child(4) { padding-left: 0; }
  .vectors { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__form { border-right: 0; border-bottom: 1px solid var(--rule-light-strong); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 0 0 36px 0; }
  .step__node { grid-row: 1 / span 3; grid-column: 1; margin: 6px 0 0 0; }
  .step__n { grid-column: 2; height: auto; font-size: 44px; margin-bottom: 10px; }
  .step h3, .step p { grid-column: 2; }
  .impact { grid-template-columns: repeat(2, 1fr); }
  .impact > div:nth-child(2) { border-right: 0; }
  .impact > div:nth-child(3) { padding-left: 0; }
  .partners { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand, .brand__logo { height: 36px; }
  .brand { width: 29px; }
  .hero { min-height: 100svh; }
  .hero__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 36px; }
  .hero__frame { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(17,20,21,.6) 0%, rgba(17,20,21,.55) 40%, rgba(17,20,21,.95) 100%); }
  .hero__ctas .btn { width: 100%; }
  .hero__stats-grid { grid-template-columns: 1fr 1fr; padding: 0; }
  .stat, .stat + .stat { padding: 18px var(--gutter); border-right: 1px solid var(--rule-light); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule-light); }
  .clients-strip__inner { gap: 14px; }
  .clients-strip__list { justify-content: flex-start; gap: 10px 22px; }
  .sectors__ruler { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 1fr 28px; gap: 10px; padding: 26px 0; }
  .service__n { grid-column: 1; }
  .service__t { grid-column: 1; }
  .service__d { grid-column: 1 / -1; }
  .service__arrow { grid-row: 1; grid-column: 2; }
  .equiv__grid { grid-template-columns: 1fr 1fr; }
  .equiv__grid > div { border-right: 0 !important; padding-left: 0 !important; padding-right: 12px; }
  .vectors { grid-template-columns: 1fr; }
  .vector { min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .readouts dd { font-size: 22px; }
  .impact dt { font-size: 38px; }
  .partners__list li { flex-direction: column; gap: 6px; }
  .partners__list .mono { text-align: left; }
  .qa summary { grid-template-columns: 36px 1fr 22px; }
  .qa__a { padding: 0 0 24px 48px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .contact__data > div { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .hero__media, .hero__shade { display: none !important; }
  .hero { min-height: 0; background: var(--white); color: var(--ink); }
  .section--ink, .section--brand { background: var(--white); color: var(--ink); }
}
