/* ==========================================================================
   Plataforma Arquithetos · TH Grupo de Negócios
   Conceito: a empresa como um edifício em projeto (prancha técnica)
   Mobile-first · paleta do briefing · fontes hospedadas em /fonts
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Fraunces Display";
  src: url("fonts/fraunces-display.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #030712;        /* fundo principal */
  --panel: #0F172A;     /* painéis, carimbo */
  --line: #1E293B;      /* linhas, bordas */
  --ink: #F1F5F9;       /* títulos */
  --muted: #94A3B8;     /* texto corrido, segunda voz */
  --mint: #34D399;      /* somente ação */
  --cyan: #22D3EE;      /* somente anotação técnica e foco */
  --hairline: rgba(148, 163, 184, 0.18);

  --font-display: "Fraunces Display", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; }

p, li, dd { text-wrap: pretty; }

strong { color: var(--ink); font-weight: 600; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { text-decoration-color: var(--cyan); }

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

::selection { background: var(--cyan); color: var(--bg); }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Anotação técnica (rótulos de prancha) ---------- */
.annot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.annot::before {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.voice { color: var(--muted); }

.nowrap { white-space: nowrap; }

.fine { font-size: 0.875rem; color: var(--muted); }

/* ---------- Botões e links de ação ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary { background: var(--mint); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22); }
.btn-outline {
  background: transparent;
  border-color: rgba(52, 211, 153, 0.55);
  color: var(--mint);
}
.btn-outline:hover { border-color: var(--mint); background: rgba(52, 211, 153, 0.08); }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; white-space: nowrap; }
.btn-lg { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }

.btn-arrow {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration-color: rgba(148, 163, 184, 0.5);
}
.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.55);
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.link-button:hover { text-decoration-color: var(--cyan); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 29.99rem) {
  .cta-row .btn, .steps-cta .btn { width: 100%; }
}

/* ---------- Cabeçalho ---------- */
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: flex; align-items: center; gap: 0.875rem; }
.brand img { width: clamp(6.5rem, 30vw, 9.5rem); height: auto; }
.brand-by {
  display: none;
  padding-left: 0.875rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--muted);
}
@media (min-width: 34rem) { .brand-by { display: block; } }

/* ---------- Hero (folha técnica + carimbo) ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }

.sheet {
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --mark: var(--cyan);
  --m: 14px;
  position: relative;
  padding: clamp(1.75rem, 5vw, 4rem) var(--pad-x) 0;
  border: 1px solid var(--line);
  /* marcas de canto da prancha (traços sólidos, não degradê) */
  background:
    linear-gradient(var(--mark), var(--mark)) left top / var(--m) 2px,
    linear-gradient(var(--mark), var(--mark)) left top / 2px var(--m),
    linear-gradient(var(--mark), var(--mark)) right top / var(--m) 2px,
    linear-gradient(var(--mark), var(--mark)) right top / 2px var(--m),
    linear-gradient(var(--mark), var(--mark)) left bottom / var(--m) 2px,
    linear-gradient(var(--mark), var(--mark)) left bottom / 2px var(--m);
  background-repeat: no-repeat;
  background-origin: border-box;
}

