/* Prancha Arquitetura: site modelo
   Prancha de apresentação: sulfite levemente texturizado, nanquim grafite, um único azul de cópia heliográfica.
   pagina #e6e8e4  papel #f7f7f3  tinta #2b2f33  tinta-2 #596067  linha #cdd1cc  heliografia #2b4c7e  ardosia #1f2a33
   Contraste (WCAG): tinta/papel 12.6, tinta-2/papel 6.1, heliografia/papel 8.1, papel/ardosia 13.9 */
:root {
  --pagina: #e6e8e4;
  --papel: #f7f7f3;
  --tinta: #2b2f33;
  --tinta-2: #596067;
  --tinta-3: #868c91;
  --linha: #cdd1cc;
  --linha-2: #dfe2dd;
  --helio: #2b4c7e;
  --ardosia: #1f2a33;
  --ardosia-2: #2a3742;
  --margem: clamp(1.1rem, 4vw, 3.5rem);
  --serifa: 'Spectral', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --curva: cubic-bezier(0.22, 0.61, 0.36, 1);
  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .18 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibra: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .32 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23f)'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--pagina); color: var(--tinta);
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--helio); outline-offset: 3px; }

.pular { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--tinta); color: var(--papel); padding: .6rem 1rem; }
.pular:focus { top: 1rem; }

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--margem); border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: baseline; gap: .65rem; text-decoration: none; }
.marca svg { width: 22px; height: 22px; align-self: center; fill: none; stroke: var(--tinta); }
.marca .mq { stroke-width: 2.6; }
.marca .mc { stroke-width: 1.1; }
.marca-nome { font-family: var(--serifa); font-weight: 400; font-size: 1.45rem; letter-spacing: .01em; line-height: 1; }
.marca-sub { font-family: var(--cond); font-weight: 300; font-size: .9rem; color: var(--tinta-2); letter-spacing: .04em; }
.menu { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: .9375rem; }
.menu a { text-decoration: none; color: var(--tinta-2); padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--tinta); border-color: var(--tinta); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.2rem, 5vw, 4.2rem) var(--margem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-cabeca {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end; margin-bottom: clamp(1.6rem, 3.5vw, 2.8rem);
}
h1 {
  font-family: var(--serifa); font-weight: 200; font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.02; letter-spacing: -.018em; max-width: 13ch;
}
.hero-lado p { max-width: 44ch; color: var(--tinta-2); font-weight: 300; font-size: 1.0625rem; }
.hero-lado .hero-dica { margin-top: .9rem; font-family: var(--cond); font-size: .9375rem; color: var(--tinta); font-weight: 400; }

/* a folha: papel com margem de desenho, prancheta à esquerda, legenda e carimbo à direita */
.folha-desenho {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(290px, 25vw, 360px);
  background-color: var(--papel); background-image: var(--textura), var(--fibra);
  border: 1px solid var(--linha); box-shadow: 0 1px 0 rgba(43, 47, 51, .04), 0 18px 40px -28px rgba(31, 42, 51, .35);
  padding: clamp(.6rem, 1.2vw, 1rem);
}
.folha-desenho::before { /* margem da prancha, como na folha A1 */
  content: ''; position: absolute; inset: clamp(.6rem, 1.2vw, 1rem); border: 1.5px solid var(--tinta); pointer-events: none; opacity: .85;
}
.prancheta { position: relative; min-height: clamp(540px, 74vh, 820px); border-right: 1px solid var(--tinta); overflow: hidden; }
.lateral { display: flex; flex-direction: column; min-width: 0; }
.lateral > * { padding: 1.1rem 1.2rem; }
.lateral > * + * { border-top: 1px solid var(--tinta); }

/* ---------- planta ---------- */
#planta { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; --upp: 1; }
#planta:active { cursor: grabbing; }
#planta:focus-visible { outline-offset: -6px; }
#planta .obj:focus { outline: none; }
#planta text { font-family: var(--cond); pointer-events: none; }
#planta .obj { cursor: pointer; }
#planta .alvo { fill: transparent; stroke: none; pointer-events: all; }
#planta path.alvo { fill: none; stroke: transparent; stroke-width: 18px; vector-effect: non-scaling-stroke; pointer-events: stroke; }
#planta .alvo-area { fill: transparent; pointer-events: all; }
#planta .eixo, #planta .bolha, #planta .janela, #planta .folha-desenho, #planta .arco, #planta .projecao,
#planta .luz, #planta .el-linha, #planta .tomada, #planta .circuito, #planta .qd, #planta .agua-fria, #planta .agua-quente,
#planta .esgoto, #planta .esgoto-fino, #planta .caixa-agua, #planta .hidrometro, #planta .aquecedor, #planta .caixa-esg, #planta .ralo,
#planta .movel, #planta .cota, #planta .cota-ext, #planta .cota-tick, #planta .piso { vector-effect: non-scaling-stroke; }

/* hierarquia de traço: parede cortada em poché cheio, esquadria média, folha e móvel finos, projeção pontilhada */
#planta .parede { fill: none; stroke: #2b2f33; stroke-linecap: square; stroke-linejoin: miter; }
#planta .janela { stroke: #2b2f33; stroke-width: .7px; }
#planta .janela.vidro { stroke: #2b2f33; stroke-width: 1.1px; }
#planta .folha-desenho { stroke: #2b2f33; stroke-width: 1.1px; }
#planta .arco { fill: none; stroke: #2b2f33; stroke-width: .5px; opacity: .8; }
#planta .projecao { fill: none; stroke: #2b2f33; stroke-width: .6px; stroke-dasharray: 6 4; opacity: .7; }
#planta .piso { fill: transparent; stroke: none; pointer-events: all; transition: fill .25s; }
#planta .amb-nome { fill: var(--tinta); font-size: clamp(24px, calc(var(--upp) * 12.5px), 50px); font-weight: 400; letter-spacing: .02em; text-anchor: middle; dominant-baseline: central; }
#planta .amb-area { fill: var(--tinta-2); font-size: clamp(19px, calc(var(--upp) * 10px), 38px); font-weight: 300; text-anchor: middle; dominant-baseline: central; }

#planta .movel { fill: none; stroke: #6f767c; stroke-width: .6px; stroke-linejoin: round; }
#planta .movel.fino { stroke-width: .4px; }
#planta .movel.grosso { stroke-width: 1.4px; }
#planta .movel.tracejado { stroke-dasharray: 4 3; }
#planta .c-mobiliario { transition: opacity .35s var(--curva); }
#planta.com-instalacao .c-mobiliario { opacity: .28; }
#planta.com-instalacao .c-ambientes .amb-area { opacity: .6; }

/* estrutura */
#planta .eixo { stroke: var(--cor); stroke-width: .5px; opacity: .7; stroke-dasharray: 18 4 2 4; }
#planta .bolha { fill: var(--papel); stroke: var(--cor); stroke-width: .8px; }
#planta .bolha-txt { fill: var(--cor); font-family: var(--serifa); font-size: 30px; font-weight: 400; text-anchor: middle; dominant-baseline: central; }
#planta .viga { fill: none; stroke: var(--cor); stroke-width: 12; opacity: .16; }
#planta .pilar { fill: var(--cor); }

/* elétrica */
#planta .luz { fill: var(--papel); stroke: var(--cor); stroke-width: 1px; }
#planta .el-linha { fill: none; stroke: var(--cor); stroke-width: .8px; }
#planta .tomada { fill: var(--cor); }
#planta .tomada.tue { fill: var(--papel); stroke: var(--cor); stroke-width: 1px; }
#planta .interruptor { fill: var(--cor); font-size: 26px; font-weight: 500; text-anchor: middle; dominant-baseline: central; }
#planta .circuito { fill: none; stroke: var(--cor); stroke-width: .7px; stroke-dasharray: 7 4; opacity: .85; }
#planta .qd { fill: var(--cor); stroke: none; }

/* hidráulica: água fria azul contínua, quente vinho tracejada, esgoto grafite pontilhado */
#planta .agua-fria { fill: none; stroke: #2e6f8e; stroke-width: 1.3px; stroke-linejoin: round; }
#planta .agua-quente { fill: none; stroke: #9a3b34; stroke-width: 1.3px; stroke-dasharray: 10 4; stroke-linejoin: round; }
#planta .esgoto { fill: none; stroke: #4f565c; stroke-width: 1.5px; stroke-dasharray: 2 3; stroke-linejoin: round; }
#planta .esgoto-fino { fill: none; stroke: #4f565c; stroke-width: .7px; }
#planta .caixa-agua { fill: rgba(46, 111, 142, .05); stroke: #2e6f8e; stroke-width: .8px; stroke-dasharray: 6 3; }
#planta .h-txt { fill: #2e6f8e; font-size: max(19px, calc(var(--upp) * 9px)); font-weight: 400; text-anchor: middle; dominant-baseline: central; }
#planta .hidrometro { fill: var(--papel); stroke: #2e6f8e; stroke-width: 1px; }
#planta .aquecedor { fill: var(--papel); stroke: #9a3b34; stroke-width: 1px; }
#planta .caixa-esg, #planta .ralo { fill: var(--papel); stroke: #4f565c; stroke-width: 1px; }

/* cotas */
#planta .cota, #planta .cota-ext { fill: none; stroke: var(--cor); stroke-width: .5px; }
#planta .cota-tick { stroke: var(--cor); stroke-width: 1.1px; }
#planta .cota-txt {
  fill: var(--cor); font-size: max(19px, calc(var(--upp) * 9.5px)); font-weight: 400;
  text-anchor: middle; dominant-baseline: text-after-edge;
  paint-order: stroke; stroke: var(--papel); stroke-width: calc(var(--upp) * 3px); stroke-linejoin: round;
}

