/* ==========================================================================
   OPUS Engenharia · Modelo 2
   Paleta da marca: bronze, marrom, preto, off-white e grafite.
   Motivo visual: cantos chanfrados (ecoam o hexágono do logo) + grid técnico.
   ========================================================================== */

:root {
  /* Cores */
  --ink: #0e1013;
  --ink-2: #17191d;
  --graphite: #4a4a4a;
  --muted: #5f5a52;
  --paper: #f4f2ed;
  --stone: #e9e5dd;
  --white: #ffffff;
  --line: rgb(14 16 19 / 0.12);
  --line-strong: rgb(14 16 19 / 0.22);
  --line-light: rgb(255 255 255 / 0.14);

  --bronze: #b08a3e;
  --bronze-btn: #c9a257;
  --bronze-btn-hover: #d9b56d;
  --bronze-light: #d8bb7f;   /* texto de destaque sobre fundo escuro */
  --brown: #7a4a26;          /* texto de destaque sobre fundo claro (AA) */
  --brown-deep: #3b2415;

  /* Tipografia */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(2.6rem, 1.55rem + 4.1vw, 5.1rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);

  /* Espaço & forma */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 144px);
  --radius: 20px;
  --radius-lg: 28px;
  --cut: clamp(32px, 4vw, 64px);
  --frame: clamp(8px, 1vw, 12px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--bronze-light); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px;
}
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

/* ---------- Tipografia ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow--light { color: var(--bronze-light); }
.eyebrow__dot { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }

/* "01 ——— Serviços" */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
}
.kicker span { font-family: var(--mono); font-size: 0.85rem; color: var(--brown); }
.kicker i { display: block; width: clamp(48px, 7vw, 96px); height: 1px; background: currentColor; opacity: 0.5; }
.kicker--light { color: var(--white); }
.kicker--light span { color: var(--bronze-light); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 999px;
  font-weight: 500; font-size: 0.975rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.925rem; }
.btn--block { width: 100%; }
.btn--dark:hover { --bg: var(--brown); }
.btn--bronze { --bg: var(--bronze-btn); --fg: var(--ink); }
.btn--bronze:hover { --bg: var(--bronze-btn-hover); }
.btn--ghost-light { --bg: rgb(255 255 255 / 0.06); --fg: var(--white); --bd: var(--line-light); backdrop-filter: blur(8px); }
.btn--ghost-light:hover { --bg: rgb(255 255 255 / 0.14); }
.btn--ghost-light .icon, .btn--dark .icon:last-child { transition: transform .25s var(--ease); }
.btn--ghost-light:hover .icon, .btn--dark:hover .icon:last-child { transform: translateX(3px); }

.round-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.round-btn .icon { width: 18px; height: 18px; }
.round-btn--dark { background: var(--ink); color: var(--white); }
.round-btn--dark:hover { background: var(--brown); }
.round-btn--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.round-btn--light:hover { background: var(--ink); color: var(--white); }
.round-btn--bronze { background: var(--bronze-btn); color: var(--ink); }

