/* ============================================================
   TG8 ART — estilos do site
   Paleta e tipografia centralizadas em :root
   ============================================================ */

:root {
  --bg:            #FAF9F6;   /* fundo principal (off-white) */
  --bg-2:          #F1EEF8;   /* fundo de seção alternativo (lavanda claro) */
  --ink:           #17102e;   /* texto escuro */
  --muted:         rgba(23, 16, 46, .60);
  --line:          rgba(23, 16, 46, .12);
  --periwinkle:    #7b3ff5;   /* roxo vivo (acento — contraste no claro) */
  --purple:        #6a2fd8;   /* roxo mais fechado */
  --client-bg:     #8b7cf6;   /* fundo da faixa de clientes (roxo) */
  --lilas:         #998cfd;   /* lilas do arco do logo (icones da orbita) */
  --ink-dark:      #17102e;   /* texto escuro sobre fundo claro */
  --on-dark:       #f1efff;   /* texto claro sobre elementos escuros (cards/imagens) */
  --vidro:         rgba(250, 249, 246, .88);  /* barra do topo */
  --vidro-forte:   rgba(250, 249, 246, .94);  /* menu e barras por cima */
  --cartao:        #fff;                      /* cartao do projeto aberto */
  --botao-escuro:  #17102e;                   /* botao de contato e o X */
  --ponto:         rgba(23, 16, 46, .45);     /* bolinhas de navegacao */

  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 64px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

/* ---------- tema escuro ----------
   Segue o aparelho; o botao de lua/sol guarda a escolha (data-theme). */
:root[data-theme="dark"] {
  --bg:            #0f0a1f;
  --bg-2:          #181030;
  --ink:           #f1efff;
  --muted:         rgba(241, 239, 255, .66);
  --line:          rgba(241, 239, 255, .14);
  --periwinkle:    #9d7bff;
  --purple:        #8b5cf6;
  --vidro:         rgba(15, 10, 31, .86);
  --vidro-forte:   rgba(15, 10, 31, .94);
  --cartao:        #1a1233;
  --botao-escuro:  #2b2052;
  --ponto:         rgba(241, 239, 255, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0f0a1f;
    --bg-2:          #181030;
    --ink:           #f1efff;
    --muted:         rgba(241, 239, 255, .66);
    --line:          rgba(241, 239, 255, .14);
    --periwinkle:    #9d7bff;
    --purple:        #8b5cf6;
      --vidro:         rgba(15, 10, 31, .86);
    --vidro-forte:   rgba(15, 10, 31, .94);
    --cartao:        #1a1233;
    --botao-escuro:  #2b2052;
    --ponto:         rgba(241, 239, 255, .45);
    color-scheme: dark;
  }
}
/* letras do logo seguem a cor do texto */
svg path[fill="#17102e"] { fill: var(--ink); }

/* ---------- reset base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, .sub { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
/* quebra de linha equilibrada: titulos e frase principal por igual, paragrafos sem palavra sozinha */
h1, h2, h3, .hero-copy p, .servicos-sub, .projetos-cta p { text-wrap: balance; }
p, li, .tl-desc { text-wrap: pretty; }

/* fonte de display (Space Grotesk) em títulos, slogan e navegação */
h1, h2, h3,
.hero-copy p,
.menu-panel nav a,
.menu-contato h3,
.projeto .meta h3,
.sobre .destaque { font-family: var(--font-display); }

/* ---------- utilidades ---------- */
.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;
}
.section {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--pad);
  scroll-margin-top: 0;
}
.wrap { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.reveal {
  opacity: 0; transform: translateY(40px) scale(.98);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

/* ---------- rolagem ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(123, 63, 245, .6) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: rgba(123, 63, 245, .55); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--periwinkle); }
.lightbox-card .lb-media { scrollbar-color: rgba(185, 164, 255, .6) transparent; }

.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   CHROME FIXO — socials, menu, dots
   ============================================================ */
/* barra do topo: aparece quando o logo grande sai da tela */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: 80px; z-index: 35;
  background: var(--vidro); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.top-logo {
  position: fixed; top: 40px; left: 50%; z-index: 41;
  width: 108px; margin-top: -20px; /* 108 x 40.5: centro em 40px */
  opacity: 0; visibility: hidden; transform: translate(-50%, -14px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s;
}
.top-logo svg { width: 100%; height: auto; display: block; }
body.rolou .topbar { opacity: 1; transform: none; }
body.rolou .top-logo { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .topbar { height: 66px; }
  .top-logo { top: 33px; width: 88px; margin-top: -16.5px; }
}
.social {
  position: fixed; top: 30px; right: var(--pad); z-index: 40;
  display: flex; gap: 18px; align-items: center;
}
.social a { opacity: .85; transition: opacity .25s, transform .25s var(--ease); }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social a { display: block; line-height: 0; }
/* botao claro/escuro, junto das redes */
.tema-btn {
  display: block; line-height: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink); opacity: .85; transition: opacity .25s, transform .25s var(--ease);
}
.tema-btn:hover { opacity: 1; transform: translateY(-2px); }
.tema-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tema-btn .sol { display: none; }
:root[data-theme="dark"] .tema-btn .sol { display: block; }
:root[data-theme="dark"] .tema-btn .lua { display: none; }
/* icones: Uicons Brands, Flaticon */
.social svg { width: 20px; height: 20px; fill: var(--ink); }

.menu-btn {
  position: fixed; top: 33px; left: var(--pad); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .25s;
}
.menu-btn:hover { color: var(--ink); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars i { width: 22px; height: 2px; background: currentColor; display: block; transition: transform .3s var(--ease); }

/* dots de progresso de scroll */
.dots {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 16px;
}
.dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--ponto);
  background: transparent; padding: 0;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.dots button.active { background: var(--ink); border-color: var(--ink); transform: scale(1.15); }
.dots button:hover { border-color: var(--ink); }

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--vidro-forte);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .7s;
}
.overlay.open { opacity: 1; visibility: visible; transition: opacity .7s cubic-bezier(.22, 1, .36, 1), visibility 0s; }

