/* ============================================================
   STUDIO TEX — Web Design
   Design system: baseado na extração DESIGN.md da Impero
   Tipografia: Degular Display + HK Grotesk + Times New Roman
   ============================================================ */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Degular Display";
  src: url("../fonts/DegularDisplayDemo-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Degular Display";
  src: url("../fonts/DegularDisplayDemo-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Degular Display";
  src: url("../fonts/DegularDisplayDemo-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/HKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/HKGrotesk-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/HKGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/HKGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/HKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens (DESIGN.md Impero) ---------- */
:root {
  --lime: #eeff04;       /* amarelo-lime / acid yellow — o sinal da marca */
  --ink: #121212;        /* preto imersivo */
  --charcoal: #242424;   /* texto principal */
  --paper: #f8f6f3;      /* off-white quente */
  --white: #ffffff;
  --grey: #8d8d8d;       /* texto muted (sobre fundo ESCURO — ~5.9:1) */
  --grey-on-light: #5e5e5e; /* muted sobre fundo CLARO (~5.8:1, passa AA) */
  --border: #dadada;     /* hairline */

  --display: "Degular Display", "Arial Black", sans-serif;
  --grotesk: "HK Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, serif;

  --maxw: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Magnetismo: o scroll "imanta" e centraliza o conteúdo das seções */
  scroll-snap-type: y proximity;
}

/* Seções que preenchem toda a altura da tela e centralizam o conteúdo */
.section--full {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
}
.section--full > .wrap,
.section--full > .bio { width: 100%; }

/* Pontos de imantação — o centro da seção encaixa no centro da viewport */
.snap { scroll-snap-align: center; }

body {
  font-family: var(--grotesk);
  background: var(--paper);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Foco visível para teclado (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--ink :focus-visible, .site-footer :focus-visible, .hero :focus-visible {
  outline-color: var(--lime);
}

/* ---------- Acentos lime: elipse + sublinhado ---------- */
.ring { position: relative; display: inline-block; padding: 0 .12em; }
.ring::before {
  content: ""; position: absolute; left: -.16em; top: 48%;
  width: calc(100% + .32em); height: 1.35em;
  transform: translateY(-50%) rotate(-3.5deg);
  border: 3px solid var(--lime); border-radius: 50%;
  pointer-events: none;
}
.hl {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.28em;
  padding: 0 .04em;
}

/* ---------- Botões (pílula, hover invertido) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--grotesk); font-size: .85rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  padding: .85rem 1.4rem; border-radius: 9999px;
  border: 2px solid var(--charcoal); background: var(--lime);
  color: var(--charcoal); cursor: none;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--charcoal); color: var(--lime); border-color: var(--charcoal); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--lime); color: var(--charcoal); }
.btn--light { border-color: var(--white); background: var(--lime); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  padding: 1.4rem 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: difference;     /* logo/menu legível sobre claro e escuro */
}
.site-header .logo { width: clamp(120px, 14vw, 170px); }
.site-header .logo svg, .site-header .logo img { width: 100%; height: auto; filter: none; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--white);
  transition: color .2s ease; padding: .4rem 0;
}
.nav a:hover { color: var(--lime); }

/* botão hambúrguer (só no mobile) */
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; padding: 10px; cursor: none; z-index: 60;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor;
  margin: 5px auto; transition: transform .25s ease, opacity .25s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  /* o mix-blend-mode fica no __inner; no mobile ele quebrava a cor do
     hambúrguer e do menu aberto (inversão sobre o conteúdo atrás). */
  .site-header,
  .site-header__inner { mix-blend-mode: normal; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh; height: 100dvh;
    z-index: 55; background: var(--ink);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    /* visibility garante que o menu FECHADO suma de fato (não vaza itens) mesmo
       que o transform falhe; some só depois do slide (delay .4s). */
    visibility: hidden;
    transition: transform .4s ease, visibility 0s linear .4s;
    pointer-events: none;
  }
  body.nav-open .nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform .4s ease, visibility 0s;
    pointer-events: auto;
  }
  .nav a { font-size: 1.6rem; padding: .4rem 1rem; }
}

/* ---------- HERO (responsivo: ocupa a tela, mas cresce se o conteúdo não couber) ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;  /* svh evita corte com a barra do mobile */
  overflow: hidden;
  background: var(--ink); color: var(--white);
  display: flex;
}
/* canvas = camada FIXA transparente, ENTRE o fundo sólido das seções e o texto.
   Cada seção mantém sua própria cor (corte seco); só a coroa muda de cor. */
