/* ==========================================================
   Solo Certo Nova Mutum — Laboratório Agronômico
   ========================================================== */

:root {
  --deep: #063d22;
  --deeper: #042b18;
  --night: #021b0e;
  --paper: #f3f5ef;
  --paper-2: #e7ece2;
  --ink: #0b2616;
  --muted: #536a5c;
  --green: #12b94b;
  --mint: #b6f5c1;
  --mint-2: #a8f0b8;
  --white: #fbfff9;
  --soil: #5a1307;

  --line: rgba(6, 61, 34, .16);
  --line-dark: rgba(255, 255, 255, .14);

  --wrap: 1320px;
  --pad: clamp(20px, 6vw, 96px);
  --section: clamp(96px, 13vw, 180px);

  --head: "Inter Tight", Inter, "Avenir Next", system-ui, sans-serif;
  --body: Inter, "Avenir Next", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-locked body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; font-weight: 500; }
h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.accent { color: var(--mint); font-style: normal; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--white); color: var(--deep); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.placeholder { background: rgba(255, 230, 140, .18); color: #ffe7a1; padding: 1px 6px; font-size: .85em; }

.label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font: 600 11px/1 var(--body); letter-spacing: .23em; text-transform: uppercase;
  color: var(--deep);
}
.label::before { content: ""; width: 34px; height: 1px; background: var(--green); }
.label--light { color: var(--mint-2); }

/* ---------- Botões ---------- */
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.65); border-radius: 2px;
  background: var(--green); color: #062514;
  font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.button:hover { background: var(--mint); border-color: var(--mint); transform: translateY(-2px); }
.button svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.button:hover svg { transform: translateX(4px); }
.button--lg { min-height: 62px; padding: 0 30px; font-size: 14px; }
.button .wa { width: 20px; height: 20px; }
.button--lg:hover .wa { transform: none; }

.text-link {
  position: relative; color: var(--white);
  font: 650 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding-block: 6px;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.55);
  transform-origin: right; transition: transform .5s var(--ease);
}
.text-link:hover::after { transform: scaleX(0); }

/* ==========================================================
   ABERTURA
   ========================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--deep);
  clip-path: inset(0 0 0 0);
}
.intro::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.12); pointer-events: none;
}
.intro__inner { display: flex; flex-direction: column; align-items: center; }
/* logo oficial em duas camadas: frasco (parte de cima) e assinatura (parte de baixo) */
.intro__logo { position: relative; width: clamp(190px, 22vw, 290px); aspect-ratio: 537 / 640; }
.intro__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__flask { clip-path: inset(0 0 31% 0); transform-origin: 50% 69%; }
.intro__text { clip-path: inset(70% 0 0 0); }
.intro__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../img/logo-vertical-branco.png") center / contain no-repeat;
          mask: url("../img/logo-vertical-branco.png") center / contain no-repeat;
  opacity: 0;
}
.intro__bar { position: absolute; left: 50%; bottom: 12vh; width: 120px; height: 1px; translate: -50% 0; background: rgba(255,255,255,.14); overflow: hidden; }
.intro__bar span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

.js .intro__flask { clip-path: inset(69% 0 31% 0); filter: blur(10px); transform: translateY(18px) scale(.94); animation: grow 1.3s var(--ease) .2s forwards; }
.js .intro__text { clip-path: inset(70% 100% 0 0); animation: sign 1s var(--ease-io) 1.05s forwards; }
.js .intro__shine { animation: shine 1.1s ease-in-out 1.9s forwards; }
.js .intro__bar span { animation: bar 2.6s var(--ease-io) .1s forwards; }
.intro.is-out { animation: wipe 1s var(--ease-io) forwards; }
.intro.is-out .intro__inner { animation: lift .9s var(--ease-io) forwards; }
html:not(.js) .intro, .intro.is-gone { display: none; }

