/* =========================================================
   WMB Soluções em Engenharia — folha de estilo
   Conceito: linguagem de prancha técnica (eixos estruturais,
   cotas, carimbo) sobre uma base sóbria de grafite e concreto.
   ========================================================= */

:root {
  /* Cor */
  --graphite: #15181b;      /* fundo escuro, tinta principal */
  --graphite-2: #1e2226;    /* superfícies elevadas no escuro */
  --concrete: #f1f1ee;      /* fundo claro */
  --paper: #fbfbf9;         /* superfícies no claro */
  --line: #d3d5d0;          /* linhas no claro */
  --line-dark: #30363c;     /* linhas no escuro */
  --ink: #15181b;
  --muted: #59616a;
  --on-dark: #e9ebe8;
  --on-dark-muted: #9aa2aa;
  --oxide: #b4381f;         /* zarcão: primer de estrutura metálica */
  --oxide-bright: #e2633f;  /* zarcão sobre fundo escuro */
  --oxide-ink: #ffffff;

  /* Tipografia: uma família, a largura faz o contraste */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 2.2vw, 1.875rem);
  --fs-xl: clamp(2.1rem, 4.4vw, 3.5rem);
  --fs-xxl: clamp(2.6rem, 6.6vw, 5.6rem);

  /* Layout */
  --max: 1240px;
  --gutter-x: max(20px, env(safe-area-inset-left, 0px));
  --gutter-x-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 2px;
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--graphite);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--oxide-bright); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x-r);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--oxide); color: var(--oxide-ink); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Títulos condensados: a assinatura tipográfica do site */
.display {
  font-variation-settings: "wdth" 72;
  font-weight: 750;
  letter-spacing: -0.015em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--oxide); color: var(--oxide-ink); }
.btn-primary:hover { background: #9a2f19; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.on-dark .btn-ghost { color: var(--on-dark); border-color: #4a525a; }
.on-dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn-ghost:hover { background: rgba(127,127,127,.08); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--graphite); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--on-dark); flex: none; }
.brand img { height: 34px; width: auto; }
.brand-text {
  display: none; font-weight: 750; font-variation-settings: "wdth" 80; font-size: 1.35rem; letter-spacing: .01em;
}
.brand-text small { font-weight: 450; font-size: .8rem; color: var(--on-dark-muted); margin-left: 8px; font-variation-settings: "wdth" 100; }
.brand.no-logo img { display: none; }
.brand.no-logo .brand-text { display: inline; }

.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  position: relative; padding: 10px 11px; text-decoration: none; font-size: .93rem; white-space: nowrap; font-weight: 500;
  color: var(--on-dark-muted); transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--oxide-bright);
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid #4a525a; background: transparent;
  color: var(--on-dark); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--graphite); color: var(--on-dark);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* Eixos estruturais (traço-ponto), como numa planta de formas */
