/* =========================================================
   Bruno Perazzoli Fotografia — estilos
   As cores e medidas principais ficam logo abaixo, em :root.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Cores — troque aqui para mudar o site inteiro */
  --carvao: #231F20;   /* fundo (a mesma cor da logo) */
  --grafite: #2E2A2B;  /* fundos de apoio */
  --papel: #F2F0ED;    /* textos claros e botões claros */
  --nevoa: #A9A3A0;    /* textos secundários */
  --sol: #F29A4A;      /* cor de destaque (pôr do sol) */
  --linha: rgba(242, 240, 237, 0.14);

  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 22px;
  --borda: 10px;                              /* moldura em volta da capa */
  --margem: clamp(1.25rem, 4vw, 3.5rem);      /* respiro lateral */
  --respiro: clamp(1.25rem, 2.6vw, 2.25rem);  /* respiro interno da capa */
  --suave: cubic-bezier(0.2, 0.75, 0.15, 1);
}

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

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

body {
  margin: 0;
  background: var(--carvao);
  color: var(--papel);
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; }

::selection { background: var(--sol); color: var(--carvao); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute; 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: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--papel); color: var(--carvao); text-decoration: none;
  transition: top .2s;
}
.pular:focus { top: 1rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: .9rem;
  height: 3.5rem; padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.botao:has(.botao__icone) { padding: 0 .4rem 0 1.5rem; }

.botao__icone {
  display: grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  transition: transform .35s var(--suave);
}
.botao svg, .redondo svg, .botao__icone svg { width: 1.15rem; height: 1.15rem; }
.botao:hover .botao__icone { transform: translateX(2px) scale(1.05); }

.botao--escuro { background: var(--carvao); color: var(--papel); border-color: rgba(242, 240, 237, .14); }
.botao--escuro .botao__icone { background: var(--papel); color: var(--carvao); }
.botao--escuro:hover { background: #000; }

.botao--claro { background: var(--papel); color: var(--carvao); }
.botao--claro .botao__icone { background: var(--carvao); color: var(--papel); }
.botao--claro:hover { background: #fff; }

.botao--vidro {
  background: rgba(255, 255, 255, .1); color: var(--papel);
  border-color: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.botao--vidro:hover { background: rgba(255, 255, 255, .18); }
.botao__ic-esq { width: 1.15rem; height: 1.15rem; }

.botao--peq { height: 2.75rem; font-size: .875rem; }
.botao--peq:has(.botao__icone) { padding: 0 .3rem 0 1.1rem; gap: .7rem; }
.botao--peq .botao__icone { width: 2.15rem; height: 2.15rem; }
.botao--peq .botao__icone svg { width: 1rem; height: 1rem; }

.redondo {
  display: grid; place-items: center; flex: none;
  width: 3.25rem; height: 3.25rem; padding: 0; border-radius: 50%;
  background: transparent; color: var(--papel);
  border: 1px solid rgba(242, 240, 237, .28);
  cursor: pointer; transition: background-color .25s, color .25s, opacity .25s;
}
.redondo:hover { background: var(--papel); color: var(--carvao); }
.redondo:disabled { opacity: .3; pointer-events: none; }

/* ---------- Topo: logo + nome à esquerda, Instagram e WhatsApp à direita.
   Fica parado no alto da página (não acompanha a rolagem). ---------- */
.nav {
  position: fixed; z-index: 60;
  top: calc(var(--borda) + var(--respiro) * .7);
  left: calc(var(--borda) + var(--respiro));
  right: calc(var(--borda) + var(--respiro));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0; border-bottom: 1px solid transparent;
  transition: transform .45s var(--suave), top .45s var(--suave), left .45s var(--suave), right .45s var(--suave), padding .45s var(--suave), background-color .35s, border-color .35s;
}
/* depois de descer um pouco, o topo vira uma barra escura que some ao descer e volta ao subir */
html.nav-rolou .nav {
  top: 0; left: 0; right: 0;
  padding: .95rem calc(var(--borda) + var(--respiro));
  background: rgba(35, 31, 32, .95); border-color: rgba(242, 240, 237, .08);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
html.nav-escondida .nav { transform: translateY(-100%); }
html.nav-rolou .nav__nome { filter: none; }

.nav__menu { display: flex; align-items: center; gap: .15rem; margin: 0 .5rem 0 auto; }
.nav__link {
  position: relative; padding: .55rem .9rem; border-radius: 999px;
  color: var(--papel); font-size: .9375rem; font-weight: 500; text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35); transition: background-color .25s;
}
html.nav-rolou .nav__link { text-shadow: none; }
.nav__link:hover { background: rgba(242, 240, 237, .12); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: .15rem; width: .3rem; height: .3rem;
  margin-left: -.15rem; border-radius: 50%; background: var(--sol);
}
.nav__icone.nav__abrir { display: none; cursor: pointer; font: inherit; }

/* menu do celular: tela cheia */
.menu-cel {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  padding: calc(var(--borda) + 1rem) var(--margem) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--carvao); color: var(--papel);
  opacity: 0; transition: opacity .3s ease;
}
.menu-cel[hidden] { display: none; }
.menu-cel.aberto { opacity: 1; }
.menu-cel__topo { display: flex; align-items: center; justify-content: space-between; }
.menu-cel__rotulo { font-size: .875rem; color: var(--nevoa); }
.menu-cel__fechar { cursor: pointer; font: inherit; animation: none !important; opacity: 1 !important; }
.menu-cel__links { display: grid; gap: .15rem; margin: auto 0; }
.menu-cel__link {
  display: flex; align-items: center; gap: .75rem; padding: .35rem 0;
  color: var(--papel); font-size: clamp(2.25rem, 11vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; text-decoration: none;
  transform: translateY(.75rem); opacity: 0; transition: transform .5s var(--suave), opacity .5s ease;
}
.menu-cel.aberto .menu-cel__link { transform: none; opacity: 1; }
.menu-cel.aberto .menu-cel__link:nth-child(2) { transition-delay: .04s; }
.menu-cel.aberto .menu-cel__link:nth-child(3) { transition-delay: .08s; }
.menu-cel.aberto .menu-cel__link:nth-child(4) { transition-delay: .12s; }
.menu-cel.aberto .menu-cel__link:nth-child(5) { transition-delay: .16s; }
.menu-cel__link[aria-current="page"]::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--sol); }
.menu-cel__base { display: grid; gap: 1rem; justify-items: start; }
.menu-cel__base .botao { width: 100%; justify-content: center; }
.menu-cel__insta { font-size: .9375rem; color: var(--nevoa); text-decoration: none; justify-self: center; }
html.menu-aberto, html.menu-aberto body { overflow: hidden; }

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__icone.nav__abrir { display: grid; }
}
@media (max-width: 640px) {
  .nav__dir .nav__icone--vidro:first-child { display: none; }   /* Instagram fica dentro do menu */
}
.nav__marca { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.nav__logo {
  display: grid; place-items: center; flex: none;
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--papel);
}
.nav__logo img { width: 1.7rem; height: auto; }
.nav__nome { display: block; width: 13rem; height: auto; filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .3)); }

