/* Lopes Campos — site institucional
   Identidade: azul Lopes #233369, chapa #E8E0DC (faces do cubo), Archivo + Inter.
   Tema escuro por padrão (azul-noite, nunca preto). */

/* ---------- Fontes (auto-hospedadas) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-gaveta: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(20px, 4.6vw, 72px);
  --largura: 1400px;
  --topo-altura: 76px;
  --raio: 4px;

  /* Tema escuro (padrão): azul-noite da marca */
  --bg: #121b3a;
  --bg-fundo: #0e1631;
  --superficie: #19244d;
  --superficie-2: #212e5c;
  --linha: rgb(232 224 220 / 0.11);
  --linha-forte: rgb(232 224 220 / 0.26);
  --texto: #e8e0dc;
  --texto-2: #a7afcb;
  --texto-3: #8a93b3;
  --traco: #8fa3e0;
  --azul: #233369;
  --azul-vivo: #3a52a8;
  --botao-bg: #e8e0dc;
  --botao-texto: #121b3a;
  --botao-hover: #ffffff;
  --erro: #ffa08f;
  --ok: #9fd8b4;
  --foto-tinta: #233369;
  --foto-tinta-forca: 0.22;

  /* Logo oficial: texto branco sobre o azul-noite */
  --logo-marca: #ffffff;
  --logo-descritor: #ffffff;
  --assinatura-cor: #3a52a8;
  --assinatura-forca: 0.7;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-fundo: #e9edf6;
  --superficie: #ffffff;
  --superficie-2: #eef1f8;
  --linha: rgb(35 51 105 / 0.12);
  --linha-forte: rgb(35 51 105 / 0.28);
  --texto: #141e3d;
  --texto-2: #474f6e;
  --texto-3: #5f6785;
  --traco: #233369;
  --azul: #233369;
  --azul-vivo: #233369;
  --botao-bg: #233369;
  --botao-texto: #ffffff;
  --botao-hover: #1b2851;
  --erro: #b42318;
  --ok: #1d7a45;
  --foto-tinta-forca: 0.12;

  --logo-marca: #606062;
  --logo-descritor: #373435;
  --assinatura-cor: #233369;
  --assinatura-forca: 0.2;

  color-scheme: light;
}

/* Faixas que ficam sempre escuras (foto em tela cheia), nos dois temas */
.sempre-escuro {
  --bg: #121b3a;
  --texto: #e8e0dc;
  --texto-2: #c3c9de;
  --linha: rgb(232 224 220 / 0.14);
  color: var(--texto);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
}

html.trava-rolagem {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--azul-vivo);
  color: #fff;
}

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

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

.pular {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--botao-bg);
  color: var(--botao-texto);
  border-radius: var(--raio);
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.pular:focus-visible {
  transform: translateY(0);
}

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

/* ---------- Tipografia ---------- */
.rotulo {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: 0.005em;
  line-height: 1.3;
  color: var(--texto-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Traço curto antes do nome da seção: um perfil de aço visto de lado */
.rotulo::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--traco);
  flex: none;
}

.declaracao {
  font-family: var(--f-display);
  font-weight: 500;
  font-stretch: 108%;
  font-size: clamp(1.75rem, 1.05rem + 2.35vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 22ch;
}

.lede {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--texto);
}

.texto-2 {
  color: var(--texto-2);
}