.axes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.axes .ax {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background-image: repeating-linear-gradient(to bottom, #2c3237 0 18px, transparent 18px 24px, #2c3237 24px 27px, transparent 27px 33px);
  transform-origin: top; animation: draw-y 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.axes .ay {
  position: absolute; left: 0; right: 0; height: 1px;
  background-image: repeating-linear-gradient(to right, #2c3237 0 18px, transparent 18px 24px, #2c3237 24px 27px, transparent 27px 33px);
  transform-origin: left; animation: draw-x 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.axes .bubble {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #3b4248; color: #6f7881; background: var(--graphite);
  font-size: .75rem; font-weight: 600; display: grid; place-items: center;
}
.axes .ax .bubble { top: 14px; left: -14px; }
.axes .ay .bubble { left: 14px; top: -14px; }
.axes .ax:nth-child(2) { animation-delay: .08s; }
.axes .ax:nth-child(3) { animation-delay: .16s; }
.axes .ax:nth-child(4) { animation-delay: .24s; }
.axes .ax:nth-child(5) { animation-delay: .32s; }
.axes .ay:nth-child(6) { animation-delay: .2s; }
.axes .ay:nth-child(7) { animation-delay: .35s; }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero-copy { min-width: 0; padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.hero-kicker { color: var(--on-dark-muted); font-size: var(--fs-sm); font-weight: 500; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: var(--oxide-bright); }
.hero h1 { font-size: var(--fs-xxl); line-height: .96; max-width: 11ch; }
.hero-lede { margin-top: 26px; max-width: 54ch; color: #c3c8cc; font-size: 1.125rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-media { min-width: 0; }
.hero-media .frame { position: relative; padding: 0 0 34px 34px; }
.hero-media .media { aspect-ratio: 4 / 3.4; }
/* Cotas da foto */
.dim { position: absolute; color: var(--on-dark-muted); font-size: .78rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dim-h { left: 34px; right: 0; bottom: 0; height: 22px; border-left: 1px solid #4a525a; border-right: 1px solid #4a525a; }
.dim-h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #4a525a; }
.dim-h span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--graphite); padding: 0 10px; white-space: nowrap; }
.dim-v { left: 0; top: 0; bottom: 34px; width: 22px; border-top: 1px solid #4a525a; border-bottom: 1px solid #4a525a; }
.dim-v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #4a525a; }
.dim-v span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); background: var(--graphite); padding: 0 10px; white-space: nowrap; }
.hero-media figcaption { margin-top: 14px; padding-left: 34px; font-size: var(--fs-sm); color: var(--on-dark-muted); }

/* Carimbo: o bloco de identificação de toda prancha técnica */
.carimbo {
  position: relative; z-index: 2;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line-dark); border-bottom: 0;
  background: var(--graphite);
}
.carimbo div { padding: 18px 20px 20px; border-right: 1px solid var(--line-dark); min-width: 0; }
.carimbo div:last-child { border-right: 0; }
.carimbo dt { font-size: .8rem; color: var(--on-dark-muted); font-weight: 500; }
.carimbo dd { margin: 6px 0 0; font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; line-height: 1; color: var(--on-dark); white-space: nowrap; }

/* ---------- Faixa de referências ---------- */
.refs { border-bottom: 1px solid var(--line); background: var(--paper); }
.refs .wrap { display: flex; align-items: center; gap: 28px; padding-block: 26px; flex-wrap: wrap; }
.refs p { font-size: var(--fs-sm); color: var(--muted); flex: none; }
.refs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.refs li {
  font-weight: 650; font-variation-settings: "wdth" 80; font-size: 1.125rem; color: #3a4148;
  padding: 2px 22px; border-left: 1px solid var(--line);
}
.refs li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { color: var(--muted); max-width: 52ch; font-size: 1.0625rem; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

/* ---------- Atuação (abas) ---------- */
.tabs { border-top: 1px solid var(--ink); }
.tablist { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: none; font: inherit; font-size: 1.0625rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 18px 26px 16px 0; margin-right: 26px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--oxide); }
.tab:hover { color: var(--ink); }
.tabpanel { padding-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .9fr); gap: 40px 56px; }
.no-js .tabpanel[hidden] { display: grid !important; border-top: 1px solid var(--line); margin-top: 2rem; }
.tabpanel .lead h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 80; }
.tabpanel .lead p { margin-top: 14px; color: var(--muted); }
.tabpanel h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.ticks li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); line-height: 1.45; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--oxide); }
.traits { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.traits li { font-size: var(--fs-sm); padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.section-alt .traits li { background: var(--concrete); }
.refs-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.refs-list li:last-child { border-bottom: 1px solid var(--line); }
.refs-list strong { display: block; font-weight: 600; }
.refs-list span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Serviços ---------- */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.module { padding: clamp(1.75rem, 3vw, 2.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); min-width: 0; }
.module h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 80; }
.module > p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.module ul { margin-top: 22px; }
.norms { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; }
.norms p { font-size: var(--fs-sm); color: var(--muted); margin-right: 8px; }
.norms li { font-weight: 650; font-variation-settings: "wdth" 85; font-size: .95rem; padding: 7px 14px; border: 1px solid var(--ink); border-radius: var(--radius); }

/* ---------- Obras ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: .95rem; font-weight: 550; padding: 9px 16px; min-height: 40px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 100px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: #aab1b8; }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.work { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.work[hidden] { display: none !important; }
.work .media { aspect-ratio: 16 / 10; }
.work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-meta { font-size: var(--fs-sm); color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.work h3 { font-size: 1.4rem; font-variation-settings: "wdth" 80; }
.work p { color: var(--muted); font-size: .98rem; }
.work .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.work .tags li { font-size: .8rem; font-weight: 550; padding: 3px 9px; background: var(--concrete); border: 1px solid var(--line); border-radius: var(--radius); }
.scale { margin-top: auto; padding-top: 14px; }
.scale-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.scale-row strong { font-size: 1.6rem; font-weight: 700; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; line-height: 1; }
.scale-row span { font-size: .8rem; color: var(--muted); }
.scale-bar { position: relative; height: 10px; margin-top: 10px; border-left: 1px solid var(--muted); border-right: 1px dashed var(--line); }
.scale-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.scale-bar i { position: absolute; left: 0; top: 2px; bottom: 2px; width: calc(var(--r) * 100%); background: var(--oxide); }

.work.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.work.featured .media { aspect-ratio: auto; min-height: 340px; height: 100%; }
.work.featured .work-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.work.featured h3 { font-size: var(--fs-lg); }
.works.filtered .work.featured { grid-column: auto; display: flex; }
.works.filtered .work.featured .media { aspect-ratio: 16 / 10; min-height: 0; height: auto; }

/* Imagens com estado vazio desenhado (sem imagem quebrada) */
.media {
  position: relative; overflow: hidden; background-color: var(--graphite-2);
  background-image:
    linear-gradient(#262b30 1px, transparent 1px),
    linear-gradient(90deg, #262b30 1px, transparent 1px),
    linear-gradient(#20252a 1px, transparent 1px),
    linear-gradient(90deg, #20252a 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.media picture { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.media::after {
  content: ""; position: absolute; left: 20px; bottom: 14px; z-index: 0;
  font-weight: 750; font-variation-settings: "wdth" 62; font-size: clamp(2rem, 5vw, 3.6rem);
  color: #2f363c; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.portrait .media { aspect-ratio: 4 / 5; }
.portrait figcaption { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.about-copy h3 { font-size: var(--fs-xl); max-width: 14ch; }
.about-role { margin-top: 12px; color: var(--muted); font-weight: 500; }
.about-copy .prose { margin-top: 28px; display: grid; gap: 16px; max-width: 62ch; font-size: 1.0625rem; }
.pillars { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pillars div { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); }
.pillars dt { font-weight: 650; }
.pillars dd { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.edge { margin-top: 36px; padding: 24px 26px; background: var(--graphite); color: var(--on-dark); border-radius: var(--radius); }
.edge h4 { font-size: 1.0625rem; font-weight: 650; }
.edge ul { margin-top: 12px; display: grid; gap: 8px; }
.edge li { color: #c3c8cc; padding-left: 20px; position: relative; }
.edge li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--oxide-bright); }

/* ---------- Missão e valores ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
.mission blockquote { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.18; font-weight: 600; font-variation-settings: "wdth" 85; letter-spacing: -.01em; text-wrap: pretty; }
.mission .goals { margin-top: 32px; }
.values { align-content: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.values div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.values dt { font-weight: 650; font-size: 1.0625rem; }
.values dd { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.position { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 28px; border-top: 1px solid var(--line); max-width: 70ch; color: var(--muted); font-size: 1.0625rem; }
.position strong { color: var(--ink); font-weight: 600; }

/* ---------- Como contratar ---------- */
.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.package { display: flex; flex-direction: column; padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); min-width: 0; }
.package.full { background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); }
.package h3 { font-size: 1.4rem; font-variation-settings: "wdth" 80; min-height: 2.2em; }
.package > p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.package.full > p, .package.full .ticks li { color: #c3c8cc; }
.package.full .ticks li { border-color: var(--line-dark); }
.package.full .ticks li::before { background: var(--oxide-bright); }
.package .ticks { margin-top: 20px; margin-bottom: 26px; }
.package .ticks li { font-size: .95rem; }
.package .btn { margin-top: auto; width: 100%; }
.package:not(.full) .btn-ghost { border-color: var(--line); }
.package:not(.full) .btn-ghost:hover { border-color: var(--ink); }
/* Fases cobertas por cada pacote */
.phases { margin-top: 20px; }
.phases ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.phases li { height: 6px; background: var(--line); }
.phases li.on { background: var(--oxide); }
.package.full .phases li { background: var(--line-dark); }
.package.full .phases li.on { background: var(--oxide-bright); }
.phases p { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.package.full .phases p { color: var(--on-dark-muted); }
.phase-legend { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 520px; font-size: .8rem; color: var(--muted); }
.phase-legend span { border-top: 6px solid var(--line); padding-top: 6px; }

.terms { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.terms section { padding: 26px 28px; border: 1px solid var(--line); background: var(--concrete); }
.terms h3 { font-size: 1.125rem; font-weight: 650; margin-bottom: 14px; }
.terms dl { margin: 0; display: grid; gap: 0; }
.terms dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 550; }
.terms dd { margin: 0; color: var(--muted); text-align: right; }

/* ---------- Contato ---------- */
.contact { background: var(--graphite); color: var(--on-dark); }
.contact .section-head p { color: var(--on-dark-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-info > div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info dt { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.contact-info dd { margin: 4px 0 0; font-size: 1.125rem; font-weight: 550; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-btn {
  font: inherit; font-size: .8rem; font-weight: 550; padding: 4px 10px; border-radius: var(--radius);
  border: 1px solid #4a525a; background: transparent; color: var(--on-dark-muted); cursor: pointer;
}
.copy-btn:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.contact-info dd.hours { font-variant-numeric: tabular-nums; display: grid; gap: 2px; font-size: 1rem !important; font-weight: 450 !important; }
.hours span { display: flex; justify-content: space-between; gap: 24px; max-width: 300px; }
.hours b { font-weight: 550; }
.hours em { font-style: normal; color: var(--on-dark-muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #4a525a; border-radius: var(--radius); font-size: .95rem; text-decoration: none !important; }
.socials a:hover { border-color: var(--on-dark); }
.socials svg { width: 18px; height: 18px; }

.form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius); }
.form h3 { font-size: var(--fs-lg); font-variation-settings: "wdth" 80; }
.form > p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.fields { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field label .opt { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #bfc3bd; border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oxide); outline-offset: 0; border-color: var(--oxide); }
.field .err { font-size: .85rem; color: var(--oxide); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--oxide); }
.form-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: .85rem; max-width: 36ch; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: .98rem; }
.form-status.ok { background: #e6efe6; color: #1f4d2b; border: 1px solid #b9d3bd; }
.form-status.fail { background: #f6e7e2; color: #7a2412; border: 1px solid #e3bfb3; }
.hp { position: absolute; left: -9999px; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0f1113; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); }
.site-footer .wrap { padding-block: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand img { height: 30px; }
.site-footer p { margin-top: 14px; max-width: 40ch; font-size: .95rem; }
.site-footer h4 { font-size: .9rem; color: var(--on-dark); font-weight: 600; margin-bottom: 12px; }
.site-footer li { padding: 3px 0; font-size: .95rem; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--on-dark); }
.footer-base { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Botão flutuante de WhatsApp (só aparece se configurado) */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f8f4e; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--graphite); border-bottom: 1px solid var(--line-dark);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .menu-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .menu-open .nav a[aria-current="page"]::after { display: none; }
  .menu-open .nav a[aria-current="page"] { color: var(--oxide-bright); }
}
@media (max-width: 1080px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabpanel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tabpanel .lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .section-head, .about, .mission, .contact-grid, .terms { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 620px; }
  .carimbo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carimbo div { border-bottom: 1px solid var(--line-dark); }
  .carimbo div:nth-child(2n) { border-right: 0; }
  .carimbo div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work.featured { grid-template-columns: minmax(0, 1fr); }
  .work.featured .media { min-height: 0; aspect-ratio: 16 / 9; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .portrait { max-width: 420px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-cta .btn { display: none; }
  .brand img { height: 28px; }
  .works, .modules, .packages, .tabpanel, .pillars, .values, .fields { grid-template-columns: minmax(0, 1fr); }
  .refs ul { gap: 6px 20px; }
  .refs li, .refs li:first-child { font-size: 1rem; padding: 0; border-left: 0; }
  .carimbo dd { font-size: 1.6rem; }
  .carimbo div { padding: 14px 14px 16px; }
  .refs .wrap { gap: 12px; }
  .hero-media .frame { padding: 0 0 30px 0; }
  .hero-media figcaption { padding-left: 0; }
  .dim-v { display: none; }
  .dim-h { left: 0; }
  .package h3 { min-height: 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .tab { padding-right: 18px; margin-right: 14px; font-size: 1rem; }
  .terms dl div { flex-direction: column; gap: 2px; }
  .terms dd { text-align: left; }
}

/* =========================================================
   Páginas internas
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .axes .ax:nth-child(n+4) { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: #4a525a; }
.page-hero h1 { font-size: var(--fs-xxl); line-height: .96; max-width: 16ch; }
.page-hero .lede { margin-top: 22px; max-width: 58ch; color: #c3c8cc; font-size: 1.125rem; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--oxide); }
.text-link:hover { text-decoration-thickness: 2px; }
.on-dark .text-link { text-decoration-color: var(--oxide-bright); }
.section-foot { margin-top: clamp(2rem, 4vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Diferenciais (início) */
.diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.diffs div { padding: 22px 24px 0 0; }
.diffs dt { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 80; }
.diffs dd { margin: 8px 0 0; color: var(--muted); }

/* Lista de serviços resumida (início) */
.svc-list { border-top: 1px solid var(--ink); }
.svc-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc-list strong { font-size: 1.4rem; font-weight: 700; font-variation-settings: "wdth" 80; }
.svc-list span { color: var(--muted); }
.svc-list em { font-style: normal; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--oxide); }
.svc-list a:hover strong { color: var(--oxide); }

/* Faixa de chamada final */
.cta-band { background: var(--graphite); color: var(--on-dark); }
.cta-band .wrap { padding-block: clamp(3.5rem, 7vw, 5rem); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: end; }
.cta-band h2 { font-size: var(--fs-xl); max-width: 18ch; }
.cta-band p { margin-top: 14px; color: var(--on-dark-muted); max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nichos */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a { padding: 8px 14px; border: 1px solid #4a525a; border-radius: 100px; font-size: .95rem; text-decoration: none; color: var(--on-dark); }
.subnav a:hover { border-color: var(--on-dark); }
.niche { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.niche:nth-of-type(even) { background: var(--paper); }
.niche-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.niche-head h2 { font-size: var(--fs-xl); }
.niche-head p { color: var(--muted); max-width: 52ch; }
.niche-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; border-top: 1px solid var(--ink); padding-top: 28px; }
.niche-grid h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.proj-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.proj-list li:last-child { border-bottom: 1px solid var(--line); }
.proj-list li.no-thumb { grid-template-columns: minmax(0, 1fr); }
.proj-list .thumb { width: 76px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite-2); }
.proj-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-list strong { display: block; font-weight: 600; line-height: 1.3; }
.proj-list span { font-size: var(--fs-sm); color: var(--muted); }

/* Sobre */
.founder { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.ficha { background: var(--graphite); color: var(--on-dark); padding: 26px 28px; border-radius: var(--radius); }
.ficha h2 { font-size: 1rem; font-weight: 600; color: var(--on-dark-muted); }
.ficha dl { margin: 14px 0 0; }
.ficha dl div { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.ficha dt { font-size: .8rem; color: var(--on-dark-muted); }
.ficha dd { margin: 4px 0 0; font-weight: 550; overflow-wrap: anywhere; }
.ficha dd.big { font-size: 2.25rem; font-weight: 700; font-variation-settings: "wdth" 72; line-height: 1; }
.founder h2.name { font-size: var(--fs-xl); max-width: 14ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split .media { aspect-ratio: 4 / 3; }
.split figure { margin: 0; }
.split figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.split h2 { font-size: var(--fs-xl); }
.split .prose { margin-top: 20px; display: grid; gap: 14px; max-width: 58ch; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags-row li { font-size: .95rem; font-weight: 550; padding: 7px 14px; border: 1px solid var(--ink); border-radius: var(--radius); }

/* Serviços */
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.expertise div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.expertise dt { font-weight: 700; font-size: 1.2rem; font-variation-settings: "wdth" 85; }
.expertise dd { margin: 6px 0 0; color: var(--muted); }
.invest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.invest div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.invest dt { font-weight: 700; font-size: 1.25rem; font-variation-settings: "wdth" 80; }
.invest dd { margin: 6px 0 0; color: var(--muted); }

/* Portfólio */
.totals { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.totals div { padding: 18px 20px 0 0; min-width: 0; }
.totals dt { font-size: var(--fs-sm); color: var(--muted); }
.totals dd { margin: 4px 0 0; font-size: var(--fs-xl); font-weight: 700; font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }

/* Missão */
.photo-band { position: relative; min-height: clamp(320px, 42vw, 520px); display: flex; align-items: flex-end; color: #fff; background: var(--graphite); overflow: hidden; }
.photo-band picture, .photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,24,27,0) 30%, rgba(21,24,27,.88) 100%); }
.photo-band .wrap { position: relative; z-index: 2; padding-block: 2.5rem; }
.photo-band p { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; font-weight: 600; font-variation-settings: "wdth" 85; max-width: 30ch; }
.photo-band small { display: block; margin-top: 14px; font-size: var(--fs-sm); color: #c3c8cc; }

@media (max-width: 900px) {
  .diffs, .expertise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .wrap, .niche-head, .founder, .split { grid-template-columns: minmax(0, 1fr); }
  .niche-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .niche-grid > :first-child { grid-column: 1 / -1; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .totals div { padding-bottom: 18px; }
  .svc-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-list span { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .diffs, .expertise, .niche-grid, .invest { grid-template-columns: minmax(0, 1fr); }
  .totals dd { font-size: 2rem; }
}

.values-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list-title { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.form .form-title { font-size: var(--fs-lg); font-variation-settings: "wdth" 80; }
.contact-info dd.hours span em { text-align: right; }
@media (max-width: 900px) { .values-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .values-3 { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