#scene {
  position: fixed; inset: 0; z-index: 1; display: block; pointer-events: none;
  transition: opacity .3s ease;
}
/* conteúdo do hero acima do canvas */
.hero-inner { z-index: 2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 48%, rgba(0,0,0,.55));
}

/* coluna central: flex que centraliza o conteúdo na vertical, reservando
   espaço no topo para o header e embaixo para a seta de scroll. Se o conteúdo
   for maior que a tela (telas baixas), o hero cresce em vez de sobrepor. */
.hero-inner {
  position: relative;
  display: flex; align-items: center;
  width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(5rem, 13vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  z-index: 3; pointer-events: none;
}

/* grupo texto: label + título empilhados, lado esquerdo */
.hero-content {
  position: relative;
  max-width: 55%; z-index: 3;
}

/* label: acima do slogan, flui naturalmente */
.hero-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.35;
  margin-bottom: clamp(.6rem, 2vh, 1.5rem); color: var(--grey);
}

/* headline: logo abaixo do label, linhas escalonadas */
.hero-title {
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--display); font-weight: 900;
  /* escala pela MENOR entre largura e altura → tamanho ideal em qualquer tela */
  font-size: clamp(1.9rem, min(6.6vw, 9.2vh), 6.5rem); line-height: .9; letter-spacing: -.02em;
  text-align: left;
}
.hero-title span { display: block; }
.hero-title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-title .hl1 { margin-left: 0; }
.hero-title .hl2 { margin-left: .6em; }
.hero-title .hl3 { margin-left: 2.4em; }
.hero-title .hl4 { margin-left: .9em; }
/* sublinhado lime em "despercebidos" */
.hero-title .hl4 {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 100% 0.06em; padding-bottom: 0.06em; width: fit-content;
}

/* créditos: base esquerda da coluna */
.hero-awards {
  position: absolute; left: 0; bottom: 8%;
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
}
.award strong {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; font-weight: 400; margin-bottom: .35rem;
}
.award span {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--grey); line-height: 1.3; max-width: 16ch;
}
/* telas médias: o texto ocupa mais largura e o escalonamento das linhas diminui */
@media (max-width: 1100px) {
  .hero-content { max-width: 70%; }
  .hero-title .hl3 { margin-left: 1.6em; }
}
@media (max-width: 900px) {
  .hero-content { max-width: 88%; }
  .hero-title .hl2 { margin-left: .4em; }
  .hero-title .hl3 { margin-left: 1em; }
  .hero-title .hl4 { margin-left: .5em; }
}
@media (max-width: 760px) {
  .hero-content { max-width: 100%; }
  .hero-label { margin-bottom: 1rem; }
  .hero-title {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }
  /* zera o escalonamento no mobile p/ evitar scroll horizontal */
  .hero-title .hl1, .hero-title .hl2, .hero-title .hl3, .hero-title .hl4 { margin-left: 0; }
  .hero-awards { gap: 1.2rem; bottom: 6%; flex-wrap: wrap; }
  .award strong { font-size: .9rem; }
}

.scroll-hint {
  position: absolute; bottom: 2rem; right: 0; z-index: 3;
  font-size: 1.4rem; color: var(--white); animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* hero: subheadline + CTA + prova social */
.hero-sub {
  margin-top: clamp(.8rem, 2.4vh, 1.6rem); max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.78);
}
.hero-sub strong { color: var(--lime); font-weight: 600; }
.hero-cta { margin-top: clamp(1rem, 2.8vh, 1.9rem); pointer-events: auto; }
.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: .9rem 2rem;
  margin-top: clamp(1rem, 3vh, 2.2rem);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-trust .dot { width: 9px; height: 9px; background: var(--lime); display: inline-block; }

/* telas BAIXAS (notebooks / paisagem): compacta para o CTA caber na 1ª tela.
   Fica DEPOIS das regras base do hero para vencer por ordem em cascata. */
@media (max-height: 700px) and (min-width: 761px) {
  .hero-trust { display: none; }
  .scroll-hint { display: none; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .hero-sub { display: none; }
}

/* ---------- Seções genéricas ---------- */
.section { position: relative; padding: clamp(4rem, 10vw, 9rem) var(--gutter); }
.section--ink { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); }
/* 2ª seção: a coroa (canvas) passa por cima do fundo paper; o texto fica acima dela */
#estudio .wrap { position: relative; z-index: 2; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--grey-on-light); margin-bottom: 1.5rem;
}
.section--ink .eyebrow { color: var(--lime); }

