/* =========================================================
   ENGHIDRO — Engenharia e Hidrologia
   Tema: perfuração de furos de água
   Cores: sedimentos e água, todas claras
   Tipografia: Archivo (títulos) · Inter (texto) · IBM Plex Mono (leituras técnicas)
   ========================================================= */

@property --wx { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  /* sedimentos */
  --sand: #F4EDE1;
  --cream: #FBF8F2;
  --dune: #EFE3D0;
  --clay-bg: #F2E1D2;
  --ochre: #DDB46A;
  --laterite: #D4936A;
  --terra: #B06A42;
  --silt: #CFC6B8;
  --stone: #9D9385;
  /* água (azuis da marca) */
  --blue: #1677FF;
  --navy: #0B2C4A;
  --aqua: #2AA7D6;
  --water-bg: #E7F3F5;
  --water: linear-gradient(115deg, #1677FF 0%, #1E9FDB 48%, #3CC0DD 100%);

  /* texto */
  --ink: #1C2B36;
  --fg-soft: rgba(28, 43, 54, .68);
  --line: rgba(28, 43, 54, .12);
  --line-2: rgba(28, 43, 54, .22);
  --accent: var(--terra);

  --bg: var(--sand);
  --wave-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18'%3E%3Cpath d='M0 9 Q40 0 80 9 T160 9 V18 H0Z' fill='%231E9FDB'/%3E%3C/svg%3E");

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 4vw, 64px);
}

/* fundos (todos claros) */
.bg-sand { --bg: var(--sand); }
.bg-cream { --bg: var(--cream); }
.bg-dune { --bg: var(--dune); }
.bg-clay { --bg: var(--clay-bg); }
.bg-water { --bg: var(--water-bg); }
.bg-sand, .bg-cream, .bg-dune, .bg-clay, .bg-water { background-color: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sand); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 18px; }
[hidden] { display: none !important; }
::selection { background: var(--ochre); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

main > section, .footer { position: relative; overflow-x: clip; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: ""; width: 26px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--laterite) 0 33%, var(--ochre) 33% 66%, var(--aqua) 66%);
}
.display {
  margin: 0 0 30px; font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 5vw, 82px); line-height: 1.02; letter-spacing: -.035em; color: var(--ink);
}
.display em, .contact__title em, .hero__headline em { font-style: normal; }
.water-text {
  background-image: var(--water); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: flow 6s ease-in-out infinite alternate;
}
@keyframes flow { to { background-position: 100% 0; } }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.lede strong { color: var(--blue); font-weight: 600; }
.line { display: block; overflow: hidden; padding: .1em 0 .08em; margin: -.1em 0 -.08em; }
.line__in { display: block; will-change: transform; }