.menu-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  gap: 6px;
}
.menu-panel nav { display: flex; flex-direction: column; gap: 2px; }
.menu-panel nav a {
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.06;
  color: var(--ink); width: max-content; max-width: 100%;
  transform-origin: left;
  opacity: 0; transform: translateY(28px);
  transition: opacity .45s var(--ease), transform .6s var(--ease), color .25s;
}
/* ao abrir, os itens sobem um de cada vez */
.overlay.open .menu-panel nav a {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform 1s var(--ease), color .25s;
}
.overlay.open .menu-panel nav a:nth-child(1) { transition-delay: .08s; }
.overlay.open .menu-panel nav a:nth-child(2) { transition-delay: .14s; }
.overlay.open .menu-panel nav a:nth-child(3) { transition-delay: .20s; }
.overlay.open .menu-panel nav a:nth-child(4) { transition-delay: .26s; }
.overlay.open .menu-panel nav a:nth-child(5) { transition-delay: .32s; }
.overlay.open .menu-panel nav a:hover {
  color: var(--periwinkle); transform: translateX(10px);
  transition: color .25s, transform .35s var(--ease); transition-delay: 0s;
}
.menu-panel .menu-secondary, .menu-panel .menu-close { opacity: 0; transition: opacity .4s var(--ease); }
.overlay.open .menu-panel .menu-secondary { opacity: 1; transition: opacity .8s var(--ease) .42s; }
.overlay.open .menu-panel .menu-close { opacity: 1; transition: opacity .8s var(--ease) .2s; }

/* link discreto da área do cliente */
.menu-secondary {
  margin-top: clamp(28px, 5vh, 56px);
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.menu-secondary a { transition: color .25s; }
.menu-secondary a:hover { color: var(--periwinkle); }
.menu-secondary .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.menu-close {
  position: absolute; top: 24px; right: var(--pad);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.menu-close:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 620px) 1fr;
  align-items: center;
  padding: 0 var(--pad);
  position: relative;
  overflow: hidden;
}
/* aneis concêntricos de fundo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      transparent 0 78px,
      rgba(139,124,246,.08) 78px 79px);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  animation: respirar 9s ease-in-out infinite alternate;
}
@keyframes respirar { from { transform: scale(1); opacity: 1; } to { transform: scale(1.07); opacity: .6; } }
.hero > * { position: relative; z-index: 1; }

.hero-mark { justify-self: end; padding-right: clamp(12px, 3vw, 48px); }
.hero-mark svg { width: clamp(150px, 18vw, 260px); height: auto; overflow: visible; }

/* logo: as pecas se montam so na entrada, depois fica parado */
.hero-mark svg path { transform-box: fill-box; animation: montar .9s var(--ease) both; }
.hero-mark .l-t    { animation-delay: .05s; }
.hero-mark .l-arco { animation-delay: .15s; }
.hero-mark .l-g    { animation-delay: .25s; }
.hero-mark .l-8    { animation-delay: .35s; }
.hero-mark .l-a    { animation-delay: .5s; }
.hero-mark .l-r    { animation-delay: .58s; }
.hero-mark .l-t2   { animation-delay: .66s; }
@keyframes montar { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-mark svg path { animation: none !important; }
}

.hero-center {
  justify-self: center; width: 100%;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .8s var(--ease);
}
.hero-center .brain { width: 100%; max-width: 420px; margin-inline: auto; position: relative; }

