/* ==========================================================================
   Athom — Projetos e aprovação de loteamentos
   Direção de arte: a prancha técnica como gramática editorial.

   Regras do sistema
   · Três eixos na grade de 12 colunas, compartilhados por todas as seções:
       A = coluna 1 (rótulos, títulos)   B = coluna 5 (texto, painéis)
       C = coluna 7 (desenho, formulário)
   · Tipo: Geologica (títulos e interface) + Source Serif 4 (texto corrido).
   · Âmbar/dourado: ação (botão primário), interferência (desenhos) e
     detalhes de seleção e régua (ver "Acentos dourados" no fim do arquivo).
     Nunca vira cor de texto corrido.
   · Todo desenho é uma prancha: moldura, margem interna e carimbo.
   · Divisores: 1px, sempre. Raio: 2px, sempre.

   Tokens → base → grid → tipografia → botões → cabeçalho → hero → seções
   ========================================================================== */

:root {
  /* Marca (extraída do site original) */
  --navy: #141a46;
  --ink: #030f27;
  --steel: #8a99c0;
  --amber: #f5ad0d;

  /* Superfícies e texto */
  --paper: #f1f3f6;
  --white: #ffffff;
  --text: #141a46;
  --text-soft: #414970;
  --on-dark: #ffffff;
  --on-dark-soft: #c3cbe3;
  --line: rgba(20, 26, 70, 0.2);
  --line-strong: rgba(20, 26, 70, 0.55);
  --line-dark: rgba(255, 255, 255, 0.22);
  --focus: var(--navy);

  /* Camadas do modelo (convenção de CAD) */
  --layer-urbanismo: #ffffff;
  --layer-terra: #8a99c0;
  --layer-dren: #56b9e6;
  --layer-san: #6fd0a8;

  --sans: "Geologica", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font: var(--sans); /* usado pelos textos dentro dos SVGs */

  /* Escala tipográfica */
  --fs-display: clamp(2rem, 3.5vw, 3.25rem);
  --fs-statement: clamp(2.125rem, 4.1vw, 3.75rem);
  --fs-h2: clamp(2rem, 3.3vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.1875rem, 1.5vw, 1.3125rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  /* Grade e ritmo */
  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section-y: clamp(64px, 7.5vw, 112px);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 2px;
  --header-h: 68px;
}

*,
*::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(--white);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

button, input, select { font-family: var(--sans); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* superfícies escuras: o anel de foco inverte */
.site-header, .hero, .cases-section, .steps-section, .diff, .site-footer { --focus: #ffffff; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--ink); }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* Grade editorial de 12 colunas */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 300;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.014em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 44ch;
}

.prose p { max-width: 56ch; }
.prose p + p { margin-top: 1.1em; }
.prose strong { font-weight: 600; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

/* único uso do âmbar como superfície: a ação principal */
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: #ffc13d; }
.btn--primary:active { background: #e29f08; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--on-dark); }

.icon { width: 20px; height: 20px; flex: none; }

/* ação secundária de desenho (carimbo da prancha) */
.text-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.text-action:hover:not(:disabled) { border-color: var(--on-dark); background: rgba(255, 255, 255, 0.08); }
.text-action:disabled { opacity: 0.4; cursor: default; }

.link-strong {
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.link-strong:hover { text-decoration-thickness: 2px; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; }
.nav li a {
  display: inline-block;
  padding: 8px 0;
  color: var(--on-dark-soft);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav li a:hover { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* o CTA do cabeçalho é contorno: o âmbar fica para a ação do hero */
.nav .btn--primary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--on-dark);
}
.nav .btn--primary:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); }

/* submenu de serviços: gatilho com o mesmo tratamento dos links; abre com .is-open */
.nav__item { position: relative; }

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--on-dark-soft);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 400;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.nav__trigger::after {
  content: "";
  width: 6px; height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s, margin-top 0.15s;
}
.nav__trigger:hover,
.nav__item.is-open .nav__trigger { color: var(--on-dark); border-bottom-color: var(--on-dark); }
.nav__item.is-open .nav__trigger::after { transform: rotate(-135deg); margin-top: 3px; }

.nav .subnav {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  z-index: 10;
  min-width: 248px;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  background: var(--navy);
  border: 1px solid var(--line-dark);
}
.nav__item.is-open .subnav { display: flex; }
.nav .subnav a {
  display: block;
  padding: 11px 20px;
  border-bottom: 0;
  white-space: nowrap;
}
.nav .subnav a:hover { background: rgba(255, 255, 255, 0.07); }
.nav .subnav a[aria-current="page"] { color: var(--on-dark); }

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}

/* com o submenu e "Quem somos" a barra não cabe abaixo de ~960px */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 4px var(--gutter) 28px;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav li a:hover { border-bottom-color: var(--line-dark); }

  .nav__trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__trigger:hover,
  .nav__item.is-open .nav__trigger { border-bottom-color: var(--line-dark); }
  .nav .subnav {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
  }
  .nav .subnav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .subnav a:hover { background: transparent; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--on-dark);
  padding-top: clamp(40px, 5.5vw, 80px);
  overflow: hidden;
}

/* copy no eixo A, prancha no eixo C */
.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.hero__copy { grid-column: 1 / 7; padding-right: clamp(0px, 2vw, 32px); }

.hero h1 { max-width: 20ch; }
.hero__title-rest { display: block; margin-top: 0.12em; }

.hero__lead {
  margin-top: 32px;
  max-width: 36ch;
  text-wrap: balance;
  font-family: var(--sans);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero__text {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--on-dark-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__micro {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}

/* A prancha: moldura externa, margem, moldura interna (desenho) e carimbo */
.hero__plan {
  grid-column: 7 / 13;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-dark);
}

.hero__plan-art {
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.plan { display: block; width: 100%; height: auto; overflow: hidden; }

.plan-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-dark);
  border-top: 0;
  font-family: var(--sans);
}

.layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  min-width: 0;
}

.layer-toggle { position: relative; cursor: pointer; }
.layer-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.layer-toggle__body {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: var(--fs-small);
  color: var(--on-dark);
  transition: opacity 0.15s;
}
.layer-toggle input:not(:checked) + .layer-toggle__body { opacity: 0.45; }
.layer-toggle input:not(:checked) + .layer-toggle__body .swatch { background: transparent; border-top: 2px dashed var(--c); height: 0; }
.layer-toggle input:focus-visible + .layer-toggle__body {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.swatch {
  width: 20px; height: 3px;
  background: var(--c);
  flex: none;
}

.plan-controls__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-left: 1px solid var(--line-dark);
  min-width: 0;
}
.plan-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1.35;
}
.status-dot {
  width: 9px; height: 9px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--steel);
  flex: none;
}
.status-dot.is-alert { background: var(--amber); }
.status-dot.is-ok { background: var(--layer-san); }

.plan-controls__note {
  grid-column: 1 / -1;
  padding: 9px 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--on-dark-soft);
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .hero__copy, .hero__plan { grid-column: 1 / -1; padding-right: 0; }
  .hero__copy { padding-right: 0; }
  .hero__plan { padding: 6px; }
}