/* o detalhe fino só aparece de perto */
#planta:not(.perto) [data-lod] { display: none; }

/* seleção: azul heliográfico, sem brilho */
#planta .obj.selecionado { --cor: var(--helio); }
#planta .obj.selecionado .piso { fill: rgba(43, 76, 126, .07); }
#planta .obj.selecionado .amb-nome, #planta .obj.selecionado .amb-area { fill: var(--helio); }
#planta .obj.selecionado .movel { stroke: var(--helio); stroke-width: 1.3px; }
#planta .obj.selecionado .parede, #planta .obj.selecionado .janela, #planta .obj.selecionado .folha-desenho { stroke: var(--helio); }
#planta .obj.selecionado .agua-fria, #planta .obj.selecionado .agua-quente, #planta .obj.selecionado .esgoto { stroke: var(--helio); stroke-width: 2.4px; }
#planta .obj.selecionado .circuito { stroke-width: 1.6px; stroke-dasharray: none; opacity: 1; }
#planta .obj.selecionado .cota { stroke-width: 1.2px; }

@media (scripting: enabled) {
  .js #planta:not(.plotando):not(.plotada) .camada { visibility: hidden; }
}

/* controles sobre a planta */
.ferramentas {
  position: absolute; right: 1rem; bottom: 2.6rem; display: flex; flex-direction: column;
  background: var(--papel); border: 1px solid var(--tinta-3);
}
.ferramentas button { width: 36px; height: 36px; display: grid; place-items: center; transition: background .15s; }
.ferramentas button + button { border-top: 1px solid var(--linha); }
.ferramentas button:hover { background: #ecede9; }
.ferramentas svg { width: 16px; height: 16px; fill: none; stroke: var(--tinta); stroke-width: 1.3; }

.status {
  position: absolute; left: 1rem; right: 1rem; bottom: .7rem; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--cond); font-size: .8125rem; color: var(--tinta-2); pointer-events: none;
}
.coords { font-variant-numeric: tabular-nums; white-space: pre; }