@keyframes grow { to { clip-path: inset(0 0 31% 0); filter: blur(0); transform: none; } }
@keyframes sign { to { clip-path: inset(70% 0 0 0); } }
@keyframes shine { 0% { opacity: 1; background-position: -150% 0; } 100% { opacity: 1; background-position: 250% 0; } }
@keyframes up { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes wipe { to { clip-path: inset(0 0 100% 0); } }
@keyframes lift { to { transform: translateY(-60px); opacity: 0; } }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; gap: 32px;
  padding: clamp(22px, 3.4vw, 46px) clamp(24px, 7.2vw, 112px) 0;
  color: var(--white);
  transition: padding .5s var(--ease), background-color .5s ease, transform .5s var(--ease);
}
.js .header { opacity: 0; transform: translateY(-12px); }
.is-ready .header { opacity: 1; transform: none; transition: opacity .8s ease .25s, transform .8s var(--ease) .25s, padding .5s var(--ease), background-color .5s ease; }
.header.is-solid {
  padding-block: 14px;
  background: rgba(4, 43, 24, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; width: min(220px, 40vw); margin-right: auto; transition: width .5s var(--ease); }
.header.is-solid .brand { width: 150px; }
.brand img { width: 100%; height: auto; }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  position: relative; display: block; padding-block: 6px;
  font: 500 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.82); transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__mobile-only { display: none; }

.header__cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 2px;
  font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}
.header__cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.header__cta:hover { background: var(--white); color: var(--deep); border-color: var(--white); }
.header__cta:hover svg { transform: translateX(3px); }

.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; background: none; cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================
   HERO (baseado no modelo aprovado)
   ========================================================== */
.hero {
  isolation: isolate; position: relative;
  min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(120px, 14vw, 170px) clamp(24px, 7.2vw, 112px) clamp(28px, 5vw, 64px);
  background: var(--deep); color: var(--white);
}
.hero__photo {
  position: absolute; z-index: -2; inset: 0;
  background: url("../img/fachada.jpg") 53% 50% / cover no-repeat;
  transform: scale(1.055);
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(3,31,18,.88) 0%, rgba(4,38,21,.7) 33%, rgba(5,35,20,.22) 67%, rgba(4,29,18,.14) 100%),
              linear-gradient(0deg, rgba(3,28,16,.7) 0%, transparent 36%, rgba(3,28,16,.25) 100%);
}
.hero__frame { position: absolute; z-index: -1; inset: 14px; border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.sunmark {
  position: absolute; right: 10%; top: 39%;
  width: clamp(130px, 17vw, 235px); aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.24); border-radius: 50%;
}
.sunmark::before, .sunmark::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.sunmark::after { inset: 27%; }

.hero__content { position: relative; left: var(--tx, 0px); width: min(780px, 100%); margin-block: auto; padding: 40px 0 58px; transition: left 1.2s var(--ease); }
.eyebrow {
  display: flex; align-items: center; gap: 13px; margin: 0 0 26px;
  color: var(--mint-2); font-size: 11px; font-weight: 650; letter-spacing: .23em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--green); }