/* ---------- BIO ---------- */
.bio { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.bio__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; letter-spacing: -.02em;
}
.bio__title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.bio__text {
  font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.5; max-width: 40ch;
  margin-left: auto;
}
@media (min-width: 900px) {
  .bio { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* ---------- CASCATA TIPOGRÁFICA (estilo pôster) ---------- */
.cascade {
  position: relative; text-align: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 8vw, 7rem);
  border: 1px solid var(--border);
  background:
    /* bullets quadrados nos 4 cantos internos */
    none;
}
/* bullets quadrados decorativos */
.cascade .sq {
  position: absolute; width: 9px; height: 9px; background: var(--charcoal);
}
.cascade .sq.tl { top: 1.6rem; left: 1.6rem; }
.cascade .sq.tr { top: 1.6rem; right: 1.6rem; }
.cascade .sq.bl { bottom: 1.6rem; left: 1.6rem; }
.cascade .sq.br { bottom: 1.6rem; right: 1.6rem; }
.cascade .sq.ml { top: 50%; left: 1.6rem; }
.cascade .sq.mr { top: 50%; right: 1.6rem; }

.cascade__words {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: baseline; gap: .1em .5em; line-height: 1.18;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(.95rem, 2.1vw, 1.7rem); letter-spacing: -.01em;
  text-transform: uppercase; color: var(--charcoal);
}
.cascade__words .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.cascade__big {
  display: block; width: 100%;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 8rem); line-height: 1; letter-spacing: -.03em;
  margin: .25em 0;
}
.cascade__head, .cascade__date {
  font-family: var(--display); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
}
.cascade__head { font-size: clamp(1.8rem, 6vw, 4.2rem); margin-bottom: .6em; }

/* ---------- PROJETOS ---------- */
.projects__head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem);
}
.projects__head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.02em;
}
.projects__head h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.proj-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 760px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
.proj {
  display: block; border: 1px solid var(--border); background: var(--white);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; cursor: none;
}
.proj:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--charcoal); }
.proj__media {
  aspect-ratio: 16 / 11; background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-size: clamp(2rem,5vw,3.5rem);
  letter-spacing: -.02em;
}
.proj__meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; }
.proj__meta h3 { font-size: 1.25rem; font-weight: 600; }
.proj__meta span { font-size: .8rem; color: var(--grey-on-light); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- CONTATO ---------- */
.contact { text-align: center; }
.contact h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 8rem); line-height: .95; letter-spacing: -.03em;
  margin-bottom: 2rem;
}
.contact h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Texto multi-parágrafo (seção problema) ---------- */
.bio__text p + p { margin-top: 1rem; }
.bio__text strong { font-weight: 700; }

/* ---------- Título de seção genérico ---------- */
.section-title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 4.6rem); line-height: .95; letter-spacing: -.02em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-title em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Benefícios ---------- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 3rem 3.5rem; } }
.benefit__num {
  font-family: var(--display); font-weight: 900; font-size: 1rem; color: var(--lime);
  display: block; margin-bottom: 1rem; letter-spacing: .06em;
}
.benefit h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.1; margin-bottom: .7rem; }
.benefit p { font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,.72); max-width: 44ch; }

/* ---------- A SOLUÇÃO (fundo transiciona no scroll) ---------- */
.sol { background: #e9e6df; color: var(--charcoal); }
.sol .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
/* Cabeçalho "A solução" — primeira tela da seção, sozinho e centralizado,
   com o mesmo magnetismo (snap) dos demais itens. */
.sol__head {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;  /* centro VERTICAL, texto à esquerda */
  scroll-snap-align: center;
  padding-top: 0; padding-bottom: 0;
}
.sol__head .section-title { margin-bottom: 0; }
/* cada item (01–04) ocupa a tela inteira e imanta centralizado ao rolar */
.sol-step {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  scroll-snap-align: center;
}
.sol-step__inner {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem 4rem; width: 100%; align-items: center;
}
@media (min-width: 900px) {
  .sol-step__inner { grid-template-columns: 1.25fr 1fr; }
  .sol-step:nth-child(even) .sol-step__head { order: 2; }
  .sol-step:nth-child(even) .sol-step__text { order: 1; }
}
.sol-step__head { display: flex; align-items: baseline; gap: .7rem; }
.sol-step__num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.7rem); flex: none;
}
.sol-step__head h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.02em;
}
.sol-step__text {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 42ch; color: #2b2b2b;
}
/* rise mais pronunciado nesta seção */
.sol-step__head[data-reveal], .sol-step__text[data-reveal] { transform: translateY(50px); }
.sol-step__text[data-reveal] { transition-delay: .12s; }