/* ---------- Botões ---------- */
.botao {
  --altura: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--altura);
  padding: 0 26px;
  border-radius: var(--raio);
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 108%;
  font-size: 0.9875rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.botao:active {
  transform: scale(0.97);
}
.botao-cheio {
  background: var(--botao-bg);
  color: var(--botao-texto);
}
.botao-contorno {
  border: 1px solid var(--linha-forte);
  color: var(--texto);
}
.botao-pequeno {
  --altura: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.botao svg {
  width: 18px;
  height: 18px;
  flex: none;
}
@media (hover: hover) and (pointer: fine) {
  .botao-cheio:hover {
    background: var(--botao-hover);
  }
  .botao-contorno:hover {
    border-color: var(--texto);
  }
}

/* ---------- Topo ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--topo-altura);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--gutter);
  transition:
    transform 420ms var(--ease-out),
    background-color 240ms ease,
    border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.topo[data-solido] {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--linha);
}
.topo[data-oculto] {
  transform: translateY(-101%);
}
.topo[data-menu-aberto] {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--texto);
}
/* Logo oficial (símbolos SVG no topo do HTML): o texto segue --logo-marca e --logo-descritor */
.logo {
  display: block;
  flex: none;
}
.logo-compacto {
  height: 52px;
  aspect-ratio: 2.7541;
}
.logo-horizontal {
  height: 60px;
  aspect-ratio: 4.171;
  max-width: 100%;
}

.topo-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icone-botao {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--raio);
  color: var(--texto);
  transition:
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}
.icone-botao:active {
  transform: scale(0.94);
}
.icone-botao svg {
  width: 20px;
  height: 20px;
}
@media (hover: hover) and (pointer: fine) {
  .icone-botao:hover {
    background: var(--linha);
  }
}
.icone-sol {
  display: none;
}
:root[data-theme="light"] .icone-sol {
  display: block;
}
:root[data-theme="light"] .icone-lua {
  display: none;
}

.menu-botao {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 0 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 108%;
  font-size: 0.9375rem;
  border-radius: var(--raio);
  transition: transform 140ms var(--ease-out);
}
.menu-botao:active {
  transform: scale(0.97);
}
.menu-icone {
  position: relative;
  width: 26px;
  height: 12px;
}
.menu-icone::before,
.menu-icone::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 320ms var(--ease-out),
    top 320ms var(--ease-out),
    width 320ms var(--ease-out);
}
.menu-icone::before {
  top: 0;
}
.menu-icone::after {
  top: 10px;
  width: 64%;
  left: auto;
  right: 0;
}
.menu-botao[aria-expanded="true"] .menu-icone::before {
  top: 5px;
  transform: rotate(45deg);
}
.menu-botao[aria-expanded="true"] .menu-icone::after {
  top: 5px;
  width: 100%;
  transform: rotate(-45deg);
}

/* ---------- Menu (sobreposição) ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--superficie);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--topo-altura) + 4vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 560ms var(--ease-gaveta),
    visibility 0s linear 560ms;
  overflow-y: auto;
}
.menu[data-aberto] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition:
    clip-path 620ms var(--ease-gaveta),
    visibility 0s;
}
.menu-links {
  align-self: center;
  display: grid;
  gap: clamp(2px, 0.6vh, 8px);
  max-width: var(--largura);
  width: 100%;
  margin-inline: auto;
}
.menu-links a {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 560;
  font-stretch: 116%;
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--texto);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 200ms ease,
    transform 200ms var(--ease-out),
    color 160ms ease;
}
.menu[data-aberto] .menu-links a {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms var(--ease-out) calc(160ms + var(--i) * 45ms),
    transform 700ms var(--ease-out) calc(160ms + var(--i) * 45ms),
    color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-links:hover a {
    color: var(--texto-3);
  }
  .menu-links a:hover {
    color: var(--texto);
  }
}
.menu-rodape {
  max-width: var(--largura);
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
  padding-top: 28px;
  border-top: 1px solid var(--linha);
  color: var(--texto-2);
  font-size: 0.9375rem;
  opacity: 0;
  transition: opacity 200ms ease;
}
.menu[data-aberto] .menu-rodape {
  opacity: 1;
  transition: opacity 500ms ease 420ms;
}
.menu-rodape ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.menu-rodape a {
  transition: color 160ms ease;
}
.menu-rodape a:hover {
  color: var(--texto);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(52% 58% at 70% 46%, color-mix(in srgb, var(--azul-vivo) 30%, transparent) 0%, transparent 72%),
    var(--bg);
}
:root[data-theme="light"] .hero {
  background:
    radial-gradient(52% 58% at 70% 46%, rgb(35 51 105 / 0.09) 0%, transparent 72%),
    var(--bg);
}
.hero-cena {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-cena canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-cena[data-pronta] canvas {
  opacity: 1;
}
/* Véu à esquerda: o título fica legível quando cruza a estrutura */
.hero-cena::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 62%, transparent) 34%,
    transparent 64%
  );
}
@media (max-width: 720px), (max-width: 1100px) and (orientation: portrait) {
  .hero-conteudo {
    padding-top: calc(var(--topo-altura) + 34svh);
  }
  .hero-cena::after {
    background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, transparent 56%);
  }
}
/* Sem WebGL: foto real da estrutura como fundo */
.hero-cena[data-sem-3d] {
  background:
    linear-gradient(90deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 40%, transparent) 60%, color-mix(in srgb, var(--bg) 55%, transparent)),
    url("../img/estrutura-ceu.webp") center / cover no-repeat;
}