/* no celular a gleba ocupa a largura toda; as curvas de nível sangram para fora */
@media (max-width: 640px) {
  .hero__plan-art .plan { width: 150%; max-width: none; margin-left: -25%; }
  .plan-controls { grid-template-columns: minmax(0, 1fr); }
  .plan-controls__row { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* Planta (SVG) */

.plan .gleba-fill { fill: #1d2768; }
.plan .gleba-edge { fill: none; stroke: #fff; stroke-width: 1.6; }
.plan .lots { fill: none; stroke: var(--layer-urbanismo); stroke-width: 0.7; opacity: 0.55; }
.plan .axis { fill: none; stroke: var(--steel); stroke-width: 0.6; stroke-dasharray: 6 5; opacity: 0.7; }
.plan .block-verde { fill: rgba(111, 208, 168, 0.16); stroke: var(--layer-san); stroke-width: 0.8; }
.plan .block-bacia { fill: rgba(86, 185, 230, 0.16); stroke: var(--layer-dren); stroke-width: 0.8; stroke-dasharray: 3 3; }
.plan .block-inst { fill: none; stroke: var(--steel); stroke-width: 0.9; stroke-dasharray: 5 3; }
.plan .tag { fill: var(--on-dark-soft); font: 400 10px var(--font); }

.plan .contour { fill: none; stroke: var(--layer-terra); stroke-width: 0.6; opacity: 0.85; }
.plan .contour--index { stroke-width: 1.1; opacity: 1; }
.plan .contour--out { opacity: 0.2; }
.plan .contour--out.contour--index { opacity: 0.32; }
.plan .cota { fill: var(--layer-terra); font: 400 9.5px var(--font); paint-order: stroke; stroke: #1d2768; stroke-width: 3px; }

.plan .pipe { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.plan .pipe--dren { stroke: var(--layer-dren); }
.plan .pipe--san { stroke: var(--layer-san); }
.plan .pv { fill: #1d2768; stroke-width: 1.4; }
.plan .pv--dren { stroke: var(--layer-dren); }
.plan .pv--san { stroke: var(--layer-san); }

.plan .layer { transition: opacity 0.25s ease, visibility 0.25s; }
.plan .layer.is-off { opacity: 0; visibility: hidden; }

/* Sequência de entrada: cada camada se desenha em ordem (o único movimento autônomo da página) */
.plan .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.3, 0.6, 0.2, 1) var(--d, 0s);
}
.plan .fade {
  opacity: 0;
  transition: opacity 0.9s ease var(--d, 0s);
}
.plan.is-drawn .draw { stroke-dashoffset: 0; }
.plan.is-drawn .fade { opacity: 1; }
.plan .fade.lots { opacity: 0; }
.plan.is-drawn .fade.lots { opacity: 0.55; }
.plan .fade.axis { opacity: 0; }
.plan.is-drawn .fade.axis { opacity: 0.7; }

/* Interferências: o âmbar do desenho */
.plan .conflicts { transition: opacity 0.25s; }
.plan .conflicts.is-off { opacity: 0; }
.plan .conflict {
  opacity: 0;
  transition: opacity 0.4s ease var(--d, 0s);
}
.plan.is-drawn .conflict { opacity: 1; }
.plan .conflict__ring { fill: rgba(245, 173, 13, 0.14); stroke: var(--amber); stroke-width: 1.8; }
.plan .conflict__x { stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; }
.plan .conflict__ok { fill: none; stroke: var(--layer-san); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.plan .conflict.is-resolved .conflict__ring { stroke: var(--layer-san); fill: rgba(111, 208, 168, 0.14); }
.plan .conflict.is-resolved .conflict__x { opacity: 0; }
.plan .conflict.is-resolved .conflict__ok { opacity: 1; }
.plan.is-drawn .conflict:not(.is-resolved) .conflict__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: conflict-ping 1.2s ease-out calc(var(--d, 0s) + 0.1s) 2;
}
@keyframes conflict-ping {
  0% { transform: scale(1); }
  50% { transform: scale(1.55); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan .draw, .plan .fade, .plan .conflict, .plan .layer { transition: none; }
  .plan .conflict__ring { animation: none !important; }
}

/* Faixa de números: lida como uma linha do carimbo, com divisores verticais */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 26px var(--col-gap) clamp(32px, 4vw, 48px);
}
.stats__item:first-child { padding-left: 0; }
.stats__item + .stats__item { border-left: 1px solid var(--line-dark); }
.stats dd {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stats dt {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--on-dark-soft);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item { padding-inline: var(--col-gap) 0; }
  .stats__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Seções ---------- */

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--flush-bottom { padding-bottom: 0; }

@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1 !important; }
}

/* Método: uma única coluna de leitura, tudo no mesmo eixo à esquerda.
   rótulo → frase de impacto → explicação → resposta da Athom → tabela (prova) */

.method__title {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.statement {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-family: var(--sans);
  font-size: var(--fs-statement);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.032em;
}
/* as duas frases têm o mesmo peso e o mesmo alinhamento: uma por linha */
.statement span { display: block; text-wrap: balance; }
.statement span + span { margin-top: 0.3em; }

.method__body { margin-top: clamp(40px, 5vw, 64px); }

/* a resposta da Athom é o fecho do argumento: escala maior, filete dourado,
   e desemboca direto na coluna da Athom da tabela */
.method__answer { margin-top: clamp(36px, 4.5vw, 56px); }
.method__answer::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--amber);
}
.method__answer p {
  max-width: 30em;
  font-family: var(--sans);
  font-size: clamp(1.375rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.method__answer strong { font-weight: 400; }

/* Tabela comparativa: traço fino sobre branco, e a coluna da Athom como uma
   peça azul que avança acima do cabeçalho e fecha rente à última linha. */
.table-wrap {
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: 18px; /* espaço para a peça da Athom avançar sem ser cortada */
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 680px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-family: var(--sans);
}
.compare__col-label { width: 30%; }
.compare__col-other { width: 22%; }
.compare__col-athom { width: 26%; }

.compare th, .compare td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare thead th {
  padding-block: 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  border-bottom: 1px solid var(--navy);
}
.compare thead td { border-bottom: 1px solid var(--navy); }
.compare tbody th {
  padding-left: 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.compare tbody tr:last-child > * { border-bottom-color: var(--navy); }
.compare tbody tr { transition: background-color 0.2s; }
.compare tbody tr:hover > :not(.compare__athom) { background: var(--paper); }

/* coluna da Athom */
.compare .compare__athom {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  border-bottom-color: var(--line-dark);
}
.compare thead .compare__athom {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.compare tbody tr:last-child .compare__athom { border-bottom-color: var(--navy); }
.compare thead .compare__athom::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  background: var(--navy);
}
.compare thead .compare__athom::before {
  bottom: 100%;
  border-top: 3px solid var(--amber);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* marcas: anel fino nos modelos tradicionais, ponto dourado cheio na Athom */
.compare .tick {
  display: inline-block;
  width: 30px; height: 30px;
  padding: 5px;
  vertical-align: middle;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy);
}
.compare .compare__athom .tick {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--navy);
}
.compare .compare__athom .tick + * { margin-left: 10px; }
.compare td.compare__athom { padding-inline: 12px; }
.compare .dash { color: var(--steel); }
.compare .sometimes { color: var(--text-soft); font-size: var(--fs-small); }

/* faixa fotográfica de largura total; `relative` ancora a foto do paralaxe
   (.has-motion .band img é absoluta) dentro da própria faixa */
.band {
  position: relative;
  margin-top: clamp(72px, 10vw, 144px);
  height: clamp(240px, 36vw, 540px);
  overflow: hidden;
  background: var(--navy);
}
.band img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Travas */

.travas__head { row-gap: 24px; align-items: end; }
.travas__head h2 { grid-column: 1 / 8; max-width: 20ch; }
.travas__head .lead { grid-column: 9 / 13; font-size: 1.0625rem; }

/* prancha técnica sobre papel: filete externo, margem e legenda como carimbo */
.profile {
  margin-top: clamp(48px, 7vw, 104px);
  padding: 8px;
  border: 1px solid var(--line);
}
.profile__svg {
  width: 100%;
  height: auto;
  font-family: var(--sans);
  border: 1px solid var(--line);
  background: var(--white);
}
.profile figcaption {
  padding: 12px 8px 4px;
  max-width: 78ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-soft);
}
.profile__grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.profile__cotas text,
.profile__stations text { fill: var(--text-soft); font-size: 13px; }
.profile__terreno { fill: none; stroke: var(--navy); stroke-width: 2; }
.profile__greide { fill: none; stroke: var(--navy); stroke-width: 1.2; stroke-dasharray: 8 6; }
.profile__pv { fill: none; stroke: var(--steel); stroke-width: 1; }
.profile__dren { fill: none; stroke: #1a8fc4; stroke-width: 3; stroke-linejoin: round; }
.profile__san { fill: none; stroke: #1f8f6a; stroke-width: 3; }
.profile__pvdots circle { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.profile__conflict circle { fill: rgba(245, 173, 13, 0.2); stroke: var(--amber); stroke-width: 2.5; }
.profile__conflict path { fill: none; stroke: #9a6500; stroke-width: 2.5; stroke-linecap: round; }
.profile__tag { fill: #7a4f00; font-size: 15px; font-weight: 500; }

/* ledger: título no eixo A, descrição no eixo B */
.problems { margin-top: clamp(64px, 9vw, 128px); border-bottom: 1px solid var(--line-strong); }
.problems li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 12px;
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.problems h3 {
  grid-column: 1 / 5;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}
.problems p {
  grid-column: 5 / 12;
  max-width: 60ch;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .problems h3, .problems p { grid-column: 1 / -1; }
}

/* Serviços: abas no eixo A, painel no eixo B */

.services__head { row-gap: 20px; align-items: end; }
.services__head h2 { grid-column: 1 / 5; }
.services__head .lead { grid-column: 5 / 11; }

.services {
  margin-top: clamp(48px, 7vw, 96px);
  row-gap: 40px;
  align-items: start;
}

.services__nav { grid-column: 1 / 5; min-width: 0; }

.tablist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 0 20px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.tab__name {
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.014em;
}
.tab__hint { font-size: var(--fs-small); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"] .tab__name { font-weight: 500; }
.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--navy);
}
.tab:focus-visible { outline-offset: -3px; }

.service-figure {
  margin-top: 32px;
  padding: 6px;
  border: 1px solid var(--line);
}
.service-figure__art {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--navy);
  overflow: hidden;
}
.service-figure .plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-figure__legend {
  padding: 10px 6px 4px;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-soft);
}

.tabpanels { grid-column: 5 / 13; min-width: 0; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 {
  margin-bottom: 28px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

/* painel como ficha: rótulo à esquerda, conteúdo à direita, filete entre linhas */
.tabpanel__grid {
  display: block;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tabpanel__grid > div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.tabpanel__grid > div:first-child { border-top-color: var(--line-strong); }
.tabpanel h4 {
  padding-top: 0.2em;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
}
.tabpanel p { color: var(--text-soft); max-width: 58ch; }

.checklist li {
  position: relative;
  padding: 0 0 12px 24px;
  color: var(--text-soft);
}
.checklist li:last-child { padding-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 12px; height: 1px;
  background: var(--navy);
}
.checklist strong { color: var(--text); font-weight: 600; }

/* Disciplinas avulsas: ledger de links, título no eixo A, lista no eixo B */
.avulsos {
  margin-top: clamp(72px, 9vw, 128px);
  row-gap: 24px;
  align-items: start;
}
.avulsos__head {
  grid-column: 1 / 5;
  max-width: 14ch;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.avulsos__list {
  grid-column: 5 / 13;
  border-top: 1px solid var(--line-strong);
}
.avulsos__list a {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 4px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.avulsos__name {
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.014em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s;
}
.avulsos__list a:hover .avulsos__name,
.avulsos__list a:focus-visible .avulsos__name { text-decoration-color: currentColor; }
.avulsos__desc { color: var(--text-soft); max-width: 46ch; }

@media (max-width: 900px) {
  .avulsos__head { max-width: none; }
  .avulsos__list a { grid-template-columns: minmax(0, 1fr); }
}

.fineprint {
  margin-top: clamp(40px, 5vw, 72px);
  font-size: var(--fs-small);
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .tablist {
    flex-direction: row;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .tab { flex: 0 0 min(260px, 72vw); padding: 18px 20px 18px 0; border-bottom: 0; }
  .tab[aria-selected="true"]::before { top: auto; bottom: -1px; left: 0; right: 20px; width: auto; height: 3px; }
  .tabpanel__grid > div { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
}

/* Casos: a foto sangra à esquerda; cada caso é uma linha de ledger (onde | o quê) */

.cases-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--ink);
  color: var(--on-dark);
}

.cases-section__photo {
  position: relative;
  min-height: 520px;
  background: var(--navy);
}
.cases-section__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.cases-section__content {
  padding-block: var(--section-y);
  padding-left: clamp(28px, 6vw, 112px);
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.cases-section__head { margin-bottom: clamp(32px, 5vw, 64px); }

.cases { margin-bottom: clamp(32px, 4vw, 56px); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 10px;
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-dark);
}
.case:last-child { border-bottom: 1px solid var(--line-dark); }
.case h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.028em;
}
.case p:not(.case__meta) {
  grid-column: 2;
  grid-row: 2;
  max-width: 44ch;
  color: var(--on-dark-soft);
}
.case__meta {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.45em;
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--on-dark-soft);
}

@media (max-width: 860px) {
  .cases-section { grid-template-columns: minmax(0, 1fr); }
  .cases-section__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .cases-section__content { padding-inline: var(--gutter); }
}

@media (max-width: 560px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case h3, .case p:not(.case__meta), .case__meta { grid-column: 1; }
  .case__meta { grid-row: 3; padding-top: 4px; }
}

/* Contato: texto no eixo A, formulário no eixo C */

.contact { row-gap: 56px; align-items: start; }
.contact__intro { grid-column: 1 / 7; }
.contact__intro h2 { max-width: 17ch; font-size: clamp(1.875rem, 3vw, 2.625rem); }
.contact__intro .lead { margin-top: 28px; }
.form { grid-column: 7 / 13; }

.contact-list {
  margin-top: 40px;
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-soft);
}
.contact-list a { color: var(--text); font-weight: 500; text-underline-offset: 4px; }

.form {
  display: grid;
  gap: 24px;
  padding-top: clamp(0px, 1vw, 8px);
}

.field { display: grid; gap: 2px; }
.field label { font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); }
.optional { font-weight: 400; color: var(--text-soft); }

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.0625rem;
}
.field select { cursor: pointer; }
.field input:hover, .field select:hover { border-bottom-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-bottom-color: var(--navy);
}
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__micro { font-family: var(--sans); font-size: var(--fs-small); color: var(--text-soft); }
.form__feedback { min-height: 1.5em; font-family: var(--sans); font-weight: 500; }
.form__feedback.is-error { color: #b3261e; }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-top: clamp(64px, 8vw, 120px);
  font-family: var(--sans);
  font-size: var(--fs-small);
}
.site-footer__top {
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__cta { font-size: 1.0625rem; }
.site-footer__mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--on-dark);
  font-size: clamp(1.5rem, 4.2vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  overflow-wrap: anywhere;
  transition: border-color 0.15s;
}
.site-footer__mail:hover { border-bottom-color: var(--on-dark); }

/* mesmos eixos da página: logo no A, contato no B, redes no C+ */
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  padding-top: clamp(32px, 5vw, 56px);
}
.site-footer__grid > :nth-child(1) { grid-column: 1 / 5; }
.site-footer__grid > :nth-child(2) { grid-column: 5 / 8; }
.site-footer__grid > :nth-child(3) { grid-column: 8 / 11; }
.site-footer__grid > :nth-child(4) { grid-column: 11 / 13; }
.site-footer__about { margin-top: 16px; max-width: 32ch; line-height: 1.5; }
.site-footer__title {
  margin-bottom: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--on-dark);
}
.site-footer li + li { margin-top: 6px; }
.site-footer a { text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__legal {
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .site-footer__grid > :nth-child(n) { grid-column: span 6; }
}
@media (max-width: 560px) {
  .site-footer__grid > :nth-child(n) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Páginas internas (drenagem, saneamento, terraplenagem, quem somos)
   Mesmos eixos: A = col. 1, B = col. 5, C = col. 7.
   ========================================================================== */

.nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* Hero de página: título menor (as frases são longas), mesma prancha à direita */
.hero--page { padding-bottom: clamp(56px, 7vw, 104px); }
.hero--page h1 { max-width: 20ch; font-size: clamp(2.125rem, 3.2vw, 3rem); }
.hero--page .hero__lead { max-width: 42ch; font-size: 1.1875rem; line-height: 1.5; }
.hero--page .hero__actions { margin-top: 32px; }

/* Foto do hero (quem somos): ocupa a coluna C e sangra até a borda direita */
.hero__photo {
  grid-column: 8 / 13;
  align-self: stretch;
  position: relative;
  min-height: 360px;
  margin-right: calc((min(100vw - var(--gutter) * 2, var(--container)) - 100vw) / 2);
  background: var(--navy);
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (max-width: 960px) {
  .hero__photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 10; margin-right: 0; }
}

/* legenda do carimbo: quadrado quando a camada é área (corte/aterro) */
.swatch--box { width: 14px; height: 14px; background: var(--c); border: 1px solid var(--steel); }

/* páginas sem linha de status: as camadas ocupam o carimbo inteiro */
.plan-controls > .layers:nth-last-child(2) { grid-column: 1 / -1; }

/* Figuras técnicas geradas pelo JS (perfil de terreno e de rede) */
.fig { display: block; width: 100%; height: auto; font-family: var(--sans); }
.fig .fig-grid { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; fill: none; }
.fig .fig-cota { fill: var(--steel); font-size: 12px; }
.fig .fig-label { fill: var(--on-dark-soft); font-size: 13px; }
.fig .terrain { fill: none; stroke: var(--steel); stroke-width: 2; }
.fig .platform { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; }
.fig .cut { fill: rgba(255, 255, 255, 0.22); }
.fig .fill { fill: rgba(138, 153, 192, 0.5); }
.fig .warn-line { stroke: var(--amber); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .warn-text { fill: var(--amber); font-size: 14px; font-weight: 500; }
.fig .ok-text { fill: var(--layer-san); font-size: 14px; font-weight: 500; }
.fig .pipe-s { fill: none; stroke: var(--layer-san); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fig .recalque { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; }
.fig .pump { fill: rgba(245, 173, 13, 0.16); stroke: var(--amber); stroke-width: 2; }
.fig .outfall { fill: rgba(111, 208, 168, 0.18); stroke: var(--layer-san); stroke-width: 2; }
.fig .pv-dot { fill: var(--ink); stroke: var(--layer-san); stroke-width: 1.6; }

/* dois estados no mesmo lugar: troca por opacidade, sem deslocar o layout */
.fig .state-a, .fig .state-b { transition: opacity 0.3s ease, visibility 0.3s; }
.fig.is-b .state-a,
.fig:not(.is-b) .state-b { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .fig .state-a, .fig .state-b { transition: none; }
}

/* Rótulo de seção: eixo A */
.section-title-sm {
  grid-column: 1 / 5;
  max-width: 17ch;
  padding-top: 0.5em;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) { .section-title-sm { max-width: none; } }

/* Prova: números em fundo claro, depois o caso */
.stats--light { margin-top: 0; margin-bottom: clamp(56px, 8vw, 112px); border-top-color: var(--line-strong); }
.stats--light .stats__item + .stats__item { border-left-color: var(--line); }
.stats--light dt { color: var(--text-soft); }
@media (max-width: 720px) {
  .stats--light .stats__item:nth-child(n + 3) { border-top-color: var(--line); }
}

.proof__body { grid-column: 5 / 13; }
.case-title {
  max-width: 22ch;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.proof__body p { margin-top: clamp(20px, 3vw, 32px); max-width: 56ch; color: var(--text-soft); }

/* Dor: enunciado grande no eixo A, explicação no eixo B */
.pain__title {
  grid-column: 1 / 10;
  max-width: 22ch;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
}
.pain__text {
  grid-column: 5 / 11;
  margin-top: clamp(28px, 4vw, 56px);
  max-width: 50ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-soft);
}

/* Solução: texto no eixo A, entregáveis no eixo C */
.solution { row-gap: 56px; align-items: start; }
.solution__copy { grid-column: 1 / 6; }
.solution__copy h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.solution__copy p { margin-top: 28px; max-width: 50ch; color: var(--text-soft); }
.receive {
  grid-column: 7 / 13;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.receive h3 { margin-bottom: 20px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; }
.receive .checklist li { padding-bottom: 14px; }

.benefits { margin-top: clamp(64px, 9vw, 128px); }
.benefits > h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; }
.benefits .problems { margin-top: 20px; }

/* Como funciona: a única lista numerada do site, porque é uma sequência */
.steps-section { background: var(--ink); color: var(--on-dark); }
.steps-section h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  line-height: 1.5;
  color: var(--on-dark-soft);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 28px;
  font-family: var(--sans);
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Perguntas frequentes: details nativo, marcador +/− desenhado com duas linhas */
.faq-section__list { grid-column: 5 / 13; border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top-color: var(--line-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: 0.4em;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 40px 26px 0; max-width: 58ch; color: var(--text-soft); }
@media (max-width: 900px) { .faq-section__list { grid-column: 1 / -1; } }

/* Outras soluções: linhas de navegação em escala de título */
.explore { padding-block: clamp(56px, 7vw, 104px); }
.explore__note { max-width: 52ch; color: var(--text-soft); }
.explore h2 {
  margin-top: clamp(32px, 5vw, 64px);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.explore__list { margin-top: 20px; border-bottom: 1px solid var(--line-strong); }
.explore__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.028em;
  text-decoration: none;
}
.explore__list a:first-child { border-top-color: var(--line-strong); }
.explore__list a::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.explore__list a:hover { background: var(--paper); }
.explore__list a:hover::after { transform: translateX(4px) rotate(45deg); }

/* Quem somos: história */
.story { row-gap: 32px; align-items: start; }
.story__body { grid-column: 5 / 12; }
.story__lead {
  font-family: var(--sans);
  font-size: clamp(1.375rem, 2.3vw, 2rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.022em;
}
.story__body p + p { margin-top: 1.3em; max-width: 56ch; color: var(--text-soft); }
.story__lead + p { margin-top: clamp(24px, 3vw, 40px); }

/* Equipe: linhas alternadas, foto e texto espelham; texto sempre no eixo A ou B */
.team { margin-top: clamp(48px, 7vw, 96px); }
.member {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
  padding-block: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.member:last-child { border-bottom: 1px solid var(--line-strong); }
.member__photo { grid-column: 1 / 4; grid-row: 1; margin: 0; background: var(--navy); }
.member__photo img {
  width: 100%;
  height: auto; /* o atributo height do <img> venceria o aspect-ratio */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}
.member__body { grid-column: 5 / 12; grid-row: 1; padding-top: clamp(0px, 1.5vw, 16px); }
.member:nth-child(even) .member__photo { grid-column: 10 / 13; }
.member:nth-child(even) .member__body { grid-column: 1 / 8; }
.member h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.member__role {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-soft);
}
.member p:not(.member__role) { margin-top: clamp(20px, 3vw, 28px); max-width: 54ch; color: var(--text-soft); }

@media (max-width: 900px) {
  .member__photo, .member__body,
  .member:nth-child(even) .member__photo,
  .member:nth-child(even) .member__body { grid-column: 1 / -1; grid-row: auto; }
  .member__photo { max-width: 360px; }
  .member__body { margin-top: 24px; }
}

/* Crenças: 2×2 em ledger */
.beliefs {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.beliefs li { padding-block: clamp(24px, 3.5vw, 40px); border-top: 1px solid var(--line-strong); }
.beliefs h3 {
  max-width: 20ch;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.026em;
}
.beliefs p { margin-top: 12px; max-width: 42ch; color: var(--text-soft); }
@media (max-width: 760px) { .beliefs { grid-template-columns: minmax(0, 1fr); } }

/* Diferenciais: faixa azul, cinco colunas, números do carimbo logo abaixo */
.diff { background: var(--navy); color: var(--on-dark); padding-top: var(--section-y); }
.diff h2 { max-width: 16ch; }
.diff__list {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--col-gap);
}
.diff__list li {
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.4;
}
@media (max-width: 1000px) { .diff__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .diff__list { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Segunda passada: ritmo, profundidade e movimento
   · Menos rolagem: seções mais compactas por layout (os textos não mudam).
   · Profundidade sem sombra: superfícies que se sobrepõem (tabela sobre a foto),
     malha de prancha nos fundos azuis, contraste claro/escuro alternado.
   · Movimento: só com html.has-motion (motion.js), nunca com reduced-motion.
   ========================================================================== */

/* malha de desenho técnico nos fundos azuis (identidade, não enfeite) */
.hero {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* Método sobre branco: a afirmação ganha escala, o texto vai em azul suave e a
   tabela fica logo abaixo da resposta; a foto fecha a seção em largura total */
#metodo .statement { font-size: clamp(2.5rem, 5vw, 4.5rem); }
#metodo .prose p { color: var(--text-soft); }
#metodo .prose strong { color: var(--text); }
#metodo .table-wrap { margin-top: clamp(32px, 4vw, 56px); }
#metodo .band {
  margin-top: clamp(56px, 7vw, 104px);
  height: clamp(220px, 28vw, 420px);
}

/* Travas: cabeçalho, perfil e as quatro travas lado a lado */
#travas .profile { margin-top: clamp(32px, 4vw, 56px); }

.problems--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 40px;
  margin-top: clamp(40px, 5vw, 72px);
  border-bottom: 0;
}
.problems--grid li {
  display: block;
  position: relative;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}
/* régua que cresce: curta ao entrar na tela, inteira no hover */
.problems--grid li::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 3px;
  background: var(--navy);
  transform: scaleX(0.14);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out);
}
.problems--grid li:hover::before { transform: scaleX(1); }
.problems--grid h3 {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.25;
}
.problems--grid p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 1000px) { .problems--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .problems--grid { grid-template-columns: minmax(0, 1fr); } }

/* Serviços: abas e fichas mais densas */
.tab { padding-block: 16px; }
.service-figure { margin-top: 24px; }
.tabpanel__grid > div { padding-block: 16px; }
.avulsos { margin-top: clamp(56px, 7vw, 96px); }
.avulsos__list a { padding-block: 18px; }

/* Casos: grade 2 × 2 ao lado da foto, metadado acima do título */
.cases-section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-bottom: 1px solid var(--line-dark);
}
.case {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 24px 30px;
}
.case:last-child { border-bottom: 0; }
.case__meta { order: -1; padding-top: 0; }
.case h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
@media (max-width: 560px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
}

.stats dd { font-variant-numeric: tabular-nums; }

/* Números logo após o hero: maiores, para serem a primeira prova do site */
.hero .stats__item { position: relative; gap: 10px; padding-top: 34px; }
.hero .stats dd {
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- Interação (vale com ou sem motion.js) ---------- */

.btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }

.tab__name { transition: transform 0.25s var(--ease-out); }
.tab:hover .tab__name { transform: translateX(6px); }

.avulsos__name { transition: transform 0.25s var(--ease-out), text-decoration-color 0.15s; }
.avulsos__list a:hover .avulsos__name { transform: translateX(8px); }

/* progresso de leitura: um filete branco na base do cabeçalho */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--on-dark);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Movimento (somente html.has-motion) ---------- */

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* abertura: o hero entra em sequência, a prancha por último */
.has-motion .hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
.has-motion .hero__copy > :nth-child(2) { animation-delay: 0.12s; }
.has-motion .hero__copy > :nth-child(3) { animation-delay: 0.22s; }
.has-motion .hero__copy > :nth-child(4) { animation-delay: 0.32s; }
.has-motion .hero__copy > :nth-child(5) { animation-delay: 0.42s; }
.has-motion .hero__title-rest { animation: rise 0.9s var(--ease-out) 0.1s both; }
.has-motion .hero__plan,
.has-motion .hero__photo { animation: rise 1.1s var(--ease-out) 0.3s both; }

/* entrada ao rolar, com escalonamento entre irmãos (--i definido pelo JS) */
.has-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s var(--ease-out) calc(var(--i, 0) * 90ms),
    transform 0.8s var(--ease-out) calc(var(--i, 0) * 90ms);
}
.has-motion .statement span.reveal { transform: translate3d(0, 56px, 0); transition-duration: 1s; }
.has-motion .reveal.is-in,
.has-motion .statement span.reveal.is-in { opacity: 1; transform: none; }

.has-motion .problems--grid li::before {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) calc(var(--i, 0) * 90ms + 0.3s);
}
.has-motion .problems--grid li.is-in::before { transform: scaleX(0.14); }
.has-motion .problems--grid li.is-in:hover::before { transform: scaleX(1); transition-delay: 0s; }

/* perfil: terreno e redes se desenham, depois a interferência aparece e pulsa */
.has-motion .profile .draw-p {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) var(--d, 0.2s);
}
.has-motion .profile.is-in .draw-p { stroke-dashoffset: 0; }
.has-motion .profile__pvdots,
.has-motion .profile__conflict,
.has-motion .profile__tag { opacity: 0; transition: opacity 0.5s ease 1.8s; }
.has-motion .profile.is-in .profile__pvdots,
.has-motion .profile.is-in .profile__conflict,
.has-motion .profile.is-in .profile__tag { opacity: 1; }
.has-motion .profile.is-in .profile__conflict circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: conflict-ping 1.2s ease-out 2.1s 2;
}

/* foto da faixa: paralaxe leve */
.has-motion .band img {
  position: absolute;
  left: 0; top: -12%;
  height: 124%;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* foto dos casos: abre como uma cortina, com leve recuo de escala */
.has-motion .cases-section__photo { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out); }
.has-motion .cases-section__photo.is-in { clip-path: inset(0 0 0 0); }
.has-motion .cases-section__photo img { transform: scale(1.12); transition: transform 1.9s var(--ease-out); }
.has-motion .cases-section__photo.is-in img { transform: none; }

/* números do hero: um filete percorre o topo de cada item enquanto o valor
   cresce, e assenta num traço curto (mesma gramática dos .problems--grid) */
@keyframes stat-rule {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(1); }
  100% { transform: scaleX(0.14); }
}
.has-motion .hero .stats__item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.has-motion .hero .stats.is-in .stats__item::before {
  animation: stat-rule 1.8s var(--ease-out) calc(var(--i, 0) * 140ms) both;
}
.has-motion .hero .stats dt {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.7s var(--ease-out) calc(var(--i, 0) * 140ms + 0.4s),
    transform 0.7s var(--ease-out) calc(var(--i, 0) * 140ms + 0.4s);
}
.has-motion .hero .stats.is-in dt { opacity: 1; transform: none; }

/* troca de aba: o painel novo sobe no lugar */
.has-motion .tabpanel:not([hidden]) { animation: panel-in 0.5s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .problems--grid li::before, .tab__name, .avulsos__name, .btn { transition: none; }
}

/* ==========================================================================
   Fotos no lugar das ilustrações interativas
   ========================================================================== */

/* hero: a foto é a "prancha"; a legenda lista as quatro disciplinas */
.hero__plan--photo .hero__plan-art { aspect-ratio: 4 / 3; background: var(--navy); }
.hero__plan--photo .hero__plan-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.plan-controls--static { display: block; }
.plan-controls--static .layers {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 18px;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--on-dark);
}
.plan-controls--static .layers li { padding-left: 14px; position: relative; white-space: nowrap; }
.plan-controls--static .layers li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 2px;
  background: var(--amber);
}
@media (max-width: 560px) {
  .plan-controls--static .layers { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 28px; }
}

