/* ==========================================================================
   Planalto DryWall
   Conceito: estrutura -> nível -> acabamento.
   Montantes (linhas verticais), o laser de nível (linha horizontal luminosa)
   e as placas de gesso (blocos com juntas e parafusos).
   ========================================================================== */

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  scrollbar-color: #3a3e44 var(--breu);

  /* Cores */
  --breu: #000000;      /* fundo da logo */
  --grafite: #111214;   /* seções alternadas */
  --placa: #17191c;     /* superfície das placas */
  --aco: #2a2d32;       /* juntas, divisórias, perfis */
  --gesso: #eceef0;     /* texto principal */
  --prata: #a4a9b0;     /* texto secundário */
  --erro: #ff9b9b;
  --cromo: linear-gradient(180deg, #ffffff 0%, #e6e8eb 34%, #9da2a9 53%, #dcdfe2 72%, #f7f8f9 100%);

  /* Medidas */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --inner: min(var(--wrap), 100% - 2 * var(--gutter));
  --side: max(var(--gutter), (100% - var(--wrap)) / 2);
  --header-h: 76px;

  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-laser: cubic-bezier(.65, 0, .25, 1);

  /* Textura sutil de gesso */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Rolagem suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--breu);
  color: var(--gesso);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
p { text-wrap: pretty; }
::selection { background: #fff; color: #000; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; top: -80px; left: 16px; z-index: 100;
  padding: 12px 18px; background: #fff; color: #000; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { width: var(--inner); margin-inline: auto; }

.chrome {
  background: var(--cromo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Botões ---------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px; padding: 0 1.6em;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 1rem; font-weight: 600; font-stretch: 112%; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: filter .3s, border-color .3s, background-color .3s, transform .3s var(--ease-out), box-shadow .4s;
}
.btn__icon { width: 1.25em; height: 1.25em; flex: none; }

.btn--chrome {
  background: var(--cromo); color: #000;
  box-shadow: inset 0 1px 0 #fff, 0 14px 34px -14px rgba(255, 255, 255, .4);
}
/* Reflexo que atravessa o botão cromado */
.btn--chrome::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .95) 50%, transparent 68%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out);
}
.btn--chrome:hover::after { transform: translateX(110%); }
.btn--chrome:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 20px 40px -14px rgba(255, 255, 255, .5); }
.btn--chrome:active { transform: translateY(0); }

.btn--ghost { border-color: rgba(255, 255, 255, .3); color: var(--gesso); }
.btn--ghost:hover { border-color: #fff; background-color: rgba(255, 255, 255, .05); transform: translateY(-2px); }

.btn--sm { min-height: 42px; padding: 0 1.15em; font-size: .9375rem; }

/* Topo ------------------------------------------------------------------ */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, transform .55s var(--ease-out);
}
.topbar.is-scrolled {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--aco);
}
.topbar.is-hidden { transform: translateY(-101%); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Linha de progresso: o "nível" da leitura */
.topbar__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), #fff);
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
  transform: scaleX(var(--progress, 0)); transform-origin: left center;
  opacity: 0; transition: opacity .4s;
}
.topbar.is-scrolled .topbar__progress { opacity: .85; }

.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav__link {
  position: relative;
  color: var(--prata); text-decoration: none;
  font-size: .9375rem; font-weight: 500; font-stretch: 108%;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--gesso); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.menu-toggle { display: none; }

/* Abertura -------------------------------------------------------------- */
.hero {
  --hx: 74%; --hy: 40%; --sy: 0; --tx: 0; --fade: 1;
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr calc(var(--inner) * .62) calc(var(--inner) * .38) 1fr;
  grid-template-rows: 1fr auto auto;
  padding-top: calc(var(--header-h) + 48px);
  overflow: clip;
  perspective: 1400px;
  background:
    radial-gradient(55% 45% at var(--hx) var(--hy), rgba(255, 255, 255, .085), transparent 70%),
    var(--breu);
  border-bottom: 1px solid var(--aco);
}

/* Montantes metálicos */
.hero__studs {
  position: absolute; top: 0; bottom: 0; left: var(--side); right: var(--side);
  display: flex; justify-content: space-between;
  pointer-events: none;
  translate: 0 calc(var(--sy) * .22px);
}
.hero__studs i {
  width: 8px;
  border-inline: 1px solid rgba(255, 255, 255, .065);
  transform-origin: bottom;
  animation: stud-rise .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms);
}

