/* ===================================================================
   VICEN ENGENHARIA AMBIENTAL
   Conceito: "levantamento de campo" — vídeo aéreo em tela cheia com
   HUD de drone, tipografia larga e técnica, verde de copa + âmbar de
   marcação topográfica usado com parcimônia.
   =================================================================== */

:root {
  /* Cor */
  --canopy: #0e2f25;      /* verde de copa profunda — faixas escuras */
  --canopy-2: #164234;
  --leaf: #2f7a56;        /* verde folha — destaques sobre claro */
  --lichen: #d7e8c9;      /* líquen — fundos suaves e texto sobre escuro */
  --mist: #eef2ec;        /* névoa — fundo principal, puxado para o verde */
  --paper: #fbfcf9;
  --ink: #0f1f19;
  --ink-2: #3c4c45;
  --muted: #6c7b74;
  --line: #d6dfd5;
  --signal: #f2b33d;      /* âmbar de piquete topográfico — acento único */
  --signal-ink: #1d1606;
  --on-dark: #f3f7f1;
  --on-dark-2: rgba(243, 247, 241, .72);
  --on-dark-line: rgba(243, 247, 241, .18);

  /* Tipo */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1320px;
  --gutter: clamp(20px, 4.5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Tipografia ---------- */
.kicker {
  font-family: var(--f-mono);
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--leaf);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.kicker--light { color: var(--signal); }

.h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .cta__title em, .quote em {
  font-style: italic; font-weight: 300; font-variation-settings: "wdth" 100;
}
.h2 em { color: var(--leaf); }
.h2--light { color: var(--on-dark); }
.h2--light em { color: var(--lichen); }
.body { color: var(--ink-2); max-width: 32rem; }

/* ---------- Botões ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 30px;
  border-radius: 4px;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  font-variation-settings: "wdth" 108;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn--sm { --h: 44px; padding: 0 20px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(5px); }
.btn--signal { background: var(--signal); color: var(--signal-ink); }
.btn--signal:hover { background: #ffc451; transform: translateY(-2px); }
.btn--glass {
  color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn--dark { background: var(--canopy); color: var(--on-dark); }
.btn--dark:hover { background: var(--canopy-2); }
.btn:disabled { opacity: .7; cursor: progress; }

.link-line {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease), color .3s;
}
.link-line svg { width: 18px; height: 18px; }
.link-line:hover { gap: 20px; color: var(--leaf); }
.link-line--light { color: var(--on-dark); }
.link-line--light:hover { color: var(--signal); }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: 20px;
  color: var(--on-dark);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px;
  background: rgba(238, 242, 236, .86);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: var(--ink); border-color: var(--line);
}
.nav.is-scrolled.is-dark { background: rgba(8, 28, 21, .38); color: var(--on-dark); border-color: var(--on-dark-line); }
.nav.is-scrolled.is-dark .brand__mark { color: var(--signal); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; color: var(--signal); flex: none; }
.nav.is-scrolled .brand__mark { color: var(--leaf); }
.brand__name {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: 1.3rem; letter-spacing: .06em;
}
.brand__name small {
  font-family: var(--f-mono); font-size: .58rem; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; opacity: .75; margin-top: 5px;
}

.nav__links { display: flex; gap: 36px; font-size: .9rem; font-weight: 500; }
.nav__links a { position: relative; padding: 4px 0; opacity: .88; transition: opacity .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 4px; border: 1px solid currentColor; position: relative; opacity: .9; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { margin-top: 12px; border-top: 1px solid var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 28px; }
.mobile-menu a { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-size: 1.7rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--canopy) url("../media/hero-floresta-poster.webp") center / cover no-repeat;
  isolation: isolate;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 28, 21, .45) 0%, rgba(8, 28, 21, 0) 22%),
    linear-gradient(0deg, rgba(8, 28, 21, .72) 0%, rgba(8, 28, 21, .25) 42%, rgba(8, 28, 21, 0) 65%),
    linear-gradient(90deg, rgba(8, 28, 21, .35) 0%, rgba(8, 28, 21, 0) 55%);
}

.hud { position: absolute; inset: clamp(84px, 11vh, 110px) var(--gutter) clamp(20px, 3vh, 32px); pointer-events: none; z-index: 0; }
.hud__corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .7); }
.hud__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud__reticle { position: absolute; top: 44%; left: 66%; width: 92px; height: 92px; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; animation: reticle 6s ease-in-out infinite; }
.hud__reticle::before, .hud__reticle::after { content: ""; position: absolute; background: rgba(255, 255, 255, .6); }
.hud__reticle::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.hud__reticle::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.hud__reticle i { position: absolute; inset: 40%; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 6px rgba(242, 179, 61, .25); }
@keyframes reticle { 0%, 100% { transform: translate(-50%, -50%); } 33% { transform: translate(calc(-50% + 18px), calc(-50% - 10px)); } 66% { transform: translate(calc(-50% - 12px), calc(-50% + 8px)); } }

.hud__readout {
  position: absolute; top: 18px; right: 22px;
  display: grid; grid-template-columns: auto auto; gap: 6px 16px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em;
  padding: 14px 16px; border-radius: 4px;
  background: rgba(8, 28, 21, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  font-variant-numeric: tabular-nums;
}
.hud__readout div { display: contents; }
.hud__readout dt { color: var(--signal); }
.hud__readout dd { color: #fff; text-align: right; }
.hud__rec { position: absolute; top: 18px; left: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: rgba(255, 255, 255, .9); }
.hud__rec span { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4a; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.hero__content { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vh, 96px); padding-top: 140px; }
.hero__kicker { color: var(--signal); margin-bottom: 26px; }
.hero__title {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 118;
  font-weight: 600;
  font-size: clamp(2.6rem, 7.4vw, 7.4rem);
  line-height: .94;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .18);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title em { color: var(--lichen); letter-spacing: -0.02em; }
@keyframes lineUp { to { transform: none; } }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero__lead { max-width: 34rem; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.65; color: rgba(255, 255, 255, .9); animation: fadeUp 1s .5s var(--ease-out) both; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp 1s .65s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px; z-index: 1; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(100px, 13vw, 180px); }
.manifesto__grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.manifesto__grid .kicker { align-self: start; margin-top: 14px; }
.manifesto__text {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  max-width: 980px;
}
.manifesto__text .w { transition: color .5s var(--ease); }
.js .manifesto__text .w { color: #aebdb3; }
.js .manifesto__text .w.on { color: var(--ink); }
.manifesto__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 90px); border-top: 1px solid var(--ink); }
.manifesto__facts div { padding: 22px 24px 0 0; }
.manifesto__facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.manifesto__facts dt { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; color: var(--leaf); font-variant-numeric: tabular-nums; }
.manifesto__facts dd { margin-top: 10px; font-size: .88rem; color: var(--muted); }

/* ---------- Seções genéricas ---------- */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 980px; justify-items: start; }
.section-head--split { max-width: none; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
.section-head--split > div { display: grid; gap: 20px; justify-items: start; }
.section-head--split .body { justify-self: end; }

/* ---------- Soluções: tour guiado pela rolagem ----------
   Cada painel ocupa uma célula de uma grade 2 × 3. A câmera percorre
   01 → 02 (direita) → 03 (baixo) → 04 (esquerda) → 05 (baixo). */
.tour { position: relative; height: calc((var(--n) - 1) * 150vh + 100vh); background: var(--canopy); }
.tour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--on-dark); }
.tour__canvas { position: absolute; inset: 0; will-change: transform; }
.panel { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 100%; height: 100%; overflow: hidden; background: var(--canopy); display: flex; align-items: flex-end; }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: center; will-change: transform; }
.panel__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 28, 21, .82) 0%, rgba(8, 28, 21, .35) 38%, rgba(8, 28, 21, 0) 62%),
    linear-gradient(90deg, rgba(8, 28, 21, .45) 0%, rgba(8, 28, 21, 0) 60%);
}
.panel__body { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; padding-bottom: clamp(70px, 12vh, 120px); }
.panel__body > * { transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.js .panel:not(.is-active) .panel__body > * { opacity: 0; transform: translateY(30px); }
.panel.is-active .panel__body > :nth-child(2) { transition-delay: .08s; }
.panel.is-active .panel__body > :nth-child(3) { transition-delay: .16s; }
.panel.is-active .panel__body > :nth-child(4) { transition-delay: .24s; }
.panel__meta { display: flex; gap: 18px; align-items: center; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.panel__n { color: var(--signal); }
.panel__code { color: var(--on-dark-2); padding-left: 18px; border-left: 1px solid var(--on-dark-line); }
.panel__title {
  font-family: var(--f-display); font-variation-settings: "wdth" 118; font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -0.035em;
  max-width: 13ch; text-wrap: balance;
}
.panel__title em { font-style: italic; font-weight: 300; font-variation-settings: "wdth" 100; color: var(--lichen); }
.panel__desc { max-width: 34rem; font-size: clamp(1rem, 1.25vw, 1.12rem); color: rgba(255, 255, 255, .88); }

.tour__top { position: absolute; top: calc(96px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 2; pointer-events: none; }

.tour__map {
  position: absolute; z-index: 3;
  right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(70px, 12vh, 120px);
  display: grid; gap: 10px; justify-items: end;
}
.tour__map-label { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.tour__grid {
  position: relative; display: grid; grid-template-columns: repeat(2, 52px); grid-template-rows: repeat(3, 34px); gap: 4px;
  padding: 8px; border-radius: 6px;
  background: rgba(8, 28, 21, .4); border: 1px solid var(--on-dark-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tour__cell {
  grid-column: calc(var(--x) + 1); grid-row: calc(var(--y) + 1);
  border: 1px solid var(--on-dark-line); border-radius: 3px;
  font-family: var(--f-mono); font-size: .62rem; color: var(--on-dark-2);
  display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s;
}
.tour__cell:hover { border-color: var(--on-dark); color: var(--on-dark); }
.tour__cell.is-active { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.tour__dot { position: absolute; left: 8px; top: 8px; width: 52px; height: 34px; border: 1.5px solid var(--signal); border-radius: 3px; pointer-events: none; will-change: transform; }

.tour__scope {
  position: absolute; z-index: 3; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600; color: var(--on-dark-2); transition: color .25s, gap .3s var(--ease);
}
.tour__scope:hover { color: var(--on-dark); gap: 16px; }
.tour__scope .btn__icon { width: 16px; height: 16px; }
.tour__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--on-dark-line); z-index: 3; }
.tour__bar i { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }

/* Movimento reduzido: painéis empilhados, sem câmera */
.tour--static { height: auto; }
.tour--static .tour__sticky { position: relative; height: auto; }
.tour--static .tour__canvas { position: relative; }
.tour--static .panel { position: relative; left: auto; top: auto; height: 100vh; height: 100svh; }
.tour--static .tour__map, .tour--static .tour__bar { display: none; }

/* ---------- Calculadora APP ---------- */
.app { position: relative; color: var(--on-dark); padding-block: clamp(100px, 12vw, 170px); overflow: hidden; isolation: isolate; background: var(--canopy) url("../media/rio-mata-ciliar-poster.webp") center / cover; }
.app__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.app__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 28, 21, .78) 0%, rgba(8, 28, 21, .45) 50%, rgba(8, 28, 21, .2) 100%); }
.app__grid { display: grid; grid-template-columns: 1fr 460px; gap: clamp(40px, 6vw, 100px); align-items: center; }
.app__copy { display: grid; gap: 24px; justify-items: start; }
.app__lead { color: var(--on-dark-2); max-width: 30rem; }

.calc {
  display: grid; gap: 14px;
  padding: 30px; border-radius: 8px;
  background: rgba(243, 247, 241, .95); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.calc__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc__river { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: 3rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--leaf) var(--p, 10%), var(--line) var(--p, 10%)); outline: none; margin: 10px 0 0; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--signal); border: 4px solid var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: grab; }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--signal); border: 4px solid var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: grab; }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.calc__scale { position: relative; height: 14px; margin-inline: 13px; font-family: var(--f-mono); font-size: .64rem; color: var(--muted); }