.hero-conteudo {
  align-self: end;
  padding-top: calc(var(--topo-altura) + 48px);
  padding-bottom: clamp(36px, 7vh, 88px);
  pointer-events: none;
}
.hero-conteudo > * {
  pointer-events: auto;
}
.hero-titulo {
  font-family: var(--f-display);
  font-weight: 620;
  font-stretch: 114%;
  font-size: clamp(2.55rem, 0.9rem + 4.3vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.042em;
}
.hero-titulo .linha {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-titulo .linha > span {
  display: inline-block;
  transform: translateY(108%);
  animation: subir 1100ms var(--ease-out) forwards;
  animation-delay: calc(180ms + var(--i) * 110ms);
}
@keyframes subir {
  to {
    transform: translateY(0);
  }
}
.hero-texto {
  margin-top: clamp(22px, 3.4vh, 36px);
  max-width: 46ch;
  color: var(--texto-2);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}
.hero-ctas {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-texto,
.hero-ctas {
  opacity: 0;
  transform: translateY(14px);
  animation: aparecer 900ms var(--ease-out) forwards;
}
.hero-texto {
  animation-delay: 620ms;
}
.hero-ctas {
  animation-delay: 740ms;
}
@keyframes aparecer {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-block: 20px 26px;
  border-top: 1px solid var(--linha);
  font-size: 0.875rem;
  color: var(--texto-2);
  opacity: 0;
  animation: aparecer 900ms var(--ease-out) 980ms forwards;
}
.hero-contatos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}
.hero-contatos a {
  transition: color 160ms ease;
  font-variant-numeric: tabular-nums;
}
.hero-contatos a:hover {
  color: var(--texto);
}

/* Medidor de fase: acompanha a cena 3D, da linha de projeto ao aço montado */
.fase {
  --p: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 560;
  font-stretch: 106%;
  font-size: 0.8125rem;
  color: var(--texto-3);
}
.fase span {
  transition: color 400ms ease;
}
.fase[data-etapa="planejamento"] .fase-plan,
.fase[data-etapa="montagem"] .fase-mont {
  color: var(--texto);
}
.fase-trilho {
  position: relative;
  width: clamp(80px, 12vw, 180px);
  height: 2px;
  background: var(--linha-forte);
}
.fase-trilho::before,
.fase-trilho::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 10px;
  background: var(--linha-forte);
}
.fase-trilho::before {
  left: 0;
}
.fase-trilho::after {
  right: 0;
}
.fase-trilho i {
  position: absolute;
  inset: 0;
  background: var(--traco);
  transform-origin: left;
  transform: scaleX(var(--p));
}

/* ---------- Seções ---------- */
.secao {
  padding-block: clamp(96px, 15vh, 184px);
  position: relative;
}
.secao-cabeca {
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  margin-bottom: clamp(48px, 8vh, 96px);
}

/* ---------- Serviços ---------- */
.servicos-lista {
  border-top: 1px solid var(--linha);
}
.servico a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: clamp(22px, 3.2vw, 44px);
  border-bottom: 1px solid var(--linha);
  position: relative;
}
.servico-nome {
  font-family: var(--f-display);
  font-weight: 560;
  font-stretch: 118%;
  font-size: clamp(2.05rem, 0.9rem + 5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
  transition:
    transform 520ms var(--ease-out),
    color 240ms ease;
}
.servico-acao {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 106%;
  font-size: 0.9375rem;
  color: var(--texto-2);
  transition:
    opacity 240ms ease,
    transform 420ms var(--ease-out),
    color 200ms ease;
}
.servico-acao svg {
  width: 22px;
  height: 22px;
}
.servico-miniatura {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .servicos-lista:hover .servico-nome {
    color: var(--texto-3);
  }
  .servicos-lista .servico a:hover .servico-nome {
    color: var(--texto);
    transform: translateX(clamp(12px, 2vw, 32px));
  }
  .servico-acao {
    opacity: 0;
    transform: translateX(-12px);
  }
  .servico a:hover .servico-acao,
  .servico a:focus-visible .servico-acao {
    opacity: 1;
    transform: none;
    color: var(--texto);
  }
}

/* Prévia que acompanha o cursor */
/* A lista fica à frente; a prévia passa por trás dos títulos */
.servicos .container {
  position: relative;
  z-index: 1;
}
.servico-previa {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: clamp(240px, 24vw, 380px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  border-radius: var(--raio);
  overflow: hidden;
  opacity: 0;
  scale: 0.86;
  transition:
    opacity 260ms ease,
    scale 420ms var(--ease-out);
  will-change: transform;
  box-shadow: 0 30px 80px rgb(5 10 30 / 0.45);
}
.servico-previa[data-ativa] {
  opacity: 1;
  scale: 1;
}
.servico-previa img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  filter: brightness(0.72) saturate(0.85);
  transition:
    opacity 320ms ease,
    transform 800ms var(--ease-out);
}
.servico-previa img[data-ativa] {
  opacity: 1;
  transform: scale(1);
}
@media (hover: none), (pointer: coarse) {
  .servico-previa {
    display: none;
  }
}

/* ---------- Planejamento (foto que se abre com a rolagem) ---------- */
.processo {
  position: relative;
  height: 230vh;
  background: #0e1631;
}
.processo-fixo {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.processo-foto {
  --ix: 22%;
  --iy: 18%;
  --r: 6px;
  --s: 1.18;
  --o: 0.35;
  position: absolute;
  inset: 0;
  clip-path: inset(var(--iy) var(--ix) round var(--r));
  will-change: clip-path;
}
.processo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--s));
  will-change: transform;
}
.processo-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(14 22 49 / 0.25) 0%, rgb(14 22 49 / 0.1) 40%, rgb(14 22 49 / 0.78) 100%),
    rgb(18 27 58 / var(--o));
}
.processo-texto {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3.5vh, 36px);
}
.processo-titulo {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 116%;
  font-size: clamp(2.3rem, 0.8rem + 5.6vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgb(14 22 49 / 0.5);
}
.processo-texto p {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--texto-2);
  text-shadow: 0 1px 24px rgb(14 22 49 / 0.6);
}