.ficha {
  position: absolute; left: 1rem; top: 1rem; width: min(300px, calc(100% - 2rem)); z-index: 2;
  background: var(--papel); border: 1px solid var(--tinta); padding: .95rem 1.1rem 1rem;
  box-shadow: 0 10px 28px -18px rgba(31, 42, 51, .5);
}
.ficha[hidden] { display: none; }
.ficha-camada { font-family: var(--cond); font-size: .8125rem; color: var(--tinta-2); display: flex; align-items: center; gap: .45rem; }
.ficha-camada::before { content: ''; width: 14px; height: 2px; background: var(--cor, var(--tinta)); }
.ficha h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin: .2rem 2rem .65rem 0; }
.ficha dl { display: grid; gap: .35rem; font-size: .875rem; }
.ficha dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; border-top: 1px solid var(--linha-2); padding-top: .35rem; }
.ficha dt { color: var(--tinta-2); font-weight: 300; }
.ficha dd { text-align: right; font-weight: 400; }
.ficha-fechar { position: absolute; top: .55rem; right: .55rem; width: 30px; height: 30px; display: grid; place-items: center; }
.ficha-fechar svg { width: 14px; height: 14px; stroke: var(--tinta); stroke-width: 1.3; }

/* ---------- lateral: legenda das camadas ---------- */
.bloco-titulo { font-family: var(--serifa); font-weight: 400; font-size: 1.125rem; margin-bottom: .55rem; display: flex; align-items: baseline; gap: .6rem; }
.bloco-titulo small { font-family: var(--cond); font-weight: 300; font-size: .8125rem; color: var(--tinta-2); }
.camadas + .bloco-titulo { margin-top: 1.25rem; }
.camadas li + li { border-top: 1px solid var(--linha-2); }
.camadas button { width: 100%; display: grid; grid-template-columns: 30px 1fr 14px; align-items: center; gap: .7rem; padding: .55rem 0; text-align: left; font-size: .9375rem; }
.camadas .nome { color: var(--tinta-3); transition: color .2s; }
.camadas button[aria-pressed="true"] .nome { color: var(--tinta); }
.camadas .estado { width: 13px; height: 13px; border: 1px solid var(--tinta-3); position: relative; }
.camadas button[aria-pressed="true"] .estado { border-color: var(--tinta); }
.camadas button[aria-pressed="true"] .estado::after { content: ''; position: absolute; inset: 2px; background: var(--tinta); }
.amostra { height: 12px; position: relative; opacity: .4; transition: opacity .2s; }
.camadas button[aria-pressed="true"] .amostra { opacity: 1; }
.amostra-parede { background: linear-gradient(var(--tinta), var(--tinta)) center / 100% 5px no-repeat; }
.amostra-fina { border: 1px solid #6f767c; height: 12px; }
.amostra-cota { background: linear-gradient(#5d646b, #5d646b) center / 100% 1px no-repeat; }
.amostra-cota::before, .amostra-cota::after { content: ''; position: absolute; top: 2px; width: 1px; height: 8px; background: #5d646b; transform: rotate(45deg); }
.amostra-cota::before { left: 2px; }
.amostra-cota::after { right: 2px; }

.instalacoes { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; border-bottom: 1px solid var(--linha); }
.instalacoes button {
  padding: .5rem .7rem .55rem 0; margin-right: .7rem; font-size: .9375rem; color: var(--tinta-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.instalacoes button:last-child { margin-right: 0; padding-right: 0; }
.instalacoes button:hover { color: var(--tinta); }
.instalacoes button[aria-checked="true"] { color: var(--tinta); border-color: var(--cor, var(--tinta)); }
.legenda-inst { margin-top: .75rem; font-size: .875rem; color: var(--tinta-2); font-weight: 300; padding-left: .8rem; border-left: 2px solid var(--cor); line-height: 1.5; }

/* imagens do projeto */
.imagens { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.imagem { display: block; text-align: left; position: relative; }
.imagem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.86); transition: filter .3s, opacity .3s; }
.imagem span { display: block; font-family: var(--cond); font-size: .8125rem; color: var(--tinta-2); padding-top: .3rem; }
.imagem:hover img { filter: saturate(1); }
.imagem::after { content: ''; position: absolute; inset: -3px -3px auto -3px; aspect-ratio: auto; height: calc(100% - 1.25rem); border: 1px solid transparent; transition: border-color .2s; pointer-events: none; }
.imagem.ligada::after { border-color: var(--helio); }
.imagem.ligada span { color: var(--helio); }
.imagens-nota { grid-column: 1 / -1; font-size: .78rem; color: var(--tinta-3); font-weight: 300; line-height: 1.45; }

/* carimbo */
.carimbo-folha { width: 100%; border-collapse: collapse; font-size: .8125rem; margin-top: auto; }
.lateral > .carimbo-folha { padding: 0; }
.carimbo-folha caption { text-align: left; font-family: var(--cond); font-size: .75rem; color: var(--tinta-3); padding: .6rem 1.2rem .2rem; }
.carimbo-folha th, .carimbo-folha td { border-top: 1px solid var(--linha); padding: .42rem .5rem; text-align: left; vertical-align: top; }
.carimbo-folha tr > :first-child { padding-left: 1.2rem; }
.carimbo-folha th { font-family: var(--cond); font-weight: 300; color: var(--tinta-2); width: 1%; white-space: nowrap; }
.carimbo-folha td { font-weight: 400; }
.carimbo-folha tr:first-child td { font-family: var(--serifa); font-size: 1.05rem; }
.carimbo-folha th + td + th { border-left: 1px solid var(--linha); }

/* ---------- seções ---------- */
.secao-cabeca { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.secao-cabeca h2, .escritorio h2, .contato h2 { font-family: var(--serifa); font-weight: 200; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.012em; }
.secao-cabeca p { color: var(--tinta-2); font-weight: 300; max-width: 46ch; }

.projetos { padding: clamp(3.5rem, 8vw, 7rem) var(--margem); border-top: 1px solid var(--linha); }
.projeto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.projeto + .projeto { margin-top: clamp(3.5rem, 7vw, 6rem); }
.projeto figure { position: relative; }
.projeto img { width: 100%; object-fit: cover; }
.foto-grande { grid-column: 1 / span 7; }
.foto-grande img { aspect-ratio: 3 / 2; }
.foto-menor { grid-column: 8 / span 3; margin-top: 18%; }
.foto-menor img { aspect-ratio: 4 / 5; }
.projeto .carimbo { grid-column: 11 / span 2; margin-top: 18%; }
.projeto-b .foto-grande { grid-column: 6 / span 7; grid-row: 1; }
.projeto-b .foto-menor { grid-column: 3 / span 3; grid-row: 1; }
.projeto-b .carimbo { grid-column: 1 / span 2; grid-row: 1; }
figcaption { font-family: var(--cond); font-size: .75rem; color: var(--tinta-3); padding-top: .4rem; }
.carimbo h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin-bottom: .8rem; }
.carimbo dl { border-top: 1px solid var(--tinta); margin-bottom: 1rem; }
.carimbo dl div { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--linha); padding: .38rem 0; font-size: .8125rem; }
.carimbo dt { font-family: var(--cond); color: var(--tinta-2); font-weight: 300; }
.carimbo dd { text-align: right; }
.carimbo p { font-size: .9375rem; color: var(--tinta-2); font-weight: 300; line-height: 1.55; }

.servicos { padding: clamp(3.5rem, 8vw, 7rem) var(--margem); background-color: var(--papel); background-image: var(--textura); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.lista-servicos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tinta); }
.lista-servicos li { padding: 1.4rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--linha); }
.lista-servicos li:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid var(--linha); }
.lista-servicos h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.25rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .7rem; }
.lista-servicos h3::before { content: ''; width: 18px; height: 0; border-top: 1.5px solid var(--cor); flex: none; }
.lista-servicos p { font-size: .9375rem; color: var(--tinta-2); font-weight: 300; max-width: 38ch; }

