/* =========================================================
   Insegna — página única
   1 hero · 2 trabalhos · 3 como funciona · 4 contato
   O nome é a placa: "ınsegna" enorme no centro e, ao redor,
   peças de papel, cera e ferro, como num cartaz antigo.
   ========================================================= */

:root {
  --vermelho: #8C2F24;
  --vermelho-claro: #A33B2C;
  --vermelho-fundo: #6E2219;
  --queimado: #2A110C;
  --creme: #F3EBDD;
  --grafite: #1C1A17;
  --ouro: #A8843C;
  --areia: #DCCDB4;

  --fonte-titulo: "Fraunces", Georgia, serif;
  --fonte-texto: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1); /* saída exponencial */
  --borda: 14px;                        /* distância da moldura até a tela */
  --miolo: 44px;                        /* respiro de quem fica dentro da moldura */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--queimado); scrollbar-color: var(--ouro) var(--queimado); }

body {
  margin: 0;
  background: var(--vermelho);
  color: var(--creme);
  font-family: var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--creme); color: var(--vermelho); }

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

.wm { font-family: var(--fonte-titulo); font-weight: 400; font-variation-settings: "opsz" 96; }

/* ---------- Barra do topo ---------- */

.topo {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--miolo);
}

.assinatura {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--creme);
  text-decoration: none;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 17px;
}
.assinatura svg { width: 26px; height: 26px; fill: var(--creme); transition: rotate .9s var(--ease); }
.assinatura:hover svg { rotate: 45deg; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a {
  color: var(--creme);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.menu a:hover { text-decoration-line: underline; }
.menu .menu-contato {
  padding: 9px 18px;
  border: 1px solid rgba(243, 235, 221, .55);
  border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.menu .menu-contato:hover { background: var(--creme); color: var(--vermelho); text-decoration: none; }

/* ---------- O cartaz ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 72% 62% at 50% 44%, var(--vermelho-claro) 0%, var(--vermelho) 42%, var(--vermelho-fundo) 74%, #3E1610 100%);
}

/* Fundo: raios, estoile gigante, manchas de papel e grão */
.fundo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fundo .camada { position: absolute; inset: 0; display: grid; place-items: center; translate: 0 0; }

.raios {
  width: 190vmax;
  aspect-ratio: 1;
  margin-top: -6vh;
  background: repeating-conic-gradient(from 0deg, rgba(222, 178, 104, .13) 0deg 1.1deg, transparent 1.1deg 6deg);
  -webkit-mask-image: radial-gradient(circle, transparent 5%, #000 13%, #000 30%, transparent 52%);
          mask-image: radial-gradient(circle, transparent 5%, #000 13%, #000 30%, transparent 52%);
}

.estoile-gigante {
  width: min(122vmin, 1200px);
  margin-top: -6vh;
  overflow: visible;
  animation: girar 360s linear infinite;
}
.estoile-gigante .silhueta { fill: #7A271D; opacity: .7; }
.estoile-gigante .traco { fill: none; stroke: var(--ouro); stroke-width: .45; opacity: .7; }
.estoile-gigante .traco.fino { stroke-width: .25; opacity: .45; }

.manchas {
  position: absolute;
  inset: 0;
  background: url("assets/fundos/manchas.svg") center / 900px;
  mix-blend-mode: multiply;
  opacity: .55;
}
.grao {
  position: absolute;
  inset: 0;
  background: url("assets/fundos/grao.svg");
  mix-blend-mode: multiply;
  opacity: .32;
}
/* bordas queimadas */
.fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 75% at 50% 46%, transparent 52%, rgba(42, 17, 12, .5) 80%, rgba(26, 9, 6, .88) 100%);
}

/* Moldura dupla de cartaz, em fio de ouro */
.moldura {
  position: absolute;
  inset: var(--borda);
  z-index: 5;
  border: 1px solid rgba(168, 132, 60, .8);
  pointer-events: none;
}
.moldura::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(168, 132, 60, .38);
}
.moldura .canto { position: absolute; width: 16px; height: 16px; fill: var(--ouro); }
.moldura .c1 { top: -8px; left: -8px; }
.moldura .c2 { top: -8px; right: -8px; }
.moldura .c3 { bottom: -8px; left: -8px; }
.moldura .c4 { bottom: -8px; right: -8px; }

/* ---------- Colagem ---------- */

.colagem { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.colagem .camada { position: absolute; translate: 0 0; }
.colagem .faiscas { inset: 0; }

.sombra-papel { filter: drop-shadow(0 18px 22px rgba(26, 9, 6, .42)) drop-shadow(0 2px 3px rgba(26, 9, 6, .45)); }

/* Lacre de cera: o selo da casa (as cartas de tarô saíram do topo) */
.selo-cera { left: max(84px, 9%); top: 58%; width: clamp(110px, 10.5vw, 180px); aspect-ratio: 1; }
.lacre { display: block; width: 100%; height: 100%; rotate: -12deg; overflow: visible; filter: drop-shadow(0 14px 16px rgba(26, 9, 6, .5)) drop-shadow(0 2px 3px rgba(26, 9, 6, .45)); }

/* Letreiro pendurado */
.letreiro {
  right: var(--borda);
  top: 13%;
  width: clamp(150px, 16vw, 270px);
  filter: drop-shadow(0 16px 18px rgba(26, 9, 6, .4)) drop-shadow(0 2px 2px rgba(26, 9, 6, .4));
}
.letreiro svg { width: 100%; height: auto; display: block; overflow: visible; }
.placa-letreiro {
  transform-box: view-box;
  transform-origin: 150px 32px;
  animation: balancar 7s ease-in-out infinite alternate;
}
.placa-est { font-family: var(--fonte-titulo); font-style: italic; font-size: 18px; fill: var(--grafite); font-variation-settings: "opsz" 18; }
.placa-ano { font-family: var(--fonte-titulo); font-size: 24px; letter-spacing: .14em; fill: var(--vermelho); font-variation-settings: "opsz" 24; }

/* Lupa (diagnóstico) e pena (identidade) */
.lupa {
  left: 10.5%;
  top: 16%;
  width: clamp(100px, 10vw, 168px);
  rotate: -16deg;
  filter: drop-shadow(0 14px 16px rgba(26, 9, 6, .45)) drop-shadow(0 2px 2px rgba(26, 9, 6, .4));
}
.pena {
  right: 15%;
  bottom: 9%;
  width: clamp(84px, 7.4vw, 130px);
  rotate: 34deg;
  filter: drop-shadow(0 14px 16px rgba(26, 9, 6, .4)) drop-shadow(0 2px 2px rgba(26, 9, 6, .35));
}
.lupa svg, .pena svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Estrelinhas */
.f {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--t);
  height: var(--t);
  fill: var(--creme);
  animation: cintilar 4.2s ease-in-out var(--d) infinite;
}
.f.ouro { fill: var(--ouro); }

/* ---------- O nome, a fita e a ação ---------- */

.centro {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 108px 24px 96px;
}

.nome { margin: 0; line-height: 0; }
.nome svg {
  width: min(54vw, 88svh);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 12px 24px rgba(26, 9, 6, .45)) drop-shadow(0 2px 2px rgba(26, 9, 6, .35));
}
.nome .wm { fill: var(--creme); }
.nome .losango { fill: var(--creme); }

.fita {
  width: min(50vw, 700px);
  margin-top: -1.4vw;
  overflow: visible;
  filter: drop-shadow(0 12px 14px rgba(26, 9, 6, .4)) drop-shadow(0 1px 2px rgba(26, 9, 6, .4));
}
.fita-texto { font-family: var(--fonte-titulo); font-style: italic; font-size: 34px; fill: var(--vermelho); font-variation-settings: "opsz" 36; }

.centro .lead {
  max-width: 36ch;
  margin: 16px 0 28px;
  font-family: var(--fonte-titulo);
  font-size: 19px;
  line-height: 1.45;
  font-variation-settings: "opsz" 18;
  text-wrap: balance;
  color: var(--creme);
}

.acoes { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }

.botao {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--creme);
  color: var(--vermelho);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 4px var(--creme),
    inset 0 0 0 5px rgba(168, 132, 60, .9),
    0 12px 26px -10px rgba(26, 9, 6, .6);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
.botao svg { width: 12px; height: 12px; fill: var(--vermelho); transition: rotate .7s var(--ease); }
.botao:hover {
  translate: 0 -2px;
  box-shadow:
    inset 0 0 0 4px var(--creme),
    inset 0 0 0 5px rgba(168, 132, 60, .9),
    0 20px 34px -12px rgba(26, 9, 6, .7);
}
.botao:hover svg { rotate: 90deg; }
.botao:active { translate: 0 0; }

.link-trabalhos {
  color: var(--creme);
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(243, 235, 221, .45);
  transition: text-decoration-color .3s var(--ease);
}
.link-trabalhos:hover { text-decoration-color: var(--creme); }

/* Frases pequenas nas bordas */
.legenda {
  position: absolute;
  z-index: 4;
  margin: 0;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 14px;
  font-variation-settings: "opsz" 14;
  color: rgba(243, 235, 221, .88);
}
.rodape-esq { left: var(--miolo); bottom: 32px; }
.rodape-dir { right: var(--miolo); bottom: 32px; }
.lateral {
  writing-mode: vertical-rl;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lateral.esquerda { left: 26px; top: 140px; rotate: 180deg; }
.lateral.direita { right: 26px; bottom: 96px; }

/* ---------- Montagem: a colagem é colada peça por peça ---------- */

.fundo .camada:nth-child(1) { animation: surgir 2.2s var(--ease) backwards; }
.fundo .camada:nth-child(2) { animation: surgir 2.4s var(--ease) .1s backwards; }
.nome { animation: nascer 1.6s var(--ease) .25s backwards; }
.fita { animation: desenrolar 1.3s var(--ease) .75s backwards; }
.centro .centro .lead { animation: subir 1.2s var(--ease) 1s backwards; }
.acoes { animation: subir 1.2s var(--ease) 1.1s backwards; }
.selo-cera .lacre { animation: carimbar 1s var(--ease) .8s backwards; }
.letreiro { animation: pendurar 1.6s var(--ease) .7s backwards; }
.lupa { animation: colar 1.5s var(--ease) .62s backwards; }
.pena { animation: colar 1.5s var(--ease) .82s backwards; }
.colagem .faiscas { animation: aparecer 1.6s var(--ease) 1.1s backwards; }
.legenda, .topo { animation: aparecer 1.4s var(--ease) 1.2s backwards; }

@keyframes surgir { from { opacity: 0; transform: scale(.92); } }
@keyframes nascer { from { opacity: 0; transform: translateY(22px) scale(1.04); filter: blur(14px); } }
@keyframes desenrolar { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
@keyframes colar { from { opacity: 0; transform: translate(-40px, 50px) rotate(-14deg) scale(1.08); filter: blur(6px); } }
@keyframes carimbar { from { opacity: 0; transform: scale(1.9); } 55% { opacity: 1; transform: scale(.93); } }
@keyframes pendurar { from { opacity: 0; transform: translateY(-46px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes girar { to { rotate: 360deg; } }
@keyframes balancar { from { rotate: -2.4deg; } to { rotate: 2.4deg; } }
@keyframes cintilar { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .5; opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Telas médias ---------- */

@media (max-width: 1100px) {
  .lateral { display: none; }
  .selo-cera { left: 6%; top: 60%; }
  .lupa { left: 6%; top: 15%; }
  .pena { right: 7%; }
}

/* ---------- Celular ---------- */

@media (max-width: 760px) {
  :root { --miolo: 26px; }

  .topo { padding: 26px var(--miolo); }
  .assinatura span { display: none; }
  .menu { gap: 18px; }
  .menu a[href="#como-funciona"] { display: none; }
  .menu .menu-contato { padding: 8px 14px; }

  .centro { padding: 200px 16px 112px; }
  .nome svg { width: 84vw; }
  .fita { width: 96vw; margin-top: -2vw; }
  .fita-texto { font-size: 38px; }
  .centro .lead { font-size: 17px; margin: 12px 0 24px; }
  .acoes { flex-direction: column; gap: 18px; }

  .selo-cera { left: 10%; top: 96px; width: 84px; }
  .letreiro { top: 74px; width: 150px; }
  .lupa, .pena { display: none; }

  .estoile-gigante, .raios { margin-top: -10vh; }
  .estoile-gigante { width: 150vmin; }

  .rodape-esq, .rodape-dir { left: 0; right: 0; text-align: center; font-size: 13px; }
  .rodape-esq { bottom: 50px; }
  .rodape-dir { bottom: 28px; }
}


/* =========================================================
   2. TRABALHOS — a galeria sobre papel queimado
   As telas do projeto são as "obras"; o vidro escuro
   ganha contraste porque o papel atrás é claro.
   ========================================================= */

.trabalhos {
  --vidro: rgba(28, 26, 23, .5);
  --vidro-forte: rgba(28, 26, 23, .86);
  --vidro-borda: rgba(243, 235, 221, .18);
  --vidro-sombra: 0 24px 60px rgba(42, 17, 12, .38);
  --desfoque: blur(22px) saturate(140%);
  --curva: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 190px var(--miolo) 130px;
  color: var(--creme);
  background: var(--areia);
}

.trabalhos .sala {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 82% 88% at 50% 50%, #F3EBDD 0%, #EADBC0 40%, #C9A77A 68%, #7A4B26 86%, #2B170B 100%);
}
.trabalhos .sala .grao {
  position: absolute;
  inset: 0;
  background: url("assets/fundos/grao.svg");
  mix-blend-mode: multiply;
  opacity: .45;
}
.trabalhos .marca-dagua {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1000px, 115vmin);
  translate: -50% -50%;
  fill: var(--vermelho);
  opacity: .08;
}

.moldura.escura { border-color: rgba(140, 47, 36, .5); }
.moldura.escura::before { border-color: rgba(140, 47, 36, .22); }
.moldura.escura .canto { fill: var(--vermelho); }

.trabalhos-cabeca {
  position: absolute;
  z-index: 15;
  top: 46px;
  left: var(--miolo);
  right: var(--miolo);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: var(--grafite);
}
.trabalhos-cabeca h2 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 72;
}
.trabalhos-cabeca p {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 18px;
  font-variation-settings: "opsz" 18;
  color: #3A2A20;
}

.botao-redondo {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--vidro-borda);
  background: rgba(243, 235, 221, .08);
  color: var(--creme);
  cursor: pointer;
  transition: background-color .25s;
}
.botao-redondo:hover { background: rgba(243, 235, 221, .2); }
.botao-redondo svg { width: 18px; height: 18px; }

.vidro {
  background: var(--vidro);
  -webkit-backdrop-filter: var(--desfoque);
  backdrop-filter: var(--desfoque);
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra);
}

/* a estante: cada projeto é uma pasta de vidro + o texto do case */
.estante {
  position: relative;
  z-index: 10;
  width: min(1080px, 100%);
  display: grid;
  gap: clamp(96px, 12vw, 160px);
}
.projeto {
  display: grid;
  grid-template-columns: auto minmax(0, 400px);
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 104px);
}
/* projetos alternam de lado: pasta à esquerda, depois à direita */
.projeto:nth-child(even) { grid-template-columns: minmax(0, 400px) auto; }
.projeto:nth-child(even) .pasta { order: 2; }
.pasta { min-height: 200px; }
.projeto-texto { color: var(--grafite); }
.projeto-tipo { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--vermelho); }
.projeto-texto h3 {
  margin: 0 0 18px;
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
}
.projeto-texto p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: #2E241D; }
.projeto-texto .dica { font-family: var(--fonte-titulo); font-style: italic; font-size: 16px; color: #5A4636; }

/* tela ampliada */
.ampliada {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 84px 104px 64px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* O fundo escuro e desfocado mora numa camada à parte: backdrop-filter na
   própria .ampliada faria os filhos "fixed" (pontos, setas, fechar) rolarem
   junto com a imagem em vez de ficarem presos na tela. */
.ampliada::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 8, 7, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ampliada.aberta { display: block; }
.ampliada-palco { position: relative; max-width: min(1200px, 100%); margin: 0 auto; }
.ampliada img { display: block; width: 100%; margin: 0 auto; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); will-change: transform, opacity, filter; }
/* a faixa de luz que atravessa a foto no swoosh */
.ampliada-rastro { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(243, 235, 221, .22) 48%, rgba(243, 235, 221, .05) 56%, transparent 70%); }
.ampliada .fechar { position: fixed; z-index: 2; top: 20px; right: 20px; }
.ampliada-legenda { position: fixed; z-index: 2; top: 22px; left: 24px; margin: 0; display: flex; align-items: baseline; gap: 12px; color: var(--creme); }
.ampliada-legenda b { font-family: var(--fonte-titulo); font-weight: 400; font-size: 24px; }
.ampliada-legenda span { font-size: 14px; color: rgba(243, 235, 221, .7); }
.ampliada-contador { position: fixed; z-index: 2; top: 30px; right: 80px; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: rgba(243, 235, 221, .75); font-variant-numeric: tabular-nums; }
.ampliada-seta {
  position: fixed;
  z-index: 2;
  top: 50%;
  translate: 0 -50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 235, 221, .2);
  background: rgba(243, 235, 221, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--creme);
  cursor: pointer;
  transition: background-color .3s, scale .4s var(--ease);
}
.ampliada-seta svg { width: 24px; height: 24px; }
.ampliada-seta:hover { background: rgba(243, 235, 221, .2); scale: 1.06; }
.ampliada-seta:active { scale: .94; }
.ampliada-seta.anterior { left: 24px; }
.ampliada-seta.proxima { right: 24px; }
/* presos no rodapé da tela: acompanham o cliente enquanto ele rola a imagem */
.ampliada-pontos { position: fixed; z-index: 2; left: 50%; bottom: 20px; translate: -50% 0; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(10, 8, 7, .55); }
.ampliada-pontos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(243, 235, 221, .35); cursor: pointer; transition: width .5s var(--ease), background-color .4s; }
.ampliada-pontos button[aria-current="true"] { width: 30px; background: var(--creme); }
@media (max-width: 760px) {
  .ampliada { padding: 72px 14px 64px; }
  .ampliada-seta { top: auto; bottom: 14px; translate: 0 0; width: 46px; height: 46px; }
  .ampliada-seta.anterior { left: 14px; }
  .ampliada-seta.proxima { right: 14px; }
  .ampliada-pontos { bottom: 26px; }
  .ampliada-contador { display: none; }
  .ampliada-legenda b { font-size: 20px; }
}