.hero__title {
  grid-column: 2; grid-row: 1; align-self: end;
  position: relative;
  padding-bottom: .16em;
  font-size: clamp(2.6rem, 6.4vw, 5.9rem);
  font-weight: 700; font-stretch: 125%;
  line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance;
  opacity: var(--fade);
  translate: 0 calc(var(--sy) * .1px);
  animation: rise-from-line 1s .85s var(--ease-out) both;
}

.hero__mark {
  grid-column: 3; grid-row: 1; align-self: end; justify-self: center;
  position: relative;
  height: clamp(240px, 50vh, 460px);
  aspect-ratio: 362 / 429;
  opacity: var(--fade);
  translate: calc(var(--tx) * 12px) calc(var(--sy) * .2px);
  rotate: 0 1 0 calc(var(--tx) * 9deg);
  animation: mark-rise 1.1s .95s var(--ease-out) both;
}
.hero__mark img { width: 100%; height: 100%; }
.hero__shine {
  position: absolute; inset: 0;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
  mask: url("../img/logo-mark.png") center / contain no-repeat;
  background: linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) no-repeat;
  background-size: 320% 100%;
  background-position: 100% 0;
  animation: shine 1.5s 1.9s ease-in-out both, shine-loop 9s 6s ease-in-out infinite;
}

/* Laser de nível */
.laser {
  grid-column: 1 / -1; grid-row: 2;
  position: relative; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 14%, rgba(255, 255, 255, .9) 86%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 255, 255, .55), 0 0 30px rgba(255, 255, 255, .18);
  animation: laser-sweep .9s .45s var(--ease-laser) both;
}
.laser::after {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 160px; height: 9px;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0));
  opacity: 0;
  animation: laser-head .9s .45s var(--ease-laser) both;
}

/* Prumo: linha vertical que desce do laser, sob o símbolo */
.hero__plumb {
  grid-column: 3; grid-row: 3; justify-self: center;
  position: relative; width: 1px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform-origin: top center;
  translate: calc(var(--tx) * 12px) 0;
  animation: plumb-drop 1.1s 1.3s var(--ease-out) both;
}
.hero__plumb::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
  transform: translateY(-100%);
  animation: plumb-run 3.2s 2.6s cubic-bezier(.5, 0, .3, 1) infinite;
}

.hero__body {
  grid-column: 2; grid-row: 3;
  padding-block: clamp(28px, 4vw, 44px) clamp(56px, 10vh, 112px);
  animation: fade-in .8s 1.4s ease both;
}
.hero__lead { max-width: 46ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--prata); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: .9375rem; color: var(--prata); }

/* Manifesto ------------------------------------------------------------- */
.statement { padding-block: clamp(96px, 13vw, 176px) clamp(72px, 9vw, 120px); }
.statement__text {
  max-width: 30ch;
  font-size: clamp(1.55rem, 3.2vw, 2.7rem);
  font-weight: 500; font-stretch: 112%;
  line-height: 1.24; letter-spacing: -.005em;
  text-wrap: balance;
}
.statement__text.is-split .w { color: rgba(236, 238, 240, .16); transition: color .5s ease, text-shadow .5s ease; }
.statement__text.is-split .w.on { color: var(--gesso); }
.statement__sub {
  max-width: 44ch; margin: clamp(28px, 4vw, 48px) 0 0 auto;
  font-size: 1.125rem; color: var(--prata);
}

/* Faixa de serviços ----------------------------------------------------- */
.ribbon {
  overflow: hidden;
  padding-block: clamp(18px, 2.6vw, 32px);
  border-top: 1px solid var(--aco);
}
.ribbon__track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(28px, 3.4vw, 56px);
  translate: calc(var(--rx, 0) * 1px) 0;
  will-change: translate;
}
.ribbon__track span {
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  font-weight: 700; font-stretch: 125%; line-height: 1.05; letter-spacing: -.01em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 238, 240, .32);
}
.ribbon__track i {
  flex: none; width: 12px; height: 12px;
  border: 1px solid rgba(255, 255, 255, .55); transform: rotate(45deg);
}

/* Seções ---------------------------------------------------------------- */
.section { padding-block: clamp(88px, 11vw, 152px); }
.section--grafite { background: var(--grafite); border-block: 1px solid var(--aco); }