/* cerebro flutuando */
.hero-center .brain img { position: relative; z-index: 2; animation: flutuar 7s ease-in-out infinite; }
@keyframes flutuar {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.02); }
}
/* ondas saindo do centro */
.brain .onda {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 100%; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid rgba(123, 63, 245, .38);
  transform: translate(-50%, -50%) scale(.55); opacity: 0; pointer-events: none;
  animation: onda 6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.brain .onda:nth-child(2) { animation-delay: 2s; }
.brain .onda:nth-child(3) { animation-delay: 4s; }
@keyframes onda {
  0%   { transform: translate(-50%, -50%) scale(.55); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
/* orbitas tracejadas com um ponto girando */
.brain .orbita {
  position: absolute; left: 50%; top: 50%; z-index: 1; aspect-ratio: 1;
  border-radius: 50%; border: 1px dashed rgba(123, 63, 245, .28); pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: girar 30s linear infinite;
}
.brain .o1 { width: 122%; }
.brain .o2 { width: 158%; animation-duration: 46s; animation-direction: reverse; border-color: rgba(123, 63, 245, .18); }
.brain .orbita i {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--periwinkle);
  box-shadow: 0 0 0 6px rgba(123, 63, 245, .14);
}
.brain .o2 i { top: auto; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--client-bg); }
@keyframes girar { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* icones imobiliarios nas orbitas: giram com a orbita e ficam sempre de pe */
.brain .orbita .ico {
  position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px;
  transform: translate(-50%, -50%); animation: contra 30s linear infinite;
}
.brain .o2 .ico { animation-duration: 46s; animation-direction: reverse; }
.brain .orbita .ico svg { display: block; width: 100%; height: 100%; fill: var(--lilas); }
@keyframes contra { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@media (max-width: 760px) {
  .brain .orbita .ico { width: 14px; height: 14px; }
  .brain .o2 .ico { display: none; } /* a orbita de fora cruza o logo no celular */
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .brain .onda, .brain .orbita, .brain .orbita .ico { animation: none; }
  .brain .onda { display: none; }
  .hero-center { transform: none; }
}
/* espaco reservado do cerebro enquanto o 3D carrega: vazio, so as orbitas girando, sem imagem parada */
.hero-center .brain .cerebro-poster { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.hero-center .brain.is-3d .cerebro-poster { display: none; }
/* cerebro 3D (cerebro3d.js) */
.hero-center .brain canvas.cerebro3d {
  position: relative; z-index: 2; display: block; width: 100%; height: auto; aspect-ratio: 1;
  animation: aparecer 1.2s var(--ease) both, flutuar 7s ease-in-out infinite;
}
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-center .brain canvas.cerebro3d { animation: none; } }
/* holograma: no escuro ganha brilho em volta */
.hero-center .brain.holo-escuro canvas.cerebro3d { filter: drop-shadow(0 0 16px rgba(157, 139, 255, .55)); }

.hero-copy { justify-self: start; max-width: 340px; }
.hero-copy p {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700; letter-spacing: -.01em; line-height: 1.25;
}
.hero-copy .accent { color: var(--periwinkle); }
/* frase longa: fonte menor pra caber sem virar paredao */
.hero-copy.longa { max-width: 360px; }
.hero-copy.longa p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.38; }
/* frase longa corre como paragrafo: sem quebra forcada, linhas cheias */
.hero-copy.longa br { display: none; }
.hero-copy.longa #tag1::after { content: " "; }
.hero-copy.longa p { text-wrap: pretty; }

/* rodapé do hero: Sobre / Contato */
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vh, 46px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad); z-index: 2;
  font-size: clamp(16px, 1.6vw, 20px);
}
.hero-foot a, .hero-foot button {
  font-size: inherit; position: relative; padding-bottom: 3px;
}
.hero-foot a::after, .hero-foot button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--periwinkle); transition: width .3s var(--ease);
}
.hero-foot a:hover::after, .hero-foot button:hover::after { width: 100%; }

/* ============================================================
   CLIENTES (faixa clara)
   ============================================================ */
.clientes { background: var(--client-bg); color: var(--ink-dark); text-align: center; }
.clientes h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -.01em;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.clientes-grid { display: grid; gap: 18px; }
/* faixa de logos rolando na horizontal (loop infinito, só CSS) */
.clientes-faixa {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clientes-trilho {
  display: flex; gap: 18px; width: max-content;
  animation: rolar var(--dur, 40s) linear infinite;
}
.clientes-faixa.reversa .clientes-trilho { animation-direction: reverse; }
.clientes-faixa:hover .clientes-trilho { animation-play-state: paused; }
@keyframes rolar { to { transform: translateX(calc(-50% - 9px)); } }
.cliente-logo {
  flex: none; width: 200px; height: 96px; padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(23, 16, 46, .10);
}
.cliente-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cliente-logo .fallback {
  font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink-dark);
}
@media (max-width: 640px) {
  .cliente-logo { width: 150px; height: 74px; padding: 14px 18px; }
  .clientes-grid, .clientes-trilho { gap: 12px; }
  @keyframes rolar { to { transform: translateX(calc(-50% - 6px)); } }
}
@media (prefers-reduced-motion: reduce) {
  .clientes-faixa { overflow-x: auto; }
  .clientes-trilho { animation: none; }
}

/* ============================================================
   PROJETOS
   ============================================================ */