.fill-text {
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.3px var(--aqua);
  background-image: var(--wave-img), linear-gradient(#1E9FDB, #1677FF);
  background-repeat: repeat-x, no-repeat;
  background-size: 160px 18px, 100% var(--fill, 0%);
  background-position: left var(--wx) bottom var(--fill, 0%), left 0 bottom 0;
  -webkit-background-clip: text; background-clip: text;
  animation: waveX 2.6s linear infinite;
}
@keyframes waveX { to { --wx: 160px; } }

/* ---------- Camadas de sedimentos entre secções ---------- */
.strata { position: absolute; left: 0; right: 0; top: -58px; height: 60px; z-index: 5; overflow: hidden; pointer-events: none; color: var(--bg); }
.strata svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.strata .s1 { color: #E7C29E; animation: slide 40s linear infinite; }
.strata .s2 { color: #EDD3A6; animation: slide 28s linear infinite reverse; }
.strata .s3 { animation: slide 55s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.has-strata { z-index: 2; }

/* ---------- Botões e links ---------- */
.u-link { position: relative; display: inline-block; }
.u-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

.pill {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; font-weight: 600;
  transition: background .4s, color .4s, border-color .4s;
}
.pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn-main {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; padding: 18px 34px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 18px 40px -20px rgba(11, 44, 74, .7);
}
.btn-main::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 105%; height: 160%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0Z' fill='%231E9FDB'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 80px 12px,
    linear-gradient(#1E9FDB, #1677FF) no-repeat left 0 top 11px / 100% 100%;
  transition: top .8s var(--ease); animation: waveX 1.6s linear infinite;
}
.btn-main:hover::before { top: -30%; }
.btn-main span { position: relative; }
.btn-main--block { width: 100%; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; padding: 18px 30px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
  transition: background .4s, color .4s, border-color .4s;
}
.btn-line:hover { background: var(--ochre); border-color: var(--ochre); }

/* ---------- Detritos ao clicar ---------- */
.debris {
  position: fixed; z-index: 400; pointer-events: none; left: 0; top: 0;
  width: var(--s, 6px); height: var(--s, 6px); margin: calc(var(--s, 6px) / -2) 0 0 calc(var(--s, 6px) / -2);
  border-radius: 35% 65% 50% 40%; background: var(--c);
  animation: debris .9s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes debris {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  55% { transform: translate(calc(var(--dx) * .8), var(--dy)) rotate(calc(var(--r) * .6)); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 46px)) rotate(var(--r)); opacity: 0; }
}
.splash {
  position: fixed; z-index: 399; pointer-events: none; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 1.5px solid rgba(30, 159, 219, .7);
  animation: splash .9s var(--ease) forwards;
}
@keyframes splash { from { transform: scale(.3); opacity: 1; } to { transform: scale(5); opacity: 0; } }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--cream);
  clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease-io);
  animation: loaderFailSafe 0s 7s forwards;
}
.loader.is-done { clip-path: inset(100% 0 0 0); }
@keyframes loaderFailSafe { to { clip-path: inset(100% 0 0 0); visibility: hidden; } }
.loader__inner { width: min(300px, 76vw); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__logo { width: 92px; }
.loader__core { position: relative; width: 100%; height: 150px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); }
.loader__layer { flex: 1; background: var(--c); background-image: radial-gradient(rgba(28, 43, 54, .1) 1px, transparent 1.5px); background-size: 8px 8px; }
.loader__bore { position: absolute; left: 50%; top: 0; width: 16px; margin-left: -8px; height: calc(var(--d, 0) * 100%); background: rgba(28, 43, 54, .16); border-radius: 0 0 4px 4px; }
.loader__bit { position: absolute; left: -4px; bottom: -14px; width: 24px; height: 18px; background: linear-gradient(90deg, #3E4A55, #8C99A5, #3E4A55); background-size: 200% 100%; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: bitSpin .2s linear infinite; }
.loader__row { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-soft); }
.loader__count { color: var(--blue); font-weight: 600; }
@keyframes bitSpin { to { background-position: -200% 0; } }

/* ---------- Cursor (mira de topografia) ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
.cursor__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--terra); }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease); }
.cursor__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(176, 106, 66, .7);
  background:
    linear-gradient(var(--terra), var(--terra)) center top / 1.5px 7px no-repeat,
    linear-gradient(var(--terra), var(--terra)) center bottom / 1.5px 7px no-repeat,
    linear-gradient(var(--terra), var(--terra)) left center / 7px 1.5px no-repeat,
    linear-gradient(var(--terra), var(--terra)) right center / 7px 1.5px no-repeat;
  animation: spin 8s linear infinite;
  transition: background-color .4s, border-color .4s;
}
.cursor__label { position: relative; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
.cursor.is-hover .cursor__ring::before { background-color: rgba(221, 180, 106, .18); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor.is-label .cursor__ring::before { background-color: var(--navy); border-color: var(--navy); animation: none; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Medidor de profundidade ---------- */
.depthmeter {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(251, 248, 242, .88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(28, 43, 54, .4);
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s var(--ease);
}
.depthmeter.is-on { opacity: 1; transform: none; }
.depthmeter__bar { position: relative; width: 8px; height: 34px; border-radius: 4px; overflow: hidden; background: linear-gradient(#E7C29E, #D9A585 35%, #CFC6B8 70%, #BFE3EF); }
.depthmeter__bar i { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 100%); background: rgba(28, 43, 54, .55); }
.depthmeter__val { min-width: 54px; }
.depthmeter__up { color: var(--blue); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--pad);
  transition: transform .7s var(--ease), background .5s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(rgba(251, 248, 242, .94), rgba(251, 248, 242, 0)); }
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 32px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.burger { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); z-index: 130; background: rgba(251, 248, 242, .6); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .6s var(--ease), top .6s 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); }
.nav.menu-open .nav__links, .nav.menu-open .pill { opacity: 0; pointer-events: none; }