/* ---------- Portfólio ---------- */
.portfolio-grade {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.portfolio-info {
  position: sticky;
  top: calc(var(--topo-altura) + 40px);
  display: grid;
  gap: 24px;
}
.portfolio-nome {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 116%;
  font-size: clamp(2.4rem, 1.1rem + 4.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.042em;
  margin-top: clamp(12px, 3vh, 28px);
}
.portfolio-texto {
  display: grid;
  gap: 16px;
  max-width: 50ch;
}
.portfolio-texto p + p {
  color: var(--texto-2);
}

/* Números do empreendimento, com cota de desenho técnico */
.fatos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 12px;
}
.fato {
  display: grid;
  gap: 4px;
}
.fato dd {
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  order: -1;
}
.fato dt {
  color: var(--texto-2);
  font-size: 0.9375rem;
}
.cota {
  position: relative;
  height: 12px;
  margin-bottom: 10px;
  order: -2;
}
.cota::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--traco);
  transform-origin: left;
  transform: scaleX(var(--cota, 1));
  transition: transform 1100ms var(--ease-out);
}
.cota::after {
  content: "";
  position: absolute;
  inset: 0;
  border-inline: 1px solid var(--traco);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-items: start;
}
.galeria-coluna {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
}
.galeria-coluna:nth-child(2) {
  margin-top: clamp(60px, 14vh, 180px);
}
.foto {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--superficie);
  isolation: isolate;
}
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05) brightness(0.94);
  transition:
    filter 500ms ease,
    transform 900ms var(--ease-out);
}
/* Unifica o tom das fotos de obra com o azul da marca */
.foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--foto-tinta);
  mix-blend-mode: color;
  opacity: var(--foto-tinta-forca);
  transition: opacity 500ms ease;
  pointer-events: none;
}
button.foto {
  cursor: zoom-in;
}
@media (hover: hover) and (pointer: fine) {
  button.foto:hover img {
    filter: none;
    transform: scale(1.035);
  }
  button.foto:hover::after {
    opacity: 0;
  }
}
button.foto:active img {
  transform: scale(1.01);
}