.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   3. COMO FUNCIONA — três cards com brilho que segue o mouse
   ========================================================= */

.como {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(104px, 12vw, 168px) var(--miolo) clamp(96px, 11vw, 150px);
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(140, 47, 36, .35), transparent 70%),
    var(--grafite);
}
.como::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/fundos/padrao-estoiles.svg") 0 0 / 240px 240px;
  opacity: .07;
}

.como-cabeca { max-width: 980px; margin: 0 auto clamp(64px, 8vw, 104px); text-align: center; }
.como-cabeca h2 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.como-cabeca p {
  margin: 20px 0 0;
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 19px;
  font-variation-settings: "opsz" 18;
  color: rgba(243, 235, 221, .82);
}

.passos {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
}
/* Card com brilho: um holofote segue o mouse por dentro do card e acende a
   borda por onde passa. O JS escreve --x/--y (posição do mouse dentro de cada
   card) e --tom (vai do vermelho, à esquerda da tela, ao ouro, à direita).
   Sem mouse (celular), cada card fica com um brilho parado no topo. */
.passo {
  --raio: 22px;
  --fio: 2px;                                /* espessura da borda acesa */
  --holofote: 320px;                         /* tamanho do brilho */
  --x: 30%;
  --y: 0%;
  --tom: calc(6 + var(--i) * 17);            /* sem mouse: I vermelho, II cobre, III ouro */
  --cor: hsl(var(--tom) 68% 56%);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border-radius: var(--raio);
  border: 1px solid rgba(243, 235, 221, .1);
  background:
    radial-gradient(var(--holofote) circle at var(--x) var(--y), hsl(var(--tom) 68% 56% / .2), transparent 70%),
    linear-gradient(rgba(243, 235, 221, .04), rgba(243, 235, 221, .04)),
    rgba(22, 20, 17, .9);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: opacity .9s var(--ease), translate .9s var(--ease);
}
.passo:hover { translate: 0 -6px; transition-delay: 0s; }