/* serviços: as fotos trocam com a aba selecionada (CSS puro, via :has) */
.service-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.service-photo--urbanismo { opacity: 1; }
.services:has(#tab-infra[aria-selected="true"]) .service-photo--infra,
.services:has(#tab-ciclo[aria-selected="true"]) .service-photo--ciclo,
.services:has(#tab-destrave[aria-selected="true"]) .service-photo--destrave { opacity: 1; }
.services:has(#tab-infra[aria-selected="true"], #tab-ciclo[aria-selected="true"], #tab-destrave[aria-selected="true"]) .service-photo--urbanismo { opacity: 0; }

/* engenharia integrada: foto de largura total, com a legenda existente */
.profile--photo { padding: 0; border: 0; }
.profile--photo img {
  width: 100%;
  height: clamp(240px, 32vw, 440px);
  object-fit: cover;
  object-position: 50% 62%;
}
.profile--photo figcaption { padding: 14px 0 0; max-width: 78ch; }

/* duas fotos lado a lado: quem projeta (CAD) e o material de desenho */
.profile__pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--col-gap);
}
.profile--pair img { object-position: 50% 50%; }
@media (max-width: 640px) {
  .profile__pair { grid-template-columns: minmax(0, 1fr); }
  .profile--pair img { height: clamp(200px, 56vw, 280px); }
}

/* ==========================================================================
   Acentos dourados
   Decisão do cliente: o dourado da marca ganha mais presença como detalhe
   (réguas, marcadores, estados ativos e de hover). Texto corrido nunca é
   dourado, e o foco de teclado continua branco/azul para manter contraste.
   ========================================================================== */

/* seleção e réguas */
.tab[aria-selected="true"]::before { background: var(--amber); width: 4px; }
.problems--grid li::before { background: var(--amber); }
.steps li { border-top-color: var(--amber); }
.checklist li::before { background: var(--amber); height: 2px; }
.scroll-progress { background: var(--amber); }

/* números: um traço dourado curto sobre cada indicador (fica no topo por column-reverse) */
.stats__item::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--amber);
}