.section__head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 20px 64px;
  padding-bottom: clamp(24px, 3vw, 36px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
/* Linha de nível sob cada título */
.section__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 75%);
  transform-origin: left center;
}
.section__title {
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  font-weight: 650; font-stretch: 125%;
  line-height: 1.06; letter-spacing: -.015em;
  text-wrap: balance;
}
.section__lead { max-width: 44ch; font-size: 1.125rem; color: var(--prata); }

/* Serviços: placas ------------------------------------------------------ */
.boards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: var(--aco);
  border: 3px solid var(--aco);
}
.board {
  --screw: radial-gradient(circle, #474b52 0 1.4px, transparent 1.9px);
  --mx: 50%; --my: 30%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 310px;
  padding: clamp(28px, 3vw, 40px) clamp(32px, 3.2vw, 48px);
  background-color: var(--placa);
  transition: box-shadow .5s ease;
}
/* Textura da placa */
.board::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--noise);
}
/* Parafusos nas bordas */
.board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    var(--screw) left 10px top 22px / 8px 48px repeat-y,
    var(--screw) right 10px top 22px / 8px 48px repeat-y;
}
/* Luz que acompanha o cursor */
.board__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .09), transparent 65%);
  opacity: 0; transition: opacity .5s ease;
}
.board > :not(.board__light) { position: relative; z-index: 2; }
.board:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.board:hover .board__light { opacity: 1; }

.board__icon {
  width: 52px; height: 52px; margin-bottom: auto;
  fill: none; stroke: var(--gesso); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: filter .5s ease, transform .6s var(--ease-out);
}
.board:hover .board__icon { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); transform: translateY(-3px); }
.board__icon .fill { fill: rgba(255, 255, 255, .14); stroke: none; }
.board__title { margin-top: 32px; font-size: 1.3rem; font-weight: 600; font-stretch: 115%; line-height: 1.22; }
.board__text { max-width: 36ch; font-size: 1rem; color: var(--prata); }
.board__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  font-size: .9375rem; font-weight: 500; font-stretch: 108%;
  color: var(--prata); text-decoration: none;
}
.board__cta::before, .project__cta::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
  transition: width .6s var(--ease-out), box-shadow .5s;
}
.board:hover .board__cta, .board__cta:focus-visible,
.project:hover .project__cta, .project__cta:focus-visible { color: #fff; }
.board:hover .board__cta::before, .board__cta:focus-visible::before,
.project:hover .project__cta::before, .project__cta:focus-visible::before { width: 40px; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }

/* Processo -------------------------------------------------------------- */
.steps {
  --p: 1;
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .3));
  box-shadow: 0 0 10px rgba(255, 255, 255, .45);
  transform: scaleX(var(--p)); transform-origin: left center;
}
.step { position: relative; padding-top: 52px; }
.step::before {
  content: ""; position: absolute; top: 2px; left: 0; z-index: 1;
  width: 11px; height: 11px;
  background: var(--breu); border: 1px solid rgba(255, 255, 255, .6);
  transform: rotate(45deg);
  transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease, transform .6s var(--ease-out);
}
.step.is-lit::before {
  background: #fff; border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .85);
  transform: rotate(225deg);
}
.step__n {
  display: block; margin-bottom: 20px;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 700; font-stretch: 125%; line-height: 1;
  background: var(--cromo); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 600; font-stretch: 115%; }
.step__text { max-width: 30ch; font-size: 1rem; color: var(--prata); }
.steps.is-linked .step > * { transition: opacity .7s ease, translate .8s var(--ease-out); }
.steps.is-linked .step:not(.is-lit) > * { opacity: .2; translate: 0 10px; }