/* ---------- Clientes ---------- */
.clientes {
  padding-block: clamp(72px, 11vh, 128px);
  border-block: 1px solid var(--linha);
}
.clientes .rotulo {
  margin-bottom: clamp(36px, 6vh, 56px);
}
.faixa {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.faixa-trilho {
  display: flex;
  align-items: center;
  width: max-content;
  animation: faixa 46s linear infinite;
}
.faixa:hover .faixa-trilho {
  animation-play-state: paused;
}
.faixa-grupo {
  display: flex;
  align-items: center;
  gap: clamp(56px, 7vw, 112px);
  padding-right: clamp(56px, 7vw, 112px);
}
@keyframes faixa {
  to {
    transform: translateX(-50%);
  }
}
.logo-cliente {
  display: block;
  flex: none;
  width: var(--w);
  height: var(--h);
  background: var(--texto-2);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color 200ms ease;
}
.faixa-grupo li:hover .logo-cliente {
  background: var(--texto);
}

/* ---------- Quem somos ---------- */
.sobre-grade {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vh, 48px) clamp(20px, 3vw, 48px);
}
.sobre-grade .rotulo {
  grid-column: 1 / -1;
}
.sobre-grade .declaracao {
  grid-column: 1 / span 10;
  max-width: 34ch;
  font-size: clamp(1.5rem, 0.95rem + 1.75vw, 2.6rem);
  line-height: 1.14;
}
.sobre-foto {
  grid-column: 1 / span 6;
  margin-top: clamp(24px, 6vh, 72px);
  aspect-ratio: 4 / 3;
}
.sobre-texto {
  grid-column: 8 / span 5;
  align-self: end;
  display: grid;
  gap: 20px;
  color: var(--texto-2);
  max-width: 46ch;
}
.sobre-texto p:first-child {
  color: var(--texto);
}