/* no hero o filete dourado animado (.stats__item::before) já cumpre esse papel */
.hero .stats__item::after { content: none; }

/* links e navegação */
.link-strong { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.link-strong:hover { text-decoration-color: currentColor; }
.nav li a:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger,
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.site-footer__mail { border-bottom-color: var(--amber); }
.site-footer__mail:hover { border-bottom-color: var(--on-dark); }
.avulsos__list a:hover .avulsos__name,
.avulsos__list a:focus-visible .avulsos__name { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.explore__list a:hover::after { border-color: var(--amber); }
.faq details[open] summary::after { color: var(--amber); }
.field input:focus-visible, .field select:focus-visible { border-bottom-color: var(--amber); }

@media (max-width: 960px) {
  .nav li a:hover, .nav__trigger:hover, .nav__item.is-open .nav__trigger { border-bottom-color: var(--line-dark); }
}

/* ==========================================================================
   Rodapé compacto
   Chamada e e-mail na mesma linha, colunas enxutas, menos respiro vertical.
   ========================================================================== */

.site-footer { padding-top: clamp(32px, 4vw, 48px); }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 32px;
  padding-bottom: clamp(18px, 2.4vw, 28px);
}
.site-footer__cta { font-size: var(--fs-small); }
.site-footer__mail {
  margin-top: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}

.site-footer__grid {
  row-gap: 24px;
  padding-top: clamp(20px, 2.6vw, 28px);
}
.site-footer__grid img { height: 30px; width: auto; }
.site-footer__about { margin-top: 12px; line-height: 1.45; }
.site-footer__title { margin-bottom: 8px; }
.site-footer li + li { margin-top: 4px; }

.site-footer__legal {
  margin-top: clamp(20px, 2.6vw, 28px);
  padding-block: 14px;
  font-size: 0.8125rem;
}

/* celular: marca e contato em largura total, os dois menores lado a lado */
@media (max-width: 560px) {
  .site-footer__grid > :nth-child(2),
  .site-footer__grid > :nth-child(4) { grid-column: span 6; }
  .site-footer__grid > :nth-child(1),
  .site-footer__grid > :nth-child(3) { grid-column: 1 / -1; }
  .site-footer__grid { row-gap: 20px; }
}

/* ajuste fino do rodapé compacto */
.site-footer { padding-top: clamp(24px, 3vw, 32px); }
.site-footer__top { padding-bottom: clamp(14px, 2vw, 20px); }
.site-footer__grid { padding-top: clamp(16px, 2vw, 22px); row-gap: 20px; }
.site-footer__legal { margin-top: clamp(16px, 2vw, 22px); padding-block: 12px; }

@media (max-width: 560px) {
  /* Projetos e Redes lado a lado; Contato (o mais largo) fecha em largura total */
  .site-footer__grid > :nth-child(3) { order: 5; }
}

/* ==========================================================================
   Projetos em destaque, mais compacto
   Mesmos textos e mesmo desenho; só menos respiro vertical.
   ========================================================================== */

.cases-section__photo { min-height: 0; }
.cases-section__content { padding-block: clamp(36px, 4.2vw, 60px); }
.cases-section__head { margin-bottom: clamp(18px, 2.4vw, 28px); }
.cases { margin-bottom: clamp(18px, 2.2vw, 28px); }
.case { gap: 6px; padding-block: 16px 20px; }
.case h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.case p:not(.case__meta) { line-height: 1.5; }
.case__meta { margin: 0; }

@media (max-width: 860px) {
  .cases-section__photo { aspect-ratio: 16 / 7; }
  .cases-section__content { padding-block: 32px 36px; }
}
@media (max-width: 560px) {
  .cases-section__photo { aspect-ratio: 16 / 8; }
  .case { padding-block: 14px 16px; }
}

/* ==========================================================================
   Blog (conteúdo do WordPress, ver js/blog.js)
   Gramática da prancha: a capa ganha moldura e carimbo (data, leitura).
   Painel azul só no destaque da index; o resto fica em linhas de 1px.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- Prancha: moldura + carimbo ---------- */

.plate {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}
.plate__img { flex: 1; min-height: 0; overflow: hidden; background: var(--paper); aspect-ratio: 3 / 2; }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }

.stamp {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: 8px -8px -8px;
  border-top: 1px solid var(--line-strong);
}
.stamp__cell { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px 10px; min-width: 0; }
.stamp__cell + .stamp__cell { border-left: 1px solid var(--line); }
.stamp__label { font-family: var(--sans); font-size: 0.75rem; line-height: 1.2; color: var(--text-soft); }
.stamp__value { font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); line-height: 1.3; color: var(--text); }

.more {
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- Cabeçalho das seções do blog ---------- */

.blog-head { row-gap: 16px; align-items: end; }
.blog-head h2 { grid-column: 1 / 5; }
.blog-head .lead { grid-column: 5 / 10; }
.blog-head__all { grid-column: 10 / 13; justify-self: end; }
.blog-head > h2:nth-child(2) { grid-column: 1 / 9; } /* sem lead: título e botão */
.blog-head > h2:nth-child(2) ~ .blog-head__all { grid-column: 9 / 13; }

/* ---------- Index: vitrine do blog ----------
   O fundo da seção é a capa do artigo em destaque, sob um véu azul e a malha
   da planta técnica. À direita, o trilho de cartões escolhe o destaque.
   Âmbar só nos detalhes: botão, cartão ativo e régua de progresso. */

.blog-home {
  --rail-edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --focus: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

.bh-bg { position: absolute; inset: 0; z-index: -1; }
.bh-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(1.5px) saturate(1.25) brightness(1.08);
  transform: scale(1.12);
  transition: opacity 1.1s var(--ease-out), transform 7s var(--ease-out);
}
.bh-bg__layer.is-on { opacity: 1; transform: scale(1.06); }
/* Luz: o lado do texto segue escuro (leitura); do lado dos cartões a foto
   respira, com um foco de luz fria por trás deles e um toque quente embaixo */
.bh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse 46% 62% at 68% 42%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 38% 46% at 92% 100%, rgba(245, 173, 13, 0.16), rgba(245, 173, 13, 0) 70%),
    linear-gradient(90deg, rgba(3, 15, 39, 0.95) 0%, rgba(3, 15, 39, 0.86) 30%, rgba(3, 15, 39, 0.42) 52%, rgba(20, 26, 70, 0.18) 78%, rgba(20, 26, 70, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 15, 39, 0.82) 0%, rgba(3, 15, 39, 0) 30%),
    linear-gradient(180deg, rgba(3, 15, 39, 0.55) 0%, rgba(3, 15, 39, 0) 22%);
}

.bh {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: var(--col-gap);
  /* uma tela: altura da janela menos o menu fixo */
  height: var(--bh-h);
  min-height: 540px;
  max-height: 900px;
  padding-block: clamp(18px, 3.4vh, 36px) clamp(16px, 3vh, 32px);
}
.blog-home { --bh-h: calc(100vh - var(--header-h)); }
@supports (height: 100svh) { .blog-home { --bh-h: calc(100svh - var(--header-h)); } }

.bh__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(10px, 1.6vh, 16px);
  border-bottom: 1px solid var(--line-dark);
}
.bh__head h2 { font-size: clamp(1.5rem, min(2.4vw, 4vh), 2.125rem); letter-spacing: -0.03em; }
.bh__all {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.bh__all:hover { text-decoration-color: var(--on-dark); }

/* Destaque à esquerda */
.bh__feature {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 18px);
  padding-block: 12px;
}
.bh__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--sans); font-size: var(--fs-small); color: var(--on-dark-soft); }
.bh__title { font-size: clamp(1.75rem, min(3.3vw, 5.6vh), 3.125rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 300; }
.bh__excerpt {
  max-width: 44ch;
  color: var(--on-dark-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.bh__feature.is-in > * { animation: rise 0.7s var(--ease-out) both; }
.bh__feature.is-in > :nth-child(2) { animation-delay: 0.06s; }
.bh__feature.is-in > :nth-child(3) { animation-delay: 0.12s; }
.bh__feature.is-in > :nth-child(4) { animation-delay: 0.18s; }

/* Trilho de cartões: sangra até a borda direita da tela */
.bh__rail {
  grid-column: 6 / -1;
  grid-row: 2;
  align-self: center;
  position: relative;
  display: flex;
  gap: 26px;
  margin-right: calc(var(--rail-edge) * -1);
  padding: clamp(18px, 3vh, 30px) var(--rail-edge) clamp(30px, 5vh, 48px) 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 14px;
  scrollbar-width: none;
  cursor: grab;
}
.bh__rail::-webkit-scrollbar { display: none; }
.bh__rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.bh__rail.is-settling { scroll-snap-type: none; }
.bh__rail.is-dragging .bh-card { pointer-events: none; }

/* Encaixe de cada cartão: guarda a sombra de chão e marca o ponto de parada */
.bh-slot {
  --d: 0s;
  position: relative;
  /* largura pela tela e pela altura disponível (cartão 3:4 cabe na seção) */
  flex: 0 0 clamp(172px, min(19.5vw, calc((var(--bh-h) - 250px) * 0.75)), 286px);
  scroll-snap-align: start;
  scroll-snap-stop: always; /* um gesto no trackpad/toque avança um cartão por vez */
  transform-origin: center center;
  will-change: transform, opacity;
}
.bh-slot__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -30px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  filter: blur(3px);
  pointer-events: none;
  animation: bh-shadow 6.5s ease-in-out var(--d) infinite;
}

.bh-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
  text-align: left;
  cursor: pointer;
  opacity: 0.78;
  transform-origin: center bottom;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 18px 28px -14px rgba(0, 0, 0, 0.6),
    0 44px 64px -32px rgba(3, 15, 39, 0.9);
  animation: bh-float 6.5s ease-in-out var(--d) infinite;
  transition: scale 0.5s var(--ease-out), opacity 0.3s, border-color 0.3s, box-shadow 0.4s;
}
@keyframes bh-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes bh-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.82); opacity: 0.55; }
}
.bh-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.bh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(3, 15, 39, 0) 22%, rgba(3, 15, 39, 0.82) 55%, rgba(3, 15, 39, 0.96) 100%);
}
.bh-card__text { position: absolute; inset: auto 0 0; z-index: 1; display: flex; flex-direction: column; gap: 7px; padding: 18px 18px 20px; }
.bh-card__date { font-family: var(--sans); font-size: 0.8125rem; color: var(--on-dark-soft); }
.bh-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh-card:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.4); }
.bh-card.is-active {
  opacity: 1;
  scale: 1.05;
  border-color: var(--amber);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 24px 36px -16px rgba(0, 0, 0, 0.7),
    0 56px 80px -36px rgba(3, 15, 39, 0.95),
    0 0 48px -12px rgba(245, 173, 13, 0.35);
}
/* marcas de corte no cartão ativo, como numa prancha */
.bh-card.is-active::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--amber), var(--amber)) top left / 14px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) top left / 1px 14px no-repeat,
    linear-gradient(var(--amber), var(--amber)) top right / 14px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) top right / 1px 14px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) bottom right / 1px 14px no-repeat;
}
.bh-card:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 4px; }