/* ---------- Chanfros (motivo do logo) ---------- */
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-tl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: calc(var(--frame) + 8px) calc(var(--frame) + 8px) 0;
  color: var(--white);
  transition: color .3s var(--ease);
}
.site-header__bar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1280px; margin-inline: auto;
  height: var(--header-h); padding-inline: clamp(12px, 2vw, 20px);
  border-radius: 22px;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled .site-header__bar {
  background: rgb(244 242 237 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -18px rgb(14 16 19 / 0.35);
}

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; }
.brand img { width: 52px; height: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.25)); }
.brand__name { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.14em; line-height: 1.05; }
.brand__name small { font-family: var(--mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.7; }

.nav__list {
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px var(--line-light);
  backdrop-filter: blur(10px);
}
.is-scrolled .nav__list { background: rgb(14 16 19 / 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border-radius: 999px; font-size: 0.925rem; opacity: 0.85;
  transition: background-color .2s, opacity .2s;
}
.nav__list a:hover, .nav__list a[aria-current="true"] { opacity: 1; background: rgb(255 255 255 / 0.12); }
.is-scrolled .nav__list a:hover, .is-scrolled .nav__list a[aria-current="true"] { background: var(--white); box-shadow: 0 1px 2px rgb(14 16 19 / 0.08); }

.btn--header { --bg: var(--bronze-btn); --fg: var(--ink); }
.btn--header:hover { --bg: var(--bronze-btn-hover); }
.is-scrolled .btn--header { --bg: var(--ink); --fg: var(--white); }
.is-scrolled .btn--header:hover { --bg: var(--brown); }

.menu-toggle {
  display: none; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.is-scrolled .menu-toggle, .menu-open .menu-toggle { box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu-toggle .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.menu-mobile {
  max-width: 1280px; margin: 8px auto 0; padding: 12px;
  background: var(--paper); color: var(--ink);
  border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(14 16 19 / 0.45);
}
.menu-mobile ul { display: grid; margin-bottom: 12px; }
.menu-mobile a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px;
  font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
.menu-open .site-header { color: var(--ink); }
.menu-open .site-header__bar { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 1023px) {
  .nav, .btn--header { display: none; }
  .menu-toggle { display: inline-grid; }
  :root { --header-h: 64px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--frame);
  min-height: min(calc(100svh - var(--frame) * 2), 940px);
  display: flex; align-items: flex-end;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--cut) * 1.6) 100%, 0 calc(100% - var(--cut) * 1.6));
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero::before { /* leitura do texto + brilho bronze */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 70% at 88% 12%, rgb(176 138 62 / 0.28), transparent 65%),
    linear-gradient(90deg, rgb(14 16 19 / 0.94) 0%, rgb(14 16 19 / 0.82) 34%, rgb(14 16 19 / 0.25) 68%, rgb(14 16 19 / 0.05) 100%),
    linear-gradient(0deg, rgb(14 16 19 / 0.7) 0%, transparent 40%);
}
.hero__grid-lines, .process__grid-lines, .contact__grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(100deg, #000 0%, rgb(0 0 0 / 0.5) 40%, transparent 70%);
}
.hero__inner {
  position: relative;
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__copy { max-width: 640px; }
.hero .display { margin-top: 22px; max-width: 15ch; }
.hero__lead { margin-top: 24px; max-width: 46ch; color: rgb(255 255 255 / 0.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-size: 0.9rem; color: rgb(255 255 255 / 0.75); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 16px; height: 16px; color: var(--bronze-light); }

/* Chips de números (referência: callouts flutuantes) */
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.stat-chip {
  position: relative;
  display: grid; gap: 2px; padding: 14px 16px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px var(--line-light);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stat-chip strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat-chip span:last-child { font-size: 0.8rem; color: rgb(255 255 255 / 0.72); line-height: 1.3; }
.stat-chip__dot { display: none; }

@media (min-width: 1024px) {
  .hero__stats {
    position: absolute; right: var(--gutter); top: 50%;
    transform: translateY(-40%);
    display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
    margin: 0;
  }
  .stat-chip {
    grid-template-columns: auto auto; align-items: baseline; column-gap: 12px;
    padding: 12px 18px;
    margin-right: calc(var(--i) * 56px);
    animation: chip-in .9s var(--ease) both;
    animation-delay: calc(0.35s + var(--i) * 0.12s);
  }
  .stat-chip span:last-child { font-size: 0.875rem; }
  /* fio + ponto ligando o chip à foto */
  .stat-chip__dot {
    display: block; position: absolute; top: 50%; right: 100%;
    width: clamp(48px, 7vw, 120px); height: 1px;
    background: linear-gradient(90deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.15));
  }
  .stat-chip__dot::before {
    content: ""; position: absolute; left: -7px; top: -7px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.8);
    background: radial-gradient(circle, var(--bronze-light) 0 3px, transparent 3.5px);
    box-shadow: 0 0 0 6px rgb(216 187 127 / 0.14);
  }
}
@keyframes chip-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero::before {
    background:
      radial-gradient(70% 50% at 90% 0%, rgb(176 138 62 / 0.25), transparent 70%),
      linear-gradient(0deg, rgb(14 16 19 / 0.96) 0%, rgb(14 16 19 / 0.82) 55%, rgb(14 16 19 / 0.55) 100%);
  }
  .hero__inner { padding-top: calc(var(--header-h) + 64px); }
}
@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .stat-chip { padding: 12px; }
}