/* filtros por tipo de trabalho */
/* titulo e filtros na mesma linha */
.projetos-topo {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px; margin-bottom: clamp(32px, 6vh, 60px);
}
.projetos-topo h2 { margin-bottom: 0 !important; }
.projetos-filtros { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.projetos-filtros button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: none; color: var(--ink); transition: border-color .2s, background .2s, color .2s;
}
.projetos-filtros button .qtd { color: var(--ink); opacity: .8; font-weight: 500; margin-left: 6px; }
.projetos-filtros button:hover { border-color: var(--periwinkle); }
.projetos-filtros button[aria-pressed="true"] { background: var(--periwinkle); border-color: var(--periwinkle); color: #fff; }
.projetos-filtros button[aria-pressed="true"] .qtd { color: #fff; opacity: .9; }
@media (max-width: 560px) {
  .projetos-topo { flex-direction: column; align-items: stretch; }
  .projetos-filtros { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .projetos-filtros::-webkit-scrollbar { display: none; }
  .projetos-filtros button { flex: none; font-size: 14px; }
}
.projetos h2, .servicos h2, .sobre h2 {
  font-size: clamp(30px, 4.5vw, 58px); font-weight: 700; letter-spacing: -.02em;
  margin-bottom: clamp(32px, 6vh, 60px);
}
/* CTA dos projetos */
.btn-cta {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 16px 26px; border-radius: 999px;
  background: var(--periwinkle); color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 12px 28px rgba(123, 63, 245, .35);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn-cta svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-cta span { white-space: nowrap; }
.btn-cta::after {
  content: ""; width: 9px; height: 9px; margin-left: 4px; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(123, 63, 245, .45); filter: brightness(1.08); }
.btn-cta:hover::after { transform: translateX(3px) rotate(45deg); }
.lightbox-meta .lb-cta { margin-top: 8px; max-width: 100%; padding: 14px 20px; gap: 10px; font-size: 15px; }
.lightbox-meta .lb-cta span { white-space: nowrap; } /* "Quero um projeto assim" numa linha so */
.projetos-cta {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  margin-top: clamp(48px, 8vh, 88px);
}
.projetos-cta p {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; color: var(--ink);
}
.projetos-cta .btn-cta { align-self: center; padding: 18px 32px; font-size: 18px; }

/* mosaico: 12 colunas, cada projeto recebe --c (colunas) e --r (linhas) do app.js */
.projetos-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 12.5vw, 190px);
  grid-auto-flow: row dense;
  gap: clamp(16px, 1.8vw, 26px);
}
.projetos-grid .projeto { grid-column: span var(--c, 6); grid-row: span var(--r, 3); aspect-ratio: auto; }
.projeto.grande .meta h3 { font-size: clamp(28px, 3.4vw, 50px); }
.projeto.grande .meta .cat { font-size: 13px; }
@media (max-width: 760px) {
  .projetos-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .projetos-grid .projeto { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .projetos-grid .projeto.grande { aspect-ratio: 4 / 3.4; }
}
.projeto {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.projeto .thumb {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.projeto .thumb.placeholder {
  background: radial-gradient(120% 120% at 20% 10%, rgba(139,124,246,.35), transparent 60%),
              linear-gradient(135deg, #201146, #130a2e);
  display: flex; align-items: center; justify-content: center;
}
.projeto .thumb.placeholder span {
  font-weight: 800; font-size: clamp(22px, 3vw, 34px);
  color: rgba(241,239,255,.35); letter-spacing: -.02em; text-align: center; padding: 12px;
}
.projeto .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.projeto:hover .thumb { transform: scale(1.05); }
.projeto .meta {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 48px clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 28px); background: linear-gradient(rgba(8,4,22,0), rgba(8,4,22,.72) 40%, rgba(8,4,22,.94));
  transform: translateY(8px); opacity: .96; transition: transform .4s var(--ease);
}
.projeto:hover .meta { transform: none; }
.projeto .meta .cat {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b9a4ff;
}
.projeto .meta h3 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; margin-top: 4px; color: var(--on-dark); }
.projeto .meta p { font-size: 14px; color: rgba(241,239,255,.72); margin-top: 6px; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.projeto:hover .meta p { max-height: 120px; }

/* ============================================================
   SOBRE
   ============================================================ */
/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos { background: var(--bg-2); }
.servicos-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px);
}
.servicos-sub { color: var(--ink); font-size: clamp(18px, 1.9vw, 24px); line-height: 1.45; max-width: 860px; margin: calc(-1 * clamp(16px, 3vh, 34px)) 0 12px; }
.servicos-dica { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); margin: 0 0 clamp(28px, 5vh, 48px); }
/* cada servico e um botao que entra e sai do pedido */
.servico {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  width: 100%; height: 100%; text-align: left;
  padding: 20px 44px 4px 0; border: 0; border-top: 2px solid var(--periwinkle);
  background: none; color: inherit; font: inherit; cursor: pointer;
  transition: color .25s;
}
.servico .marca {
  position: absolute; top: 20px; right: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--periwinkle); display: grid; place-items: center;
  transition: background .25s, transform .25s var(--ease);
}
.servico .marca svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.servico:hover h3 { color: var(--periwinkle); }
.servico:hover .marca { transform: scale(1.08); }
.servico[aria-pressed="true"] { border-top-width: 4px; padding-top: 18px; }
.servico[aria-pressed="true"] h3 { color: var(--periwinkle); }
.servico[aria-pressed="true"] .marca { background: var(--periwinkle); }
.servico[aria-pressed="true"] .marca svg { opacity: 1; }
.servico:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 6px; border-radius: 4px; }