/* a borda acesa: um anel fino que só mostra o brilho em volta do mouse */
.passo::before,
.passo::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: var(--fio);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.passo::before {
  background: radial-gradient(calc(var(--holofote) * .75) circle at var(--x) var(--y), var(--cor), transparent 100%);
  filter: brightness(1.5);
}
.passo::after {
  background: radial-gradient(calc(var(--holofote) * .4) circle at var(--x) var(--y), rgba(255, 246, 230, .9), transparent 100%);
}

/* o halo: o mesmo anel, mais grosso e desfocado, vazando pra fora do card */
.halo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: blur(18px);
  opacity: .9;
  pointer-events: none;
}
.halo::before {
  content: "";
  position: absolute;
  inset: -10px;
  padding: 14px;
  border-radius: calc(var(--raio) + 10px);
  background: radial-gradient(var(--holofote) circle at calc(var(--x) + 10px) calc(var(--y) + 10px), var(--cor), transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.passo > :not(.halo) { position: relative; } /* conteúdo por cima do halo */
.passo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.passo-num {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 54px;
  line-height: 1;
  letter-spacing: .02em;
  font-variation-settings: "opsz" 96;
  color: #C9A962;
}
.passo-icone {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: rgba(243, 235, 221, .82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.passo-icone.cheio { fill: rgba(243, 235, 221, .82); stroke: none; }
.passo h3 {
  margin: 0 0 12px;
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  font-variation-settings: "opsz" 36;
}
.passo p { margin: 0 0 28px; font-size: 16px; line-height: 1.65; color: rgba(243, 235, 221, .78); }
.passo .selo {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 235, 221, .12);
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 17px;
  color: #C9A962;
}

/* os cards sobem em sequência quando a seção aparece (só com JS) */
.com-js .passos:not(.vista) .passo { opacity: 0; translate: 0 48px; }
.com-js .passos .passo { transition-delay: calc(var(--i) * .12s); }
.com-js .passos.vista .passo:hover { transition-delay: 0s; }

/* =========================================================
   4. CONTATO — o cartaz fecha a página
   ========================================================= */

.contato {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(112px, 13vw, 176px) var(--miolo) clamp(104px, 12vw, 160px);
  background: radial-gradient(ellipse 72% 70% at 50% 46%, var(--vermelho-claro) 0%, var(--vermelho) 44%, var(--vermelho-fundo) 76%, #3E1610 100%);
}
.raios-final, .grao-final { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.raios-final {
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(222, 178, 104, .12) 0deg 1.1deg, transparent 1.1deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, transparent 4%, #000 12%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 30%, transparent 4%, #000 12%, transparent 62%);
}
.grao-final { background: url("assets/fundos/grao.svg"); mix-blend-mode: multiply; opacity: .3; }
.contato-estoile { width: clamp(84px, 9vw, 120px); fill: none; stroke: var(--ouro); stroke-width: 2.2; overflow: visible; }
.contato h2 {
  max-width: 14ch;
  margin: 32px auto 20px;
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.contato p {
  max-width: 40ch;
  margin: 0 auto 36px;
  font-family: var(--fonte-titulo);
  font-size: 20px;
  line-height: 1.45;
  font-variation-settings: "opsz" 18;
  text-wrap: balance;
}

/* =========================================================
   Rodapé
   ========================================================= */

.rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--miolo);
  background: var(--queimado);
  color: rgba(243, 235, 221, .78);
  font-size: 14px;
}
.rodape-marca svg { width: 116px; height: auto; display: block; fill: var(--creme); overflow: visible; }
/* Selo de endosso da marca-mãe: EB Garamond em caixa alta espaçada (regra do 01-ARCANTA/LEIA-ME.md) */
.selo-arcanta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, .9);
}
/* símbolo da ARCANTA (versão pequena, feita para 24–48 px): presente, mas abaixo do texto em peso */
.selo-arcanta img { height: 24px; width: auto; opacity: .78; flex: none; }

/* ---------- Celular ---------- */

@media (max-width: 760px) {
  .trabalhos-cabeca { top: 38px; flex-direction: column; gap: 6px; }
  .trabalhos-cabeca p { font-size: 16px; }
  .trabalhos { padding: 190px 24px 100px; }
  .projeto { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; }
  .projeto:nth-child(even) { grid-template-columns: 1fr; }
  .projeto:nth-child(even) .pasta { order: 0; }

  .passos { grid-template-columns: 1fr; gap: 20px; }
  .passo { padding: 28px 24px 24px; }
  .passo-topo { margin-bottom: 28px; }
  .passo-num { font-size: 46px; }

  .contato p { font-size: 18px; }
  .rodape { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .com-js .passos:not(.vista) .passo { opacity: 1; translate: none; }
  .passo:hover { translate: none; }
}