.nav__dir { display: flex; align-items: center; gap: .5rem; }
.nav__icone {
  display: grid; place-items: center; flex: none;
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, color .25s;
}
.nav__icone svg { width: 1.2rem; height: 1.2rem; }
.nav__icone--vidro {
  background: rgba(255, 255, 255, .1); color: var(--papel);
  border-color: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__icone--vidro:hover { background: rgba(255, 255, 255, .2); }
.nav__icone--claro { background: var(--papel); color: var(--carvao); }
.nav__icone--claro:hover { background: #fff; }

/* ---------- 1. Capa ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100svh - var(--borda) * 2); min-height: 40rem;
  margin: var(--borda);
  border-radius: var(--raio);
  background: var(--grafite);
  color: #fff;
}

.hero__fotos { position: absolute; inset: 0; z-index: -2; }
.hero__foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--foco, 50% 50%);
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 9s cubic-bezier(.2, .6, .3, 1);
}
.hero__foto.ativa { opacity: 1; transform: scale(1); }

.hero__sombra {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 16, 17, .5) 0%, rgba(20, 16, 17, 0) 24%),
    linear-gradient(to top, rgba(20, 16, 17, .78) 0%, rgba(20, 16, 17, 0) 50%),
    linear-gradient(to right, rgba(20, 16, 17, .5) 0%, rgba(20, 16, 17, 0) 70%);
}

.hero__conteudo {
  height: 100%;
  display: grid; grid-template-rows: 1fr auto; row-gap: clamp(1.75rem, 4.5vh, 3rem);
  padding: 7rem var(--respiro) var(--respiro);
}

.hero__titulo {
  align-self: end;
  margin: 0;
  font-size: clamp(2.75rem, 7.4vw, 8.5rem);
  font-weight: 500; line-height: .86; letter-spacing: -0.05em; word-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(20, 16, 17, .35);
}
.hero__titulo .linha { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; padding-bottom: .02em; }
.hero__titulo .linha > span { display: block; }
.palavra-h { display: inline-block; white-space: nowrap; }
.letra { display: inline-block; }
.hero__titulo .linha--recuo { padding-left: 2.1em; }

/* título + subtítulo da capa: o subtítulo termina junto com o fim do título */
.hero__chamada { align-self: end; justify-self: start; width: fit-content; max-width: 100%; }
.hero__subtitulo {
  margin: clamp(1rem, 1.7vw, 1.75rem) -.32em 0 0;
  font-size: clamp(.75rem, 1vw, 1.0625rem); font-weight: 500; line-height: 1.4;
  letter-spacing: .32em; text-transform: uppercase; text-align: right;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 20px rgba(20, 16, 17, .45);
}

/* O "foco": o enquadramento da logo, como o ponto de foco da câmera */
.foco {
  position: relative; display: inline-block;
  width: .64em; height: .64em; margin: 0 .1em 0 .04em;
  vertical-align: 0;
}
.foco b {
  position: absolute; width: .25em; height: .25em;
  border: 0 solid var(--sol);
  transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) .95s, opacity .3s ease .95s;
}
.foco b:first-child { top: 0; left: 0; border-width: .085em 0 0 .085em; border-top-left-radius: .06em; }
.foco b:last-child { right: 0; bottom: 0; border-width: 0 .085em .085em 0; border-bottom-right-radius: .06em; }
.foco::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: .1em; height: .1em; margin: -.05em 0 0 -.05em; border-radius: 50%;
  background: var(--sol);
}
html.pronto .foco::after { animation: piscar .9s ease 1.35s both; }
.foco.refoco b:first-child { animation: refoco-a .7s var(--suave); }
.foco.refoco b:last-child { animation: refoco-b .7s var(--suave); }
.foco.refoco::after { animation: piscar .9s ease .25s both; }