/* barra do pedido */
.carrinho {
  position: fixed; left: 50%; bottom: 20px; z-index: 45;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: var(--botao-escuro); color: #fff;
  box-shadow: 0 16px 40px rgba(23, 16, 46, .32);
  transform: translate(-50%, 0); transition: transform .45s var(--ease), opacity .3s;
  max-width: calc(100% - 32px);
}
.carrinho[hidden] { display: flex; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.carrinho-total { font-weight: 700; font-size: 15px; white-space: nowrap; }
.carrinho-limpar { border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.carrinho-limpar:hover { color: #fff; }
.carrinho-enviar {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; background: var(--periwinkle); color: #fff; font-weight: 700; font-size: 15px;
  transition: filter .25s, transform .25s var(--ease);
}
.carrinho-enviar:hover { filter: brightness(1.08); transform: translateY(-2px); }
.carrinho-email {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 700; font-size: 15px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.carrinho-email:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.carrinho-email svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.carrinho-enviar svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (max-width: 560px) {
  .carrinho { left: 16px; right: 16px; max-width: none; transform: none; gap: 8px; padding-left: 18px; }
  .carrinho .so-desktop { display: none; }
  .carrinho-limpar { font-size: 12px; }
  .carrinho[hidden] { transform: translateY(140%); }
  .carrinho-total { font-size: 14px; }
  .carrinho-email { margin-left: auto; padding: 10px; }
  .carrinho-email span { display: none; }
  .carrinho-enviar { padding: 11px 16px; font-size: 14px; }
}
.servicos-grid h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.2;
}
.servicos-grid p { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; margin-top: 10px; }
@media (max-width: 900px) { .servicos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .servicos-grid { grid-template-columns: 1fr; } }

.sobre { background: var(--bg-2); }
.sobre-grid {
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.sobre-photo { margin: 0; }
.sobre-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(23,16,46,.18);
}
.sobre-photo.empty { display: none; }
.sobre-inner { max-width: 760px; }
.sobre p { font-size: clamp(18px, 2vw, 24px); color: var(--muted); line-height: 1.6; }
#sobreTexto p + p { margin-top: 16px; }
.sobre .destaque {
  color: var(--ink); font-weight: 700; margin-top: 26px;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35;
}
.sobre-autor { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; }
.sobre-autor .autor-nome { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.sobre-autor .autor-cargo { font-size: 13px; letter-spacing: .06em; color: var(--periwinkle); text-transform: uppercase; font-weight: 600; }
.sobre-autor .autor-bio { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* linha do tempo */
.sobre-timeline-wrap { margin-top: clamp(40px, 7vh, 80px); }
.tl-title { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); margin-bottom: clamp(24px, 4vh, 40px); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--periwinkle), var(--line));
}
.timeline li { position: relative; padding: 0 0 clamp(22px, 3vh, 32px) 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--periwinkle);
}
.timeline li:last-child::before { background: var(--periwinkle); }
.timeline .tl-periodo { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--periwinkle); }
.timeline .tl-empresa { font-weight: 700; font-size: clamp(17px, 2vw, 20px); margin-top: 2px; }
.timeline .tl-desc { color: var(--muted); font-size: 14px; margin-top: 2px; max-width: 620px; }
@media (max-width: 760px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-photo img { max-width: 260px; }
}

/* ============================================================
   CONTATO (abre ao lado da lista, dentro do menu)
   ============================================================ */
.menu-panel { overflow-y: auto; }
.menu-cols {
  display: grid; grid-template-columns: max-content minmax(0, 440px);
  align-items: center; gap: clamp(40px, 8vw, 140px);
}
.menu-contato {
  background: transparent;
  border: 1.5px solid var(--ink); border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.overlay.contato-aberto .menu-contato { opacity: 1; visibility: visible; transform: none; }
.overlay.contato-aberto [data-open-contact] { color: var(--periwinkle); }
.menu-contato h3 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.menu-contato .sub {
  color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance;
}
.menu-contato .links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) {
  .menu-panel { justify-content: flex-start; padding-top: 88px; padding-bottom: 40px; }
  .menu-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-contato { display: none; transform: none; margin-top: 24px; padding: 24px; }
  .overlay.contato-aberto .menu-contato { display: block; }
}
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 14px;
  background: var(--botao-escuro); color: #fff;
  box-shadow: 0 10px 24px rgba(23,16,46,.18);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.contact-link[href^="https://wa.me"] { background: var(--periwinkle); box-shadow: 0 12px 28px rgba(123,63,245,.35); }