/* Controles: linha de cota (um trecho numerado por artigo) entre duas setas */
.bh__controls { grid-column: 6 / -1; grid-row: 3; display: flex; align-items: flex-end; gap: 18px; padding-left: 14px; }

.bh__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(3, 15, 39, 0.35);
  color: var(--on-dark);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}
.bh__arrow:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.bh__arrow:disabled { opacity: 0.28; cursor: default; }
.bh__arrow svg { width: 18px; height: 18px; }

.bh__scale { position: relative; flex: 1; display: flex; padding: 0; margin: 0 0 6px; list-style: none; }
/* marca final da cota, à direita do último trecho */
.bh__scale::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: 9px; background: rgba(255, 255, 255, 0.45); }
.bh__scale li { flex: 1; }
.bh__mark {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 14px 8px;
  border: 0;
  background: none;
  color: var(--on-dark-soft);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
/* linha base do trecho e marca de divisão à esquerda */
.bh__mark::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, 0.3); }
.bh__mark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
/* preenchimento âmbar do trecho ativo */
.bh__mark-num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.bh__mark:hover { color: var(--on-dark); }
.bh__mark.is-on { color: var(--on-dark); font-weight: 500; }
.bh__mark.is-on .bh__mark-num::after { transform: scaleX(1); }
.bh__mark:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }

/* telas baixas: resumo mais curto para caber na altura */
@media (min-width: 901px) and (max-height: 780px) {
  .bh__excerpt { -webkit-line-clamp: 2; }
  .bh__actions { margin-top: 2px; }
}

@media (max-width: 900px) {
  .bh { grid-template-rows: auto; height: auto; min-height: 0; max-height: none; }
  .bh-slot { flex-basis: clamp(200px, 42vw, 280px); }
  .bh-bg::after {
    background:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
      radial-gradient(ellipse 80% 40% at 50% 72%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%),
      linear-gradient(180deg, rgba(3, 15, 39, 0.9) 0%, rgba(3, 15, 39, 0.78) 45%, rgba(3, 15, 39, 0.35) 70%, rgba(3, 15, 39, 0.75) 100%);
  }
  .bh__feature { grid-column: 1 / -1; grid-row: auto; padding-block: 32px 8px; }
  .bh__rail { grid-column: 1 / -1; grid-row: auto; margin-left: calc(var(--rail-edge) * -1); padding-left: var(--rail-edge); scroll-padding-left: var(--rail-edge); }
  .bh__controls { grid-column: 1 / -1; grid-row: auto; padding-left: 0; }
}
@media (max-width: 560px) {
  .bh__head { flex-direction: column; gap: 8px; }
  .bh-slot { flex-basis: 68vw; }
  .bh__controls { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-bg__layer, .bh-bg__layer.is-on { transition: opacity 0.3s; transform: scale(1.06); }
  .bh__feature.is-in > * { animation: none; }
  .bh-card { transition: none; animation: none; }
  .bh-slot__shadow { animation: none; }
}

/* Destaque: prancha + painel azul */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  color: var(--text);
  text-decoration: none;
}
.feature .plate { border-right: 0; }
.feature__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 36px);
  background: var(--navy);
  color: var(--on-dark);
}
.feature__title { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 300; }
.feature__excerpt {
  color: var(--on-dark-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature .more { margin-top: auto; padding-top: 6px; color: var(--on-dark); }
.feature:hover .more { text-decoration-color: var(--on-dark); }
.feature:hover .plate__img img, .post-card__link:hover .plate__img img { transform: scale(1.035); }
.feature:focus-visible, .post-card__link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

/* ---------- Cartões (blog.html e "continue lendo") ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) var(--col-gap);
}
.post-card__link { display: flex; flex-direction: column; gap: 18px; height: 100%; color: var(--text); text-decoration: none; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 1.3125rem; line-height: 1.22; letter-spacing: -0.015em; }
.post-card__excerpt {
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .more { margin-top: auto; padding-top: 6px; }
.post-card__link:hover .more { text-decoration-color: currentColor; }

/* ---------- blog.html ---------- */

.blog-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 5vw, 72px); }
.blog-hero__inner { row-gap: 16px; align-items: end; }
.blog-hero h1 { grid-column: 1 / 5; font-size: var(--fs-display); }
.blog-hero .lead { grid-column: 5 / 10; }

.blog-index { padding-top: clamp(32px, 4vw, 56px); }
.blog-index__lead { margin-bottom: clamp(32px, 4vw, 56px); }
.blog-index__lead .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.blog-index__lead .feature__title { font-size: clamp(1.5rem, 2.6vw, 2.375rem); }
.blog-index__lead .feature__excerpt { -webkit-line-clamp: 6; font-size: 1.0625rem; }
.blog-index__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.blog-status { color: var(--text-soft); font-size: var(--fs-lead); text-align: center; margin-top: 24px; }

/* ---------- Carregando (esqueleto estático) ---------- */

.skeleton__card { display: flex; flex-direction: column; gap: 14px; }
.skeleton__img { display: block; aspect-ratio: 3 / 2; background: var(--paper); border: 1px solid var(--line); }
.skeleton__img--wide { aspect-ratio: 2 / 1; max-height: 420px; width: 100%; }
.skeleton__line { display: block; height: 14px; background: var(--paper); }
.skeleton__line--short { width: 60%; }
.skeleton__line--title { height: clamp(28px, 4vw, 48px); margin-bottom: 14px; max-width: 760px; }
.skeleton--post { display: flex; flex-direction: column; gap: 4px; }
.skeleton--post .skeleton__img { margin-top: 28px; }
.blog-index > .container > .skeleton { margin-top: 0; }

/* ---------- Artigo ---------- */

.read-progress { position: fixed; top: var(--header-h); left: 0; right: 0; height: 3px; z-index: 49; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

.post { padding-block: clamp(28px, 3.5vw, 48px) clamp(48px, 6vw, 88px); background: var(--white); }

.crumbs { display: flex; gap: 10px; font-family: var(--sans); font-size: var(--fs-small); color: var(--text-soft); }
.crumbs a { text-decoration: none; color: inherit; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.crumbs a + a::before { content: "/"; margin-right: 10px; color: var(--line-strong); }

.post__title {
  max-width: 24ch;
  margin-block: clamp(20px, 2.6vw, 32px) clamp(28px, 3.4vw, 44px);
  font-size: clamp(2.125rem, 4.2vw, 3.625rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.plate--wide .plate__img { aspect-ratio: auto; height: clamp(220px, 40vw, 520px); flex: none; }
.stamp__cell--share { flex: 1.6; }
.share { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); line-height: 1.3; }
.share a, .share button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.share a:hover, .share button:hover { text-decoration-color: currentColor; }

.post__layout { margin-top: clamp(32px, 4.5vw, 64px); align-items: start; }
.post__toc {
  grid-column: 1 / 5;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  max-height: calc(100vh - var(--header-h) - 64px);
  overflow-y: auto;
  padding-right: 24px;
}
.post__toc-title { font-family: var(--sans); font-weight: 500; font-size: var(--fs-small); margin-bottom: 12px; }
.post__toc ul { border-left: 1px solid var(--line); }
.post__toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.35;
  color: var(--text-soft);
  text-decoration: none;
}
.post__toc a:hover { color: var(--text); }
.post__toc a[aria-current] { color: var(--text); font-weight: 500; border-left-color: var(--amber); }

.post__body { grid-column: 5 / 12; min-width: 0; max-width: 44rem; }
.post__body > * + * { margin-top: 1.25em; }
.post__body > p:first-child { font-size: 1.3125rem; line-height: 1.55; color: var(--text); }
.post__body p, .post__body li { line-height: 1.7; }
.post__body h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 2.3vw, 1.9375rem);
  line-height: 1.15;
  letter-spacing: -0.024em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.post__body h3 { margin-top: 1.8em; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.012em; }
.post__body h4 { margin-top: 1.6em; font-size: 1.0625rem; font-weight: 500; }
.post__body h2 + *, .post__body h3 + *, .post__body h4 + * { margin-top: 0.7em; }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li::marker { color: var(--amber); }
.post__body ol li::marker { color: var(--navy); font-family: var(--sans); font-weight: 500; }
.post__body li + li { margin-top: 0.5em; }
.post__body strong { font-weight: 600; }
.post__body a { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__body a:hover { text-decoration-color: currentColor; }
.post__body blockquote {
  margin-block: 1.8em;
  padding: 4px 0 4px 1.3em;
  border-left: 3px solid var(--amber);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
}
.post__body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.post__body img { display: block; width: 100%; height: auto; }

.post__table { overflow-x: auto; margin-block: 1.8em; border: 1px solid var(--line-strong); }
.post__table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.post__table th, .post__table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post__table td + td, .post__table th + th { border-left: 1px solid var(--line); }
.post__table tr:last-child td { border-bottom: 0; }
.post__table tr:first-child td, .post__table th { background: var(--paper); font-family: var(--sans); font-weight: 500; }
.post__table td p, .post__table th p { margin: 0; line-height: inherit; }

.post__status { max-width: 36rem; padding-block: clamp(32px, 6vw, 72px); }
.post__status-title { font-size: var(--fs-h2); margin-bottom: 16px; }
.post__status p { color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.5; margin-bottom: 28px; }

/* Chamada ao fim do artigo */
.post-cta { background: var(--navy); color: var(--on-dark); padding-block: clamp(36px, 4.5vw, 60px); }
.post-cta__inner { row-gap: 24px; align-items: center; }
.post-cta__copy { grid-column: 1 / 9; }
.post-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); margin-bottom: 12px; }
.post-cta p { color: var(--on-dark-soft); line-height: 1.55; max-width: 52ch; }
.post-cta .btn { grid-column: 10 / 13; justify-self: end; }

