/* Entry Studio Digital · site vitrine (v2)
   Mesmos padrões da marca (preto, grafite, dourado, off-white; Libre Baskerville + Manrope),
   com movimento guiado pela rolagem (GSAP + ScrollTrigger + Lenis). */

:root {
  --preto: #0F0F0F;
  --grafite: #2A2A2A;
  --dourado: #C8A96E;
  --dourado-claro: #DCC494;
  --offwhite: #F5F5F0;
  --creme: #F2EEE6;
  --branco: #FFFFFF;
  --cinza: #9A9A94;
  --cinza-escuro: #5E5E58;
  --linha-escura: rgba(255, 255, 255, .1);
  --linha-clara: rgba(15, 15, 15, .12);

  --serifa: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --largura: 1200px;
  --sec: clamp(88px, 11vw, 150px);
  --curva: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--offwhite);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }

/* ---------- Marca ---------- */

.porta { display: block; width: 26px; height: auto; overflow: visible; }
.porta__batente { fill: none; stroke: var(--branco); stroke-width: 3.5; }
.porta__folha { fill: var(--grafite); stroke: var(--dourado); stroke-width: 1.4; stroke-linejoin: round; }
.porta__macaneta { fill: var(--dourado); }

.marca { display: inline-flex; align-items: center; gap: 12px; }
.marca__txt { display: grid; gap: 3px; line-height: 1; }
.marca__nome { font-family: var(--serifa); font-weight: 700; font-size: 20px; letter-spacing: .28em; }
.marca__sub { font-size: 8.5px; font-weight: 600; letter-spacing: .42em; color: var(--dourado); }

/* ---------- Textos comuns ---------- */

