/* ==========================================================================
   5R Vision Q – Arquitetura e Construção
   Design system: azul-marinho + dourado (da marca), papel quente, serifa sóbria.
   ========================================================================== */

:root {
  --navy-950: #050d1c;
  --navy-900: #0a1730;
  --navy-800: #0f2147;
  --navy-700: #17315f;
  --blue-500: #2f63b5;

  --gold-500: #d9a823;
  --gold-400: #e7c15a;
  --gold-700: #7a5c0e;

  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #0c1526;
  --ink-2: #2b3547;
  --muted: #566073;

  --line: rgba(12, 21, 38, .14);
  --line-inv: rgba(255, 255, 255, .16);
  --focus: #2f63b5;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-lock { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-400); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: .9rem;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1em 1.7em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn .ico { width: 1.25em; height: 1.25em; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-400); }

.btn--line { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--line:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }

.btn--sm { padding: .85em 1.3em; font-size: .82rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}
/* O fundo borrado fica num pseudo-elemento para não criar um bloco de contenção
   para o menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 14, 31, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .35s;
}
.site-header.is-scrolled,
.site-header.nav-open { border-bottom-color: var(--line-inv); }
.site-header.is-scrolled::before,
.site-header.nav-open::before { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .01em;
}
.brand-tag {
  display: block;
  margin-top: 3px;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav-list { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .78);
  transition: color .25s;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: #fff; }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: #fff;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Elementos de seção ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow-num { font-variant-numeric: tabular-nums; }
.eyebrow-line { width: 44px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-400); }

.section { padding-block: clamp(72px, 10vw, 136px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.section--dark > .container { position: relative; }

.h2 {
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--tools { grid-template-columns: minmax(0, 1fr) auto; }
.section-lead { max-width: 34rem; color: var(--muted); }
.section--dark .section-lead { color: rgba(255, 255, 255, .7); }

/* ---------- Animação de entrada (mínima) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 600px at 78% 38%, rgba(47, 99, 181, .24), transparent 65%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 42%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 70% 42%, #000 15%, transparent 78%);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(40px, 7vh, 88px) clamp(32px, 5vh, 56px);
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: #fff;
}
.hero-title .gold { color: var(--gold-400); }

.hero-lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .76);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-inv);
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 24px 30px 0;
}
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--line-inv); }
.hero-facts strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
}
.hero-facts .fact-num { font-size: 1.9rem; line-height: 1.1; color: var(--gold-400); }
.hero-facts span { font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .6); }

/* Desenho técnico animado */
.dr {
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-h) - 230px);
  margin-inline: auto;
  overflow: visible;
}
.dr .m, .dr .s {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) forwards;
  animation-delay: calc(.3s + var(--i, 0) * .11s);
}
.dr .m { stroke: var(--gold-400); stroke-width: 1.6; }
.dr .s { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.dr .ax {
  fill: none;
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  opacity: 0;
  animation: fade 1s ease .2s forwards;
}
.dr .bubbles { opacity: 0; animation: fade 1s ease .2s forwards; }
.dr .bubbles circle { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.dr text {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  fill: rgba(255, 255, 255, .62);
  opacity: 0;
  animation: fade .8s ease 1.4s forwards;
}
.dr .bubbles text { text-anchor: middle; font-size: 10px; letter-spacing: 0; }
.dr .dim text { text-anchor: middle; }
.dr .dim text:not([transform]) { text-anchor: start; }
.dr .cap { letter-spacing: .2em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- A empresa ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: clamp(48px, 7vw, 88px);
  align-items: start;
}
.about-copy { grid-column: 1 / span 7; }
.about-stat { grid-column: 9 / span 4; }

.prose { display: grid; gap: 1.2em; max-width: 38rem; margin-top: 32px; color: var(--ink-2); }

.about-stat {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  background: var(--navy-900);
  color: #fff;
}
.about-stat::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 168, 35, .35);
  pointer-events: none;
}
.stat-figure { display: flex; align-items: flex-start; gap: 4px; color: var(--gold-400); font-family: var(--serif); }
.stat-num {
  font-size: clamp(5rem, 9vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-plus { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin-top: .1em; }
.stat-label { max-width: 20rem; margin-top: 20px; font-size: 1rem; color: rgba(255, 255, 255, .8); }
.stat-corner { display: block; width: 44px; height: 2px; margin-top: 28px; background: var(--gold-500); }

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.principles li { padding-top: 24px; border-top: 1px solid var(--line); }
.principle-num { font-family: var(--serif); font-size: 1rem; letter-spacing: .1em; color: var(--gold-700); }
.principles h3 { margin: 10px 0 10px; font-size: 1.4rem; }
.principles p { color: var(--muted); font-size: 1rem; }

/* ---------- Atuação ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
}
.service {
  position: relative;
  padding: 32px 0 52px;
  border-top: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service-num { font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--gold-700); }
.service h3 { margin: 14px 0 12px; font-size: 1.5rem; }
.service p { color: var(--muted); font-size: 1rem; }

/* ---------- Método ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.5vw, 36px);
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 100%; height: 1px;
}
.steps::before { background: rgba(255, 255, 255, .18); }
.steps::after {
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease) .2s;
}
.steps.is-in::after { transform: scaleX(1); }

.step { position: relative; padding-top: 42px; }
.step-dot {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  width: 13px; height: 13px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  background: var(--navy-900);
  transition: background-color .4s ease calc(var(--d, 0ms) * 3.4 + .2s);
}
.step.is-in .step-dot { background: var(--gold-500); }
.step-num { font-size: .78rem; font-weight: 600; letter-spacing: .16em; color: var(--gold-400); }
.step h3 { margin: 10px 0 12px; font-size: 1.4rem; color: #fff; }
.step p { font-size: .96rem; color: rgba(255, 255, 255, .66); }

/* ---------- Projetos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; }
.filter {
  position: relative;
  padding: 8px 0;
  background: none;
  border: 0;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--gold-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.filter:hover, .filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
}
.project[hidden] { display: none; }
.project.is-shown { animation: rise .55s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.project-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--gold-400);
}
.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.project-art svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 6%;
  transition: transform .9s var(--ease);
}
.project:hover .project-art svg { transform: scale(1.04); }
.project figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.project-cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); }
.project-name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }

/* ---------- Chamada ---------- */
.cta {
  padding-block: clamp(48px, 6vw, 80px);
  color: #fff;
  background: var(--navy-800);
  border-block: 1px solid rgba(217, 168, 35, .25);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.cta-title { font-size: clamp(1.8rem, 3.2vw, 2.75rem); letter-spacing: -.02em; }
.cta-side { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cta-side p { max-width: 22rem; color: rgba(255, 255, 255, .75); }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.prose-p { max-width: 30rem; margin-top: 24px; color: var(--muted); }

.contact-list { margin-top: 40px; border-bottom: 1px solid var(--line); }
.contact-list > div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list dt {
  margin-bottom: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.contact-list dd { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list a { transition: color .25s; }
.contact-list a:hover { color: var(--gold-700); }

.form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
  border-top: 2px solid var(--gold-500);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(12, 21, 38, .38);
  border-radius: 0;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230c1526' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--gold-700); box-shadow: 0 1px 0 var(--gold-700); }
.field.has-error input,
.field.has-error textarea { border-bottom-color: #a3262a; box-shadow: 0 1px 0 #a3262a; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy-800); }
.check.has-error { color: #a3262a; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { font-size: .9rem; color: var(--muted); }
.form-status.is-error { color: #a3262a; }
.form-status.is-ok { color: #1f6b3a; }

/* ---------- Rodapé ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  color: rgba(255, 255, 255, .72);
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { max-width: 26rem; margin-top: 20px; font-size: .95rem; }
.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.footer-col li { margin-bottom: 10px; font-size: .95rem; overflow-wrap: anywhere; }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line-inv);
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.to-top { transition: color .25s; }
.to-top:hover { color: #fff; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .about-copy { grid-column: 1 / span 7; }
  .about-stat { grid-column: 8 / span 5; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); right: 0; bottom: 0; left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-inv);
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0;
    color: #fff;
  }
  .nav-list a::after { display: none; }
  .nav-cta { align-self: flex-start; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 40px; }
  .dr { max-height: none; max-width: 520px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .filters { justify-content: flex-start; }

  .about-copy, .about-stat { grid-column: 1 / -1; }
  .about-stat { max-width: 440px; }
  .principles { grid-template-columns: 1fr; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  /* linha do tempo vertical */
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { left: 6px; top: 6px; bottom: 0; width: 1px; height: auto; }
  .steps::after { height: calc(100% - 6px); bottom: auto; transform: scaleY(0); transform-origin: top; }
  .steps.is-in::after { transform: scaleY(1); }
  .step { padding: 0 0 0 40px; }
  .step-dot { top: 6px; }
}

@media (max-width: 720px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-inv); }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services, .projects { grid-template-columns: 1fr; }
  .brand-tag { letter-spacing: .14em; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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

/* ==========================================================================
   Integração com o sistema: campo-isca, projetos com foto e galeria
   ========================================================================== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.form-status a { margin-left: 8px; color: var(--gold-700); font-weight: 600; text-decoration: underline; }

.project--photo { cursor: pointer; }
.project--photo:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 4px; }
.project-art--photo::before { display: none; }
.project-art--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.project--photo:hover .project-art--photo img { transform: scale(1.04); }
.project-count {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px;
  background: rgba(6, 14, 30, .78);
  color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.project-meta { font-size: .82rem; color: var(--muted); }

.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: #fff; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 14, 30, .95);
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-figure { display: flex; flex-direction: column; gap: 14px; max-width: min(1100px, 100%); max-height: 100%; margin: 0; color: #fff; }
.lb-figure img { max-width: 100%; max-height: 66vh; margin: 0 auto; object-fit: contain; background: var(--navy-900); }
.lb-figure figcaption { display: flex; flex-direction: column; gap: 4px; max-width: 70ch; margin: 0 auto; text-align: center; }
.lb-cat { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.lb-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.lb-meta { font-size: .85rem; color: rgba(255, 255, 255, .65); }
.lb-desc { margin-top: 6px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.lb-link { color: var(--gold-400); font-weight: 500; font-size: .9rem; }
.lb-close, .lb-nav {
  position: absolute; width: 46px; height: 46px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold-400); color: var(--gold-400); }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: 10px; transform: none; }
  .lb-count { bottom: 24px; }
}