/* ==========================================================================
   Seções
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--tight { padding-top: 0; }

.section-head {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .h2 { max-width: 16ch; }
.section-head__aside { display: grid; gap: 14px; max-width: 42ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; }
  .section-head__aside { padding-bottom: 6px; justify-self: end; }
}

/* ---------- 01 · Pilares ---------- */
.pillars {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}
.pillar {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line);
}
.pillar__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  color: var(--brown); background: var(--white);
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar__num { position: absolute; top: 34px; right: 0; font-size: 0.8rem; color: var(--muted); }
.pillar p { max-width: 36ch; padding-bottom: 24px; }
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 40px 32px 16px; border-bottom: 0; }
  .pillar:first-child { padding-left: 0; }
  .pillar + .pillar { border-left: 1px solid var(--line); }
  .pillar__num { right: 32px; top: 42px; }
}

/* ---------- 02 · Serviços (abas) ---------- */
.services { display: grid; gap: 32px; }
.services__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.services__tabs::-webkit-scrollbar { display: none; }
.services__tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.925rem; color: var(--muted);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.services__tabs [role="tab"] .mono { font-size: 0.75rem; }
.services__tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: none; }

.service { display: grid; gap: 28px; }
.service[hidden] { display: none; }
.service:focus-visible { outline-offset: 8px; }
.service__num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--brown); }
.service__title { margin-top: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); letter-spacing: -0.03em; }
.service__list { display: grid; gap: 18px; margin-top: 24px; }
.service__list li { display: grid; gap: 2px; padding-left: 20px; position: relative; }
.service__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--bronze); transform: rotate(45deg); }
.service__list strong { font-weight: 500; }
.service__list span { color: var(--muted); font-size: 0.95rem; }
.service__media { border-radius: var(--radius); overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; animation: img-in .7s var(--ease); }
@keyframes img-in { from { opacity: 0; transform: scale(1.03); } }

.services__cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  min-height: 168px; padding: 22px;
  border-radius: var(--radius); color: var(--white);
  background: var(--ink-2);
}
.services__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 90% at 100% 0%, rgb(176 138 62 / 0.45), transparent 70%),
              linear-gradient(160deg, var(--brown-deep), var(--ink));
}
.services__cta > span:first-child { display: grid; gap: 4px; max-width: 26ch; }
.services__cta strong { font-weight: 500; font-size: 1.1rem; }
.services__cta > span:first-child span { font-size: 0.875rem; color: rgb(255 255 255 / 0.7); }
.services__cta .round-btn { position: absolute; top: 18px; right: 18px; transition: transform .3s var(--ease); }
.services__cta:hover .round-btn { transform: rotate(45deg); }