.contact-link:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,16,46,.26); filter: brightness(1.08); }
.contact-link svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.contact-link .t { font-weight: 700; font-size: 17px; }
.contact-link .s { font-size: 14px; color: rgba(255,255,255,.82); }
.contact-link::after {
  content: ""; margin-left: auto; width: 10px; height: 10px; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.contact-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* ============================================================
   LIGHTBOX DE PROJETO
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(23, 16, 46, .78); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-card {
  width: min(1320px, 100%); height: min(90vh, 900px);
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr;
  background: var(--cartao); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(23,16,46,.45);
  transform: translateY(16px) scale(.985); transition: transform .4s var(--ease);
}
.lightbox.open .lightbox-card { transform: none; }
.lightbox-card .lb-media { overflow-y: auto; overflow-x: hidden; background: #130a2e; overscroll-behavior: contain; }
.lightbox-card img { width: 100%; height: auto; display: block; background: #130a2e; }
.lightbox-card .lb-media img + img { margin-top: 4px; }
.lightbox .lb-ph {
  aspect-ratio: 16/9; display: grid; place-items: center;
  background: linear-gradient(135deg, #201146, #130a2e);
}
.lightbox .lb-ph span { color: rgba(241,239,255,.5); font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,4vw,40px); }
.lightbox-meta {
  order: -1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: clamp(28px, 3.4vw, 48px);
  display: flex; flex-direction: column; gap: 16px;
}
.lightbox-meta .cat { color: var(--periwinkle); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.lightbox-meta .cat:has(.lb-logo) { display: flex; align-items: center; gap: 14px; letter-spacing: .08em; }
.lb-logo { display: inline-flex; align-items: center; height: 44px; padding: 6px 12px; border-radius: 10px; background: #fff; }
.lb-logo img { display: block; max-height: 32px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.lb-pecas { color: var(--muted); font-size: 13px; }
.lightbox-meta h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); margin-top: -6px; }
.lightbox-meta p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.lightbox-meta p:empty { display: none; }
.lightbox-meta .lb-sobre { color: var(--ink); }
@media (max-width: 860px) {
  .lightbox { padding: 60px 0 0; place-items: stretch; }
  /* no celular o X fica numa barra fixa no topo, fora das pecas */
  .lightbox .lb-barra {
    display: block; position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 2;
    background: var(--vidro-forte); border-bottom: 1px solid var(--line);
  }
  .lightbox-close { top: 8px; right: 14px; width: 44px; height: 44px; border: 0; box-shadow: none; }
  .lightbox-card {
    height: 100%; border-radius: 0; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .lightbox-card .lb-media { overflow: visible; flex: none; }
  .lightbox-meta { overflow: visible; flex: none; padding: 24px 20px 28px; }
}
/* foto ampliada */
.lightbox-card .lb-media img { cursor: zoom-in; }
.zoom {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 72px clamp(12px, 7vw, 100px);
  background: rgba(10, 6, 24, .94);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.zoom.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.zoom img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; cursor: zoom-out; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.97); transition: transform .45s var(--ease);
}
.zoom.open img { transform: none; }
.zoom-btn {
  position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px; z-index: 2;
  border-radius: 50%; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.4);
  transition: background .25s;
}
.zoom-btn:hover { background: rgba(255,255,255,.24); }
.zoom-btn::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
}
.zoom-ant { left: clamp(10px, 2vw, 28px); }
.zoom-ant::before { transform: translateX(2px) rotate(-135deg); }
.zoom-prox { right: clamp(10px, 2vw, 28px); }
.zoom-prox::before { transform: translateX(-2px) rotate(45deg); }
.zoom .zoom-fechar { position: fixed; border: 2px solid rgba(255,255,255,.85); }
.zoom .zoom-fechar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zoom-cont {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .14em;
}
.zoom.unica .zoom-btn, .zoom.unica .zoom-cont { display: none; }
@media (max-width: 760px) {
  .zoom { padding: 72px 10px 80px; }
  .zoom-btn { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .zoom-cont { bottom: 26px; }
}

/* X solido: aparece em fundo claro ou escuro */
.lightbox-close {
  position: fixed; top: 20px; right: clamp(16px, 4vw, 32px); width: 46px; height: 46px;
  border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1;
  background: var(--botao-escuro); color: #fff; z-index: 3;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 8px 24px rgba(23,16,46,.35);
  transition: background .25s, transform .25s var(--ease);
}
.lightbox-close:hover { background: var(--periwinkle); transform: rotate(90deg); }
.lightbox .lb-barra { display: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "mark" "brain" "copy";
    gap: 30px; padding-top: 96px; padding-bottom: 120px; text-align: center;
    min-height: auto;
  }
  .hero-mark { grid-area: mark; justify-self: center; padding: 0; }
  .hero-center { grid-area: brain; }
  .hero-center .brain { max-width: 260px; }
  .hero-copy { grid-area: copy; justify-self: center; text-align: center; }
  .hero-copy.longa { max-width: 330px; }
  .dots { display: none; }
  .social { top: 24px; gap: 18px; }
  /* no celular a lua/sol fica ao lado do menu, longe do logo da barra */
  .tema-btn { position: fixed; top: 24px; left: 70px; }
  .menu-btn { top: 26px; }
  .menu-btn span.label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel nav a, .menu-panel .menu-secondary, .menu-panel .menu-close { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   FORMULARIO DE PEDIDO (dialog)
   ============================================================ */
.form-pedido {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: var(--cartao); color: var(--ink);
  box-shadow: 0 30px 90px rgba(23, 16, 46, .45); overflow: auto;
}
.form-pedido::backdrop { background: rgba(15, 10, 31, .72); backdrop-filter: blur(6px); }
.form-pedido form { position: relative; padding: clamp(24px, 4vw, 40px); }
.form-pedido h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; padding-right: 48px; }
.form-sub { color: var(--muted); margin: 8px 0 24px; font-size: 16px; }
.form-fechar {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.form-fechar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.form-fechar:hover { border-color: var(--periwinkle); color: var(--periwinkle); }
.form-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-pedido label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form-pedido input, .form-pedido select, .form-pedido textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%;
}
.form-pedido textarea { resize: vertical; min-height: 96px; }
.form-pedido input:focus, .form-pedido select:focus, .form-pedido textarea:focus { outline: none; border-color: var(--periwinkle); box-shadow: 0 0 0 3px rgba(123, 63, 245, .18); }
.form-pedido .invalido { border-color: #d6336c; }
.form-servicos { border: 0; padding: 0; margin: 20px 0 0; }
.form-servicos legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
#formServicos { display: flex; flex-wrap: wrap; gap: 8px; }
.form-servicos label { flex-direction: row; align-items: center; font-weight: 500; }
.form-chip { position: relative; }
.form-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form-chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.form-chip input:checked + span { background: var(--periwinkle); border-color: var(--periwinkle); color: #fff; }
.form-chip input:focus-visible + span { outline: 2px solid var(--periwinkle); outline-offset: 2px; }
.form-msg { margin-top: 18px; }
.form-isca { position: absolute; left: -9999px; }
.form-aviso { min-height: 1.4em; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.form-aviso.ok { color: var(--periwinkle); font-weight: 600; }
.form-aviso.erro { color: #d6336c; }
.form-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.form-enviar { border: 0; cursor: pointer; }
.form-enviar.form-email { background: var(--botao-escuro); box-shadow: 0 10px 24px rgba(23, 16, 46, .18); }
.form-enviar.form-email svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .form-acoes .form-enviar { flex: 1 1 100%; justify-content: center; } }
.form-enviar[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .form-grade { grid-template-columns: 1fr; } }

/* ============================================================
   PAGINAS INTERNAS (projeto e servico): /projetos/... e /servicos/...
   ============================================================ */
/* transicao suave entre paginas (Chrome, Edge, Safari novos) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.pg-body { background: var(--bg); }
.pg-topo {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad); background: var(--vidro); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pg-voltar {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px 12px 8px 6px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.pg-voltar:hover { background: var(--bg-2); color: var(--periwinkle); }
.pg-voltar svg, .pg-vizinho-rot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-logo { display: block; line-height: 0; }
.pg-topo .pg-logo svg { height: 34px; width: auto; }
.pg-tema { justify-self: end; }
.pg { padding-bottom: clamp(48px, 8vh, 96px); }
.pg .wrap { padding-inline: var(--pad); }

.pg-intro { padding-top: clamp(40px, 8vh, 88px); }
.pg-intro > * { max-width: 860px; }
.pg-kicker { display: flex; align-items: center; gap: 14px; min-height: 44px; margin-bottom: 18px; }
.pg-cat { color: var(--periwinkle); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pg h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.pg-lead { font-size: clamp(18px, 1.9vw, 23px); line-height: 1.5; margin-top: 22px; color: var(--ink); }
.pg-desc, .pg-texto p { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; margin-top: 14px; }
.pg-texto { margin-top: 8px; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pg-tag {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s;
}
.pg-tag:hover { border-color: var(--periwinkle); color: var(--periwinkle); }
.pg-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.pg-link { font-weight: 600; color: var(--periwinkle); text-decoration: underline; text-underline-offset: 4px; }

.pg-galeria { display: grid; gap: clamp(12px, 2vw, 20px); margin-top: clamp(40px, 7vh, 72px); }
.pg-galeria img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  cursor: zoom-in; background: var(--bg-2);
}

.pg-vizinhos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin-top: clamp(48px, 8vh, 88px); }
.pg-vizinho { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.pg-vizinho.prox { text-align: right; align-items: flex-end; }
.pg-vizinho-rot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.pg-vizinho.prox .pg-vizinho-rot svg { order: 2; }
.pg-vizinho-img { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.pg-vizinho-img img, .pg-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pg-vizinho:hover .pg-vizinho-img img, .pg-card:hover .pg-card-img img { transform: scale(1.04); }
.pg-vizinho strong, .pg-card strong { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); }

.pg-relacionados, .pg-outros { margin-top: clamp(48px, 8vh, 88px); }
.pg-relacionados h2, .pg-outros h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; margin-bottom: 22px; }
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pg-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.pg-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 6px; }
.pg-card-cat { color: var(--periwinkle); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

.pg-rodape { border-top: 1px solid var(--line); padding: 32px 0; }
.pg-rodape-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-inline: var(--pad); }
.pg-logo-rodape svg { height: 30px; width: auto; }
.pg-rodape-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pg-rodape-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.pg-rodape-links a:hover { color: var(--periwinkle); }

@media (max-width: 760px) {
  .pg-topo { padding: 10px 14px; }
  .pg-voltar span { display: none; }
  .pg-topo .pg-logo svg { height: 28px; }
  .pg-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pg-vizinhos { grid-template-columns: 1fr 1fr; }
  .pg-vizinho strong { font-size: 16px; }
  .pg-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   CARD DE PROJETO COMO LINK, LINK DO SERVICO, ETAPAS E PERGUNTAS
   ============================================================ */
.projeto-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.projeto-link:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; }
.servico-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  font-size: 14px; font-weight: 700; color: var(--periwinkle);
}
/* o item guarda o botao e o link: o botao cresce, o link fica embaixo sem invadir o proximo card */
.servicos-grid > li { display: flex; flex-direction: column; }
.servicos-grid > li > .servico { height: auto; flex: 1 1 auto; }
.servico-link::after { content: "\203A"; font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.servico-link:hover::after { transform: translateX(3px); }

.etapas h2, .faq h2 { font-size: clamp(30px, 4.5vw, 58px); font-weight: 700; letter-spacing: -.02em; }
.etapas-sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 12px 0 clamp(32px, 6vh, 56px); }
.etapas-lista {
  list-style: none; margin: 0; padding: 0; counter-reset: etapa;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px);
}
.etapas-lista li { counter-increment: etapa; border-top: 2px solid var(--line); padding-top: 18px; }
.etapas-lista li::before {
  content: counter(etapa, decimal-leading-zero); display: block;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: var(--periwinkle); line-height: 1;
}
.etapas-lista h3 { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 22px); margin-top: 14px; }
.etapas-lista p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 8px; }
.etapas-cta { margin-top: clamp(32px, 6vh, 56px); }
@media (max-width: 1000px) { .etapas-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .etapas-lista { grid-template-columns: 1fr; } }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--periwinkle); border-bottom: 2px solid var(--periwinkle);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { color: var(--muted); font-size: 16px; line-height: 1.65; padding: 0 0 22px; max-width: 720px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
/* nas paginas internas o botao de tema fica no proprio topo (a regra do celular da home nao vale aqui) */
.pg-topo .tema-btn { position: static; }

/* ---------- celular: sem estouro lateral e com respiro mais curto ---------- */
@media (max-width: 560px) {
  /* a faixa de filtros rola dentro dela mesma; sem isso a pagina ficava com 978px e o celular afastava o zoom */
  .projetos-topo { flex-wrap: nowrap; }
  .projetos-filtros { min-width: 0; }
}
@media (max-width: 760px) {
  .section { padding-block: 60px; }
  .projetos h2, .servicos h2, .sobre h2, .clientes h2 { margin-bottom: 24px; }
  .projetos-topo { margin-bottom: 24px; }
  .projetos-cta { margin-top: 44px; }
  .sobre-timeline-wrap { margin-top: 40px; }
  .tl-title { margin-bottom: 20px; }
  .etapas-cta { margin-top: 28px; }
  .servicos-dica, .etapas-sub { margin-bottom: 24px; }
  .hero { padding-bottom: 12px; }
}

/* ---------- formulario em 3 passos ---------- */
.form-pedido { transition: height .3s var(--ease); }
.form-pedido h2, .form-sub { text-wrap: balance; }
.form-sub { margin: 6px 0 18px; }
.form-passos { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; }
.form-passos li { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .35s var(--ease); }
.form-passos li.on { background: var(--periwinkle); }
.form-etapa { display: grid; gap: 20px; }
.form-etapa[hidden] { display: none; }
.form-etapa.on { animation: etapaEntra .35s var(--ease) both; }
.form-etapa.on.de-tras { animation-name: etapaVolta; }
@keyframes etapaEntra { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes etapaVolta { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.form-escolha { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-escolha legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-pedido .form-chip { flex-direction: row; font-weight: 500; }
.form-chip span { padding: 9px 15px; }
.form-chip:hover span { border-color: var(--periwinkle); }
.form-servicos { margin: 0; }
.form-msg { margin: 0; }
.form-opcional { font-weight: 400; color: var(--muted); }
.form-cidade { position: relative; display: grid; gap: 6px; }
.form-cidade label { font-size: 14px; font-weight: 600; }
.form-sugestoes {
  position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; z-index: 5;
  background: var(--cartao); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(23, 16, 46, .22);
}
.form-sugestoes li { padding: 10px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.form-sugestoes li:hover, .form-sugestoes li.on { background: var(--bg); color: var(--periwinkle); }
.form-acoes { align-items: center; margin-top: 6px; }
.form-proximo { border: 0; cursor: pointer; margin-left: auto; }
.form-voltar { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 10px 4px; }
.form-voltar:hover { color: var(--ink); }
.form-etapa[data-etapa="3"] ~ .form-acoes .form-enviar { flex: 1 1 auto; justify-content: center; }
@media (max-width: 560px) {
  .form-pedido { width: 100%; max-width: 100%; max-height: 100dvh; height: auto; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .form-acoes .form-proximo { flex: 1 1 auto; justify-content: center; }
  .form-acoes .form-voltar { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .form-etapa.on { animation: none; } }

/* ---------- rodape da home ---------- */
.rodape { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.rodape-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-inline: var(--pad); }
.rodape-marca { display: grid; gap: 16px; justify-items: start; align-content: start; }
.rodape-logo { display: block; }
.rodape-logo svg { height: 40px; width: auto; display: block; }
.rodape-frase { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 32ch; text-wrap: balance; margin: 0; }
.rodape-cta { margin-top: 4px; }
.rodape-col { display: grid; gap: 10px; align-content: start; }
.rodape-col h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.rodape-col a { color: var(--muted); font-weight: 500; font-size: 15px; width: fit-content; }
.rodape-col a:hover, .rodape-base a:hover { color: var(--periwinkle); }
.rodape-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; padding-inline: var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.rodape-base a { color: var(--muted); }
@media (max-width: 900px) {
  .rodape-in { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .rodape-marca { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rodape { padding-top: 48px; }
  .rodape-logo svg { height: 34px; }
  .rodape-base { margin-top: 36px; }
}

/* ---------- transicao do card de projeto para a janela do projeto ---------- */
.vt-projeto .lightbox, .vt-projeto .lightbox-card { transition: none !important; }
html.vt-projeto::view-transition-old(root), html.vt-projeto::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-group(projeto-foto) { animation-duration: .55s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); overflow: clip; border-radius: 14px; }
::view-transition-old(projeto-foto), ::view-transition-new(projeto-foto) { height: 100%; width: 100%; object-fit: cover; }
.form-acoes [hidden] { display: none !important; }
#rodapeContato a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#rodapeContato svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rodape .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* rodape compacto no celular */
@media (max-width: 560px) {
  .rodape { padding: 36px 0 18px; }
  .rodape-in { grid-template-columns: 1fr; gap: 22px; }
  .rodape-marca { gap: 12px; }
  .rodape-logo svg { height: 30px; }
  .rodape-frase { font-size: 15px; }
  .rodape-cta { margin-top: 2px; }
  .rodape-col h3 { display: none; }
  .rodape-col { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .rodape-col a { font-size: 14px; }
  .rodape-base { margin-top: 24px; padding-top: 16px; font-size: 13px; }
}