@keyframes piscar {
  0% { opacity: 0; transform: scale(.4); }
  20% { opacity: 1; transform: scale(1.3); }
  40% { opacity: .2; transform: scale(1); }
  60% { opacity: 1; }
  80% { opacity: .35; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes refoco-a { 35% { transform: translate(-.12em, -.12em); } }
@keyframes refoco-b { 35% { transform: translate(.12em, .12em); } }

.hero__texto {
  margin: 0; max-width: 31ch;
  font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .86);
}
.hero__botoes { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
}
.hero__base .cartao-vidro { flex: none; }
.hero__botoes { margin-left: auto; }

.cartao-vidro {
  position: relative;
  display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: 1rem;
  width: min(100%, 22rem); padding: .55rem 3rem .55rem .55rem;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  color: var(--papel); text-decoration: none;
  transition: background-color .3s;
}
.cartao-vidro:hover { background: rgba(255, 255, 255, .14); }
.cartao-vidro img {
  width: 6rem; height: 6rem; border-radius: 14px;
  object-fit: cover; object-position: 50% 24%;
}
.cartao-vidro__texto { font-size: .9375rem; line-height: 1.35; }
.cartao-vidro__seta {
  position: absolute; top: .7rem; right: .7rem;
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  transition: background-color .25s, color .25s;
}
.cartao-vidro__seta svg { width: .9rem; height: .9rem; }
.cartao-vidro:hover .cartao-vidro__seta { background: var(--papel); color: var(--carvao); }

/* Entrada da capa (só quando o JavaScript está ativo)
   1. a foto abre como o diafragma de uma câmera: já começa visível e desacelera no fim
   2. o nome da proposta e as letras do título sobem em sequência
   3. o "foco" trava e pisca
   4. logo, ícones, subtítulo, texto e botões aparecem em seguida
   Quando tudo assenta (classe "assentou"), a sombra do título volta e o recorte da foto sai,
   para nada pesar durante o movimento. */
html.js .hero__fotos {
  clip-path: polygon(200% 50%, 125% 257.8%, -25% 257.8%, -100% 50%, -25% -157.8%, 125% -157.8%);
  transition: clip-path 1.25s cubic-bezier(.42, 0, .12, 1), opacity .45s ease;
}
html.js:not(.pronto) .hero__fotos {
  opacity: 0;
  clip-path: polygon(56% 50%, 53% 58.3%, 47% 58.3%, 44% 50%, 47% 41.7%, 53% 41.7%);
}
html.assentou .hero__fotos { clip-path: none; transition: none; }
/* telas em pé (celular): o mesmo hexágono, com as proporções corrigidas */
@media (max-aspect-ratio: 1/1) {
  html.js .hero__fotos { clip-path: polygon(288% 50%, 169% 145.4%, -69% 145.4%, -188% 50%, -69% -45.4%, 169% -45.4%); }
  html.js:not(.pronto) .hero__fotos { clip-path: polygon(59.5% 50%, 54.8% 53.8%, 45.2% 53.8%, 40.5% 50%, 45.2% 46.2%, 54.8% 46.2%); }
  html.assentou .hero__fotos { clip-path: none; }
}
/* durante a abertura a foto fica parada (zoom + recorte juntos pesam);
   o zoom lento começa quando a entrada termina */
html.js:not(.assentou) .hero__foto.ativa { transform: scale(1.06); transition: opacity 1.4s ease; }

html.js:not(.pronto) .hero__titulo .linha > span { opacity: 0; }
html.js:not(.assentou) .hero__titulo { text-shadow: none; }
.hero__titulo { transition: text-shadow .8s ease; }
html.pronto:not(.assentou) .letra { will-change: transform, opacity; }
html.pronto .letra { animation: letra .9s var(--suave) calc(.4s + var(--i) * var(--passo, 28ms)) backwards; }
@keyframes letra { from { opacity: 0; transform: translateY(100%) rotate(5deg); } }

html.js:not(.pronto) .foco b { opacity: 0; }
html.js:not(.pronto) .foco b:first-child { transform: translate(-.3em, -.3em); }
html.js:not(.pronto) .foco b:last-child { transform: translate(.3em, .3em); }
html.js:not(.pronto) .foco::after { opacity: 0; }

html.js:not(.pronto) :is(.hero__para, .hero__rotulo, .nav__marca, .nav__menu, .nav__icone, .hero__subtitulo, .hero__texto, .hero__botoes .botao) { opacity: 0; }
html.pronto .hero__para { animation: subir .8s var(--suave) .22s backwards; }
html.pronto .hero__rotulo { animation: subir .8s var(--suave) .3s backwards; }
html.pronto .nav__marca { animation: descer .8s var(--suave) .85s backwards; }
html.pronto .nav__menu { animation: descer .8s var(--suave) .9s backwards; }
html.pronto .nav__icone:nth-child(1) { animation: descer .8s var(--suave) .93s backwards; }
html.pronto .nav__icone:nth-child(2) { animation: descer .8s var(--suave) 1.01s backwards; }
html.pronto .hero__subtitulo { animation: subir .8s var(--suave) 1.05s backwards; }
html.pronto .hero__texto { animation: subir .8s var(--suave) 1.15s backwards; }
html.pronto .hero__botoes .botao:nth-child(1) { animation: subir .8s var(--suave) 1.25s backwards; }
html.pronto .hero__botoes .botao:nth-child(2) { animation: subir .8s var(--suave) 1.35s backwards; }
html.pronto .hero__botoes .botao__icone { animation: surgir .6s cubic-bezier(.3, 1.5, .5, 1) 1.6s backwards; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } }
@keyframes descer { from { opacity: 0; transform: translateY(-12px); } }
@keyframes surgir { from { opacity: 0; transform: scale(.4); } }

/* ---------- Títulos e rótulos de seção ---------- */
.secao-titulo {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 500;
  line-height: .95; letter-spacing: -0.045em;
}
/* rótulo pequeno com o quadradinho laranja */
.rotulo {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem;
  font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em;
}
.rotulo::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 2px; background: var(--sol); }

/* ---------- Painel claro (sobre, destaques e trabalhos) ---------- */
.painel {
  --tinta: var(--carvao);      /* texto no painel claro */
  --tinta-suave: #6B6563;      /* texto secundário no painel claro */
  --linha-clara: rgba(35, 31, 32, .14);
  margin: 0 var(--borda);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--raio);
  background: var(--papel); color: var(--tinta);
}
.painel ::selection { background: var(--carvao); color: var(--papel); }