.valores {
  margin-top: clamp(96px, 16vh, 176px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vh, 40px) clamp(20px, 3vw, 48px);
}
.valores .rotulo {
  grid-column: 1 / span 3;
  align-self: start;
  padding-top: 0.45em;
}
.valores-lista {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.valor {
  padding-top: 26px;
  border-top: 2px solid var(--texto);
  font-family: var(--f-display);
  font-weight: 460;
  font-stretch: 104%;
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
}

/* ---------- Contato ---------- */
.contato {
  background: var(--superficie);
}
:root[data-theme="light"] .contato {
  background: var(--bg-fundo);
}
.contato-grade {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: start;
}
.contato-info {
  display: grid;
  gap: clamp(24px, 4vh, 36px);
}
.contato-dados {
  display: grid;
  gap: 24px;
  margin-top: clamp(8px, 3vh, 28px);
  padding-top: 28px;
  border-top: 1px solid var(--linha);
}
.contato-dados dt {
  font-size: 0.875rem;
  color: var(--texto-3);
  margin-bottom: 4px;
}
.contato-dados dd {
  font-size: 1.0625rem;
  line-height: 1.55;
}
.contato-dados a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 380ms var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.contato-dados a:hover {
  background-size: 100% 1px;
}
.telefones {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.formulario {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vh, 36px) 28px;
}
.campo {
  display: grid;
  gap: 6px;
  position: relative;
}
.campo-inteiro {
  grid-column: 1 / -1;
}
.campo label {
  font-size: 0.875rem;
  color: var(--texto-2);
}
.campo input,
.campo textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linha-forte);
  border-radius: 0;
  padding: 8px 0 12px;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--texto);
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.campo textarea {
  resize: vertical;
  min-height: 132px;
}
.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-bottom-color: var(--texto);
}
/* Sublinhado que se estende no foco */
.campo-controle {
  position: relative;
  display: block;
}
.campo-controle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--traco);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
  pointer-events: none;
}
.campo-controle:focus-within::after {
  transform: scaleX(1);
}
.campo-controle textarea {
  display: block;
}
.campo[data-invalido] input,
.campo[data-invalido] textarea {
  border-bottom-color: var(--erro);
}
.campo-erro {
  font-size: 0.8125rem;
  color: var(--erro);
  min-height: 0;
}
.campo-erro:empty {
  display: none;
}
.isca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formulario-acoes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.formulario .botao[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.7;
}
.formulario-status {
  font-size: 0.9375rem;
  color: var(--texto-2);
  max-width: 44ch;
}
.formulario-status[data-tipo="ok"] {
  color: var(--ok);
}
.formulario-status[data-tipo="erro"] {
  color: var(--erro);
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--bg-fundo);
  padding-top: clamp(72px, 12vh, 128px);
  overflow: hidden;
}
.rodape-grade {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: clamp(48px, 8vh, 88px);
}
.rodape-marca {
  display: grid;
  gap: 20px;
  align-content: start;
}
.rodape h2 {
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 600;
  font-stretch: 106%;
  color: var(--texto-3);
  margin-bottom: 16px;
}
.rodape ul {
  display: grid;
  gap: 8px;
}
.rodape li a {
  color: var(--texto-2);
  transition: color 160ms ease;
}
.rodape li a:hover {
  color: var(--texto);
}
.rodape-direitos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--linha);
  font-size: 0.8125rem;
  color: var(--texto-3);
}
/* Assinatura: o nome oficial em degradê, cortado pela borda de baixo */
.rodape-assinatura {
  --logo-marca: url(#lc-assinatura);
  display: block;
  width: min(94vw, 1800px);
  aspect-ratio: 1445 / 135;
  margin: 16px auto -1.6vw;
  pointer-events: none;
  user-select: none;
}

/* ---------- Visualizador de fotos ---------- */
.visualizador {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgb(10 16 38 / 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #e8e0dc;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms ease,
    visibility 0s linear 200ms;
}
.visualizador[data-aberto] {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 240ms ease,
    visibility 0s;
}
.visualizador-topo,
.visualizador-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  font-family: var(--f-display);
  font-stretch: 106%;
  font-size: 0.9375rem;
}
.visualizador-contador {
  font-variant-numeric: tabular-nums;
  color: #a7afcb;
}
.visualizador figure {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.visualizador img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--raio);
  opacity: 0;
  transform: scale(0.965);
  transition:
    opacity 240ms ease,
    transform 360ms var(--ease-out);
}
.visualizador[data-aberto] img[data-carregada] {
  opacity: 1;
  transform: none;
}
.visualizador .icone-botao {
  color: #e8e0dc;
}
.visualizador-navegacao {
  display: flex;
  gap: 8px;
}
.visualizador-navegacao .icone-botao {
  width: 52px;
  height: 52px;
  border: 1px solid rgb(232 224 220 / 0.24);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .portfolio-grade,
  .contato-grade {
    grid-template-columns: 1fr;
  }
  .portfolio-info {
    position: static;
  }
  .sobre-grade .declaracao {
    grid-column: 1 / -1;
  }
  .sobre-foto {
    grid-column: 1 / -1;
  }
  .sobre-texto {
    grid-column: 1 / -1;
  }
  .valores .rotulo,
  .valores-lista {
    grid-column: 1 / -1;
  }
  .rodape-grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rodape-marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --topo-altura: 64px;
  }
  body {
    font-size: 1rem;
  }
  .so-desktop {
    display: none !important;
  }
  .logo-compacto {
    height: 42px;
  }
  .menu-botao {
    padding-left: 8px;
  }
  .hero-conteudo {
    padding-bottom: 32px;
  }
  .hero-ctas .botao {
    flex: 1 1 auto;
  }
  .hero-rodape {
    padding-block: 16px 20px;
  }
  .fase {
    display: none;
  }
  .servico a {
    grid-template-columns: 1fr auto;
  }
  .servico-acao {
    display: none;
  }
  .servico-miniatura {
    display: block;
    width: 88px;
    aspect-ratio: 4 / 3;
  }
  .processo {
    height: 190vh;
  }
  .galeria {
    gap: 10px;
  }
  .galeria-coluna {
    gap: 10px;
  }
  .galeria-coluna:nth-child(2) {
    margin-top: 48px;
  }
  .valores-lista {
    grid-template-columns: 1fr;
  }
  .formulario {
    grid-template-columns: 1fr;
  }
  .formulario-acoes .botao {
    width: 100%;
  }
  .rodape-grade {
    grid-template-columns: 1fr 1fr;
  }
  .rodape-menu {
    order: 1;
  }
  .rodape-redes {
    order: 2;
  }
  .rodape-contato {
    order: 3;
    grid-column: 1 / -1;
  }
  .rodape-direitos {
    flex-direction: column;
  }
}