.hero h1 {
  margin-top: 1.25rem;
  max-width: 19ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.375rem, 1.35rem + 4.6vw, 5.125rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
/* tamanho óptico: contraste alto como o do logo, ajustado à tela */
.hero h1 { font-variation-settings: "opsz" 96; }
.section h2 { font-variation-settings: "opsz" 72; }
@media (min-width: 48rem) {
  .hero h1, .section h2 { font-variation-settings: "opsz" 144; }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero-copy { padding-bottom: 0.5rem; }

/* carimbo encostado na margem da folha */
.stamp {
  margin-inline: calc(-1 * var(--pad-x));
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.stamp-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.stamp-title span + span { color: var(--muted); }
.stamp dl > div {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.stamp dl > div:last-child { border-bottom: 0; }
.stamp dt {
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stamp dd { color: var(--ink); font-size: 0.9375rem; line-height: 1.45; }
.stamp .is-free dd { color: var(--mint); font-weight: 600; }

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
    align-items: start;
    gap: 3rem;
  }
  .hero-copy { padding-bottom: 3rem; }
  .stamp {
    align-self: end;
    margin-left: 0;
    border-left: 1px solid var(--line);
  }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }

.section h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

/* ---------- Problema ---------- */
.split { display: grid; gap: 2.5rem; }
.split-head > p:last-child { margin-top: 1.25rem; max-width: 34rem; }

.cracks { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.cracks li {
  position: relative;
  padding: 1.125rem 0 1.125rem 2.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.cracks li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 1.25rem;
  width: 1.125rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' fill='none' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 1 7.5 6.5l3.5 3-4 4.5 2 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.note {
  max-width: 44rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.35;
  color: var(--ink);
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 3.5rem;
  }
  .split-head { position: sticky; top: 2rem; align-self: start; }
  .note { grid-column: 2; }
}

/* ---------- Solução ---------- */
.statement {
  max-width: 50rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.05rem + 1.35vw, 2.125rem);
  font-variation-settings: "opsz" 56;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.solution-grid { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.solution-text p + p { margin-top: 1rem; }
.solution-text p { max-width: 36rem; font-size: 1.0625rem; }

.why-free {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.why-free-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.why-free h3 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
}
.why-free p:last-child { margin-top: 0.75rem; }

@media (min-width: 62rem) {
  .solution-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ---------- Frentes: corte do edifício ---------- */
.layers { background: var(--panel); }
.layers-head { max-width: 46rem; }
.layers-head > p:last-child { margin-top: 1.25rem; }

.building { margin-top: clamp(2.5rem, 6vw, 4rem); }

.layer {
  --layer-gap: 1rem;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: var(--layer-gap);
}

.layer-art { position: relative; }

/* paredes contínuas */
.layer-art::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13.6%;
  right: 13.6%;
  border-left: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
}

/* laje entre pavimentos */
.layer + .layer .layer-art::after {
  content: "";
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 5px;
  background: var(--muted);
}

.art {
  position: absolute;
  left: 0;
  width: 100%;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.art--top { top: 0; }
.art--bottom { bottom: 0; }
.art--stretch { top: 0; height: 100%; }
.art--stretch path { vector-effect: non-scaling-stroke; }
.art .fill { fill: var(--muted); stroke: none; }
.art .fill-bg { fill: var(--panel); }
.art .soft { stroke-opacity: 0.45; }

/* fundação: linha do terreno contínua + hachura */
.layer--base .layer-art {
  background:
    linear-gradient(var(--muted), var(--muted)) left top / 100% 2px no-repeat,
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0 1px, transparent 1px 8px);
}

.layer-body {
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--hairline);
}
.layer--base .layer-body { position: relative; border-top: 2px solid var(--muted); }
.layer--base .layer-body::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 100%;
  width: var(--layer-gap);
  height: 2px;
  background: var(--muted);
}

.layer-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.layer h3 {
  margin-top: 0.375rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.15;
}
.layer-desc { margin-top: 0.5rem; max-width: 38rem; }

.spec-list {
  display: grid;
  gap: 0.5rem 2rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.spec-list li {
  position: relative;
  padding-left: 1.125rem;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.5rem;
  height: 1px;
  background: var(--cyan);
}

@media (min-width: 40rem) {
  .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .layer { --layer-gap: 3rem; grid-template-columns: 11rem minmax(0, 1fr); }
}

/* ---------- Etapas: linha de cota ---------- */
.dimension {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.dim-step {
  position: relative;
  padding: 0 0 2.25rem 1.75rem;
  border-left: 1px solid var(--cyan);
}
/* linha de chamada (perpendicular) */
.dim-step::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--cyan);
}
/* traço de cota (diagonal) */
.dim-step::after,
.dimension::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1.5px;
  background: var(--cyan);
  transform: rotate(-45deg);
}
.dim-step::after { left: -6.5px; top: -0.5px; }
.dimension::after { left: -6.5px; bottom: -0.5px; }
.dimension::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  bottom: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--cyan);
}

.dim-measure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  transform: translateY(-0.55em);
}
.dim-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
}
.dim-step p { margin-top: 0.5rem; max-width: 30rem; }

.steps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 62rem) {
  .dimension {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 2.75rem;
  }
  .dim-step {
    padding: 1.75rem 2rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--cyan);
  }
  .dim-step::before { left: 0; top: -0.75rem; width: 1px; height: 1.5rem; }
  .dim-step::after { left: -6.5px; top: -1.25px; }
  .dimension::after { left: auto; right: -6.5px; bottom: auto; top: calc(2.75rem - 1.25px); }
  .dimension::before { left: auto; right: 0; bottom: auto; top: 2rem; width: 1px; height: 1.5rem; }
  .dim-measure {
    position: absolute;
    left: 0;
    right: 0;
    top: -2.5rem;
    text-align: center;
    transform: none;
  }
}