.escritorio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(3.5rem, 8vw, 7rem) var(--margem); }
.escritorio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.escritorio-texto p { color: var(--tinta-2); font-weight: 300; max-width: 50ch; margin-top: 1.1rem; }
.fatos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border-top: 1px solid var(--tinta); }
.fatos div { padding: .8rem 1rem .2rem 0; }
.fatos div + div { padding-left: 1rem; border-left: 1px solid var(--linha); }
.fatos dt { font-family: var(--cond); font-size: .8125rem; color: var(--tinta-2); font-weight: 300; }
.fatos dd { font-family: var(--serifa); font-weight: 300; font-size: 1.9rem; line-height: 1.2; }

.contato { background: var(--ardosia); color: #e9ece8; padding: clamp(3.5rem, 8vw, 6.5rem) var(--margem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.4rem clamp(2rem, 6vw, 6rem); align-items: end; }
.contato h2 { grid-column: 1; max-width: 16ch; }
.contato > p:not(.contato-extra) { grid-column: 2; grid-row: 1; color: #b9c2c8; font-weight: 300; max-width: 42ch; }
.botao {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: .7rem;
  padding: .8rem 1.3rem; border: 1px solid #e9ece8; color: #e9ece8; text-decoration: none; font-size: .9375rem;
  transition: background .2s, color .2s;
}
.botao:hover { background: #e9ece8; color: var(--ardosia); }
.contato-extra { grid-column: 1; grid-row: 2; font-family: var(--cond); font-weight: 300; color: #b9c2c8; font-size: .9375rem; }
.contato :focus-visible { outline-color: #e9ece8; }

/* ---------- rodapé ---------- */
.rodape { background: #182128; color: #e9ece8; padding: 2.2rem var(--margem); display: grid; gap: 1.1rem; border-top: 1px solid var(--ardosia-2); }
.rodape-aviso { font-size: .875rem; color: #a7b0b6; font-weight: 300; max-width: 72ch; }
.voltar { justify-self: start; font-size: .9375rem; color: #e9ece8; text-underline-offset: 4px; }
.vetor { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; padding-top: 1.1rem; border-top: 1px solid rgba(233, 236, 232, .18); font-size: .875rem; }
.vetor a { color: #e9ece8; text-underline-offset: 3px; }
.vetor-marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; }
.rodape :focus-visible { outline-color: #e9ece8; }

/* ---------- telas menores ---------- */
@media (max-width: 1080px) {
  .folha-desenho { grid-template-columns: minmax(0, 1fr) 290px; }
  .projeto .carimbo, .projeto-b .carimbo { grid-column: 1 / -1; grid-row: auto; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .projeto .carimbo h3 { grid-column: 1 / -1; }
  .foto-grande, .projeto-b .foto-grande { grid-column: 1 / span 8; grid-row: 1; }
  .foto-menor, .projeto-b .foto-menor { grid-column: 9 / span 4; grid-row: 1; }
}
@media (max-width: 900px) {
  .menu { display: none; }
  .hero-cabeca, .secao-cabeca, .escritorio, .contato { grid-template-columns: 1fr; }
  .contato > p:not(.contato-extra), .botao, .contato-extra { grid-column: 1; grid-row: auto; }
  .folha-desenho { grid-template-columns: 1fr; }
  .prancheta { min-height: 0; aspect-ratio: 1950 / 1880; border-right: 0; border-bottom: 1px solid var(--tinta); }
  .lateral > * + * { border-top: 1px solid var(--tinta); }
  .lista-servicos { grid-template-columns: 1fr 1fr; }
  .lista-servicos li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .lista-servicos li:nth-child(2n) { padding-left: 1.4rem; border-left: 1px solid var(--linha); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topo { padding-block: 1rem; }
  h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .folha-desenho { padding: .45rem; margin-inline: calc(var(--margem) * -.55); }
  .folha-desenho::before { inset: .45rem; }
  .prancheta { aspect-ratio: auto; min-height: 0; height: min(104vw, 480px); }
  .ferramentas { right: .5rem; top: .5rem; bottom: auto; flex-direction: row; }
  .ferramentas button { width: 38px; height: 38px; }
  .ferramentas button + button { border-top: 0; border-left: 1px solid var(--linha); }
  .status { left: .7rem; right: .7rem; bottom: .5rem; }
  .coords { display: none; }
  .ficha { left: .6rem; top: auto; bottom: .6rem; width: calc(100% - 1.2rem); padding: .75rem .9rem .8rem; }
  .ficha h3 { font-size: 1.05rem; margin: .1rem 2rem .35rem 0; }
  .ficha dl { font-size: .8125rem; gap: .2rem; }
  .ficha dl div { padding-top: .2rem; }
  .lateral > * { padding: 1rem .9rem; }
  .carimbo-folha tr > :first-child, .carimbo-folha caption { padding-left: .9rem; }
  .instalacoes button { margin-right: .55rem; padding-right: .3rem; }
  .projeto { grid-template-columns: 1fr; gap: 1rem; }
  .foto-grande, .projeto-b .foto-grande, .foto-menor, .projeto-b .foto-menor, .projeto .carimbo, .projeto-b .carimbo { grid-column: 1; grid-row: auto; margin-top: 0; }
  .foto-menor { display: none; }
  .projeto .carimbo { display: block; }
  .lista-servicos { grid-template-columns: 1fr; }
  .lista-servicos li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .lista-servicos li { padding-right: 0; }
  .fatos dd { font-size: 1.5rem; }
}