/* ---------- MOBILE: "A solução" com efeito overlay scroll ----------
   Cada item (01–04) vira um painel de tela cheia que SOBE e cobre o anterior
   (mesma linguagem da seção "Como funciona"). O conteúdo de cada painel emerge
   via [data-reveal] ao entrar na tela. Só no mobile — o desktop fica intacto. */
@media (max-width: 760px) {
  /* sem magnetismo (snap) no mobile — rolagem livre com o dedo */
  html { scroll-snap-type: none; }

  .sol-step {
    position: sticky;
    top: 0;
    height: 100vh; height: 100dvh;
    min-height: 100vh; min-height: 100dvh;
    /* fundo sólido (cor do próprio item) cobre o painel anterior ao subir */
    background: var(--sol-bg, #e9e6df);
    scroll-snap-align: none;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.14); /* profundidade ao sobrepor */
  }
  .sol__head { scroll-snap-align: none; }
}

/* ---------- Overlay Scroll + revelação travada ("Como funciona") ----------
   Fase 1 (overlay): "A solução" fixa quando seu rodapé toca a base da tela e
   "Como funciona" sobe POR CIMA dela (top dinâmico definido via JS).
   Fase 2 (revelação): quando #processo cobre a tela inteira, ele trava e os
   3 passos são revelados um a um conforme o scroll avança na trilha. */
.overlay-wrap {
  position: relative;
  /* NUNCA usar overflow: hidden aqui — quebraria o sticky */
}
#solucao {
  position: sticky;     /* top calculado dinamicamente no JS (100vh − altura) */
  z-index: 1;           /* camada de baixo — será coberta por #processo */
}
.processo-track {
  position: relative;
  z-index: 2;           /* camada de cima — sobe sobre #solucao */
  height: 400vh;        /* ~300vh de revelação (trilha − viewport) */
}
.overlay-section {
  position: sticky;
  top: 0;
  height: 100vh; height: 100dvh;
  background: var(--paper);   /* fundo sólido obrigatório para cobrir a anterior */
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.18); /* profundidade ao subir */
}
.overlay-section .wrap {
  width: 100%;
}

/* MOBILE: "Como funciona" sem pin/clip — os 3 passos empilham e NÃO cabem em
   100vh; o overflow:hidden cortava o conteúdo. Volta ao fluxo natural (sem corte).
   Colocado APÓS as regras desktop para vencer na ordem da cascata. */
@media (max-width: 760px) {
  .processo-track { height: auto; }
  .overlay-section {
    position: static;
    height: auto; min-height: auto;
    overflow: visible;
    box-shadow: none;
  }
}

/* ---------- Como funciona (passos) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.8rem; } }
.step { border-top: 2px solid var(--charcoal); padding-top: 1.4rem; }
.step__num {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1; display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .6rem; }
.step p { font-size: 1.02rem; line-height: 1.55; color: var(--grey-on-light); }

/* ---------- Serviços (cards) ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  border: 1px solid rgba(255,255,255,.2); padding: 2.2rem 1.9rem; cursor: none;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
/* hover só onde há ponteiro real (desktop) — evita "tap = hover" no mobile,
   que ativava o card por toque. No mobile vale só a ativação automática (JS). */
@media (hover: hover) {
  .service:hover { background: var(--lime); color: var(--ink); transform: translateY(-6px); }
}
.service h3 {
  font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1; margin-bottom: 1rem; letter-spacing: -.01em;
}
.service p { font-size: 1.02rem; line-height: 1.55; color: rgba(255,255,255,.72); }
@media (hover: hover) { .service:hover p { color: rgba(18,18,18,.82); } }

/* MOBILE: sem hover, o card é ativado pelo scroll (centro no meio da tela).
   Espelha exatamente o estado :hover. Só um fica ativo por vez (controle no JS). */
@media (max-width: 760px) {
  .services .service.is-active { background: var(--lime); color: var(--ink); transform: translateY(-6px); }
  .services .service.is-active p { color: rgba(18,18,18,.82); }
}