.sobretitulo {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--dourado);
}
.sobretitulo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dourado); }
.sobretitulo--escuro { color: #8A7449; }
.sobretitulo--escuro::before { background: #8A7449; }

.titulo {
  font-family: var(--serifa); font-weight: 400;
  font-size: clamp(36px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -.02em;
  text-wrap: balance;
}
.titulo em, .topo__titulo em { font-style: italic; color: var(--dourado); }

/* Palavras e linhas que entram (montadas pelo script) */
.linha { display: block; overflow: hidden; padding-bottom: .24em; margin-bottom: -.16em; }
.linha > span { display: inline-block; will-change: transform; }
.pal { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.pal > span { display: inline-block; will-change: transform; }

/* ---------- Botões ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
  overflow: hidden; isolation: isolate;
  transition: background-color .25s ease, color .25s ease;
}
.btn > span { position: relative; z-index: 1; display: inline-block; }
.btn--p { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--g { min-height: 64px; padding: 0 40px; font-size: 16px; }
.btn--ouro { background: var(--dourado); color: var(--preto); }
.btn--ouro::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--offwhite); transform: translateY(101%); transition: transform .5s var(--curva);
}
.btn--ouro:hover::before { transform: none; }

/* ---------- Abertura (porta que se desenha ao carregar) ---------- */

.abertura { display: none; }
.js .abertura {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--preto);
  animation: abertura-sai .01s 5s forwards; /* segurança: some mesmo se o script falhar */
}
@keyframes abertura-sai { to { visibility: hidden; opacity: 0; } }
.abertura__porta { width: 62px; overflow: visible; }
.abertura__batente { fill: none; stroke: var(--offwhite); stroke-width: 3.5; stroke-dasharray: 300; stroke-dashoffset: 300; }
.abertura__folha { fill: var(--grafite); stroke: var(--dourado); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transform-origin: 15px 44px; }
.abertura__macaneta { fill: var(--dourado); opacity: 0; }

/* ---------- Cursor (só com mouse) ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-ativo .cursor {
    opacity: 0;
    position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    display: grid; place-items: center;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--dourado);
    transition: width .35s var(--curva), height .35s var(--curva), margin .35s var(--curva), background-color .3s;
  }
  .cursor-ativo .cursor.vivo { opacity: 1; }
  .cursor-ativo .cursor.grande { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(200, 169, 110, .94); }
  .cursor__txt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--preto); opacity: 0; transition: opacity .2s; }
  .cursor.grande .cursor__txt { opacity: 1; transition-delay: .1s; }
}

/* ---------- Navegação ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s ease, border-color .4s ease, transform .5s var(--curva);
  border-bottom: 1px solid transparent;
}
.nav.solida {
  background: rgba(15, 15, 15, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--linha-escura);
}
.nav.escondida { transform: translateY(-100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.nav__botao {
  display: grid; gap: 7px; place-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav__botao span { display: block; width: 24px; height: 2px; background: var(--offwhite); transition: transform .25s ease; }
.nav__botao[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__botao[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.nav__menu {
  position: absolute; inset: 72px 0 auto 0;
  display: none; flex-direction: column; align-items: center; gap: 22px;
  padding: 28px var(--gutter) 34px;
  background: var(--preto); border-bottom: 1px solid var(--linha-escura);
  font-size: 15px; font-weight: 500;
}
.nav__menu.aberto { display: flex; }
.nav__menu a:not(.btn) { color: var(--cinza); transition: color .2s ease; }
.nav__menu a:not(.btn):hover { color: var(--offwhite); }

@media (min-width: 900px) {
  .nav__botao { display: none; }
  .nav__menu { position: static; display: flex; flex-direction: row; gap: 34px; padding: 0; background: none; border: 0; font-size: 14px; }
  .nav__menu .btn { transition: opacity .35s ease, transform .35s var(--curva), visibility .35s, background-color .25s ease, color .25s ease; }
  .no-topo .nav__menu .btn { opacity: 0; visibility: hidden; transform: translateY(-6px); }
}

/* ---------- 1. Topo com a porta ---------- */

.topo { position: relative; background: var(--preto); }
.topo__palco { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.topo__grao {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 55%, rgba(200, 169, 110, .13), transparent 70%),
    radial-gradient(40% 40% at 15% 20%, rgba(255, 255, 255, .04), transparent 70%);
}
.topo__in {
  position: relative; display: grid; gap: 40px; justify-items: center; text-align: center;
  padding: 110px 0 90px;
}
.topo__txt { display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; }
.topo__titulo {
  font-family: var(--serifa); font-weight: 400;
  font-size: clamp(46px, 8.4vw, 116px); line-height: 1; letter-spacing: -.03em;
}
.topo__sub { max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(245, 245, 240, .72); text-wrap: balance; }
@media (min-width: 600px) { .topo__sub { max-width: none; white-space: nowrap; } }
.topo__acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 6px; }
.topo__link { font-size: 15px; font-weight: 600; color: var(--offwhite); border-bottom: 1px solid rgba(245, 245, 240, .3); padding-bottom: 2px; transition: border-color .25s, color .25s; }
.topo__link:hover { color: var(--dourado); border-color: var(--dourado); }

.topo__rola {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2;
  display: none; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--cinza);
}
.topo__rola i { position: relative; width: 1px; height: 34px; background: rgba(245, 245, 240, .18); overflow: hidden; }
.topo__rola i::after { content: ""; position: absolute; inset: 0; background: var(--dourado); animation: rola 2.2s var(--curva) infinite; }
@keyframes rola { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* A porta em 3D */
.cena { position: relative; z-index: 1; perspective: 1400px; perspective-origin: 50% 40%; }
.cena__porta {
  --abre: 0deg; --ent: 0deg; --bat: clamp(5px, .9vw, 7px);
  position: relative; width: clamp(140px, 36vw, 190px); aspect-ratio: 10 / 17;
  transform-style: preserve-3d; will-change: transform;
}
.cena__vao {
  position: absolute; inset: var(--bat); border-radius: 2px; overflow: hidden;
  background: var(--creme);
}
.cena__luz {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 45%, #FFFDF7, transparent 75%),
    linear-gradient(180deg, #F6F1E6, var(--creme));
}
.cena__folha {
  position: absolute; inset: var(--bat); transform-origin: left center;
  transform: rotateY(calc(-1 * (var(--abre) + var(--ent))));
  background: linear-gradient(100deg, #333 0%, var(--grafite) 45%, #222 100%);
  border: 1.5px solid var(--dourado); border-radius: 2px;
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .12), 18px 0 40px rgba(0, 0, 0, .45);
}
.cena__folha i { position: absolute; right: 11%; top: 52%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--dourado); box-shadow: 0 0 12px rgba(200, 169, 110, .6); }
.cena__batente { position: absolute; inset: 0; border: var(--bat) solid var(--offwhite); border-bottom-width: 0; border-radius: 5px 5px 0 0; pointer-events: none; }
.cena__chao {
  position: absolute; left: -30%; right: -30%; top: 100%; height: 70%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(245, 225, 180, .3), transparent 70%);
  opacity: var(--chao, .35); pointer-events: none;
}

@media (min-width: 900px) {
  .topo__in { grid-template-columns: 1.25fr .75fr; justify-items: start; text-align: left; gap: 40px; padding: 120px 0 100px; }
  .topo__txt { justify-items: start; }
  .topo__acoes { justify-content: flex-start; }
  .cena { justify-self: center; }
  .cena__porta { width: clamp(200px, 19vw, 280px); }
  .topo__rola { display: inline-flex; }
}

/* ---------- 2. Manifesto ---------- */

/* Com movimento, a frase entra dentro da própria tela da porta (sem vazio creme); a seção separada só existe sem script */
.topo__manifesto { display: none; }
/* sem animação, a porta fica entreaberta parada */
html:not(.porta-movel) .cena__porta { --ent: 14deg; }
.porta-movel .topo__manifesto {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  padding: 0 var(--gutter); color: var(--preto); opacity: 0; pointer-events: none;
}
.porta-movel .manifesto { display: none; }

.manifesto { background: var(--creme); color: var(--preto); padding: clamp(40px, 5vw, 64px) 0 var(--sec); }
.manifesto__txt {
  max-width: 22ch; margin-inline: auto;
  font-family: var(--serifa); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.2; letter-spacing: -.015em;
  text-align: center; text-wrap: balance;
}
.manifesto__txt .nw { white-space: nowrap; }
.manifesto__txt em { display: block; margin-top: .25em; font-style: italic; color: #8A7449; }
.manifesto__txt .w { transition: none; }

/* ---------- 3. Trabalhos ---------- */

.trabalhos { background: var(--creme); color: var(--preto); padding-bottom: var(--sec); }
.trabalhos__topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.trabalhos__topo .titulo { margin-top: 14px; }
.trabalhos__conta { display: none; font-family: var(--serifa); font-size: 18px; color: var(--cinza-escuro); white-space: nowrap; }
.trabalhos__conta b { font-weight: 400; color: var(--preto); font-size: 30px; }
.trabalhos__barra { display: none; }

.trilho { display: grid; gap: 64px; width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }
.obra { display: grid; gap: 20px; align-content: start; }
.obra__txt { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.obra__n { grid-row: span 2; font-family: var(--serifa); font-size: 15px; color: #8A7449; }
.obra__txt h3 { font-family: var(--serifa); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.obra__txt p { font-size: 15px; color: var(--cinza-escuro); }

.janela {
  display: block; border-radius: 12px; overflow: hidden; background: var(--branco);
  box-shadow: 0 40px 70px -40px rgba(15, 15, 15, .55), 0 0 0 1px rgba(15, 15, 15, .06);
}
.janela__barra { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--grafite); }
.janela__barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; }
.janela__barra i:first-child { background: var(--dourado); }
.janela__barra span { margin-left: 14px; font-size: 11.5px; letter-spacing: .02em; color: rgba(245, 245, 240, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.janela__tela { aspect-ratio: 16 / 10; overflow: hidden; }
.janela__tela img { width: 100%; will-change: transform; }

.aparelho {
  display: block; position: relative; width: 100%; aspect-ratio: 9 / 18.6;
  border: 7px solid #161616; border-radius: 34px; overflow: hidden; background: #161616;
  box-shadow: 0 40px 60px -34px rgba(15, 15, 15, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.aparelho__tela { position: absolute; inset: 0; overflow: hidden; border-radius: 27px; background: var(--branco); }
.aparelho__tela img { width: 100%; will-change: transform; }
.obra--cel .aparelho { width: min(260px, 70vw); justify-self: center; }

.trio { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; padding: 20px 0; }
.trio .aparelho { border-width: 6px; border-radius: 30px; }
.trio .aparelho__tela { border-radius: 24px; }
.aparelho--a { transform: translateX(14%) rotate(-7deg) scale(.9); z-index: 1; }
.aparelho--b { z-index: 2; }
.aparelho--c { transform: translateX(-14%) rotate(7deg) scale(.9); z-index: 1; }
.aparelho--a .aparelho__tela, .aparelho--c .aparelho__tela { filter: brightness(.94); }

/* Sistema: painel desenhado (não é print de cliente) */
.painel {
  display: grid; grid-template-columns: 30% 1fr; border-radius: 14px; overflow: hidden;
  background: var(--branco); aspect-ratio: 16 / 10.4;
  box-shadow: 0 40px 70px -40px rgba(15, 15, 15, .55), 0 0 0 1px rgba(15, 15, 15, .06);
  font-size: clamp(9px, 1vw, 13px);
}
.painel__lado { display: grid; align-content: start; gap: .6em; padding: 1.6em 1.2em; background: var(--preto); color: rgba(245, 245, 240, .6); }
.painel__lado .porta { width: 1.9em; margin-bottom: 1.2em; }
.painel__item { padding: .55em .9em; border-radius: 6px; font-weight: 600; }
.painel__item--ativo { background: rgba(200, 169, 110, .16); color: var(--dourado); }
.painel__main { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.1em; padding: 1.5em 1.6em; background: #FAF8F3; }
.painel__cab { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.painel__cab b { padding: .5em 1em; border-radius: 99px; background: var(--preto); color: var(--offwhite); font-size: .9em; }
.painel__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.painel__card { display: grid; gap: .6em; padding: .9em 1em; border-radius: 8px; background: var(--branco); box-shadow: 0 0 0 1px rgba(15, 15, 15, .06); }
.painel__card small { font-size: .85em; color: var(--cinza-escuro); font-weight: 600; }
.painel__card i { height: .9em; width: 70%; border-radius: 4px; background: rgba(15, 15, 15, .14); }
.painel__card--ouro i { background: var(--dourado); }
.painel__grafico { display: flex; align-items: flex-end; gap: 4%; min-height: 4em; padding: .6em .2em 0; border-bottom: 1px solid rgba(15, 15, 15, .14); }
.painel__grafico i { flex: 1; border-radius: 3px 3px 0 0; background: rgba(15, 15, 15, .12); transform-origin: bottom; height: var(--h, 50%); }
.painel__grafico i:nth-child(1) { --h: 38%; } .painel__grafico i:nth-child(2) { --h: 52%; } .painel__grafico i:nth-child(3) { --h: 44%; }
.painel__grafico i:nth-child(4) { --h: 63%; } .painel__grafico i:nth-child(5) { --h: 58%; } .painel__grafico i:nth-child(6) { --h: 71%; }
.painel__grafico i:nth-child(7) { --h: 66%; } .painel__grafico i:nth-child(8) { --h: 78%; } .painel__grafico i:nth-child(9) { --h: 74%; }
.painel__grafico i:nth-child(10) { --h: 86%; } .painel__grafico i:nth-child(11) { --h: 82%; } .painel__grafico i:nth-child(12) { --h: 96%; background: var(--dourado); }
.painel__linhas { display: grid; gap: .55em; }
.painel__linha { display: grid; grid-template-columns: 1.1em 1fr 3.5em; align-items: center; gap: .9em; padding: .55em .8em; border-radius: 6px; background: var(--branco); }
.painel__linha b { width: 1.1em; aspect-ratio: 1; border-radius: 50%; background: rgba(200, 169, 110, .35); }
.painel__linha i { height: .7em; width: var(--w); border-radius: 4px; background: rgba(15, 15, 15, .14); }
.painel__linha em { height: .7em; border-radius: 4px; background: rgba(15, 15, 15, .22); }

@media (min-width: 900px) {
  .trabalhos { padding-bottom: 0; }
  .trabalhos__fixo { height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 36px; overflow: hidden; }
  .trabalhos__topo { margin-bottom: 4vh; }
  .trabalhos__conta { display: block; }
  .trabalhos__topo .titulo { font-size: clamp(36px, 4.4vw, 64px); }
  .trilho {
    --h: min(calc(100vh - 360px), 560px);
    display: flex; align-items: flex-start; gap: 6vw; width: max-content; margin: 0;
    padding-left: max(var(--gutter), (100vw - var(--largura)) / 2); padding-right: 12vw;
    will-change: transform;
  }
  .obra { width: calc(var(--h) * 1.6); flex: none; }
  .obra .janela__tela { height: calc(var(--h) - 34px); aspect-ratio: auto; }
  .obra--cel { width: auto; }
  .obra--cel .aparelho { width: calc(var(--h) * 9 / 18.6); }
  .obra--app { width: calc(var(--h) * 1.15); }
  .obra--app .trio { height: var(--h); padding: 0; }
  .obra--app .aparelho { width: 100%; }
  .obra--sis { width: calc(var(--h) * 1.54); }
  .obra--sis .painel { height: var(--h); aspect-ratio: auto; }
  .trabalhos__barra { display: block; height: 2px; margin-top: 4vh; background: rgba(15, 15, 15, .1); border-radius: 2px; overflow: hidden; }
  .trabalhos__barra i { display: block; height: 100%; background: var(--preto); transform-origin: left; transform: scaleX(.05); }
}

/* ---------- 4. Faixa ---------- */

.faixa { background: var(--preto); padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.faixa__linha { display: flex; width: max-content; will-change: transform; }
.faixa__linha > span {
  display: flex; align-items: center; flex: none; white-space: nowrap;
  font-family: var(--serifa); font-style: italic; font-size: clamp(54px, 10vw, 150px); line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 245, 240, .5);
}
.faixa__linha > span:nth-child(odd) { }
.faixa__linha i { display: inline-block; width: .16em; height: .22em; margin: 0 .45em; border: 2px solid var(--dourado); border-radius: 2px; transform: translateY(.04em); }

/* ---------- 5. Do site ao sistema ---------- */

.escada { background: var(--preto); padding: clamp(32px, 4vw, 56px) 0 var(--sec); position: relative; }
.escada__topo { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 44px); }
.escada__sub { font-size: clamp(17px, 1.5vw, 20px); color: rgba(245, 245, 240, .68); max-width: 40ch; }
@media (min-width: 900px) { .escada__sub { max-width: none; white-space: nowrap; } }

.degraus { position: relative; display: grid; gap: 18px; }
.degraus__linha { display: none; }
.degrau {
  position: relative; display: grid; align-content: start; gap: 10px;
  padding: 26px 24px 28px; border-radius: 16px;
  background: linear-gradient(180deg, #1B1B1B, #141414);
  border: 1px solid var(--linha-escura);
  transition: border-color .35s ease;
}
.degrau:hover { border-color: rgba(200, 169, 110, .45); }
.degrau__n { font-family: var(--serifa); font-size: 14px; color: var(--dourado); }
.degrau h3 { font-family: var(--serifa); font-weight: 400; font-size: 28px; line-height: 1.2; }
.degrau p { color: rgba(245, 245, 240, .66); font-size: 16px; }
.degrau__pe { margin-top: 8px; justify-self: start; font-size: 14px; font-weight: 700; color: var(--dourado); border-bottom: 1px solid rgba(200, 169, 110, .4); padding-bottom: 2px; }
.degrau__pe:hover { border-color: var(--dourado); }
.degrau__ico { margin-bottom: 14px; }

@media (min-width: 700px) { .degraus { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .degraus { grid-template-columns: repeat(4, 1fr); align-items: start; gap: 20px; padding-top: 24px; }
  .degrau:nth-of-type(1) { margin-top: 186px; }
  .degrau:nth-of-type(2) { margin-top: 124px; }
  .degrau:nth-of-type(3) { margin-top: 62px; }
  .degraus__linha {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: 100%; width: 100%;
    overflow: visible; pointer-events: none;
  }
  .degraus__linha path { fill: none; stroke: var(--dourado); stroke-width: 1.5; stroke-linejoin: round; opacity: .7; }
}

/* ---------- 6. Como funciona ---------- */

.como { background: var(--creme); color: var(--preto); padding: var(--sec) 0; }
.como__topo { display: grid; gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.passos { position: relative; display: grid; gap: 34px; padding-left: 34px; }
.passo { position: relative; display: grid; gap: 6px; }
.passo::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--creme); border: 2px solid #8A7449; transition: background-color .3s;
}
.passo.aceso::before { background: #8A7449; }
.passo__n { font-family: var(--serifa); font-size: 14px; color: #8A7449; }
.passo h3 { font-family: var(--serifa); font-weight: 400; font-size: 28px; line-height: 1.2; }
.passo p { color: var(--cinza-escuro); font-size: 16px; max-width: 30ch; }
.passos__trilha { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: rgba(15, 15, 15, .1); }
.passos__trilha i { display: block; width: 100%; height: 100%; background: #8A7449; transform-origin: top; transform: scaleY(0); }

@media (min-width: 900px) {
  .passos { grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 44px 0 0; }
  .passo::before { left: 0; top: -44px; }
  .passos__trilha { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .passos__trilha i { transform-origin: left; transform: scaleX(0); }
}

/* ---------- 7. Chamada ---------- */

.chamada { position: relative; overflow: hidden; background: var(--preto); padding: calc(var(--sec) * 1.1) 0 clamp(56px, 6vw, 88px); text-align: center; }
.chamada__luz {
  position: absolute; left: var(--lx, 50%); top: var(--ly, 40%); width: 900px; height: 900px; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(200, 169, 110, .2), transparent);
  pointer-events: none; transition: left .6s var(--curva), top .6s var(--curva);
}
.chamada__in { position: relative; display: grid; justify-items: center; gap: 22px; }
.chamada__porta { width: 46px; overflow: visible; margin-bottom: 8px; }
.chamada__porta .porta__folha { transform-origin: 15px 44px; transition: transform .8s var(--curva); }
.chamada__porta .porta__macaneta { transition: transform .8s var(--curva); }
.chamada:hover .chamada__porta .porta__folha { transform: scaleX(.35); }
.chamada:hover .chamada__porta .porta__macaneta { transform: translateX(-24.7px); }
.chamada__titulo { font-size: clamp(42px, 7.4vw, 104px); }
.chamada__in > p { font-size: clamp(17px, 1.5vw, 20px); color: rgba(245, 245, 240, .7); margin-bottom: 12px; }
.chamada__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 10px; font-size: 15px; color: var(--cinza); }
.chamada__links a { transition: color .2s; }
.chamada__links a:hover { color: var(--dourado); }

/* ---------- Rodapé ---------- */

.rodape { border-top: 1px solid var(--linha-escura); padding: 26px 0 30px; }
.rodape__in { display: grid; gap: 18px; justify-items: center; text-align: center; }
.rodape__legal { font-size: 12.5px; color: var(--cinza); }
@media (min-width: 900px) {
  .rodape__in { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .rodape__legal { justify-self: end; }
}

/* ---------- Sem movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  .abertura, .js .abertura { display: none; }
  .topo__rola i::after, .mini *, .mini *::before { animation: none !important; }
  .btn--ouro::before, .chamada__porta .porta__folha { transition: none; }
}

/* ---------- Miniaturas animadas (vindas do site atual) ---------- */
/* Miniaturas animadas dos serviços */
.mini {
  position: relative; height: 116px; margin-bottom: 24px; overflow: hidden;
  border: 1px solid var(--linha-escura); border-radius: 10px;
  background: rgba(15, 15, 15, .55);
}
.mini i, .mini b { display: block; position: absolute; border-radius: 3px; background: rgba(245, 245, 240, .16); }

.mini--site .m-barra { inset: 0 0 auto 0; height: 16px; border-radius: 0; background: rgba(245, 245, 240, .07); }
.mini--site .m-barra::before {
  content: ""; position: absolute; left: 9px; top: 6px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--dourado); box-shadow: 8px 0 rgba(245, 245, 240, .25), 16px 0 rgba(245, 245, 240, .25);
}
.mini--site .m-bloco { left: 12px; right: 12px; top: 26px; height: 40px; background: rgba(200, 169, 110, .3); transform-origin: left; animation: mini-crescer 5s ease-in-out infinite; }
.mini--site .m-l1 { left: 12px; top: 76px; width: 58%; height: 6px; transform-origin: left; animation: mini-crescer 5s .35s ease-in-out infinite; }
.mini--site .m-l2 { left: 12px; top: 90px; width: 38%; height: 6px; transform-origin: left; animation: mini-crescer 5s .6s ease-in-out infinite; }
@keyframes mini-crescer { 0%, 6% { transform: scaleX(0); opacity: 0; } 24%, 86% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.mini--lp .m-l1 { left: 50%; top: 18px; width: 54%; height: 8px; translate: -50% 0; }
.mini--lp .m-cont { position: absolute; left: 50%; top: 40px; translate: -50% 0; display: flex; gap: 7px; }
.mini--lp .m-cont i { position: static; width: 24px; height: 26px; background: rgba(245, 245, 240, .1); animation: mini-piscar 3s ease-in-out infinite; }
.mini--lp .m-cont i:nth-child(2) { animation-delay: .25s; }
.mini--lp .m-cont i:nth-child(3) { animation-delay: .5s; }
.mini--lp .m-cont i:nth-child(4) { animation-delay: .75s; }
.mini--lp .m-botao { left: 50%; top: 80px; width: 78px; height: 18px; translate: -50% 0; border-radius: 99px; background: var(--dourado); animation: mini-pulsar 3s ease-in-out infinite; }
@keyframes mini-piscar { 0%, 100% { background: rgba(245, 245, 240, .1); } 12% { background: rgba(200, 169, 110, .55); } 30% { background: rgba(245, 245, 240, .1); } }
@keyframes mini-pulsar { 0%, 100% { scale: 1; opacity: .85; } 50% { scale: 1.07; opacity: 1; } }

.mini--app .m-fone {
  position: absolute; left: 50%; top: 12px; width: 62px; height: 122px; translate: -50% 0; overflow: hidden;
  border: 2px solid rgba(245, 245, 240, .34); border-radius: 12px;
}
.mini--app .m-fone i { left: 7px; right: 7px; height: 16px; animation: mini-subir 4.5s cubic-bezier(.3, .6, .2, 1) infinite; }
.mini--app .m-fone i:nth-child(1) { top: 14px; }
.mini--app .m-fone i:nth-child(2) { top: 36px; animation-delay: .15s; }
.mini--app .m-fone i:nth-child(3) { top: 58px; animation-delay: .3s; background: rgba(200, 169, 110, .4); }
.mini--app .m-fone i:nth-child(4) { top: 80px; animation-delay: .45s; }
.mini--app .m-fone b { right: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--dourado); animation: mini-aviso 4.5s ease-in-out infinite; }
@keyframes mini-subir { 0% { transform: translateY(46px); opacity: 0; } 22%, 84% { transform: none; opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes mini-aviso { 0%, 30% { scale: 0; } 40% { scale: 1.5; } 48%, 86% { scale: 1; } 100% { scale: 0; } }

.mini--sis { display: flex; align-items: flex-end; justify-content: center; gap: 9px; padding: 18px 20px 16px; }
.mini--sis::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 15px; height: 1px; background: rgba(245, 245, 240, .22); }
.mini--sis i { position: static; flex: 1; max-width: 22px; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: mini-barra 4s cubic-bezier(.3, .7, .2, 1) infinite; }
.mini--sis i:nth-child(1) { height: 34%; }
.mini--sis i:nth-child(2) { height: 52%; animation-delay: .12s; }
.mini--sis i:nth-child(3) { height: 44%; animation-delay: .24s; }
.mini--sis i:nth-child(4) { height: 72%; animation-delay: .36s; }
.mini--sis i:nth-child(5) { height: 96%; animation-delay: .48s; background: var(--dourado); }
@keyframes mini-barra { 0%, 4% { transform: scaleY(0); } 28%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