.post-more { padding-block: clamp(48px, 5.5vw, 80px); }
.post-more .post-grid { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
  .post__toc { grid-column: 1 / 4; }
  .post__body { grid-column: 4 / 13; }
}

@media (max-width: 900px) {
  .blog-head h2, .blog-head > h2:nth-child(2) { grid-column: 1 / -1; }
  .blog-head .lead { grid-column: 1 / -1; }
  .blog-head__all, .blog-head > h2:nth-child(2) ~ .blog-head__all { grid-column: 1 / -1; justify-self: start; }
  .blog-hero h1, .blog-hero .lead { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post__toc { display: none; }
  .post__body { grid-column: 1 / -1; }
  .post-cta__copy, .post-cta .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 700px) {
  .feature, .blog-index__lead .feature { grid-template-columns: 1fr; }
  .feature .plate { border-right: 1px solid var(--line-strong); border-bottom: 0; }
  .feature .plate__img { aspect-ratio: 3 / 2; flex: none; }
  .post-grid { grid-template-columns: 1fr; }
  .stamp { grid-auto-flow: row; grid-auto-columns: auto; }
  .stamp__cell + .stamp__cell { border-left: 0; border-top: 1px solid var(--line); }
  .post__body > p:first-child { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .plate__img img { transition: none; }
  .feature:hover .plate__img img, .post-card__link:hover .plate__img img { transform: none; }
}

/* ==========================================================================
   Quem somos: foto em Nossa história, equipe em colunas e crenças em destaque
   ========================================================================== */

.story__photo { grid-column: 1 / 4; grid-row: 2; margin: 0; background: var(--paper); }
.story__photo img { width: 100%; height: auto; } /* foto inteira, na proporção original */
.story__body { grid-row: 1 / span 2; }

/* Equipe: três colunas, retrato em preto e branco e a bio embaixo, sem rolar demais */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px) var(--col-gap);
  margin-top: clamp(32px, 4vw, 56px);
}
.team .member { display: flex; flex-direction: column; padding: 0; border: 0; }
.team .member:last-child { border: 0; }
.team .member__photo, .team .member:nth-child(even) .member__photo { grid-column: auto; max-width: none; background: var(--paper); }
.team .member__photo img { aspect-ratio: 2 / 3; object-position: 50% 0; } /* retrato inteiro, em cor */
.team .member__body, .team .member:nth-child(even) .member__body { grid-column: auto; margin-top: 0; padding-top: 22px; border-top: 2px solid var(--amber); margin-block-start: 18px; }
.team .member h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.team .member p:not(.member__role) { margin-top: 16px; max-width: none; font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) {
  .team { grid-template-columns: minmax(0, 1fr); }
  .team .member { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 24px; }
  .team .member__body { margin-top: 0; padding-top: 14px; }
}
@media (max-width: 560px) {
  .team .member { display: flex; }
  .team .member__photo { max-width: 320px; }
}

/* No que acreditamos: mais presença (título, linha-régua em âmbar e texto no tom cheio) */
.beliefs-section { background: var(--white); }
.beliefs { margin-top: clamp(32px, 4.5vw, 56px); gap: clamp(20px, 2.4vw, 32px) var(--col-gap); }
.beliefs li {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px) clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--navy);
  background: var(--paper);
}
.beliefs li::before { content: ""; position: absolute; left: clamp(22px, 2.6vw, 36px); top: -3px; width: 56px; height: 3px; background: var(--amber); }
.beliefs h3 { max-width: 18ch; font-size: clamp(1.625rem, 2.8vw, 2.375rem); font-weight: 400; color: var(--navy); }
.beliefs p { margin-top: 14px; max-width: 40ch; font-size: 1.0625rem; color: var(--text); }

@media (max-width: 900px) {
  .story__photo { grid-column: 1 / -1; grid-row: auto; max-width: 380px; }
  .story__body { grid-row: auto; }
}

/* Travas, em dois atos. Ato 1, no papel: a pergunta e as quatro travas como
   uma cadeia, ligadas por um fio dourado que se desenha ao rolar, cada uma
   caindo na seguinte. Um fio desce do papel para a faixa. Ato 2, na faixa
   azul de borda a borda: a resposta, numerada como as travas, e a equipe à
   direita, num estúdio cinza que se dissolve na malha de prancha */
#travas {
  --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --turn-h: clamp(112px, 12vw, 176px);
  overflow: hidden;
}

/* ---------- Ato 1: a dor ---------- */
.travas__ask {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 20px;
  align-items: end;
}
/* mesma grotesca afiada do título da faixa: os dois atos falam com a mesma voz */
.travas__ask-title,
.travas__head h2 {
  font-family: "Archivo", var(--sans);
  font-stretch: 90%;
  font-weight: 600;
  font-size: clamp(2.125rem, 3.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.travas__ask-title { grid-column: 1 / 8; max-width: 16ch; color: var(--navy); }
.travas__ask .lead {
  grid-column: 9 / 13;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  font-size: 1.0625rem;
}

/* a cadeia: um trilho fino e, por cima, o fio dourado; um ponto por trava */
.chain {
  --dot: 16px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: trava;
}
.chain::before,
.chain::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.chain::after { background: var(--amber); transform-origin: left center; }
.chain li {
  position: relative;
  padding-top: calc(var(--dot) + 28px);
  padding-right: clamp(8px, 2vw, 32px);
  counter-increment: trava;
}
.chain li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: var(--dot);
  height: var(--dot);
  box-sizing: border-box;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--paper);
}
.chain h3::before {
  content: counter(trava, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #a87400; /* dourado escurecido: legível sobre o papel */
}
.chain h3 {
  max-width: 16ch;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}
.chain p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
}
/* rótulo entre o problema (título) e a resposta (texto) */
.chain .chain__label {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a87400; /* dourado escurecido: legível sobre o papel */
}

/* o fio que desce do papel e entra na faixa, na mesma linha do filete da lead */
.travas__turn {
  position: relative;
  z-index: 2;
  width: 2px;
  height: var(--turn-h);
  margin: clamp(48px, 6vw, 88px) 0 calc(-1 * var(--turn-h) / 2);
  background: linear-gradient(var(--amber), var(--amber));
  transform-origin: top center;
}

/* ---------- Ato 2: a equipe como a solução ---------- */
/* depois das quatro travas, a faixa azul: o texto à esquerda, onde o fio
   chega, e a equipe à direita, num estúdio cinza que se dissolve na malha */
.travas__screen {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  min-height: min(92svh, 880px);
  padding-block: calc(var(--turn-h) / 2 + clamp(32px, 4vw, 56px)) var(--section-y);
  color: var(--on-dark);
}
/* a faixa: marinho com a malha de prancha de 48px, a do hero e da vitrine do blog */
.travas__screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) center top / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) center top / 48px 48px,
    linear-gradient(100deg, var(--ink) 0%, var(--navy) 55%, #1d2663 100%);
}

.travas__head { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 1; }
.travas__head h2 { max-width: 18ch; color: var(--on-dark); }
.travas__head .lead {
  max-width: 52ch;
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  font-size: 1.0625rem;
  color: var(--on-dark-soft);
}

/* retrato da equipe: do topo à base da faixa e até a borda direita da tela.
   A figura em si é transparente (a malha azul aparece através dela); o
   estúdio cinza (::before) acompanha a foto, só um pouco mais largo que ela,
   e se apaga para a esquerda: o azul chega quase nas pessoas, sem cobrir */
.travas__team {
  --img-h: min(calc(100cqh - 64px), calc(var(--w, 78cqw) * 1.5), 1050px);
  grid-column: 6 / 13;
  grid-row: 1;
  position: relative;
  align-self: stretch;
  margin: calc(-1 * (var(--turn-h) / 2 + clamp(32px, 4vw, 56px))) calc(-1 * var(--bleed)) calc(-1 * var(--section-y)) 0;
  overflow: hidden;
  container-type: size; /* a foto e o estúdio se medem pela figura (cqw/cqh) */
}
.travas__team::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(var(--img-h) * 2 / 3 + 170px);
  background: linear-gradient(180deg, #4f4f52 0%, #434346 50%, #403f42 82%, #49474a 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.18) 40px, rgba(0, 0, 0, 0.55) 90px, rgba(0, 0, 0, 0.88) 140px, #000 180px);
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.18) 40px, rgba(0, 0, 0, 0.55) 90px, rgba(0, 0, 0, 0.88) 140px, #000 180px);
}
/* absoluta: a altura da faixa vem do texto, não do retrato. Apoiada na base e
   limitada pela altura (folga em cima das cabeças) e pela
   largura (--w); acima das cabeças o estúdio continua */
.travas__team img {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: auto;
  max-width: none;
  height: var(--img-h);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%),
    linear-gradient(to bottom, transparent 0, #000 9%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%),
    linear-gradient(to bottom, transparent 0, #000 9%);
  mask-composite: intersect;
}

/* ---------- Movimento (somente html.has-motion) ---------- */
/* o fio corre da esquerda para a direita e cada trava cai quando ele chega nela */
.has-motion .chain::after { transform: scaleX(0); transition: transform 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.2s; }
.has-motion .chain.is-in::after { transform: none; }
.has-motion .chain li::before { transform: scale(0); transition: transform 0.5s var(--ease-out) calc(0.25s + var(--n, 0) * 0.42s); }
.has-motion .chain li > * {
  opacity: 0;
  transform: translate3d(0, -22px, 0) rotate(-2.5deg);
  transform-origin: left bottom;
  transition:
    opacity 0.7s var(--ease-out) calc(0.35s + var(--n, 0) * 0.42s),
    transform 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) calc(0.35s + var(--n, 0) * 0.42s);
}
.has-motion .chain li > p { transition-delay: calc(0.55s + var(--n, 0) * 0.42s); }
.has-motion .chain.is-in li::before { transform: none; }
.has-motion .chain.is-in li > * { opacity: 1; transform: none; }

.has-motion .travas__turn { transform: scaleY(0); transition: transform 1.1s cubic-bezier(0.6, 0, 0.3, 1); }
.has-motion .travas__turn.is-in { transform: none; }