/* Projetos -------------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.project { display: flex; flex-direction: column; gap: 16px; }
.project__art {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--breu);
  border: 1px solid var(--aco);
  transition: border-color .6s ease;
}
.project__art > svg, .project__art > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.project:hover .project__art { border-color: #4a4e55; }
.project:hover .project__art > svg, .project:hover .project__art > img { transform: scale(1.04); }
.project__caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.project__text { display: grid; gap: 2px; }
.project__cta {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 500; font-stretch: 108%;
  color: var(--prata); text-decoration: none; transition: color .3s;
}
.project__title { font-size: 1.125rem; font-weight: 600; font-stretch: 110%; line-height: 1.3; }
.project__tag { flex: none; font-size: .9375rem; color: var(--prata); }

.art .ln { fill: none; stroke: rgba(228, 231, 235, .7); stroke-width: 1.4; }
.art .ln-f { fill: none; stroke: rgba(228, 231, 235, .22); stroke-width: 1.1; }
.art .glow { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transition: opacity 1.2s ease, stroke-width .6s ease; }
.art .glow--dim { opacity: .5; }
.art .solid { fill: #08090a; stroke: rgba(228, 231, 235, .7); stroke-width: 1.4; }
.art .fill-soft { fill: rgba(255, 255, 255, .07); stroke: none; }
.art .spot { fill: #fff; }
.project:hover .art .glow { stroke-width: 3.2; }

/* Onde atendemos -------------------------------------------------------- */
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 88px; align-items: start; }
.area__lead { margin-top: 24px; }
.cities {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  border-top: 1px solid var(--aco);
}
.city {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 0; border-bottom: 1px solid var(--aco);
  font-size: 1.125rem; font-weight: 500; font-stretch: 112%;
  transition: color .3s ease;
}
.city::before {
  content: ""; flex: none; width: 7px; height: 7px;
  border: 1px solid var(--prata); transform: rotate(45deg);
  transition: transform .6s var(--ease-out), background-color .4s, box-shadow .4s, border-color .4s;
}
.city:hover::before { transform: rotate(225deg); background: #fff; border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }

/* Dúvidas comuns -------------------------------------------------------- */
.faq { border-top: 1px solid var(--aco); }
.faq__item { position: relative; border-bottom: 1px solid var(--aco); }
/* O laser corre na borda da pergunta aberta */
.faq__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 8px rgba(255, 255, 255, .5);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s var(--ease-laser);
}
.faq__item[open]::before { transform: scaleX(1); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 1.7vw, 1.4rem); font-weight: 600; font-stretch: 112%; line-height: 1.3;
  transition: padding-left .6s var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .6s var(--ease-out), filter .4s;
}
.faq__q:hover { padding-left: 8px; }
.faq__q:hover::after { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.faq__item[open] > .faq__q::after { transform: rotate(135deg); }
.faq__a { padding: 0 48px 30px 0; }
.faq__a p { max-width: 64ch; font-size: 1.0625rem; color: var(--prata); }
.faq__item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* Contato --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 88px; align-items: start; }
.contact__intro .section__lead { margin-top: 24px; }
.contact__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--aco); }
.contact__item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--aco);
}
.contact__item[hidden] { display: none; }
.contact__label { font-size: .9375rem; color: var(--prata); }
.contact__value { font-weight: 500; font-stretch: 108%; text-decoration: none; overflow-wrap: anywhere; }
a.contact__value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__person { display: grid; gap: 2px; }
a.contact__person:hover { text-decoration: none; }
.contact__name { font-weight: 500; }
.contact__phone { font-weight: 400; color: var(--prata); transition: color .3s; }
a.contact__person:hover .contact__phone { color: #fff; }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--noise), var(--placa);
  border: 1px solid var(--aco);
}
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: .9375rem; font-weight: 500; }
.field__optional { font-weight: 400; color: var(--prata); }
.field__input {
  width: 100%; min-height: 54px; padding: 13px 16px;
  background: #0a0b0c; color: var(--gesso);
  border: 1px solid #3b3f45; border-radius: 2px;
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .3s, box-shadow .4s, background-color .3s;
}
.field__input::placeholder { color: #80858c; }
.field__input:hover { border-color: #565b62; }
.field__input:focus {
  outline: none; border-color: #fff; background-color: #0d0e10;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 24px -6px rgba(255, 255, 255, .35);
}
textarea.field__input { min-height: 128px; resize: vertical; }
select.field__input {
  appearance: none; -webkit-appearance: none;
  padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23eceef0' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
.field__error { display: none; font-size: .875rem; color: var(--erro); }
.field.is-prefilled .field__input { animation: prefill 1.8s var(--ease-out); }
.field.is-invalid .field__input { border-color: var(--erro); animation: nudge .4s ease; }
.field.is-invalid .field__error { display: block; }

.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form__status { font-size: .9375rem; color: var(--prata); }
.form__status:empty { display: none; }

/* Rodapé ---------------------------------------------------------------- */
.footer { padding-block: 72px 40px; border-top: 1px solid var(--aco); }
.footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 48px 64px; }
.footer__logo { width: 190px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 32px; }
.footer__nav a { color: var(--prata); text-decoration: none; font-size: .9375rem; transition: color .3s; }
.footer__nav a:hover { color: var(--gesso); }
.footer__legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 28px; border-top: 1px solid var(--aco);
  font-size: .875rem; color: #858a91;
}

/* WhatsApp flutuante e aviso ------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cromo); color: #000;
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -10px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: transform .4s var(--ease-out);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  opacity: 0;
  animation: ring 5s ease-out 4s infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 28px; height: 28px; }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 60;
  max-width: min(92vw, 440px); padding: 14px 20px;
  background: #0c0d0f; color: var(--gesso);
  border: 1px solid #3b3f45;
  font-size: .9375rem; text-align: center;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Revelações na rolagem
   Só se aplicam com JavaScript ativo e quando o aparelho permite movimento.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Padrão: sobe e aparece */
  .js [data-reveal="up"] {
    opacity: 0; transform: translateY(36px);
    transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  }
  .js [data-reveal="up"].is-in { opacity: 1; transform: none; }

  /* Títulos: a linha de nível corre e o título nasce sobre ela */
  .js [data-reveal="head"]::after { transform: scaleX(0); transition: transform 1.2s var(--ease-laser); }
  .js [data-reveal="head"] .section__title {
    clip-path: inset(100% -5% -25% -5%); transform: translateY(.55em);
    transition: clip-path 1.1s var(--ease-out) .3s, transform 1.1s var(--ease-out) .3s;
  }
  .js [data-reveal="head"] .section__lead {
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s ease .6s, transform 1s var(--ease-out) .6s;
  }
  .js [data-reveal="head"].is-in::after { transform: scaleX(1); }
  .js [data-reveal="head"].is-in .section__title { clip-path: inset(-25% -5% -25% -5%); transform: none; }
  .js [data-reveal="head"].is-in .section__lead { opacity: 1; transform: none; }

  /* Placas: a estrutura aparece, as placas são instaladas, os parafusos fixam, o ícone é desenhado */
  .js [data-reveal="boards"] .board {
    --dl: calc(var(--i, 0) * 120ms);
    background-color: var(--grafite);
    transition: background-color 1s var(--ease-out) var(--dl), box-shadow .5s ease;
  }
  .js [data-reveal="boards"] .board::after { opacity: 0; transition: opacity 1s ease var(--dl); }
  .js [data-reveal="boards"] .board::before { opacity: 0; transition: opacity .8s ease calc(var(--dl) + 700ms); }
  .js [data-reveal="boards"] .board > :not(.board__light) {
    opacity: 0; translate: 0 22px;
    transition: opacity 1s var(--ease-out) calc(var(--dl) + 250ms), translate 1.1s var(--ease-out) calc(var(--dl) + 250ms), color .3s ease;
  }
  .js [data-reveal="boards"] .board__icon > * {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--dl) + 450ms);
  }
  .js [data-reveal="boards"] .board__icon .fill { opacity: 0; transition: opacity .9s ease calc(var(--dl) + 1100ms); }

  .js [data-reveal="boards"].is-in .board { background-color: var(--placa); }
  .js [data-reveal="boards"].is-in .board::after,
  .js [data-reveal="boards"].is-in .board::before { opacity: 1; }
  .js [data-reveal="boards"].is-in .board > :not(.board__light) { opacity: 1; translate: 0 0; }
  .js [data-reveal="boards"].is-in .board__icon > * { stroke-dashoffset: 0; }
  .js [data-reveal="boards"].is-in .board__icon .fill { opacity: 1; }

  /* Projetos: o desenho técnico se traça e as luzes acendem */
  .js [data-reveal="draw"] { --dl: calc(var(--i, 0) * 180ms); }
  .js [data-reveal="draw"] .art :is(.ln, .ln-f, .solid) {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .2, 1) calc(var(--dl) + 100ms);
  }
  .js [data-reveal="draw"] .art :is(.glow, .fill-soft, .spot) { opacity: 0; transition: opacity 1.4s ease calc(var(--dl) + 1.9s), stroke-width .6s ease; }
  .js [data-reveal="draw"] .project__caption {
    opacity: 0; transform: translateY(12px);
    transition: opacity 1s ease calc(var(--dl) + 600ms), transform 1s var(--ease-out) calc(var(--dl) + 600ms);
  }
  .js [data-reveal="draw"].is-in .art :is(.ln, .ln-f, .solid) { stroke-dashoffset: 0; }
  .js [data-reveal="draw"].is-in .art :is(.glow, .fill-soft, .spot) { opacity: 1; }
  .js [data-reveal="draw"].is-in .art .glow--dim { opacity: .5; }
  .js [data-reveal="draw"].is-in .project__caption { opacity: 1; transform: none; }

  /* Cidades: entram uma a uma */
  .js [data-reveal="list"] > * {
    opacity: 0; transform: translateX(-14px);
    transition: opacity .8s ease calc(var(--i, 0) * 55ms), transform .9s var(--ease-out) calc(var(--i, 0) * 55ms), color .3s ease;
  }
  .js [data-reveal="list"].is-in > * { opacity: 1; transform: none; }
}