/* Telas muito estreitas (até 380px) */
@media (max-width: 380px) {
  .logo-compacto {
    height: 36px;
  }
  .topo-acoes {
    gap: 2px;
  }
  .menu-botao {
    gap: 8px;
  }
  .hero-titulo {
    font-size: 2.1rem;
  }
  .processo-titulo {
    font-size: 1.75rem;
  }
  .hero-contatos {
    gap: 4px 18px;
  }
}

/* Telas de toque: a prévia vira miniatura na própria linha */
@media (hover: none), (pointer: coarse) {
  .servico-miniatura {
    display: block;
    width: clamp(88px, 16vw, 160px);
    aspect-ratio: 4 / 3;
  }
  .servico-acao {
    display: none;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-titulo .linha > span,
  .hero-texto,
  .hero-ctas,
  .hero-rodape {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .faixa-trilho {
    animation: none;
    width: auto;
  }
  .faixa-grupo {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
    gap: 40px 56px;
  }
  .faixa-grupo[aria-hidden="true"] {
    display: none;
  }
  .faixa {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .processo {
    height: auto;
  }
  .processo-fixo {
    position: relative;
    min-height: 100svh;
    height: auto;
    padding-block: 120px;
  }
  .processo-foto {
    clip-path: none;
  }
  .processo-foto img {
    transform: none;
  }
  .menu,
  .menu[data-aberto] {
    transition: visibility 0s, opacity 200ms ease;
    clip-path: none;
    opacity: 0;
  }
  .menu[data-aberto] {
    opacity: 1;
  }
  .menu-links a,
  .menu[data-aberto] .menu-links a {
    transform: none;
    opacity: 1;
    transition: color 160ms ease;
  }
  .servico-nome,
  .servico-acao,
  .foto img,
  .visualizador img {
    transition-property: color, opacity, filter;
  }
}

/* ---------- Troca de tema (círculo a partir do botão) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html.trocando-tema *,
html.trocando-tema *::before,
html.trocando-tema *::after {
  transition: none !important;
}