/* ---------- FAQ (accordion nativo <details>) ---------- */
.faq { max-width: 62rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: none; padding: 1.4rem 0; display: flex;
  justify-content: space-between; align-items: center; gap: 1.2rem;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.55rem); line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--grotesk); font-weight: 400; font-size: 1.7em; line-height: 1;
  transition: transform .25s ease; flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.6rem; font-size: 1.05rem; line-height: 1.6; color: var(--grey-on-light); max-width: 64ch; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 6rem); line-height: .98; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.cta-final__title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.cta-final__body {
  max-width: 54ch; margin: 0 auto 2.2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.8);
}
.cta-final__note { margin-top: 1.4rem; font-size: .85rem; color: var(--grey); }

/* ---------- FOOTER ---------- */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: var(--white); padding: clamp(3rem,7vw,5rem) var(--gutter) 3rem; }
.footer-big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.02em;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.footer-big em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; border-top: 1px solid #333; padding-top: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: 1rem; }
.footer-col p, .footer-col a { font-size: 1rem; line-height: 1.6; }
.footer-col a:hover { color: var(--lime); }
.footer-logo { width: 180px; margin-bottom: 1.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .8rem; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Cursor lime ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); pointer-events: none; z-index: 100;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, border .25s; will-change: transform;
}
.cursor.is-hover { width: 80px; height: 80px; background: transparent; border: 2px solid var(--lime); }
@media (max-width: 900px) { .cursor { display: none; } }

/* ---------- "Para quem é": imagem de fundo ---------- */
.section--banner {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(18,18,18,.80), rgba(18,18,18,.88)),
    url("../assets/bg_banner.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px) {
  /* attachment fixed costuma falhar em mobile → volta ao comportamento padrão */
  .section--banner { background-attachment: scroll; }
}

/* ---------- Assinatura final: logo gigante após o rodapé ---------- */
.brand-outro {
  background: var(--ink);
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) clamp(.75rem, 2vw, 1.25rem);
}
.brand-outro .wrap { max-width: var(--maxw); margin: 0 auto; }
.brand-outro__logo { width: 100%; height: auto; display: block; }

/* ---------- Reveal no scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Preferência de movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .scroll-hint { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Links legais (discretos no rodapé) ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a {
  color: var(--grey); font-size: inherit; letter-spacing: inherit;
  opacity: .7; transition: color .2s ease, opacity .2s ease;
}
.footer-legal a:hover { color: var(--lime); opacity: 1; }

/* ---------- Páginas legais (Política / Termos) ---------- */
.legal-page { background: var(--paper); }
.legal {
  max-width: 820px; margin: 0 auto;
  padding: clamp(8rem, 16vw, 11rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.legal__wrap { color: var(--charcoal); }
.legal__eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--grey-on-light); margin-bottom: .75rem;
}
.legal__title {
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -.02em; margin-bottom: .6rem;
}
.legal__title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.legal__updated { color: var(--grey-on-light); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.01em;
  margin: 2.5rem 0 .8rem;
}
.legal p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { font-size: 1.05rem; line-height: 1.7; margin-bottom: .4rem; }
.legal strong { font-weight: 600; }
.legal a {
  color: var(--charcoal); text-decoration: underline;
  text-decoration-color: var(--lime); text-decoration-thickness: 2px;
  text-underline-offset: 3px; transition: color .2s ease;
}
.legal a:hover { color: var(--grey-on-light); }
.legal__back { margin-top: 3rem; }
.legal__back a { text-decoration: none; font-weight: 600; }

/* ---------- Aviso de cookies (LGPD) ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 1.5rem);
  transform: translateX(-50%) translateY(140%);
  z-index: 90; width: min(680px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  background: var(--ink); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: transform .45s ease, opacity .45s ease;
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-banner__text { flex: 1 1 280px; font-size: .92rem; line-height: 1.55; color: #d8d8d8; }
.cookie-banner__text a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: var(--grotesk); font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  padding: .65rem 1.2rem; border-radius: 9999px; cursor: none;
  border: 2px solid var(--lime); background: var(--lime); color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.cookie-banner__btn:hover { background: transparent; color: var(--lime); }
.cookie-banner__btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.cookie-banner__btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (max-width: 900px) { .cookie-banner__btn { cursor: pointer; } }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__actions { justify-content: flex-end; }
}