/* Animações da abertura ------------------------------------------------- */
@keyframes stud-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes laser-sweep {
  from { clip-path: inset(-30px 100% -30px 0); }
  to { clip-path: inset(-30px 0 -30px 0); }
}
@keyframes laser-head {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 160px); opacity: 0; }
}
@keyframes rise-from-line {
  from { clip-path: inset(100% -10% -30% -10%); transform: translateY(.45em); }
  to { clip-path: inset(-20% -10% -30% -10%); transform: none; }
}
@keyframes mark-rise {
  from { clip-path: inset(100% -10% 0 -10%); transform: translateY(40px); }
  to { clip-path: inset(-10% -10% 0 -10%); transform: none; }
}
@keyframes shine {
  0% { background-position: 100% 0; }
  60%, 100% { background-position: 0 0; }
}
@keyframes shine-loop {
  0%, 84% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes plumb-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes plumb-run {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(270%); }
}
@keyframes prefill {
  0% { border-color: #3b3f45; box-shadow: none; }
  20% { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 0 30px rgba(255, 255, 255, .35); }
  100% { border-color: #3b3f45; box-shadow: none; }
}
@keyframes ring {
  0% { opacity: .8; transform: scale(1); }
  45%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero__title, .hero__mark, .hero__studs { translate: none; rotate: none; opacity: 1; }
}

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before { display: none; }
  .step::after {
    content: ""; position: absolute; top: 7px; left: 0; right: -40px; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .12));
  }
  .area, .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 30px; }

  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 46px; height: 46px; padding: 11px; margin-right: -11px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle__bar { display: block; height: 1.5px; background: var(--gesso); transition: transform .4s var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--breu);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility 0s .35s;
    overflow-y: auto;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .topbar { background: var(--breu); border-color: var(--aco); transform: none; }
  body.nav-open .nav { opacity: 1; visibility: visible; transition: opacity .35s; }
  .nav__link {
    padding: 18px 0; border-bottom: 1px solid var(--aco);
    font-size: 1.5rem; font-weight: 600; font-stretch: 120%; color: var(--gesso);
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .6s var(--ease-out), color .3s;
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 32px; min-height: 56px; font-size: 1.0625rem; opacity: 0; transform: translateY(16px); transition: opacity .5s ease .3s, transform .6s var(--ease-out) .3s; }
  body.nav-open .nav__link, body.nav-open .nav__cta { opacity: 1; transform: none; }
  body.nav-open .nav__link:nth-child(2) { transition-delay: .06s; }
  body.nav-open .nav__link:nth-child(3) { transition-delay: .12s; }
  body.nav-open .nav__link:nth-child(4) { transition-delay: .18s; }

  .section__head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
    grid-template-rows: 1fr auto auto auto;
    padding-top: calc(var(--header-h) + 32px);
  }
  .hero__mark { grid-column: 2; grid-row: 1; justify-self: start; height: clamp(112px, 22vh, 260px); margin-bottom: 28px; }
  .hero__title { grid-column: 2; grid-row: 2; }
  .laser { grid-row: 3; }
  .hero__body { grid-column: 2; grid-row: 4; padding-bottom: 96px; }
  .hero__studs i:nth-child(even) { display: none; }
  .hero__plumb { display: none; }

  .projects { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .btn { padding: 0 1em; font-stretch: 104%; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .board { min-height: 0; }
  .board__title { margin-top: 24px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .step { padding: 0 0 0 44px; }
  .step::before { top: 10px; }
  .step::after { display: none; }
  .steps::before {
    display: block; left: 5px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .25));
    transform: scaleY(var(--p)); transform-origin: center top;
  }
  .step__n { margin-bottom: 12px; }

  .cities { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .project__caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .faq__a { padding-right: 0; }
}