.calc__scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.calc__result { display: grid; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc__small { display: block; font-size: .82rem; color: var(--muted); }
.calc__result strong { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 600; font-size: 3.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--leaf); font-variant-numeric: tabular-nums; }
.calc__diagram { display: flex; height: 34px; border-radius: 4px; overflow: hidden; background: var(--lichen); }
.calc__bank { background: repeating-linear-gradient(135deg, var(--leaf) 0 6px, #3c8c64 6px 12px); transition: flex-grow .5s var(--ease); flex: 3 0 0; }
.calc__water { background: linear-gradient(180deg, #5aa3b8, #2f7e96); transition: flex-grow .5s var(--ease); flex: 1 0 0; }
.calc__note { font-size: .86rem; color: var(--ink-2); }
.calc__note span { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc .btn { margin-top: 8px; }
.calc__disclaimer { font-size: .72rem; color: var(--muted); line-height: 1.5; }

/* ---------- Método ---------- */
.method { padding-block: clamp(100px, 12vw, 160px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; border-top: 1px solid var(--line); }
.steps::before { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: var(--progress, 0%); background: var(--signal); }
.step { padding: 36px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--leaf); transition: color .4s var(--ease); }
.js .step__n { color: #b9c6bd; }
.js .step.is-active .step__n { color: var(--leaf); }
.step h3 { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.step p { font-size: .94rem; color: var(--ink-2); }
.step__out { margin-top: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Obras / métricas ---------- */
.works { position: relative; color: var(--on-dark); padding-block: clamp(120px, 14vw, 200px) clamp(60px, 7vw, 90px); overflow: hidden; isolation: isolate; background: var(--canopy) url("../media/estrada-obra-poster.webp") center / cover; }
.works__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.works__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 28, 21, .85) 0%, rgba(8, 28, 21, .35) 55%, rgba(8, 28, 21, .25) 100%); }
.works__inner { display: grid; gap: clamp(80px, 12vw, 160px); }
.works__head { display: grid; gap: 24px; max-width: 760px; justify-items: start; }
.works__metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--on-dark-line); }
.metric { display: grid; gap: 10px; padding: 26px 24px 0 0; align-content: start; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--on-dark-line); }
.metric__value { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 300; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.metric__label { font-size: .92rem; color: var(--on-dark-2); max-width: 16rem; }

/* ---------- Órgãos + citação ---------- */
.trust { padding-block: clamp(90px, 11vw, 150px); background: var(--paper); }
.agencies { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.agencies ul { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.agencies li { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; color: #8fa197; transition: color .3s; }
.agencies li:hover { color: var(--canopy); }
.quote { display: grid; grid-template-columns: 220px 1fr; gap: 28px 40px; margin-top: clamp(70px, 9vw, 120px); }
.quote blockquote { grid-column: 2; font-family: var(--f-display); font-variation-settings: "wdth" 104; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; }
.quote em { color: var(--leaf); }
.quote figcaption { grid-column: 2; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { background: var(--canopy); color: var(--on-dark); padding-block: clamp(100px, 13vw, 180px); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 88% 115%, transparent 0 38px, rgba(215, 232, 201, .08) 38px 39px);
}
.cta__inner { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; }
.cta__title { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 600; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.cta__title em { color: var(--signal); }
.cta__lead { color: var(--on-dark-2); max-width: 32rem; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--canopy); color: var(--on-dark); padding-block: 0 32px; font-size: .9rem; border-top: 1px solid var(--on-dark-line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr 1.1fr; gap: 56px; padding-top: 80px; }
.footer__brand p { margin: 22px 0 24px; color: var(--on-dark-2); max-width: 20rem; }
.footer .brand__mark { color: var(--signal); }
.socials { display: flex; gap: 10px; }
.socials a, .socials button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--on-dark-line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover, .socials button:hover { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.socials svg { width: 17px; height: 17px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer h4 { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.footer__cols a { display: block; padding: 5px 0; color: var(--on-dark-2); transition: color .25s; }
.footer__cols a:hover { color: var(--on-dark); }
.footer__news p { color: var(--on-dark-2); margin-bottom: 16px; }
.news-form { display: flex; align-items: center; border-bottom: 1px solid var(--on-dark-line); padding-bottom: 6px; transition: border-color .3s; }
.news-form:focus-within { border-color: var(--signal); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--on-dark); outline: none; padding: 10px 0; }
.news-form input::placeholder { color: rgba(243, 247, 241, .45); }
.news-form button { width: 40px; height: 40px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; flex: none; }
.news-form button svg { width: 18px; height: 18px; }
.footer__giant {
  font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(5rem, 24vw, 22rem); line-height: .8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(215, 232, 201, .22);
  margin: 70px 0 0; text-align: center; user-select: none; white-space: nowrap;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: .8rem; color: var(--on-dark-2); }
.footer__bottom a, .footer__bottom button { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--on-dark-line); text-underline-offset: 3px; }

/* ---------- Modais ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 28, 21, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s var(--ease); overflow-y: auto; }
.modal__panel { position: relative; width: 100%; max-width: 600px; background: var(--paper); color: var(--ink); border-radius: 8px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); animation: rise .45s var(--ease-out); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal__panel--wide { max-width: 880px; }
.modal__title { font-family: var(--f-display); font-variation-settings: "wdth" 115; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 16px 0 10px; }
.modal__intro { color: var(--muted); font-size: .94rem; margin-bottom: 26px; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .25s, color .25s; }
.modal__close:hover { background: var(--mist); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.chip { display: inline-block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal); padding: 6px 10px; border-radius: 3px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: .94rem; font-weight: 400; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; outline: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--leaf); background: #fff; box-shadow: 0 0 0 4px rgba(47, 122, 86, .12); }
.form .btn { margin-top: 6px; }
.form__note { text-align: center; font-size: .76rem; color: var(--muted); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.scope-item { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); display: grid; gap: 8px; align-content: start; }
.scope-item h3 { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.scope-item p { font-size: .88rem; color: var(--ink-2); }
.scope-item span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }

/* ---------- Toast ---------- */
.toast { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200; max-width: 420px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 6px; background: var(--canopy); color: var(--on-dark); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); font-size: .9rem; transform: translateY(16px); opacity: 0; transition: all .45s var(--ease); }
.toast.is-visible { transform: none; opacity: 1; }
.toast__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; flex: none; }
.toast__icon svg { width: 16px; height: 16px; }

/* ---------- Revelação na rolagem ---------- */
.js .rv { opacity: .001; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .hud__reticle { animation: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .app__grid { grid-template-columns: 1fr; }
  .calc { max-width: 520px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .nav.menu-open { background: var(--mist); color: var(--ink); }
  .hud__reticle { left: 72%; top: 30%; width: 70px; height: 70px; }
  .hud__readout { top: 12px; right: 12px; font-size: .64rem; padding: 10px 12px; gap: 4px 10px; }
  .hud__rec { top: 14px; left: 14px; font-size: .62rem; }
  .manifesto__grid, .quote { grid-template-columns: 1fr; gap: 24px; }
  .quote blockquote, .quote figcaption { grid-column: 1; }
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .body { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  .tour__map { right: auto; left: max(var(--gutter), env(safe-area-inset-left, 0px)); top: calc(92px + env(safe-area-inset-top, 0px)); bottom: auto; justify-items: start; }
  .tour__map-label, .tour__top { display: none; }
  .tour__grid { grid-template-columns: repeat(2, 34px); grid-template-rows: repeat(3, 22px); gap: 3px; padding: 6px; }
  .tour__dot { left: 6px; top: 6px; width: 34px; height: 22px; }
  .tour__cell span { display: none; }
  .panel__body { padding-bottom: 72px; gap: 16px; }
  .panel__body .btn { width: 100%; }
  body { font-size: 16px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.6rem); font-variation-settings: "wdth" 100; }
  .hero__ctas, .hero__ctas .btn, .cta__actions, .cta__actions .btn { width: 100%; }
  .hud__corner, .hud__rec, .hud__readout { display: none; }
  .hud__reticle { top: 22%; left: 78%; width: 56px; height: 56px; }
  .manifesto__facts { grid-template-columns: 1fr; }
  .manifesto__facts div, .manifesto__facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .calc { padding: 22px; }
  .calc__result strong { font-size: 3rem; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .works__metrics { grid-template-columns: 1fr; }
  .metric, .metric + .metric { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--on-dark-line); }
  .footer__top { grid-template-columns: 1fr; gap: 44px; }
  .footer__cols { grid-template-columns: 1fr 1fr; grid-row: auto; }
  .form__row, .scope-grid { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; }
}