h1 { font-size: clamp(48px, 7vw, 100px); line-height: .99; letter-spacing: -.065em; font-weight: 500; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; }
.hero__copy { max-width: 460px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 38px; }
.hero__meta { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.location { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.78); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.location svg { width: 17px; height: 17px; color: var(--mint-2); }
.scroll-note { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.66); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.scroll-note::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.7) 50%, rgba(255,255,255,.15) 50%); background-size: 200% 100%; animation: scan 2.4s linear infinite; }
@keyframes scan { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* estados iniciais do hero (antes da abertura terminar) */
.js .hero__photo { clip-path: inset(0 0 100% 0); transform: scale(1.14); }
.js .hero::before, .js .hero__frame, .js .sunmark { opacity: 0; }
.js .h-anim { opacity: 0; transform: translateY(24px); }
.js .h-line { transform: translateY(105%); }

.is-ready .hero__photo { animation: photo-arrive 1.8s var(--ease) both; }
.is-ready .hero::before { animation: fade .9s ease .05s forwards; }
.is-ready .hero__frame { animation: fade .8s ease .8s forwards; }
.is-ready .sunmark { animation: fade 1s ease .9s forwards, spin 60s linear infinite; }
.is-ready .h-anim { animation: rise .85s var(--ease) forwards; animation-delay: calc(var(--d) + .45s); }
.is-ready .h-line { animation: up 1s var(--ease) forwards; animation-delay: calc(var(--d) + .45s); }
@keyframes photo-arrive { from { clip-path: inset(0 0 100% 0); transform: scale(1.14); } to { clip-path: inset(0); transform: scale(1.055); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }

/* ==========================================================
   ANIMAÇÕES DE ROLAGEM
   ========================================================== */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

.js .rv-lines .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .rv-lines .ln:nth-child(2) > span { transition-delay: .1s; }
.js .rv-lines .ln:nth-child(3) > span { transition-delay: .2s; }
.js .rv-lines.is-in .ln > span { transform: none; }

.rv-clip { overflow: hidden; }
.rv-clip img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.js .rv-clip { clip-path: inset(18% 0 18% 0); transition: clip-path 1.4s var(--ease-io); }
.js .rv-clip.is-in { clip-path: inset(0 0 0 0); }
.js .rv-clip img { scale: 1.18; transition: scale 1.8s var(--ease); }
.js .rv-clip.is-in img { scale: 1.06; }

/* ==========================================================
   01 MANIFESTO
   ========================================================== */
.manifesto { padding-block: var(--section); }
.manifesto__text {
  max-width: 1100px;
  font: 400 clamp(1.7rem, 1rem + 2.6vw, 3.4rem)/1.18 var(--head); letter-spacing: -.035em;
  color: var(--ink);
}
.manifesto__text .w { opacity: .14; transition: opacity .35s ease; }
.manifesto__text .w.on { opacity: 1; }

.manifesto__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: end;
  margin-top: clamp(64px, 9vw, 130px);
}
.manifesto__media { aspect-ratio: 4/5; }
.manifesto__side > p { color: var(--muted); max-width: 44ch; margin-top: 36px; font-size: 1.05rem; }
.bignum { border-top: 1px solid var(--line); padding-top: 28px; }
.bignum strong { display: flex; align-items: baseline; gap: 10px; font: 300 clamp(5rem, 3rem + 8vw, 10.5rem)/.85 var(--head); letter-spacing: -.07em; color: var(--deep); }
.bignum small { font-size: .32em; font-weight: 500; letter-spacing: -.02em; color: var(--green); }
.bignum > span { display: block; margin-top: 16px; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts { margin-top: 44px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.facts li span { font: 600 11px/1.9 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--deep); }
.facts li:nth-child(2) { --rd: .08s; }
.facts li:nth-child(3) { --rd: .16s; }

/* ---------- Faixa ---------- */
.marquee { overflow: hidden; background: var(--deep); color: var(--white); padding-block: clamp(22px, 3vw, 38px); border-block: 1px solid var(--line-dark); }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 300 clamp(2.4rem, 1.4rem + 4vw, 5.6rem)/1 var(--head); letter-spacing: -.05em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   02 ANÁLISES
   ========================================================== */
.analyses { padding-block: var(--section); }
.head { margin-bottom: clamp(48px, 6vw, 88px); }
.head--split { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.head__aside { max-width: 36ch; color: var(--muted); font-size: 1.02rem; }

.analyses__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.analyses__media { position: sticky; top: 110px; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.analyses__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; scale: 1.08; clip-path: inset(0 0 0 100%);
  transition: opacity .1s linear .9s, scale 1.4s var(--ease), clip-path .9s var(--ease-io);
}
.analyses__media img.is-active { opacity: 1; scale: 1; clip-path: inset(0); z-index: 1; transition: scale 1.4s var(--ease), clip-path .9s var(--ease-io); }
.analyses__counter {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  padding: 10px 14px; background: rgba(4,43,24,.82); color: rgba(255,255,255,.7);
  font: 500 11px/1 var(--body); letter-spacing: .16em;
}
.analyses__counter b { color: var(--white); font-weight: 600; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 16px;
  padding: 28px 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.acc__n { font: 500 12px/1 var(--body); letter-spacing: .14em; color: var(--green); }
.acc__t { font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.05 var(--head); letter-spacing: -.035em; transition: transform .5s var(--ease), color .3s; }
.acc__btn:hover .acc__t { transform: translateX(10px); }
.acc__i { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, border-color .3s, rotate .5s var(--ease); }
.acc__i::before, .acc__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--deep); translate: -50% -50%; transition: background .3s; }
.acc__i::after { rotate: 90deg; transition: rotate .5s var(--ease), background .3s; }
.acc__item.is-open .acc__i { background: var(--deep); border-color: var(--deep); rotate: 180deg; }
.acc__item.is-open .acc__i::before, .acc__item.is-open .acc__i::after { background: var(--white); }
.acc__item.is-open .acc__i::after { rotate: 0deg; }
.acc__item.is-open .acc__t { color: var(--deep); }

.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__panel > div { overflow: hidden; padding-left: 72px; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { max-width: 52ch; color: var(--muted); padding-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; }
.tags li { padding: 8px 12px; border: 1px solid var(--line); font-size: .82rem; color: var(--ink); background: rgba(255,255,255,.5); }
.acc__cta { display: inline-block; margin-top: 32px; color: var(--muted); text-decoration: none; }
.acc__cta u { color: var(--deep); font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--green); }

/* ==========================================================
   03 TECNOLOGIA
   ========================================================== */
.tech { padding-block: var(--section); background: var(--deep); color: var(--white); position: relative; overflow: hidden; }
.tech h2 { color: var(--white); }
.tech .head__aside { color: rgba(255,255,255,.7); }
.tech__hero { aspect-ratio: 21/9; }
.tech__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.tech__features article { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.tech__features article:nth-child(2) { --rd: .1s; }
.tech__features article:nth-child(3) { --rd: .2s; }
.tech__features span { font: 500 12px/1 var(--body); letter-spacing: .14em; color: var(--green); }
.tech__features h3 { margin-top: 22px; font-size: clamp(1.3rem, 1rem + .8vw, 1.7rem); font-weight: 400; letter-spacing: -.03em; }
.tech__features p { margin-top: 12px; color: rgba(255,255,255,.66); }
.tech__pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.tech__pair figure { aspect-ratio: 4/5; }
.tech__pair figure:last-child { aspect-ratio: 4/3; margin-top: clamp(60px, 10vw, 160px); }

/* ==========================================================
   04 PROCESSO
   ========================================================== */
.process { padding-block: var(--section); }
.process__img { aspect-ratio: 21/8; }
.steps { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.steps__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: var(--green); transform: scaleX(var(--p, 0)); transform-origin: left; }
.steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.step { position: relative; padding-top: 34px; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--green); transition: background .4s; }
.step.is-in::before { background: var(--green); transition-delay: .4s; }
.step:nth-child(2) { --rd: .1s; }
.step:nth-child(3) { --rd: .2s; }
.step:nth-child(4) { --rd: .3s; }
.step b { display: block; font: 300 clamp(3rem, 2rem + 3vw, 4.6rem)/1 var(--head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--deep); }
.step h3 { margin-top: 22px; font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--muted); }

/* ==========================================================
   05 MAPA
   ========================================================== */
.reach { padding-block: var(--section); background: radial-gradient(120% 90% at 75% 50%, #07502c 0%, var(--deeper) 45%, var(--night) 100%); color: var(--white); overflow: hidden; }
.reach__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.reach h2 { color: var(--white); }
.reach__text > p { margin-top: 28px; max-width: 42ch; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.reach__num { display: flex; align-items: center; gap: 18px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.reach__num strong { font: 300 clamp(4.5rem, 3rem + 5vw, 8rem)/.85 var(--head); letter-spacing: -.07em; color: var(--mint); }
.reach__num > span { font: 600 11px/1.6 var(--body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.reach__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 34px; }
.reach__list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-size: .95rem; color: rgba(255,255,255,.55); transition: color .4s;
}
.reach__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .4s, box-shadow .4s; }
.reach__list li.is-lit { color: var(--white); }
.reach__list li.is-lit::before { background: var(--green); box-shadow: 0 0 0 4px rgba(18,185,75,.18), 0 0 14px rgba(18,185,75,.8); }
.reach__list li.is-hover { color: var(--mint); }
.reach__list em { margin-left: auto; font: 600 9px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--night); background: var(--mint); padding: 5px 7px; font-style: normal; }

.map { position: relative; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.map__states path {
  fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.22); stroke-width: .8; stroke-linejoin: round;
  transition: fill 1s ease, stroke 1s ease, filter 1s ease;
}
.map__states path.is-served { cursor: pointer; }
.map__states path.is-lit { fill: url(#lit); stroke: #b6f5c1; stroke-width: 1; filter: url(#glow); }
.map__states path.is-lit:hover, .map__states path.is-hover { fill: #6cf09c; }
.map__states path.is-new.is-lit { fill: rgba(18,185,75,.22); stroke: var(--mint); stroke-dasharray: 4 3; filter: none; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.js .map__states path { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s var(--ease), fill 1s ease, stroke 1s ease; transition-delay: calc(var(--k, 0) * 18ms); }
.js .map.is-in .map__states path { opacity: 1; transform: none; }

.map__routes path { fill: none; stroke: var(--mint); stroke-width: 1.2; stroke-linecap: round; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map__routes path.is-drawn { transition: stroke-dashoffset 1.2s var(--ease-io); stroke-dashoffset: 0; }
.map__pins circle.dot { fill: var(--white); }
.map__pins circle.halo { fill: none; stroke: var(--mint); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.map__pins .origin circle.dot { fill: var(--mint); }
.map__pins text { fill: var(--white); font: 600 11px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.js .map__pins g { opacity: 0; transition: opacity .6s ease; }
.js .map__pins g.is-on { opacity: 1; }
@keyframes halo { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* ==========================================================
   06 VÍDEO
   ========================================================== */
.video { padding-block: var(--section) calc(var(--section) * .7); }
.video__frame { aspect-ratio: 16/9; background: var(--deep); }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__play img { position: absolute; inset: 0; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,28,16,.6), rgba(3,28,16,.15)); transition: background .5s; }
.video__play:hover::after { background: linear-gradient(0deg, rgba(3,28,16,.45), rgba(3,28,16,.05)); }
.video__btn {
  position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(88px, 10vw, 128px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease), background .4s;
}
.video__btn::before { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: halo-sm 2.6s ease-out infinite; }
@keyframes halo-sm { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video__btn svg { width: 30%; fill: var(--white); margin-left: 6%; }
.video__play:hover .video__btn { transform: scale(1.08); background: var(--green); border-color: var(--green); }
.video__label { position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); color: var(--white); font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }

/* ==========================================================
   CONTATO
   ========================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; background: var(--deep); color: var(--white); }
.contact__media { min-height: 420px; }
.contact__media img { object-position: 55% center; }
.contact__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 128px) clamp(24px, 6vw, 112px); }
.contact h2 { color: var(--white); font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); }
.contact__panel > p { margin-top: 28px; max-width: 42ch; color: rgba(255,255,255,.72); }
.contact .button { margin-top: 40px; align-self: flex-start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__info dt { font: 600 10px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--mint-2); margin-bottom: 12px; }
.contact__info dd { color: rgba(255,255,255,.82); }
.contact__info a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact__info a:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(255,255,255,.6); padding-top: 56px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__row img { width: 170px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer nav a, .footer__top { font: 500 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.footer nav a:hover, .footer__top:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .5s ease, transform .5s var(--ease);
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 11px; letter-spacing: .1em; }
}

@media (max-width: 960px) {
  .header { gap: 14px; }
  .header__cta { display: none; }
  .nav__toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; align-items: center;
    padding: 120px var(--pad) 60px;
    background: var(--deep);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io); }
  .nav__links { flex-direction: column; gap: 4px; width: 100%; }
  .nav__links li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
  .nav__links a { padding: 18px 0; font: 400 clamp(1.8rem, 7vw, 2.6rem)/1 var(--head); letter-spacing: -.03em; text-transform: none; transform: translateY(110%); transition: transform .7s var(--ease), color .3s; }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links a { transform: none; }
  .nav.is-open li:nth-child(2) a { transition-delay: .05s; }
  .nav.is-open li:nth-child(3) a { transition-delay: .1s; }
  .nav.is-open li:nth-child(4) a { transition-delay: .15s; }
  .nav.is-open li:nth-child(5) a { transition-delay: .2s; }
  .nav.is-open li:nth-child(6) a { transition-delay: .25s; }
  .nav__mobile-only { display: block; }
  .header.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }

  .manifesto__grid, .analyses__grid, .reach__grid, .contact { grid-template-columns: 1fr; }
  .manifesto__media { aspect-ratio: 4/3; }
  .analyses__media { position: relative; top: 0; aspect-ratio: 16/10; }
  .head--split { flex-direction: column; align-items: flex-start; }
  .tech__hero { aspect-ratio: 16/10; }
  .tech__features { grid-template-columns: 1fr; gap: 0; }
  .tech__features article { padding-block: 26px; }
  .tech__features h3 { margin-top: 14px; }
  .process__img { aspect-ratio: 16/10; }
  .steps__line { display: none; }
  .steps ol { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step { border-top: 1px solid var(--line); }
  .step::before { display: none; }
  .map { max-width: 640px; margin-inline: auto; width: 100%; }
  .contact { min-height: 0; }
  .contact__media { aspect-ratio: 16/10; min-height: 0; }
}

@media (max-width: 600px) {
  .header { padding: 18px 20px 0; }
  .header.is-solid { padding-block: 10px; }
  .brand { width: 150px; }
  .header.is-solid .brand { width: 120px; }

  .hero { padding: 110px 24px 26px; }
  .hero__photo { background-position: 47% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,31,18,.8), rgba(4,38,21,.5)), linear-gradient(0deg, rgba(3,28,16,.82), transparent 68%); }
  .hero__frame { inset: 9px; }
  h1 { font-size: clamp(44px, 12.5vw, 72px); }
  .hero__content { padding: 60px 0 56px; }
  .sunmark { right: -70px; top: 24%; width: 180px; }
  .is-ready .sunmark { animation: fade-40 1s ease .9s forwards, spin 60s linear infinite; }
  .scroll-note { display: none; }
  .hero__actions { gap: 22px; }

  .facts li { grid-template-columns: 1fr; gap: 6px; }
  .acc__btn { grid-template-columns: 38px 1fr 28px; padding: 22px 0; }
  .acc__panel > div { padding-left: 54px; }
  .tech__pair { grid-template-columns: 1fr; }
  .tech__pair figure:last-child { margin-top: 0; }
  .steps ol { grid-template-columns: 1fr; row-gap: 32px; }
  .reach__list { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr; }
  .button--lg { width: 100%; }
  .contact .button { align-self: stretch; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@keyframes fade-40 { to { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .intro { display: none; }
  .js .rv, .js .h-anim { opacity: 1; transform: none; }
  .js .h-line, .js .rv-lines .ln > span { transform: none; }
  .js .rv-clip { clip-path: none; }
  .js .hero__photo { clip-path: none; transform: none; }
  .js .hero::before, .js .hero__frame, .js .sunmark, .js .header { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .manifesto__text .w { opacity: 1; }
}

/* Endereço ocupa a linha inteira no bloco de contato */
.contact__addr { grid-column: 1 / -1; }
.contact__addr a { display: inline-block; margin-top: 8px; color: var(--mint); }

/* ==========================================================
   EFEITOS DE MOUSE (somente telas com mouse)
   ========================================================== */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .map__states path { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--mint); }
.cursor-dot.on-light { background: var(--deep); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: grid; place-items: center;
}
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  transition: transform .45s var(--ease), background-color .35s ease, border-color .35s ease;
}
.cursor-ring.on-light::before { border-color: rgba(6,61,34,.45); }
.cursor-ring span {
  position: relative; opacity: 0; transform: scale(.6);
  font: 600 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--deep);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.cursor-ring.is-link::before { transform: scale(1.6); background: rgba(182,245,193,.18); border-color: var(--mint); }
.cursor-ring.on-light.is-link::before { background: rgba(18,185,75,.12); border-color: var(--green); }
.cursor-ring.is-media::before, .cursor-ring.is-label::before { transform: scale(2.3); background: var(--mint); border-color: var(--mint); }
.cursor-ring.is-media span, .cursor-ring.is-label span { opacity: 1; transform: scale(1); }
.cursor-ring.is-down::before { transform: scale(.8); }
.cursor-dot.is-hidden { opacity: 0 !important; }

/* botões magnéticos voltam suavemente */
.button, .header__cta, .video__btn, .wa-float, .nav__toggle { transition-property: background, border-color, color, transform, translate, opacity; transition-duration: .3s, .3s, .3s, .3s, .5s, .5s; }

/* hero acompanha o mouse */
.hero__photo { background-position: calc(53% + var(--mx, 0px)) calc(50% + var(--my, 0px)); transition: background-position 1.2s var(--ease); }
.sunmark { transition: transform 1.2s var(--ease); }

/* fotos inclinam e aproximam */
.has-cursor .rv-clip { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: clip-path 1.4s var(--ease-io), transform .8s var(--ease); }
.has-cursor .rv-clip.is-in:hover img { scale: 1.12; transition: scale 1.2s var(--ease); }

/* brilho no logo do topo */
.brand { position: relative; }
.brand__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../img/logo-branco.png") left center / contain no-repeat;
          mask: url("../img/logo-branco.png") left center / contain no-repeat;
}
.brand:hover .brand__shine { animation: shine-once .9s ease-in-out; }
@keyframes shine-once { from { background-position: -150% 0; } to { background-position: 250% 0; } }

/* linhas da lista de análises: barra verde entra pela esquerda */
.acc__btn { position: relative; }
.acc__btn::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.acc__btn:hover::after { transform: scaleX(1); }
.acc__btn:hover .acc__n { color: var(--deep); }

/* estados do mapa crescem um pouco */
.map__states path.is-served { transform-box: fill-box; transform-origin: center; }
.map.is-in .map__states path.is-served:hover { transform: scale(1.04); }

/* passos e recursos destacam ao passar */
.step, .tech__features article { transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .4s; }
.step:hover b { -webkit-text-stroke-color: var(--green); color: rgba(18,185,75,.08); }
.step b { transition: color .4s, -webkit-text-stroke-color .4s; }
.tech__features article:hover { border-color: var(--green); }
.tech__features article:hover span { color: var(--mint); }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