.overlay {
  position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 40px;
  background:
    linear-gradient(180deg, transparent 72%, #EDD3A6 72% 80%, #E7C29E 80% 88%, #D9C9B4 88% 94%, #BFE3EF 94%),
    var(--cream);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.overlay__nav { display: flex; flex-direction: column; }
.overlay__nav a {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.6vw, 76px); line-height: 1.12; letter-spacing: -.035em;
  opacity: 0; transform: translateY(30px); transition: color .4s, padding .6s var(--ease);
}
.overlay.is-open .overlay__nav a { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s, padding .6s var(--ease); }
.overlay.is-open .overlay__nav a:nth-child(1) { transition-delay: .2s; }
.overlay.is-open .overlay__nav a:nth-child(2) { transition-delay: .25s; }
.overlay.is-open .overlay__nav a:nth-child(3) { transition-delay: .3s; }
.overlay.is-open .overlay__nav a:nth-child(4) { transition-delay: .35s; }
.overlay.is-open .overlay__nav a:nth-child(5) { transition-delay: .4s; }
.overlay.is-open .overlay__nav a:nth-child(6) { transition-delay: .45s; }
.overlay.is-open .overlay__nav a:nth-child(7) { transition-delay: .5s; }
.overlay__nav a i { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--terra); }
.overlay__nav a:hover { color: var(--blue); padding-left: 20px; }
.overlay__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 50px; font-family: var(--mono); font-size: 12px; color: var(--fg-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  display: flex; align-items: center; padding: 110px var(--pad) 90px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 72% 40%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(172deg, #FBF8F2 0%, #F4EDE1 60%, #EBDCC5 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__fallback { position: absolute; z-index: 0; right: var(--pad); top: 50%; transform: translateY(-50%); width: 38%; max-width: 520px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 28px; }
html.webgl .hero__fallback { display: none; }
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__headline { margin: 0 0 26px; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.1vw, 70px); line-height: 1; letter-spacing: -.04em; }
.hero__lead { max-width: 31em; margin: 0 0 32px; color: var(--fg-soft); font-size: clamp(15px, 1.1vw, 17px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rig-panel {
  position: absolute; z-index: 2; right: var(--pad); bottom: 92px;
  display: flex; gap: 0; border-radius: 16px; overflow: hidden;
  background: rgba(251, 248, 242, .82); backdrop-filter: blur(10px); border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(28, 43, 54, .5);
}
.rig-panel > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-left: 1px solid var(--line); min-width: 110px; }
.rig-panel > div:first-child { border-left: 0; }
.rig-panel span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.rig-panel b { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rig-panel b#rigStatus { color: var(--terra); }
.rig-panel.is-water b#rigStatus { color: var(--blue); }
.scroll-hint {
  position: absolute; z-index: 2; left: var(--pad); bottom: 92px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft);
}
.scroll-hint__line { position: relative; width: 2px; height: 46px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--terra); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Empresa ---------- */
.about { padding: clamp(120px, 13vw, 180px) 0 clamp(90px, 10vw, 140px); }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; margin-bottom: clamp(70px, 8vw, 110px); }
.about__copy p:not(.kicker):not(.lede) { color: var(--fg-soft); max-width: 36em; }
.about__media { position: relative; height: clamp(420px, 42vw, 580px); }
.about__img { position: absolute; margin: 0; overflow: hidden; border-radius: 24px; box-shadow: 0 40px 80px -45px rgba(28, 43, 54, .6); }
.about__img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; max-width: none; object-fit: cover; }
.about__img--a { left: 0; top: 0; width: 64%; height: 76%; }
.about__img--b { right: 0; bottom: 0; width: 56%; height: 54%; border: 6px solid var(--bg); }
.about__badge {
  position: absolute; left: 4%; bottom: 0; z-index: 2; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--ochre); color: var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35;
  animation: bob 5s ease-in-out infinite;
}
.about__badge b { display: block; font-family: var(--display); font-size: 32px; letter-spacing: -.03em; }
@keyframes bob { 50% { transform: translateY(-9px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  position: relative; overflow: hidden; padding: 34px 26px 36px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #E7C29E, #EDD3A6, #CFC6B8, #BFE3EF); }
.stat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(28, 43, 54, .45); }
.stat__num { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(52px, 6vw, 100px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .38em; -webkit-text-fill-color: var(--blue); -webkit-text-stroke: 0; }
.stat__label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- Política ---------- */
.policy { padding: clamp(120px, 13vw, 180px) 0 0; }
.policy__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.policy__text p { color: var(--fg-soft); }
.mvv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mvv__card {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 4vw, 50px); border-radius: 26px;
  background: var(--cream); border: 1px solid var(--line);
}
.mvv__card::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 100%; height: 120%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0Z' fill='%23BFE3EF'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 80px 12px,
    linear-gradient(#BFE3EF, #DDF0F5) no-repeat left 0 top 11px / 100% 100%;
  transition: top 1.2s var(--ease); animation: waveX 2s linear infinite;
}
.mvv__card:hover::before { top: 12%; }
.mvv__n { display: inline-block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.mvv__card p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; }

.ticker { overflow: hidden; padding: clamp(50px, 7vw, 100px) 0; }
.ticker__track { display: flex; align-items: center; gap: 3.4vw; width: max-content; will-change: transform; }
.ticker span { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 150px); line-height: 1.1; letter-spacing: -.045em; white-space: nowrap; will-change: transform; }
.ticker span.outline { color: transparent; -webkit-text-stroke: 1.5px var(--laterite); font-weight: 600; }
.ticker b { width: 26px; height: 20px; flex: none; background: var(--ochre); border-radius: 46% 54% 40% 60% / 55% 45% 60% 40%; }

/* ---------- Secções genéricas ---------- */
.section-top { margin-bottom: clamp(44px, 6vw, 84px); }
.section-top--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-top__aside { color: var(--fg-soft); max-width: 28em; justify-self: end; }

/* ---------- Serviços ---------- */
.services { padding: clamp(120px, 13vw, 180px) 0; }
.tabs { position: relative; display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 36px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-soft); transition: color .4s; }
.tab.is-active { color: #fff; }
.tabs__fill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: var(--tx, 6px); width: var(--tw, 0px); border-radius: 999px; background: var(--navy); transition: left .7s var(--ease), width .7s var(--ease); }
.tabpanel.is-active .row { animation: rowIn 1s var(--ease) both; }
.tabpanel.is-active .row:nth-child(2) { animation-delay: .06s; }
.tabpanel.is-active .row:nth-child(3) { animation-delay: .12s; }
.tabpanel.is-active .row:nth-child(4) { animation-delay: .18s; }
.tabpanel.is-active .row:nth-child(5) { animation-delay: .24s; }
.tabpanel.is-active .row:nth-child(6) { animation-delay: .3s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(26px); } }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: clamp(22px, 2.4vw, 34px) 0; border-top: 1px solid var(--line); }
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px;
  background: linear-gradient(90deg, rgba(221, 180, 106, .22), rgba(221, 180, 106, 0) 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.row__n { padding-top: 14px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--terra); }
.row__body { display: flex; flex-direction: column; gap: 14px; }
.row__t { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 62px); line-height: 1.04; letter-spacing: -.04em; transition: color .5s, transform .7s var(--ease); }
.row__thumb { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { transform: scaleX(1); }
  .row:hover .row__t { color: var(--blue); transform: translateX(22px); }
}
.hover-img {
  position: fixed; left: 0; top: 0; z-index: 90; width: 280px; height: 360px; margin: -180px 0 0 -140px;
  pointer-events: none; overflow: hidden; border-radius: 24px;
  clip-path: inset(100% 0 0 0 round 24px); transition: clip-path .7s var(--ease);
}
.hover-img.is-on { clip-path: inset(0 0 0 0 round 24px); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1s var(--ease); }
.hover-img.is-on img { transform: scale(1); }