@media (min-width: 1024px) {
  .services { grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 24px; }
  .services__panels { grid-column: 1; grid-row: 1 / 3; }
  .services__tabs {
    grid-column: 2; grid-row: 1;
    flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0;
  }
  .services__tabs [role="tab"] {
    min-height: 48px; padding: 0; border-radius: 0; box-shadow: none;
    border-bottom: 1px solid var(--line); text-align: left;
    font-size: 0.975rem;
  }
  .services__tabs [role="tab"]:hover { color: var(--ink); }
  .services__tabs [role="tab"][aria-selected="true"] { background: none; color: var(--ink); font-weight: 500; }
  .services__tabs [role="tab"][aria-selected="true"] .mono { color: var(--brown); }
  .services__tabs [role="tab"][aria-selected="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; background: var(--bronze); transform: rotate(45deg); }
  .services__cta { grid-column: 2; grid-row: 2; align-self: end; min-height: 220px; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
  .service__media { aspect-ratio: 4 / 5; }
}

/* ---------- 03 · Projetos ---------- */
.panel {
  position: relative;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--stone);
}
.panel::before { /* grid técnico sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image:
    linear-gradient(to right, rgb(14 16 19 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(14 16 19 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 15% 55%, #000, transparent 75%);
}
.panel > * { position: relative; }
.panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.panel__head .h2 { margin-top: 20px; max-width: 15ch; }

.projects { display: grid; gap: 28px; }
.projects__nav { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.projects__list { display: grid; }
.projects__list [role="tab"] {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.03em;
  color: rgb(14 16 19 / 0.35);
  transition: color .25s var(--ease);
}
.projects__list [role="tab"] small { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; font-weight: 400; color: var(--muted); }
.projects__list [role="tab"]:hover { color: rgb(14 16 19 / 0.6); }
.projects__list [role="tab"][aria-selected="true"] { color: var(--ink); }
.projects__arrows { display: flex; align-items: center; gap: 12px; }
.projects__progress { flex: 1; max-width: 120px; height: 1px; background: var(--line-strong); position: relative; }
.projects__progress i { position: absolute; inset: -0.5px auto -0.5px 0; width: var(--progress, 33%); background: var(--ink); transition: width .4s var(--ease); }

.project[hidden] { display: none; }
.project__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); }
.project__media img { width: 100%; height: 100%; object-fit: cover; animation: img-in .7s var(--ease); }
.project__meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-top: 20px; }
.specs { display: flex; gap: 28px; }
.specs div { display: grid; gap: 2px; }
.specs dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-weight: 500; font-size: 1.05rem; font-feature-settings: "tnum"; }

@media (min-width: 1024px) {
  .projects { grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.6fr); gap: 56px; }
  .projects__nav { padding-block: 8px 72px; }
}

/* Antes & depois */
.ba-block { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.ba-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.ba {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: var(--ink);
  user-select: none; touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0;
  background: var(--white); pointer-events: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1013' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
  transition: transform .2s var(--ease);
}
.ba:has(.ba__range:focus-visible) .ba__handle::before { outline: 2px solid var(--bronze); outline-offset: 3px; }
.ba:hover .ba__handle::before { transform: scale(1.06); }
.ba__tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgb(14 16 19 / 0.6); color: var(--white); backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; background: rgb(244 242 237 / 0.85); color: var(--ink); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; appearance: none; -webkit-appearance: none; background: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
@media (max-width: 599px) { .ba { aspect-ratio: 4 / 3; } }

/* ---------- 04 · Processo ---------- */
.process {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 var(--frame);
  padding-block: var(--section-y);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 60% at 100% 0%, rgb(122 74 38 / 0.45), transparent 70%),
    var(--ink);
  color: var(--white);
}
.process__grid-lines { mask-image: linear-gradient(180deg, #000, transparent 85%); }
.section-head--dark .section-head__aside p:last-child { color: rgb(255 255 255 / 0.7); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.step__num { font-size: 0.8rem; color: var(--bronze-light); }
.step__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 28px; }
.step p { color: rgb(255 255 255 / 0.68); font-size: 0.95rem; }
.step::before { /* conector */
  content: ""; position: absolute; top: 36px; left: 64px; right: 24px; height: 1px;
  background: linear-gradient(90deg, rgb(216 187 127 / 0.6), transparent);
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 05 · Sobre ---------- */
.about { display: grid; gap: 56px; margin-bottom: clamp(48px, 6vw, 80px); }
.about__copy { display: grid; gap: 20px; justify-items: start; max-width: 56ch; }
.about__copy .h2 { max-width: 14ch; margin-bottom: 4px; }
.about__copy .btn { margin-top: 12px; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; border-top: 1px solid var(--line-strong); }
.numbers div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.numbers div:nth-child(odd) { padding-right: 16px; }
.numbers div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers dt { color: var(--muted); font-size: 0.95rem; }
.numbers dd { font-size: clamp(3rem, 2.2rem + 3vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -0.05em; font-feature-settings: "tnum"; }
@media (min-width: 1024px) {
  .about { grid-template-columns: 1fr 1fr; gap: 80px; }
  .numbers { margin-top: 44px; }
}

.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--ink); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: grid; gap: 16px; padding: 20px;
  border-radius: 18px; color: var(--white);
  background: rgb(14 16 19 / 0.55);
  box-shadow: inset 0 0 0 1px var(--line-light);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.about__card p { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; max-width: 30ch; }
.about__card dl { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.about__card dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze-light); }
.about__card dd { font-size: 0.925rem; }
@media (min-width: 768px) {
  .about__card { left: auto; right: 24px; bottom: 24px; width: 380px; }
}
@media (max-width: 767px) {
  .about__media { aspect-ratio: auto; display: grid; }
  .about__media img { aspect-ratio: 4 / 3; }
  .about__card { position: static; border-radius: 0; background: var(--ink); }
}

/* ---------- 06 · Depoimentos ---------- */
.quotes { display: grid; gap: 16px; }
.quote {
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.quote__mark { width: 32px; height: 32px; color: var(--bronze); }
.quote blockquote { flex: 1; }
.quote blockquote p { font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.01em; }
.quote__by { padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.quote__by strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quote:nth-child(2) { background: var(--ink); color: var(--white); box-shadow: none; }
  .quote:nth-child(2) .quote__mark { color: var(--bronze-light); }
  .quote:nth-child(2) .quote__by { color: rgb(255 255 255 / 0.65); border-color: var(--line-light); }
  .quote:nth-child(2) .quote__by strong { color: var(--white); }
}

/* ---------- 07 · FAQ ---------- */
.faq { display: grid; gap: 48px; }
.faq__intro { display: grid; gap: 20px; justify-items: start; align-content: start; }
.faq__intro .h2 { margin-top: 4px; }
.faq__intro .btn { margin-top: 8px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 16px 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon {
  width: 36px; height: 36px; padding: 8px; flex: none;
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.faq__list summary:hover .icon { background: var(--white); }
.faq__list details[open] summary .icon { transform: rotate(45deg); background: var(--ink); color: var(--white); box-shadow: none; }
.faq__list details p { max-width: 62ch; padding: 0 56px 28px 0; color: var(--muted); }
.faq__list details::details-content { transition: height .35s var(--ease), content-visibility .35s allow-discrete; height: 0; overflow: clip; }
.faq__list details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 48px); }
}

/* ---------- 08 · Contato ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 40px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 0% 100%, rgb(122 74 38 / 0.55), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgb(176 138 62 / 0.18), transparent 70%),
    var(--ink);
  color: var(--white);
}
.contact__grid-lines { mask-image: linear-gradient(200deg, #000, transparent 70%); }
.contact__copy { display: grid; gap: 22px; align-content: start; }
.contact__copy .h2 { max-width: 13ch; }
.contact__lead { color: rgb(255 255 255 / 0.75); max-width: 44ch; font-size: var(--fs-lead); }
.contact__list { display: grid; gap: 4px; margin-top: 12px; }
.contact__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; color: rgb(255 255 255 / 0.85); }
.contact__list .icon { width: 18px; height: 18px; color: var(--bronze-light); }
.contact__list a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.contact__list a:hover { text-decoration-color: var(--bronze-light); }
.contact__list li:first-child a, .contact__list li:nth-child(2) a { word-break: break-word; }

.form {
  display: grid; gap: 16px; align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white);
  font-size: 1rem; /* evita zoom no iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1013' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 40px; }
.field input::placeholder { color: #8f8a80; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(176 138 62 / 0.35); }
.field [aria-invalid="true"] { border-color: #a3341f; }
.form__error { color: #a3341f; font-size: 0.9rem; font-weight: 500; }
.form .btn { margin-top: 4px; }
.form__note { font-size: 0.8rem; color: var(--muted); text-align: center; }

@media (min-width: 1024px) {
  .contact { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer { padding: clamp(64px, 8vw, 96px) 0 32px; }
.footer__top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-strong); }
.footer__brand { display: grid; gap: 20px; max-width: 36ch; }
.brand--footer { color: var(--ink); margin: 0; }
.brand--footer img { filter: none; }
.footer__title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__col ul { display: grid; }
.footer__col a, .footer__plain li { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.95rem; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--brown); }
.footer__col .icon { width: 16px; height: 16px; color: var(--brown); }
.footer__plain li { color: var(--muted); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 0.825rem; color: var(--muted); }
@media (min-width: 768px) { .footer__top { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1fa855; color: var(--white);
  box-shadow: 0 12px 32px -8px rgb(14 16 19 / 0.45), inset 0 0 0 1px rgb(255 255 255 / 0.15);
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .2s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: #178f47; transform: scale(1.06); }
html.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .stat-chip, .service__media img, .project__media img { animation: none !important; }
}