/* a equipe assenta devagar e depois flutua com a rolagem */
.has-motion .travas__team img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.16);
  transition: transform 2.4s var(--ease-out);
  will-change: transform;
}
.has-motion .travas__team.is-in img { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
.has-motion .travas__team.is-settled img { transition: none; }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .chain h3 { font-size: 1.125rem; }
}
/* figura mais estreita: a foto encolhe para a Carla não entrar no degradê */
@media (min-width: 901px) and (max-width: 1240px) {
  .travas__team { --w: 70cqw; }
}
/* empilhado: a cadeia vira vertical, o fio corre pela lateral */
@media (max-width: 900px) {
  .travas__ask-title, .travas__ask .lead { grid-column: 1 / -1; }
  .chain { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .chain::before,
  .chain::after { top: 0; bottom: 0; left: calc(var(--dot) / 2 - 1px); right: auto; width: 2px; height: auto; }
  .chain::after { transform-origin: center top; }
  .has-motion .chain::after { transform: scaleY(0); }
  .has-motion .chain.is-in::after { transform: none; }
  .chain li { padding: 0 0 0 calc(var(--dot) + 24px); }
  .chain li::before { top: 2px; }
  .chain h3 { max-width: none; }

  .travas__screen { min-height: 0; padding-bottom: 0; }
  .travas__head, .travas__team { grid-column: 1 / -1; grid-row: auto; }
  .travas__team {
    margin: 40px calc(-1 * var(--gutter)) 0;
    aspect-ratio: 4 / 5;
    max-height: 86svh;
    -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 18%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 4%, #000 18%, #000 80%, transparent 100%);
  }
  .travas__team::before { display: none; }
  .travas__team img { top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 18%; -webkit-mask-image: none; mask-image: none; }
}

/* números sozinhos numa seção (Terraplenagem): sem o vão que existia antes do caso */
.stats--light:last-child { margin-bottom: 0; }

/* Quem somos, hero: a foto aparece inteira (proporção 3:2), sem corte */
.hero__photo--full { grid-column: 7 / 13; align-self: center; min-height: 0; aspect-ratio: 3 / 2; }
.hero__photo--full img { object-position: 50% 50%; }
@media (max-width: 960px) { .hero__photo--full { grid-column: 1 / -1; aspect-ratio: 3 / 2; margin-right: 0; } }

/* ==========================================================================
   Quem somos, mais compacta: mesma linguagem, melhor distribuição
   ========================================================================== */

/* ritmo vertical menor nesta página */
.page-quem-somos .section { padding-block: clamp(52px, 5.5vw, 84px); }
.page-quem-somos .hero--page { padding-block: clamp(36px, 4.5vw, 64px); }
.page-quem-somos .diff { padding-top: clamp(52px, 5.5vw, 84px); }
.page-quem-somos .diff__list { margin-top: clamp(28px, 3.5vw, 48px); }

/* hero: a foto fica dentro da grade, com moldura, alinhada ao texto */
.hero__photo--full {
  grid-column: 7 / 13;
  margin: 8px 8px 8px 0;
  box-shadow: 0 0 0 8px var(--navy), 0 0 0 9px var(--line-dark);
}
.page-quem-somos .hero__copy { grid-column: 1 / 7; }

/* nossa história: foto à esquerda do tamanho do texto; título sobe para a coluna do texto */
.story { row-gap: 18px; align-items: start; }
.story .section-title-sm { grid-column: 6 / 13; grid-row: 1; max-width: none; padding-top: 0; }
.story__photo { grid-column: 1 / 5; grid-row: 1 / span 2; }
.story__body { grid-column: 6 / 13; grid-row: 2; }
.story__body p + p { max-width: 62ch; }

/* equipe: bio resumida (abre no "Ler mais") e espaçamentos menores */
.page-quem-somos .team { margin-top: clamp(28px, 3vw, 44px); gap: 32px var(--col-gap); }
.team .member__body, .team .member:nth-child(even) .member__body { margin-block-start: 14px; padding-top: 16px; }
.team .member p.member__bio { margin-top: 12px; font-size: 0.96875rem; line-height: 1.6; }
.member__bio.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.member__more {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.member__more:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Quem somos
   A página corre sobre o papel; os momentos fortes (a foto da equipe e os
   diferenciais) são placas soltas, com uma margem de papel em volta. O painel
   da história se apoia na borda da foto e desce para o papel.
   ========================================================================== */
.page-quem-somos { --frame: clamp(10px, 1.25vw, 20px); --overlap: clamp(96px, 9vw, 132px); }
.page-quem-somos main { background: var(--paper); }

.about-hero { padding: var(--frame) var(--frame) 0; }
/* placa azul só com o título; o painel branco sobe da base e traz a história em duas colunas */
.about-hero__plate {
  padding-block: clamp(52px, 5.5vw, 84px) calc(var(--overlap) + clamp(24px, 3vw, 44px));
  border-radius: 4px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--on-dark);
}
.about-hero h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.about-hero__story { position: relative; }
.about-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: calc(var(--overlap) * -1);
  padding: clamp(28px, 3vw, 44px);
  border-top: 3px solid var(--amber);
  background: var(--white);
  box-shadow: 0 40px 60px -40px rgba(3, 15, 39, 0.45);
}
.about-hero__lead {
  grid-row: 1 / span 2;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  line-height: 1.3;
  letter-spacing: -0.016em;
  color: var(--navy);
}
.about-hero__panel p:not(.about-hero__lead) { grid-column: 2; font-size: 1rem; line-height: 1.65; color: var(--text-soft); }
.about-hero__panel p:not(.about-hero__lead) + p { margin-top: 1em; }

@media (max-width: 900px) {
  .page-quem-somos { --overlap: 48px; }
  .about-hero__panel { grid-template-columns: minmax(0, 1fr); }
  .about-hero__lead { grid-row: auto; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .about-hero__panel p:not(.about-hero__lead) { grid-column: 1; }
}

/* equipe: uma linha por pessoa na grade de 12 colunas (retrato | identificação | bio) */
.team-section { padding-block: clamp(64px, 7vw, 104px); }
.team-section .container > h2 { max-width: 20ch; }
.page-quem-somos .team {
  display: block;
  margin-top: clamp(32px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
}
.team .member, .team .member:last-child, .team .member:nth-child(even) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: stretch;
  padding: clamp(28px, 3vw, 40px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  box-shadow: none;
}
/* trecho âmbar do filete, só sobre a coluna do retrato */
.team .member::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: calc((100% - var(--col-gap) * 11) / 12 * 3 + var(--col-gap) * 2);
  height: 2px;
  background: var(--amber);
}
.team .member__photo, .team .member:nth-child(even) .member__photo {
  grid-column: 1 / 4;
  grid-row: 1;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #bab6b5;
}
.team .member__photo img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.team .member__body, .team .member:nth-child(even) .member__body {
  grid-column: 4 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  column-gap: var(--col-gap);
  margin: 0;
  padding: 0 0 0 clamp(0px, 1.5vw, 24px);
  border: 0;
}
.team .member h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--navy);
}
/* função em dourado escuro, tirado do âmbar da marca (contraste 5:1 sobre o papel) */
.team .member .member__role {
  margin-top: 10px;
  max-width: 28ch;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #8a5e00;
}
.member__facts { margin: clamp(22px, 2.4vw, 32px) 0 0; border-bottom: 1px solid var(--line); }
.member__facts div { display: grid; grid-template-columns: minmax(0, 10ch) minmax(0, 1fr); column-gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.member__facts dt { font-family: var(--sans); font-size: 0.8125rem; line-height: 1.5; color: var(--text-soft); }
.member__facts dd { margin: 0; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--navy); }
.team .member p.member__bio {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .team .member__body, .team .member:nth-child(even) .member__body { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .team .member p.member__bio { margin-top: 24px; }
}
@media (max-width: 700px) {
  .team .member, .team .member:last-child, .team .member:nth-child(even) { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .team .member::before { width: 120px; }
  .team .member__photo, .team .member:nth-child(even) .member__photo { grid-column: 1; max-width: 260px; }
  .team .member__body, .team .member:nth-child(even) .member__body { grid-column: 1; grid-row: 2; }
}

/* diferenciais: placa azul com a lista à esquerda e os números em 2 × 2 */
.diff.diff--plate { padding: 0 var(--frame) var(--frame); background: var(--paper); color: var(--text); }
.diff__plate {
  padding-block: clamp(52px, 6vw, 88px);
  border-radius: 4px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--on-dark);
}
.diff__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.diff--plate h2 { grid-column: 1 / 6; }
.diff--plate .diff__list { grid-column: 1 / 6; grid-row: 2; display: block; margin-top: 0; }
.diff--plate .diff__list li { padding: 14px 0; font-size: 1.0625rem; }
.diff--plate .diff__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.diff--plate .stats { grid-column: 7 / 13; grid-row: 1 / 3; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; border-top: 0; }
.diff--plate .stats__item { padding: 26px 0 30px; border-top: 1px solid var(--line-dark); border-left: 0; }
.diff--plate .stats__item:nth-child(even) { padding-left: var(--col-gap); border-left: 1px solid var(--line-dark); }
.diff--plate .stats dd { font-size: clamp(2.5rem, 4.2vw, 3.75rem); }
@media (max-width: 900px) {
  .diff--plate h2, .diff--plate .diff__list, .diff--plate .stats { grid-column: 1 / -1; grid-row: auto; }
}

/* crenças: quatro cards em uma linha */
.page-quem-somos .beliefs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 3vw, 40px); }
.page-quem-somos .beliefs li { padding: 26px 22px 28px; }
.page-quem-somos .beliefs li::before { left: 22px; }
.page-quem-somos .beliefs h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; }
.page-quem-somos .beliefs p { margin-top: 10px; font-size: 1rem; line-height: 1.55; }

@media (max-width: 1100px) {
  .page-quem-somos .beliefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__photo--full { grid-column: 1 / -1; margin: 8px; }
  .page-quem-somos .hero__copy { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .story .section-title-sm, .story__photo, .story__body { grid-column: 1 / -1; grid-row: auto; }
  .story__photo { max-width: 260px; }
}
@media (max-width: 600px) {
  .page-quem-somos .beliefs { grid-template-columns: minmax(0, 1fr); }
}

/* blog logo depois de "Projetos em destaque" (também escuro): filete separando as duas */
.blog-home { border-top: 1px solid var(--line-dark); }