/* ---------- Máquinas (ilustrações animadas) ---------- */
.machines { padding: clamp(120px, 13vw, 180px) 0; }
.machine-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.machine { padding: 14px 14px 24px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s; }
.machine:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(28, 43, 54, .5); }
.machine__art { width: 100%; height: auto; border-radius: 16px; margin-bottom: 18px; background: linear-gradient(#EAF5F8, #F7F0E4); }
.machine h3 { margin: 0 8px 6px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.machine p { margin: 0 8px; font-size: 14px; line-height: 1.55; color: var(--fg-soft); }
.machine__art * { transform-box: fill-box; transform-origin: center; }
.machine__art .ground { fill: #E6CDA9; }
/* perfuradora */
.m-rig .frame { fill: none; stroke: #D69A3C; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m-rig .head { fill: #E8B04A; animation: feed 2.4s ease-in-out infinite alternate; }
.m-rig .pipe rect { fill: #8C949C; }
.m-rig .pipe { animation: feed 2.4s ease-in-out infinite alternate; transform-origin: top; }
.m-rig .bit { animation: feed 2.4s ease-in-out infinite alternate; }
.m-rig .bit path { fill: #5D6670; animation: spinX .18s linear infinite alternate; }
.m-rig .bit line { stroke: #B9C2CA; stroke-width: 1.5; }
.m-rig .chips-fx circle { fill: #C98A5E; animation: chip 1s ease-out infinite; }
.m-rig .chips-fx circle:nth-child(2) { animation-delay: .25s; --cx: 1; }
.m-rig .chips-fx circle:nth-child(3) { animation-delay: .5s; }
.m-rig .chips-fx circle:nth-child(4) { animation-delay: .75s; }
@keyframes feed { to { transform: translateY(8px); } }
@keyframes spinX { to { transform: scaleX(.55); } }
@keyframes chip { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, -18px); opacity: 0; } }
/* martelo */
.m-hammer .ground { fill: #CFC6B8; }
.m-hammer .hole { fill: #B4AA9C; }
.m-hammer .hammer rect { fill: #8C949C; }
.m-hammer .hammer path { fill: #5D6670; }
.m-hammer .hammer { animation: pound .32s cubic-bezier(.5, 0, .9, .5) infinite alternate; }
.m-hammer .sparks line { stroke: #E8B04A; stroke-width: 2.5; stroke-linecap: round; animation: flick .32s steps(2) infinite; }
@keyframes pound { from { transform: translateY(-8px); } to { transform: translateY(2px); } }
@keyframes flick { 50% { opacity: 0; } }
/* compressor */
.m-comp .body { fill: #E8B04A; }
.m-comp .grill { fill: #D69A3C; }
.m-comp .wheel { fill: #4A535C; }
.m-comp .dial { fill: #fff; stroke: #4A535C; stroke-width: 2; }
.m-comp .needle { stroke: #B06A42; stroke-width: 2.5; stroke-linecap: round; transform-origin: 50% 100%; animation: needle 1.6s ease-in-out infinite alternate; }
.m-comp .puffs circle { fill: #fff; stroke: #CFE6EE; animation: puff 1.8s ease-out infinite; }
.m-comp .puffs circle:nth-child(2) { animation-delay: .6s; }
.m-comp .puffs circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes needle { from { transform: rotate(-55deg); } to { transform: rotate(50deg); } }
@keyframes puff { 0% { transform: translate(-14px, 12px) scale(.3); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(8px, -8px) scale(1.2); opacity: 0; } }
/* bomba solar */
.m-pump .ground { fill: #E6CDA9; }
.m-pump .aquifer { fill: #BFE3EF; }
.m-pump .sun circle { fill: #F2C14E; }
.m-pump .rays line { stroke: #F2C14E; stroke-width: 2.5; stroke-linecap: round; }
.m-pump .rays { animation: spin 10s linear infinite; }
.m-pump .panel { fill: #2E5E8C; }
.m-pump .pipe { fill: #8C949C; }
.m-pump .impeller circle { fill: #1677FF; }
.m-pump .impeller line { stroke: #fff; stroke-width: 2; }
.m-pump .impeller { animation: spin 1s linear infinite; }
.m-pump .drops path { fill: #2AA7D6; animation: fall 1.2s ease-in infinite; opacity: 0; }
.m-pump .drops path:nth-child(2) { animation-delay: .4s; }
.m-pump .drops path:nth-child(3) { animation-delay: .8s; }
@keyframes fall { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--fx, 26px), 20px); opacity: 0; } }
.m-pump .drops path:nth-child(2) { --fx: -24px; }
.m-pump .drops path:nth-child(3) { --fx: 6px; }
/* compactador */
.m-compactor .plate { fill: #5D6670; }
.m-compactor .engine { fill: #E8B04A; }
.m-compactor .handle { fill: none; stroke: #4A535C; stroke-width: 4; stroke-linecap: round; }
.m-compactor .jumper { animation: jump .2s ease-in-out infinite alternate; }
.m-compactor .dust circle { fill: #DCC4A0; animation: dust 1s ease-out infinite; }
.m-compactor .dust circle:nth-child(2n) { animation-delay: .5s; }
@keyframes jump { to { transform: translateY(-7px); } }
@keyframes dust { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2) translateY(-6px); opacity: 0; } }

/* ---------- Captação: medidor de furo ---------- */
.drill { height: 260vh; }
.drill__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.drill__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding-top: 40px; }
.drill__copy .display { margin-bottom: 20px; }
.drill__lead { color: var(--fg-soft); max-width: 34em; }
.methods { display: grid; gap: 10px; margin-top: 22px; }
.method { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 15px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease); }
.method:hover { transform: translateX(6px); }
.method__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ochre); font-family: var(--mono); font-weight: 600; }
.method h3 { margin: 0 0 2px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.method p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-soft); }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gauge__depth { font-family: var(--mono); font-weight: 600; font-size: clamp(54px, 6vw, 100px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gauge__depth small { font-size: .34em; color: var(--blue); margin-left: 4px; }
.gauge__col { position: relative; width: min(100%, 440px); height: min(58vh, 520px); display: grid; grid-template-columns: 1fr 84px 40px; gap: 12px; }
.gauge__strata { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(28, 43, 54, .6); }
.gauge__strata span {
  flex: 0 0 var(--h); display: flex; align-items: center; padding: 0 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(28, 43, 54, .72);
  background-image: radial-gradient(rgba(28, 43, 54, .12) 1px, transparent 1.5px); background-size: 9px 9px;
}
.gauge__strata span:nth-child(1) { background-color: #ECD4B4; }
.gauge__strata span:nth-child(2) { background-color: #E2BE96; }
.gauge__strata span:nth-child(3) { background-color: #D8CEC0; }
.gauge__strata span:nth-child(4) { background-color: #C4BCB0; }
.gauge__strata .is-aquifer {
  background-color: #BFE3EF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6' fill='none' stroke='%231E9FDB' stroke-opacity='.4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 12px; background-position: left var(--wx) center;
  color: #0F5E8A; animation: waveX 2.4s linear infinite;
}
.gauge__bore { position: relative; border-radius: 14px; background: rgba(28, 43, 54, .05); border: 1px solid var(--line); overflow: hidden; }
.gauge__casing { position: absolute; left: 50%; top: 0; width: 26px; margin-left: -13px; height: calc(var(--d, 0) * 100%); background: repeating-linear-gradient(180deg, #A9B4BC 0 10px, #D6DDE2 10px 12px); }
.gauge__bit { position: absolute; left: 50%; top: calc(var(--d, 0) * 100%); width: 34px; height: 28px; margin: -6px 0 0 -17px; background: linear-gradient(90deg, #3E4A55, #8C99A5, #3E4A55); background-size: 200% 100%; clip-path: polygon(0 0, 100% 0, 80% 55%, 50% 100%, 20% 55%); animation: bitSpin .25s linear infinite; }
.gauge.is-done .gauge__bit { opacity: 0; transition: opacity .6s; }
.gauge__water {
  position: absolute; left: 50%; bottom: 0; width: 26px; margin-left: -13px; height: calc(var(--w, 0) * 100%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M0 4 Q6.5 0 13 4 T26 4 V8 H0Z' fill='%231E9FDB'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 26px 8px,
    linear-gradient(#1E9FDB, #1677FF) no-repeat left 0 top 7px / 100% 100%;
  animation: waveX 1.2s linear infinite;
}
.gauge__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--fg-soft); }
.gauge__status { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.gauge.is-done .gauge__status { color: #fff; background: var(--water); padding: 8px 16px; border-radius: 999px; }

/* ---------- Engenharia 3D ---------- */
.engine { height: 520vh; }
.engine__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.engine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.engine__head { position: absolute; z-index: 2; left: var(--pad); top: clamp(90px, 12vh, 140px); pointer-events: none; }
.engine__head .display { margin: 0; }
.engine__steps { position: absolute; z-index: 2; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(360px, 32vw); margin: 0; padding: 0; list-style: none; }
.engine__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); opacity: .32; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.engine__steps li:last-child { border-bottom: 1px solid var(--line); }
.engine__steps li.is-active { opacity: 1; transform: translateX(-12px); }
.engine__n { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--terra); padding-top: 4px; }
.engine__steps h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.engine__steps p { margin: 0; font-size: 14px; color: var(--fg-soft); }
.engine__progress { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 36px; height: 3px; border-radius: 3px; background: var(--line); }
.engine__progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #D4936A, #DDB46A, #1E9FDB); transform: scaleX(0); transform-origin: left; }
.engine__hint { position: absolute; z-index: 2; left: var(--pad); bottom: 50px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }

/* ---------- Metodologia ---------- */
.method-s { padding: clamp(120px, 13vw, 180px) 0; }
.pipe { position: relative; --p: 0; }
.pipe__svg { display: block; width: 100%; height: 120px; overflow: visible; }
.pipe__track { fill: none; stroke: rgba(28, 43, 54, .08); stroke-width: 16; stroke-linecap: round; }
.pipe__flow { fill: none; stroke: #1E9FDB; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(30, 159, 219, .45)); }
.phases { list-style: none; margin: -88px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.phase { text-align: center; padding: 0 12px; opacity: .5; transition: opacity .6s; }
.phase.is-on { opacity: 1; }
.phase__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
  font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--fg-soft);
  transition: background .6s, border-color .6s, color .6s, box-shadow .6s, transform .6s var(--ease);
}
.phase.is-on .phase__dot { background: var(--water); border-color: transparent; color: #fff; transform: scale(1.08); box-shadow: 0 0 0 10px rgba(30, 159, 219, .12); }
.phase h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.phase p { margin: 0; font-size: 14px; color: var(--fg-soft); }

/* ---------- Gestão de obra ---------- */
.manage { padding: clamp(120px, 13vw, 180px) 0; }
.steps-grid { list-style: none; margin: 0 0 clamp(70px, 8vw, 110px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps-grid li {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 128px;
  padding: 22px 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.01em;
  transition: color .5s;
}
.steps-grid li span { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--terra); transition: color .5s; }
.steps-grid li::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 100%; height: 130%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6 V12 H0Z' fill='%23DDB46A'/%3E%3C/svg%3E") repeat-x left var(--wx) top / 80px 12px,
    linear-gradient(#DDB46A, #E6C68A) no-repeat left 0 top 11px / 100% 100%;
  transition: top .9s var(--ease); animation: waveX 1.8s linear infinite;
}
.steps-grid li:hover::before { top: -20%; }
.team { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.team__title { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.team__copy p { color: var(--fg-soft); }
.team__copy strong { color: var(--blue); }
.bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bubbles li { padding: 11px 18px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: 14px; font-weight: 500; animation: bob 4.5s ease-in-out infinite; transition: background .4s; }
.bubbles li:nth-child(3n + 1) { animation-delay: -1s; }
.bubbles li:nth-child(3n + 2) { animation-delay: -2.3s; animation-duration: 5.5s; }
.bubbles li:hover { background: var(--ochre); }

/* ---------- Organograma ---------- */
.org { padding: clamp(120px, 13vw, 180px) 0; }
.tree { display: flex; flex-direction: column; align-items: center; }
.node { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 28px; border-radius: 20px; text-align: center; background: #fff; border: 1px solid var(--line-2); }
.node__k { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.node b { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.node--top { padding: 22px 44px; background: var(--navy); border-color: var(--navy); color: #fff; }
.node--top .node__k { color: var(--ochre); }
.tree__branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 1080px; margin-top: 70px; }
.tree__branches::before, .branch::before, .leaves::before {
  background: linear-gradient(180deg, rgba(30, 159, 219, .15) 0%, #1E9FDB 50%, rgba(30, 159, 219, .15) 100%);
  background-size: 100% 200%; animation: flowV 1.8s linear infinite;
}
@keyframes flowV { to { background-position: 0 -200%; } }
.tree__branches::before { content: ""; position: absolute; top: -70px; left: 50%; width: 3px; height: 35px; margin-left: -1.5px; }
.tree__branches::after { content: ""; position: absolute; top: -35px; left: 25%; right: 25%; height: 3px; background: linear-gradient(90deg, rgba(30, 159, 219, .2), #1E9FDB, rgba(30, 159, 219, .2)); background-size: 200% 100%; animation: flowH 2.2s linear infinite; }
@keyframes flowH { to { background-position: -200% 0; } }
.branch { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 clamp(10px, 2.5vw, 40px); }
.branch::before { content: ""; position: absolute; top: -35px; left: 50%; width: 3px; height: 35px; margin-left: -1.5px; }
.leaves { position: relative; list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.leaves::before { content: ""; position: absolute; top: -30px; left: 22px; width: 3px; bottom: 24px; }
.leaves li { position: relative; padding: 13px 18px 13px 50px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-size: 15px; font-weight: 500; transition: background .4s, transform .5s var(--ease); }
.leaves li::before { content: ""; position: absolute; left: 22px; top: 50%; width: 18px; height: 3px; background: #1E9FDB; }
.leaves li:hover { background: #fff; transform: translateX(6px); }

/* ---------- Obras ---------- */
.works__sticky { padding: clamp(90px, 10vw, 140px) 0 60px; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 0 30px; margin-bottom: 36px; }
.works__head .kicker { width: 100%; }
.works__head .display { margin: 0; }
.works__count { font-family: var(--mono); font-size: 18px; color: var(--fg-soft); }
.works__count span:first-child { color: var(--blue); font-weight: 600; }
.works__track { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 32px); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.works__track::-webkit-scrollbar { display: none; }
.card { flex: none; margin: 0; scroll-snap-align: start; cursor: zoom-in; }
.card__img { position: relative; overflow: hidden; height: min(56vh, 520px); aspect-ratio: 4 / 3; background: var(--dune); border-radius: 22px; }
.card--tall .card__img { aspect-ratio: 3 / 4; }
.card__img img { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none; object-fit: cover; transform: translate3d(var(--px, 0), 0, 0) scale(var(--s, 1)); transition: transform .9s var(--ease); }
.card:hover .card__img img { --s: 1.06; filter: url(#ripple); }
.card figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.card figcaption b { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.card figcaption span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--terra); padding-top: 6px; white-space: nowrap; }
.works.is-pinned .works__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0; overflow: hidden; }
.works.is-pinned .works__track { overflow: visible; scroll-snap-type: none; will-change: transform; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(120px, 13vw, 190px) 0 clamp(90px, 10vw, 140px); }
.contact__title { margin: 0 0 clamp(50px, 7vw, 90px); font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.6vw, 118px); line-height: .98; letter-spacing: -.05em; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 120px); }
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.5vw, 21px); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }
.contact__list p { margin: 0; }
.contact__list a { overflow-wrap: anywhere; }
.form { padding: clamp(26px, 4vw, 50px); border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(28, 43, 54, .45); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; display: block; margin-bottom: 26px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  font: inherit; font-size: 17px; color: var(--ink); border-radius: 0; transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field--select::after { content: "↓"; position: absolute; right: 2px; bottom: 14px; color: var(--terra); pointer-events: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field span { position: absolute; left: 0; top: 28px; font-size: 15px; color: var(--fg-soft); pointer-events: none; transform-origin: left; transition: transform .5s var(--ease), color .4s, top .5s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field--select span { top: 0; transform: scale(.74); color: var(--terra); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D9534F; }
.form__note { margin: 14px 0 0; font-size: 13px; color: var(--fg-soft); text-align: center; }

/* ---------- Rodapé ---------- */
.footer { padding: 70px 0 30px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__logo { height: 76px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; font-weight: 500; color: var(--fg-soft); }
.footer__nav a:hover { color: var(--ink); }
.to-top { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; transition: background .4s; }
.to-top:hover { background: var(--ochre); }
.footer__word { --fill: 60%; margin: 40px 0 10px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 15.5vw; line-height: .9; letter-spacing: -.06em; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-right: 150px; font-family: var(--mono); font-size: 12px; color: var(--fg-soft); }
.credit a { color: var(--blue); font-weight: 600; }
.credit__heart { display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.15); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 70px 90px; background: rgba(32, 26, 20, .93); backdrop-filter: blur(10px); color: #FBF8F2; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 16px; transform: scale(.96); transition: transform .8s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.lightbox figcaption span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ochre); }
.lightbox button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(251, 248, 242, .3); font-size: 18px; transition: background .4s; }
.lightbox button:hover { background: var(--ochre); color: var(--ink); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .machine-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .engine__steps { width: min(330px, 40vw); }
}
@media (max-width: 900px) {
  .nav { padding: 14px var(--pad); }
  .nav__logo { height: 26px; }
  .pill { display: none; }
  .strata { top: -40px; height: 42px; }

  .hero { display: block; height: auto; min-height: 0; padding-top: calc(70px + min(48svh, 104vw)); padding-bottom: 80px; }
  .hero__content { max-width: none; }
  .hero__headline { font-size: clamp(36px, 10vw, 54px); }
  .rig-panel { left: var(--pad); right: var(--pad); bottom: auto; top: calc(70px + min(48svh, 104vw) - 70px); }
  .rig-panel > div { flex: 1; min-width: 0; padding: 10px 12px; }
  .rig-panel b { font-size: 14px; }
  .scroll-hint { display: none; }
  .hero__fallback { right: 50%; transform: translateX(50%); top: 80px; width: 70%; }

  .about__grid, .policy__top, .mvv__grid, .team, .contact__grid, .section-top--split { grid-template-columns: 1fr; }
  .section-top__aside { justify-self: start; }
  .about__media { height: 420px; }

  .row { grid-template-columns: 34px 1fr 64px; gap: 12px; }
  .row__n { padding-top: 8px; }
  .row__thumb { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
  .hover-img { display: none; }

  .machine-grid { grid-template-columns: 1fr 1fr; }

  .drill { height: auto; padding: 120px 0 100px; }
  .drill__sticky { position: static; height: auto; display: block; overflow: visible; }
  .drill__grid { grid-template-columns: 1fr; padding-top: 0; }
  .gauge__col { height: 430px; }

  .engine { height: 460vh; }
  .engine__head { top: 80px; }
  .engine__steps { left: var(--pad); right: var(--pad); top: auto; bottom: 70px; width: auto; transform: none; }
  .engine__steps li { position: absolute; left: 0; right: 0; bottom: 0; border: 0 !important; padding: 16px 18px; border-radius: 16px; background: rgba(251, 248, 242, .9); backdrop-filter: blur(8px); opacity: 0; transform: translateY(16px); border-left: 3px solid var(--terra) !important; }
  .engine__steps li.is-active { opacity: 1; transform: none; }
  .engine__hint { display: none; }

  .pipe__svg { display: none; }
  .phases { position: relative; margin: 0; grid-template-columns: 1fr; }
  .phases::before { content: ""; position: absolute; left: 26px; top: 28px; bottom: 60px; width: 4px; border-radius: 4px; background: rgba(28, 43, 54, .08); }
  .phases::after { content: ""; position: absolute; left: 26px; top: 28px; bottom: 60px; width: 4px; border-radius: 4px; background: linear-gradient(#1E9FDB, #1677FF); transform-origin: top; transform: scaleY(var(--p)); }
  .phase { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0 0 30px; }
  .phase__dot { grid-row: span 2; margin: 0; }
  .phase h3 { align-self: end; margin-top: 4px; }

  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid li { min-height: 108px; font-size: 15.5px; padding: 16px; }
  .tree__branches { grid-template-columns: 1fr; gap: 60px; }
  .tree__branches::before, .tree__branches::after { display: none; }
  .branch::before { top: -60px; height: 60px; }

  .card__img { height: 46vh; }
  .card__img, .card--tall .card__img { max-width: 82vw; }
  .card figcaption { flex-direction: column; gap: 2px; }
  .card figcaption span { padding-top: 0; }
  .depthmeter { right: 12px; bottom: 12px; }
  .footer__bottom { padding-right: 0; padding-bottom: 60px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 12px 8px; font-size: 12.5px; }
  .machine-grid { grid-template-columns: 1fr; }
  .stat { padding: 24px 16px 28px; }
  .gauge__col { grid-template-columns: 1fr 62px 30px; height: 400px; }
  .about__badge { width: 104px; height: 104px; }
  .lightbox { padding: 80px 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .footer__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .loader { display: none; }
}

/* =========================================================
   Sobre nós — pela fundadora
   ========================================================= */
.founder-s { padding: clamp(120px, 13vw, 180px) 0; }
.founder-s__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.founder-s__media { position: relative; margin: 0; width: 100%; max-width: 500px; justify-self: center; }
.founder-s__arch {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6EEE1 55%, #F1E4CF 100%);
  box-shadow: 0 40px 80px -50px rgba(28, 43, 54, .55);
}
.founder-s__layers { position: absolute; left: 0; right: 0; bottom: 0; height: 44%; display: flex; flex-direction: column; }
.founder-s__layers i { flex: 1; background-image: radial-gradient(rgba(28, 43, 54, .1) 1px, transparent 1.5px); background-size: 9px 9px; }
.founder-s__layers i:nth-child(1) { background-color: #EDD3A6; }
.founder-s__layers i:nth-child(2) { background-color: #E7C29E; }
.founder-s__layers i:nth-child(3) { background-color: #D9B49C; }
.founder-s__layers i:nth-child(4) { background-color: #CFC6B8; }
.founder-s__layers i:nth-child(5) {
  background-color: #BFE3EF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 12'%3E%3Cpath d='M0 6 Q20 0 40 6 T80 6' fill='none' stroke='%231E9FDB' stroke-opacity='.45' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 12px; background-position: left var(--wx) center; animation: waveX 2.4s linear infinite;
}
.founder-s__arch img { position: absolute; left: 50%; bottom: 0; height: 95%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 26px 30px rgba(28, 43, 54, .22)); }
.founder-s__drop { position: absolute; right: 0; top: 12%; width: 62px; fill: #2AA7D6; filter: drop-shadow(0 14px 18px rgba(30, 159, 219, .45)); animation: bob 4.2s ease-in-out infinite; }
.founder-s__cap { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
.founder-s__cap b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.founder-s__cap span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.founder-s__speech { margin: 0 0 24px; font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2vw, 31px); line-height: 1.34; letter-spacing: -.02em; }
.word { color: rgba(28, 43, 54, .16); transition: color .4s; }
.word.is-on { color: var(--ink); }
.founder-s__copy > p:not(.kicker):not(.founder-s__quote) { color: var(--fg-soft); max-width: 38em; }
.founder-s__facts { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.founder-s__facts li { padding: 16px 18px; border-radius: 18px; background: var(--sand); border: 1px solid var(--line); }
.founder-s__facts b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; color: var(--blue); }
.founder-s__facts span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--fg-soft); }
.founder-s__quote { margin: 0 0 22px; font-family: var(--display); font-weight: 600; font-size: clamp(19px, 1.6vw, 25px); letter-spacing: -.02em; color: var(--terra); }
.founder-s__sign { display: flex; flex-direction: column; margin-bottom: 26px; }
.founder-s__name { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.founder-s__role { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); }

/* =========================================================
   Organigrama em rede (água a circular entre as direcções)
   ========================================================= */
.orgx { position: relative; aspect-ratio: 1000 / 620; margin: 10px auto 0; max-width: 1300px; }
.orgx__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orgx__track { fill: none; stroke: rgba(28, 43, 54, .12); stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0s), opacity .4s; }
.orgx.is-in .orgx__track { stroke-dashoffset: 0; }
.orgx__flow { fill: none; stroke: #1E9FDB; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0; animation: orgflow 1.1s linear infinite; transition: opacity .8s var(--d2, 1s); }
.orgx.is-in .orgx__flow { opacity: .85; }
@keyframes orgflow { to { stroke-dashoffset: -18; } }
.orgx__bead { fill: #1E9FDB; opacity: 0; transition: opacity .8s var(--d2, 1s); }
.orgx.is-in .orgx__bead { opacity: 1; }
.orgx__node {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .4s, box-shadow .4s;
}
.orgx.is-in .orgx__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.orgx__core {
  width: clamp(150px, 15vw, 196px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 35% 28%, #FFFFFF 0%, #EEF7FA 55%, #D6ECF4 100%);
  border: 1px solid rgba(30, 159, 219, .3);
  box-shadow: 0 30px 60px -30px rgba(30, 159, 219, .65);
}
.orgx__core img { width: 30%; margin-bottom: 8px; }
.orgx__core b { font-family: var(--display); font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -.02em; line-height: 1.1; }
.orgx__core span { margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--terra); }
.orgx__pulse, .orgx__pulse::after { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(30, 159, 219, .35); animation: pulse 2.8s ease-out infinite; }
.orgx__pulse::after { content: ""; inset: -2px; animation-delay: 1.4s; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.orgx__dir {
  min-width: clamp(180px, 17vw, 230px); padding: 16px 22px; border-radius: 22px; text-align: center; cursor: default;
  background: var(--navy); color: #fff; box-shadow: 0 24px 50px -28px rgba(11, 44, 74, .9);
}
.orgx__dir small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ochre); }
.orgx__dir b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.25vw, 18px); letter-spacing: -.01em; line-height: 1.2; }
.orgx__dir em { display: block; margin-top: 4px; font-family: var(--mono); font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .7); }
.orgx__leaf {
  padding: 10px 16px 10px 32px; border-radius: 999px; white-space: nowrap; cursor: default;
  background: #fff; border: 1px solid var(--line); font-size: clamp(12.5px, 1vw, 14px); font-weight: 500;
  box-shadow: 0 12px 26px -20px rgba(28, 43, 54, .6);
}
.orgx__leaf::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px rgba(221, 180, 106, .25); }
.orgx__leaf[data-branch="prod"]::before { background: #1E9FDB; box-shadow: 0 0 0 4px rgba(30, 159, 219, .2); }
.orgx__leaf:hover { box-shadow: 0 16px 30px -18px rgba(28, 43, 54, .6); }
.orgx[data-hl="adm"] [data-branch="prod"], .orgx[data-hl="prod"] [data-branch="adm"] { opacity: .22 !important; filter: grayscale(.6); }
.orgx__hint { margin: 18px 0 0; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--fg-soft); }

@media (max-width: 900px) {
  .founder-s__grid { grid-template-columns: 1fr; }
  .founder-s__media { max-width: 380px; }
  .founder-s__facts li { padding: 12px; }

  .orgx { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .orgx__node { position: relative; left: auto; top: auto; transform: scale(.85); }
  .orgx.is-in .orgx__node { transform: none; }
  .orgx__dir { margin-top: 26px; }
  .orgx__leaf { align-self: stretch; margin-left: 46px; white-space: normal; }
  .orgx__hint { display: none; }
}