/* ---------- Perfil ---------- */
.fit-grid {
  display: grid;
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
}
.fit-col { padding: clamp(1.5rem, 4vw, 2.5rem); }
.fit-col + .fit-col { border-top: 1px solid var(--line); }
.fit-col h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
}
.fit-col ul { margin-top: 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.fit-col li { position: relative; padding-left: 1.875rem; color: var(--ink); line-height: 1.5; }
.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.125rem;
  height: 1.125rem;
  background: center / contain no-repeat;
}
.fit-col--yes li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2334D399' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}
.fit-col--no li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M4.5 4.5l9 9M13.5 4.5l-9 9'/%3E%3C/svg%3E");
}
.fit-col--no li { color: var(--muted); }

@media (min-width: 52rem) {
  .fit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fit-col + .fit-col { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
.faq-head > p:last-child { margin-top: 1.25rem; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.75rem;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq-list summary:hover h3 { color: #fff; }
.faq-icon { position: relative; flex: none; width: 1.25rem; height: 1.25rem; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 1.5px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 2.5rem 1.5rem 0; max-width: 40rem; }

@media (min-width: 62rem) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .faq-head { position: sticky; top: 2rem; align-self: start; }
}

/* ---------- Fechamento ---------- */
.closing-box {
  --base: 2.75rem;
  position: relative;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 4.5rem) calc(clamp(2rem, 6vw, 4.5rem) + var(--base));
  border: 1px solid var(--line);
}
/* base hachurada: a fundação sob o próximo passo */
.closing-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--base);
  border-top: 2px solid var(--muted);
  background: repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0 1px, transparent 1px 8px);
}
.closing-box h2 { max-width: 18ch; }
.closing-text { max-width: 38rem; margin-top: 1.25rem; font-size: 1.0625rem; }

/* elevação: andares construídos + próximo andar em projeto */
.closing-art { display: none; }
@media (min-width: 70rem) {
  .closing-art {
    display: block;
    position: absolute;
    right: clamp(1.25rem, 6vw, 4.5rem);
    bottom: var(--base);
    width: clamp(14rem, 20vw, 17.5rem);
    height: auto;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
  }
  .closing-art .win { stroke-width: 1.5; }
  .closing-art .plan { stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 6 5; }
  .closing-art .lead-line { stroke: var(--cyan); stroke-width: 1; }
  .closing-art text {
    fill: var(--cyan);
    stroke: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.08em;
  }
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding-block: 3rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer-top {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.footer-id img { width: 8.5rem; height: auto; }
.footer-id p { max-width: 30rem; margin-top: 1rem; }
.footer-links { display: grid; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (min-width: 48rem) {
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 3rem; }
  .footer-links { grid-template-columns: repeat(2, auto); column-gap: 2rem; }
}

/* ---------- Assinatura de autoria ---------- */
.mm-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
}
.mm-footer-copy { font-size: 0.8125rem; color: var(--muted); }
.mm-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  color: rgba(148, 163, 184, 0.8);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.mm-credit:hover,
.mm-credit:focus-visible {
  color: rgb(148, 163, 184);
  border-color: #fdd301;
}
.mm-credit__icon { flex: none; display: block; width: 22px; height: 22px; }
.mm-credit--plate .mm-credit__plate { fill: #00165c; }
.mm-credit--plate .mm-credit__m-back { fill: #f7faf7; }
.mm-credit--bare .mm-credit__plate { fill: none; }
.mm-credit--bare .mm-credit__m-back { fill: currentColor; }

/* ---------- Aviso de privacidade ---------- */
.privacy {
  width: min(40rem, 100% - 2rem);
  max-height: min(85vh, 48rem);
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}
.privacy::backdrop { background: rgba(3, 7, 18, 0.82); }
.privacy-inner { padding: clamp(1.5rem, 5vw, 2.5rem); }
.privacy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.15;
}
.privacy h3 {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}
.privacy p { margin-top: 0.5rem; }
.privacy .fine { margin-top: 1.5rem; }
.privacy-close { margin-top: 1.5rem; }

/* ---------- Consentimento de cookies (inativo até haver medição) ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  font-size: 0.9375rem;
}
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