/* ---------- 2. Sobre ---------- */
.sobre {
  display: grid; grid-template-columns: minmax(15rem, 26rem) minmax(0, 1fr);
  align-items: stretch; gap: clamp(2rem, 4vw, 3.5rem);
  max-width: calc(72rem + 2 * var(--margem)); margin: 0 auto;
  padding: 0 var(--margem);
}
.sobre__texto { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.sobre .rotulo { margin-bottom: 0; }
.frase {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500;
  line-height: 1.04; letter-spacing: -0.045em;
  text-wrap: pretty;
}
.frase .palavra { opacity: .22; transition: opacity .35s ease; }
.frase .palavra.acesa { opacity: 1; }

.link-pontilhado {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: .45rem; border-bottom: 2px dotted var(--sol);
  font-size: 1rem; font-weight: 500; color: inherit; text-decoration: none;
}
.link-pontilhado svg { width: 1.1rem; height: 1.1rem; transition: transform .35s var(--suave); }
.link-pontilhado:hover svg { transform: translateX(4px); }

.sobre__retrato {
  position: relative; margin: 0; overflow: hidden; align-self: start;
  aspect-ratio: 1 / 1; border-radius: var(--raio); background: #DCD8D4;
}
.sobre__retrato img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* Cantos da logo sobre a foto */
.cantos::before, .cantos::after, .foto::before, .foto::after {
  content: ""; position: absolute; z-index: 1;
  width: 1.9rem; height: 1.9rem; border: 0 solid var(--papel);
  mix-blend-mode: difference;
  pointer-events: none;
}
.cantos::before, .foto::before { top: 1.1rem; left: 1.1rem; border-width: .3rem 0 0 .3rem; border-top-left-radius: .35rem; }
.cantos::after, .foto::after { right: 1.1rem; bottom: 1.1rem; border-width: 0 .3rem .3rem 0; border-bottom-right-radius: .35rem; }

/* botões do Instagram e do WhatsApp, nas cores de cada um */
.sobre__redes { display: flex; flex-wrap: wrap; gap: .75rem; }
.rede {
  display: inline-flex; align-items: center; gap: .6rem; height: 3.25rem; padding: 0 1.6rem 0 1.2rem;
  border-radius: 999px; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  transition: transform .35s var(--suave), box-shadow .35s var(--suave), filter .3s;
}
.rede svg { width: 1.35rem; height: 1.35rem; }
.rede--insta { background: linear-gradient(45deg, #F9A23A 0%, #E1306C 42%, #C13584 64%, #833AB4 84%, #5B51D8 100%); box-shadow: 0 6px 18px rgba(193, 53, 132, .22); }
.rede--whats { background: #1FAF54; box-shadow: 0 6px 18px rgba(31, 175, 84, .22); }
.rede:hover, .rede:focus-visible { transform: translateY(-2px); filter: saturate(1.08) brightness(1.04); }
.rede--insta:hover, .rede--insta:focus-visible { box-shadow: 0 12px 26px rgba(193, 53, 132, .32); }
.rede--whats:hover, .rede--whats:focus-visible { box-shadow: 0 12px 26px rgba(31, 175, 84, .32); }
.rede:focus-visible { outline: 2px solid var(--carvao); outline-offset: 3px; }

/* ---------- 3. Destaques ---------- */
.destaques {
  max-width: calc(72rem + 2 * var(--margem)); margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4rem) var(--margem) 0;
}
.destaques__lista {
  display: grid; grid-template-columns: repeat(var(--colunas, 3), minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 2.75rem);
  list-style: none; margin: 0; padding: 0;
}
.destaque__icone {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--sol); color: var(--carvao);
}
.destaque__icone svg { width: 1.45rem; height: 1.45rem; }
.destaque h3 {
  margin: 1.1rem 0 0; padding-top: .9rem;
  border-top: 2px dotted var(--sol);
  font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
}
.destaque p { margin: .55rem 0 0; max-width: 34ch; font-size: .9375rem; line-height: 1.5; color: var(--tinta-suave); }

/* ---------- 4. Trabalhos (galeria) ---------- */
.trabalhos { padding: clamp(4rem, 8vw, 6.5rem) 0 0; }
/* divisão entre "Quem eu sou" e o portfólio: linha fina com um traço laranja no começo */
.painel .trabalhos { position: relative; margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: clamp(3.5rem, 7vw, 5rem); }
.painel .trabalhos::before, .painel .trabalhos::after { content: ""; position: absolute; top: 0; left: var(--margem); pointer-events: none; }
.painel .trabalhos::before { right: var(--margem); height: 1px; background: var(--linha-clara); }
.painel .trabalhos::after { width: 4.5rem; height: 2px; margin-top: -.5px; border-radius: 2px; background: var(--sol); }
.trabalhos, .servicos, .sobre { scroll-margin-top: 7rem; }

.secao-topo {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 0 var(--margem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.trilho-controles { display: flex; gap: .5rem; }
.painel .redondo { color: var(--tinta); border-color: rgba(35, 31, 32, .25); }
.painel .redondo:hover { background: var(--tinta); color: var(--papel); }

.trilho {
  display: flex; gap: .75rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--margem); scroll-padding: 0 var(--margem);
  scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho.arrastando { cursor: grabbing; scroll-snap-type: none; }
.trilho.arrastando .foto { pointer-events: none; }

.foto {
  position: relative; flex: none; overflow: hidden;
  height: clamp(21rem, 62vh, 38rem);
  padding: 0; border: 0; border-radius: 16px;
  background: var(--grafite);
  scroll-snap-align: start; cursor: zoom-in;
}
.foto img {
  height: 100%; width: auto; max-width: 86vw; object-fit: cover;
  transition: transform .8s var(--suave);
  -webkit-user-drag: none; user-select: none;
}
.foto::before, .foto::after { opacity: 0; transition: opacity .25s, transform .45s var(--suave); }
.foto::before { transform: translate(-.5rem, -.5rem); }
.foto::after { transform: translate(.5rem, .5rem); }
.foto:hover img, .foto:focus-visible img { transform: scale(1.03); }
.foto:hover::before, .foto:hover::after,
.foto:focus-visible::before, .foto:focus-visible::after { opacity: 1; transform: none; }
.foto:focus-visible { outline-offset: -3px; }

.painel .foto { background: #DCD8D4; }

.trilho-progresso {
  position: relative; height: 2px; overflow: hidden;
  margin: 1.5rem var(--margem) 0; background: var(--linha-clara);
}
.trilho-progresso span { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--tinta); }

.link-insta {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 1.75rem var(--margem) 0;
  font-size: .9375rem; color: inherit; text-decoration: underline; text-underline-offset: .35em;
  text-decoration-color: rgba(35, 31, 32, .35);
}
.link-insta:hover { text-decoration-color: currentColor; }
.link-insta svg { width: 1.2rem; height: 1.2rem; }

/* ---------- 5. Tabelas de valores (cada serviço abre a sua proposta) ---------- */
/* texto à esquerda e os 4 cartões (2 × 2) à direita, centralizados como a seção "Quem eu sou" */
.servicos {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  max-width: calc(72rem + 2 * var(--margem)); margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--margem);
}
.servicos__titulo { color: var(--sol); font-size: clamp(2.25rem, 3.7vw, 3.5rem); line-height: 1.04; text-wrap: balance; }
.servicos__texto { margin: 1.25rem 0 0; max-width: 34ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--nevoa); }

.tabelas {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.1rem);
  list-style: none; margin: 0; padding: 0;
}
.tabelas li { display: flex; }
.tabela {
  flex: 1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "icone seta" ". ." "nome nome" "acao acao";
  min-height: 13.5rem; padding: 1.5rem; border-radius: var(--raio); border: 1px solid var(--linha);
  background: var(--grafite); color: inherit; text-decoration: none;
  transition: border-color .3s, transform .45s var(--suave), background-color .3s;
}
.tabela:hover, .tabela:focus-visible { border-color: rgba(242, 154, 74, .55); transform: translateY(-4px); background: #332E2F; }
.tabela:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px; }
.tabela__icone {
  grid-area: icone; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; border: 1.5px solid var(--sol); color: var(--sol); transition: background-color .3s, color .3s;
}
.tabela__icone svg { width: 1.5rem; height: 1.5rem; }
.tabela:hover .tabela__icone, .tabela:focus-visible .tabela__icone { background: var(--sol); color: var(--carvao); }
.tabela__seta {
  grid-area: seta; align-self: start; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  color: var(--nevoa); transition: color .3s, transform .45s var(--suave);
}
.tabela__seta svg { width: 1.15rem; height: 1.15rem; }
.tabela:hover .tabela__seta, .tabela:focus-visible .tabela__seta { color: var(--sol); transform: translate(3px, -3px); }
.tabela--whats:hover .tabela__seta, .tabela--whats:focus-visible .tabela__seta { transform: none; }
.tabela__nome { grid-area: nome; margin-top: 1.5rem; font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.tabela__acao { grid-area: acao; margin-top: .4rem; font-size: .9375rem; color: var(--nevoa); }
/* cartão com foto: a foto ocupa tudo, escurecida embaixo para o texto */
.tabela--foto { position: relative; isolation: isolate; overflow: hidden; min-height: 15rem; border-color: transparent; background: var(--grafite); }
.tabela__foto {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--suave);
}
.tabela--foto::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(26, 22, 23, .9) 0%, rgba(26, 22, 23, .55) 38%, rgba(26, 22, 23, .08) 70%, rgba(26, 22, 23, .18) 100%);
}
.tabela--foto:hover .tabela__foto, .tabela--foto:focus-visible .tabela__foto { transform: scale(1.06); }
.tabela--foto:hover, .tabela--foto:focus-visible { border-color: var(--sol); background: var(--grafite); }
.tabela--foto .tabela__acao { color: rgba(242, 240, 237, .78); }
.tabela--foto .tabela__seta { background: rgba(26, 22, 23, .45); color: var(--papel); transition: background-color .3s, color .3s, transform .45s var(--suave); }
.tabela--foto:hover .tabela__seta, .tabela--foto:focus-visible .tabela__seta { background: var(--sol); color: var(--carvao); }
@media (prefers-reduced-motion: reduce) { .tabela__foto { transition: none; } .tabela--foto:hover .tabela__foto { transform: none; } }
@media (max-width: 900px) { .servicos { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tabela, .tabela__seta { transition: none; } .tabela:hover { transform: none; } }

/* ---------- 6. Contato ---------- */
.contato {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: min(92svh, 52rem);
  margin: 0 var(--borda);
  border-radius: var(--raio); background: var(--grafite);
}
.contato__foto {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%;
}
.contato::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 48%, rgba(24, 20, 21, .55) 0%, rgba(24, 20, 21, 0) 100%),
    linear-gradient(to top, rgba(24, 20, 21, .75) 0%, rgba(24, 20, 21, 0) 30%),
    rgba(24, 20, 21, .38);
}
/* conteúdo no centro da foto */
.contato__conteudo {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 60rem; margin: 0 auto; text-align: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem) 2rem;
}
.contato h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -0.055em;
  text-wrap: balance; text-shadow: 0 2px 40px rgba(20, 16, 17, .35);
}
.contato p { margin: 0 auto 2rem; max-width: 42ch; font-size: 1.125rem; line-height: 1.5; color: rgba(255, 255, 255, .88); text-wrap: balance; }
.contato__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* faixa de baixo do banner: frase + voltar ao topo */
.contato__rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin: 0 clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem);
  padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .22);
}
.contato__rodape .rotulo { margin: 0; max-width: none; font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, .88); }
.contato__topo {
  display: inline-flex; align-items: center; gap: .75rem;
  color: #fff; font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.contato__topo .botao__icone { width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, .4); transition: background-color .25s, color .25s, border-color .25s; }
.contato__topo:hover .botao__icone { background: var(--papel); border-color: var(--papel); color: var(--carvao); transform: none; }

/* ---------- Rodapé ---------- */
.rodape { padding: clamp(3rem, 6vw, 4.5rem) var(--margem) 2rem; font-size: .9375rem; color: var(--nevoa); }
.rodape__grade {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  max-width: 82rem; margin: 0 auto;
}
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rodape p { margin: 0; }
.rodape a { color: inherit; text-decoration: none; transition: color .2s; }
.rodape a:hover { color: var(--papel); }
.rodape__logo { width: clamp(11rem, 15vw, 13.5rem); height: auto; margin-bottom: 1.6rem; }
.rodape__contatos li > * { display: inline-flex; align-items: center; gap: .65rem; }
.rodape svg { flex: none; width: 1.05rem; height: 1.05rem; color: var(--papel); opacity: .85; }
.rodape__titulo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.15rem !important; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--papel); }
.rodape__titulo::before { content: ""; width: .45rem; height: .45rem; border-radius: 2px; background: var(--sol); }
.rodape__difs li { display: flex; align-items: center; gap: .65rem; }
.rodape__difs svg { color: var(--sol); opacity: 1; }
.rodape .rodape__admin { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem; font-size: .8125rem; color: var(--nevoa); opacity: .8; }
.rodape .rodape__admin svg { width: .85rem; height: .85rem; color: currentColor; }
.rodape .rodape__admin:hover { opacity: 1; color: var(--papel); }
.rodape .rodape__botao {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; padding: .75rem 1.25rem;
  border-radius: 999px; background: var(--sol); color: var(--carvao); font-size: .9rem; font-weight: 600;
  transition: background-color .2s, transform .2s;
}
.rodape .rodape__botao svg { color: var(--carvao); opacity: 1; }
.rodape .rodape__botao:hover { background: #F6AE6C; color: var(--carvao); transform: translateY(-1px); }
.rodape__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  max-width: 82rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--linha); font-size: .8125rem; color: var(--nevoa);
  padding-right: 5rem;   /* espaço para o botão flutuante do WhatsApp */
}
@media (max-width: 1000px) { .rodape__grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  /* celular: só a marca, WhatsApp, Instagram e os direitos */
  .rodape { padding-top: 2.5rem; }
  .rodape__grade { grid-template-columns: 1fr; }
  .rodape__coluna, .rodape__contatos li:last-child, .rodape__base p:last-child { display: none; }
  .rodape__logo { margin-bottom: 1.25rem; }
  .rodape__base { margin-top: 1.75rem; }
}
.espaco-contato { height: var(--borda); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.whats-flutuante {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45;
  display: grid; place-items: center;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--sol); color: var(--carvao);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(1rem) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .45s var(--suave), background-color .25s;
}
.whats-flutuante svg { width: 1.6rem; height: 1.6rem; }
.whats-flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
.whats-flutuante:hover { background: #F5AE6C; }

/* ---------- Visualizador de fotos ---------- */
.visor {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(22, 19, 20, .97); color: var(--papel);
}
.visor::backdrop { background: transparent; }
.visor[open] { display: grid; place-items: center; animation: aparecer .3s ease; }
.visor__img {
  max-width: calc(100vw - 10rem); max-height: calc(100dvh - 7rem);
  width: auto; height: auto; border-radius: 10px; object-fit: contain;
}
.visor__contagem {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  margin: 0; font-size: .875rem; color: var(--nevoa); font-variant-numeric: tabular-nums;
}
.visor .redondo { position: absolute; background: rgba(35, 31, 32, .6); }
.visor .redondo:hover { background: var(--papel); }
.visor__fechar { top: 1.25rem; right: 1.25rem; }
.visor__ant { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.visor__prox { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@keyframes aparecer { from { opacity: 0; } }

/* ---------- Telas médias ---------- */
@media (max-width: 960px) {

  .sobre { grid-template-columns: minmax(0, 1fr); }
  .sobre__retrato { width: min(100%, 26rem); }
  .sobre__texto { gap: 1.25rem; }

}

/* ---------- Celular ----------
   Versão enxuta: textos menores e mais proporcionais, botões lado a lado,
   foto do "Sobre" ao lado da apresentação e ícones mais discretos. */
@media (max-width: 640px) {
  :root { --borda: 6px; --raio: 18px; }

  .nav__marca { gap: .7rem; }
  .nav__logo { width: 2.9rem; height: 2.9rem; }
  .nav__logo img { width: 1.5rem; }
  .nav__nome { width: 9.25rem; }
  .nav__icone { width: 2.6rem; height: 2.6rem; }
  .nav__icone svg { width: 1.1rem; height: 1.1rem; }

  /* capa */
  .hero { min-height: 34rem; }
  .hero__conteudo { padding-top: 5.5rem; row-gap: 1.25rem; }
  .hero__titulo { font-size: min(9vw, 2.6rem); line-height: .92; align-self: end; }
  .hero__titulo .linha { text-wrap: balance; }
  .hero__titulo .linha--recuo { padding-left: 0; }
  .hero__chamada { width: auto; }
  .hero__subtitulo {
    margin: .7rem 0 0; font-size: 1.0625rem; font-weight: 400; line-height: 1.2;
    letter-spacing: -0.015em; text-transform: none; text-align: left;
  }
  .hero__texto { max-width: 36ch; font-size: .875rem; }

  .hero__base { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero__texto { order: 1; }
  .hero__botoes { order: 2; margin-left: 0; gap: .5rem; }
  .hero__botoes .botao { flex: 1 1 auto; justify-content: center; height: 3rem; padding: 0 1.1rem; font-size: .875rem; }
  .hero__botoes .botao:has(.botao__icone) { justify-content: space-between; gap: .6rem; padding: 0 .3rem 0 1.1rem; }
  .hero__botoes .botao__icone { width: 2.35rem; height: 2.35rem; }
  .hero__botoes .botao__icone svg { width: 1rem; height: 1rem; }

  .hero__base .cartao-vidro { order: 3; }
  .cartao-vidro { width: 100%; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .75rem; padding: .35rem 2.75rem .35rem .35rem; border-radius: 14px; }
  .cartao-vidro img { width: 2.6rem; height: 2.6rem; border-radius: 10px; }
  .cartao-vidro__texto { font-size: .8125rem; }
  .cartao-vidro__seta { top: 50%; right: .55rem; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; }

  /* títulos de seção */
  .secao-titulo { font-size: 2rem; line-height: 1; }
  .rotulo { margin-bottom: .75rem; font-size: .9375rem; }
  .painel { padding: 3.25rem 0 2.75rem; }

  /* sobre: foto pequena ao lado do "Prazer, eu sou o Bruno." */
  .sobre { grid-template-columns: 5.75rem minmax(0, 1fr); align-items: center; column-gap: 1rem; row-gap: 1.5rem; }
  .sobre__retrato { width: 5.75rem; border-radius: 14px; }
  .sobre__retrato .cantos::before, .sobre__retrato .cantos::after { width: .9rem; height: .9rem; }
  .sobre__retrato .cantos::before { top: .5rem; left: .5rem; border-width: .18rem 0 0 .18rem; border-top-left-radius: .2rem; }
  .sobre__retrato .cantos::after { right: .5rem; bottom: .5rem; border-width: 0 .18rem .18rem 0; border-bottom-right-radius: .2rem; }
  .sobre__texto { display: contents; }
  .sobre .rotulo { grid-column: 2; margin: 0; font-size: 1.0625rem; }
  .frase { grid-column: 1 / -1; font-size: 1.75rem; line-height: 1.08; }
  .sobre__redes { grid-column: 1 / -1; gap: .6rem; }
  .rede { flex: 1; justify-content: center; height: 3rem; padding: 0 1rem; font-size: .9375rem; }

  /* destaques: ícone pequeno à esquerda */
  .destaques { padding-top: 2.5rem; }
  .destaques__lista { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .destaque { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 1rem; }
  .destaque__icone { grid-row: span 2; width: 2.6rem; height: 2.6rem; }
  .destaque__icone svg { width: 1.2rem; height: 1.2rem; }
  .destaque h3 { margin: 0; padding-top: .1rem; border-top: 0; font-size: 1.0625rem; }
  .destaque p { margin-top: .25rem; font-size: .875rem; line-height: 1.45; }

  /* trabalhos */
  .trabalhos { padding-top: 3.25rem; }
  .painel .trabalhos { margin-top: 2.75rem; padding-top: 2.75rem; }
  .secao-topo { margin-bottom: 1.25rem; }
  .secao-topo .trilho-controles { display: none; }
  .foto { height: 56svh; max-height: 27rem; border-radius: 14px; }

  /* tabelas de valores: dois cartões por linha, todos à vista */
  .servicos { gap: 1.5rem; padding: 3.25rem var(--margem); }
  .servicos__titulo { font-size: 2rem; }
  .servicos__texto { margin-top: .9rem; font-size: 1rem; }
  .tabelas { gap: .65rem; }
  .tabela { min-height: 10.5rem; padding: 1rem; border-radius: 18px; }
  .tabela--foto { min-height: 12rem; }
  .tabela:hover, .tabela:focus-visible { transform: none; }
  .tabela__icone { width: 2.6rem; height: 2.6rem; }
  .tabela__icone svg { width: 1.25rem; height: 1.25rem; }
  .tabela__seta { width: 2rem; height: 2rem; }
  .tabela__nome { margin-top: 1rem; font-size: 1.0625rem; }
  .tabela__acao { font-size: .75rem; line-height: 1.35; }

  /* banner final */
  .contato { min-height: 72svh; }
  .contato__conteudo { padding: 3.5rem 1.25rem 2rem; }
  .contato h2 { margin-bottom: .9rem; font-size: 2.25rem; }
  .contato p { margin-bottom: 1.5rem; font-size: 1rem; }
  .contato__botoes { flex-direction: column; align-items: stretch; align-self: stretch; gap: .5rem; }
  .contato__botoes .botao { justify-content: space-between; height: 3.1rem; font-size: .9375rem; }
  .contato__botoes .botao--vidro { justify-content: center; gap: .6rem; }
  .contato__botoes .botao__icone { width: 2.4rem; height: 2.4rem; }
  .contato__rodape { margin: 0 1.25rem 1.25rem; padding-top: 1rem; gap: .9rem; flex-direction: column; justify-content: center; text-align: center; }
  .contato__rodape .rotulo { display: block; font-size: .875rem; text-wrap: balance; }
  .contato__rodape .rotulo::before { display: none; }

  /* rodapé */

  .whats-flutuante { right: 1rem; bottom: 1rem; width: 3.25rem; height: 3.25rem; }
  .whats-flutuante svg { width: 1.45rem; height: 1.45rem; }

  .visor__img { max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 9rem); }
  .visor__ant, .visor__prox { top: auto; bottom: 1rem; transform: none; }
  .visor__contagem { bottom: 2.1rem; }
}

/* ---------- Movimento reduzido ----------
   Quando o sistema pede menos movimento (ex.: Windows com "Efeitos de animação"
   desligado), nada se desloca na tela: a capa aparece só com esmaecimentos. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; animation-delay: 0s !important;
  }

  html.js .hero__fotos { clip-path: none !important; transition: opacity 1.2s ease .1s !important; }
  html.js:not(.pronto) .hero__fotos { opacity: 0; }
  .hero__foto, html.js:not(.pronto) .hero__foto.ativa { transform: none !important; transition: opacity 1.4s ease !important; }

  html.pronto .letra { animation: aparecer .6s ease calc(.3s + var(--i) * var(--passo, 28ms)) backwards !important; }
  .foco b { transform: none !important; transition: opacity .6s ease 1s !important; }
  html.pronto .foco::after { animation: aparecer .6s ease 1.3s backwards !important; }

  html.pronto :is(.hero__para, .hero__rotulo) { animation: aparecer .8s ease .3s backwards !important; }
  html.pronto :is(.nav__marca, .nav__menu, .nav__icone) { animation: aparecer .8s ease .85s backwards !important; }
  html.pronto .hero__subtitulo { animation: aparecer .8s ease 1.05s backwards !important; }
  html.pronto .hero__texto { animation: aparecer .8s ease 1.15s backwards !important; }
  html.pronto .hero__botoes .botao:nth-child(1) { animation: aparecer .8s ease 1.25s backwards !important; }
  html.pronto .hero__botoes .botao:nth-child(2) { animation: aparecer .8s ease 1.35s backwards !important; }
  html.pronto .hero__botoes .botao__icone { animation: aparecer .6s ease 1.6s backwards !important; }

  .frase .palavra { transition: opacity .35s ease !important; }
  @keyframes aparecer { from { opacity: 0; } }
}

/* ---------- Prévia do painel administrativo: sem animações ---------- */
html.previa *, html.previa *::before, html.previa *::after {
  animation-duration: 0s !important; animation-delay: 0s !important;
  transition-duration: 0s !important; transition-delay: 0s !important;
}
html.previa .hero__fotos { clip-path: none !important; }

/* ---------- Página não encontrada (404) ---------- */
.nao-achou { display: grid; align-content: center; justify-items: start; gap: 1rem; min-height: 100svh; max-width: calc(48rem + 2 * var(--margem)); margin: 0 auto; padding: 3rem var(--margem); }
.nao-achou .secao-titulo { color: var(--sol); }
.nao-achou__texto { margin: 0; font-size: 1.125rem; color: var(--nevoa); }
.nao-achou__botoes { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.rede--claro { background: var(--papel); color: var(--carvao); }

/* ---------- Trabalhos na página inicial: um cartão por trabalho ---------- */
.trabalhos__texto { margin: 1rem 0 0; max-width: 44ch; font-size: 1.0625rem; line-height: 1.5; color: var(--tinta-suave); }
.trabalhos__todos {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  font-size: .9375rem; font-weight: 500; color: inherit; text-decoration: none;
  padding-bottom: .2rem; border-bottom: 1px solid rgba(35, 31, 32, .3); transition: border-color .2s, gap .3s var(--suave);
}
.trabalhos__todos svg { width: 1.05rem; height: 1.05rem; }
.trabalhos__todos:hover { border-color: currentColor; gap: .75rem; }
.obras {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
  margin: 0; padding: 0 var(--margem); list-style: none;
}
.obra {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: 16px; background: #DCD8D4; color: #fff; text-decoration: none; isolation: isolate;
}
.obra__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--suave); }
.obra::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 18, 0) 45%, rgba(20, 17, 18, .78) 100%);
}
.obra:hover .obra__foto, .obra:focus-visible .obra__foto { transform: scale(1.045); }
.obra__seta {
  position: absolute; top: .85rem; right: .85rem; z-index: 2; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(242, 240, 237, .92); color: var(--carvao);
  transition: transform .45s var(--suave), background-color .25s;
}
.obra__seta svg { width: 1.1rem; height: 1.1rem; }
.obra:hover .obra__seta, .obra:focus-visible .obra__seta { transform: translate(2px, -2px); background: var(--sol); }
.obra__texto { position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1.1rem; z-index: 2; display: grid; gap: .3rem; }
.obra__categoria { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; opacity: .9; }
.obra__categoria::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--sol); }
.obra__titulo { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.obra__acao { font-size: .8125rem; opacity: .75; }
@media (max-width: 1000px) { .obras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .trabalhos .secao-topo { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .obras {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margem);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .obras::-webkit-scrollbar { display: none; }
  .obras li { flex: 0 0 74vw; scroll-snap-align: start; }
}

/* ---------- Página do portfólio ---------- */
.port__topo {
  max-width: 82rem; margin: 0 auto;
  padding: calc(var(--borda) + clamp(6.5rem, 12vw, 9rem)) var(--margem) clamp(2rem, 4vw, 3rem);
}
.port__voltar {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 2rem;
  font-size: .875rem; color: var(--nevoa); text-decoration: none; transition: color .2s;
}
.port__voltar svg { width: 1rem; height: 1rem; }
.port__voltar:hover { color: var(--papel); }
.port__titulo { margin: 0; font-size: clamp(3rem, 8.5vw, 7rem); font-weight: 500; line-height: .9; letter-spacing: -0.055em; }
.port__intro { margin: 1.4rem 0 0; max-width: 46ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--nevoa); }

.port__abas {
  position: sticky; top: var(--nav-fim, 0px); z-index: 40; transition: top .45s var(--suave);
  padding: .75rem 0; margin-bottom: .75rem;
  background: rgba(35, 31, 32, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.port__abas-trilho {
  display: flex; gap: .5rem; max-width: 82rem; margin: 0 auto; padding: 0 var(--margem);
  overflow-x: auto; scrollbar-width: none;
}
.port__abas-trilho::-webkit-scrollbar { display: none; }
.port__aba {
  display: inline-flex; align-items: center; gap: .6rem; flex: none;
  padding: .3rem 1.1rem .3rem .3rem; border: 1px solid rgba(242, 240, 237, .2); border-radius: 999px;
  color: var(--papel); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.port__aba img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.port__aba:hover { border-color: rgba(242, 240, 237, .5); }
.port__aba[aria-current="true"] { background: var(--papel); border-color: var(--papel); color: var(--carvao); }

.port__painel { padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 4.5rem; }
.port__trabalho { scroll-margin-top: 5rem; }
.port__trabalho + .port__trabalho { margin-top: clamp(4rem, 8vw, 6rem); }
html.js .port__trabalho:not(.ativo) { display: none; }
html.js .port__trabalho + .port__trabalho { margin-top: 0; }
.port__cab {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 1.5rem 3rem;
  max-width: 82rem; margin: 0 auto clamp(2rem, 4vw, 3rem); padding: 0 var(--margem);
}
.port__sobre p { margin: 0; max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; color: var(--tinta-suave); }
.port__sobre .port__meta { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .875rem; color: var(--tinta); }
.port__meta svg { width: 1rem; height: 1rem; color: var(--sol); }

.port__fotos { columns: 3; column-gap: .75rem; max-width: 82rem; margin: 0 auto; padding: 0 var(--margem); }
.port__fotos .foto {
  display: block; width: 100%; height: auto; margin: 0 0 .75rem; break-inside: avoid;
  border-radius: 12px; background: #DCD8D4;
}
.port__fotos .foto img { display: block; width: 100%; height: auto; max-width: none; }

.port__fim {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 82rem; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0 var(--margem);
}
.port__proximo { display: grid; justify-items: end; gap: .2rem; color: var(--tinta); text-decoration: none; }
.port__proximo small { font-size: .8125rem; color: var(--tinta-suave); }
.port__proximo span { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.03em; transition: gap .3s var(--suave); }
.port__proximo svg { width: 1.4rem; height: 1.4rem; color: var(--sol); }
.port__proximo:hover span { gap: .9rem; }
.port .contato { margin-top: var(--borda); }

@media (max-width: 1100px) { .port__fotos { columns: 2; } }
@media (max-width: 760px) {
  .port__cab { grid-template-columns: 1fr; }
  .port__fotos { column-gap: .5rem; }
  .port__fotos .foto { margin-bottom: .5rem; border-radius: 10px; }
  .port__fim { flex-direction: column; align-items: stretch; }
  .port__fim .botao { justify-content: space-between; }
  .port__proximo { justify-items: start; padding-top: 1.25rem; border-top: 1px solid var(--linha-clara); }
}

/* portfólio: colunas montadas pelo script, na ordem do painel */
.port__fotos.montada { columns: auto; display: flex; align-items: flex-start; gap: .75rem; }
.port__coluna { flex: 1 1 0; min-width: 0; display: grid; gap: .75rem; }
.port__fotos.montada .foto { margin: 0; }
@media (max-width: 760px) {
  .port__fotos.montada, .port__coluna { gap: .5rem; }
}
/* visualizador: enquanto a versão grande baixa, mostra a pequena com um leve aviso */
.visor__img { transition: filter .25s ease; }
.visor.carregando .visor__img { filter: blur(2px) brightness(.9); }
.visor.carregando .visor__contagem::after { content: " · carregando"; }
html.visor-aberto, html.visor-aberto body { overflow: hidden; }

/* ---------- Calendário com dias reservados (agenda e "Monte sua proposta") ---------- */
.cal { --cal-texto: var(--papel); --cal-suave: var(--nevoa); --cal-linha: var(--linha); --cal-hover: rgba(242, 240, 237, .1); --cal-res: #F07C7C; --cal-res-fundo: rgba(229, 72, 77, .16); }
.cal__topo { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.cal__mes { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--cal-texto); }
.cal__mes::first-letter { text-transform: uppercase; }
.cal__seta { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--cal-linha); border-radius: 50%; background: none; color: var(--cal-texto); cursor: pointer; transition: background .2s, opacity .2s; }
.cal__seta:hover:not(:disabled) { background: var(--cal-hover); }
.cal__seta:disabled { opacity: .25; cursor: default; }
.cal__seta svg { width: .85rem; height: .85rem; }
.cal__seta[data-mes="-1"] svg { transform: scaleX(-1); }
.cal__grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; }
.cal__sem { padding-bottom: .25rem; font-size: .7rem; text-align: center; color: var(--cal-suave); }
.cal__dia {
  aspect-ratio: 1; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--cal-texto);
  font: inherit; font-size: .85rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background .15s, color .15s;
}
.cal__dia:hover:not(:disabled) { background: var(--cal-hover); }
.cal__dia:focus-visible { outline: 2px solid var(--sol); outline-offset: 1px; }
.cal__dia--passou { opacity: .3; cursor: default; }
.cal__dia--hoje { box-shadow: inset 0 0 0 1px var(--cal-suave); }
.cal__dia--ocupado, .cal__dia--ocupado:hover:not(:disabled) { background: var(--cal-res-fundo); color: var(--cal-res); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal__dia--escolhido, .cal__dia--escolhido:hover:not(:disabled) { background: var(--sol); color: var(--carvao); font-weight: 600; }
.cal__dia--ocupado.cal__dia--escolhido { background: var(--cal-res); color: #fff; }
.cal__legenda { display: flex; align-items: center; gap: .45rem; margin: .6rem 0 0; font-size: .75rem; color: var(--cal-suave); }
.cal__marca { width: .7rem; height: .7rem; border-radius: 50%; background: var(--cal-res-fundo); box-shadow: inset 0 0 0 1.5px var(--cal-res); }
.cal__aviso { margin-top: .7rem; padding: .7rem .8rem; border-radius: 12px; background: var(--cal-res-fundo); color: var(--cal-texto); font-size: .82rem; line-height: 1.4; }
.cal__aviso[hidden] { display: none; }
.cal__aviso p { margin: 0; }
.cal__aviso p + p { margin-top: .15rem; }
.cal__aviso b { color: var(--cal-res); font-weight: 600; }
.cal__aviso a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; padding: .45rem .8rem; border-radius: 999px; background: #25A35A; color: #fff; font-weight: 600; font-size: .8rem; text-decoration: none; }
.cal__aviso a:hover { background: #1F8C4D; }
.cal__aviso svg { width: 1rem; height: 1rem; }
.cal__dia--ocupado { cursor: not-allowed; }

