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

/* ---------- Fontes ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:ital,wght@0,500;0,700;0,900;1,500;1,700;1,900&family=Libre+Franklin:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Tokens (DESIGN.md Impero) ---------- */
:root {
  --lime: #eeff04;       /* amarelo-lime / acid yellow — o sinal da marca */
  --load-green: #2bd96a; /* verde de "carregamento concluído" */
  --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: "Fira Sans Extra Condensed", "Arial Black", sans-serif;
  --grotesk: "Libre Franklin", "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;
}

/* 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%; }

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

/* Cursor custom: só esconde o cursor nativo quando o JS confirma que o
   cursor lime está ativo (classe adicionada em ui.js). Se o script falhar,
   o cursor nativo permanece — sem tela "sem cursor". */
body.cursor-custom, body.cursor-custom * { cursor: none; }

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

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .8rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* 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;
  min-height: 44px;
  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);
  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; 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: 65%; 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 reduzida para caber na lateral esquerda */
  font-size: clamp(2.5rem, 6.5vw, 7rem); 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: 0.5em; }
.hero-title .hl3 { margin-left: 1.2em; }

.circled {
  position: relative;
  display: inline-block;
  padding: 0 0.15em;
  z-index: 10;
}
.circled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 130%;
  border: clamp(2px, 0.4vw, 8px) solid var(--lime);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  pointer-events: none;
  z-index: -1;
}

.hero-sub {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--paper);
  max-width: 450px;
  margin-top: 2rem;
  margin-left: 2rem;
}
.hero-cta {
  margin-left: 2rem;
  margin-top: 1.5rem;
}

/* 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-sub, .hero-cta, .hero-trust { margin-left: 0; }
  .hero-awards { gap: 1.2rem; bottom: 6%; flex-wrap: wrap; }
  .award strong { font-size: .9rem; }
}

@media (max-width: 520px) {
  .hero-content { min-width: 0; }
  .hero-title {
    width: 100%;
    font-size: clamp(2rem, 10.5vw, 2.8rem);
    overflow-wrap: anywhere;
  }
  .hero-sub { overflow-wrap: anywhere; }
  .hero-sub strong { display: block; }
  .hero-cta {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding-inline: .8rem;
    font-size: .72rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .hero-trust { gap: .65rem 1rem; font-size: .68rem; }
}

.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: center; }
}

/* ---------- 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;
}
.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; }

/* ---------- Feature Steps (O que muda...) ---------- */
.feature-steps-section {
  padding-bottom: 5rem; /* O topo já tem o padding natural da section--paper */
}
.feature-steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 760px) {
  .feature-steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}
.feature-steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  order: 2;
}
@media (min-width: 760px) {
  .feature-steps-list { order: 1; gap: 2.5rem; }
}
.feature-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.feature-step.is-active { opacity: 1; }
.feature-step-icon {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.5s ease;
  color: var(--charcoal);
  font-weight: 700; font-size: 1.1rem;
}
.feature-step-icon .icon-check { display: none; font-size: 1.3rem; }
.feature-step.is-active .feature-step-icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: scale(1.15);
}
.feature-step.is-past .feature-step-icon {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.feature-step.is-past .feature-step-icon .icon-number,
.feature-step.is-active .feature-step-icon .icon-number { display: none; }
.feature-step.is-past .feature-step-icon .icon-check,
.feature-step.is-active .feature-step-icon .icon-check { display: block; }

.feature-step-content h3 {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--charcoal); letter-spacing: -0.01em;
}
.feature-step-content p {
  font-size: 1.05rem; color: var(--grey-on-light); line-height: 1.5;
}

.feature-steps-image-container {
  order: 1;
  position: relative;
  height: 320px;
  border-radius: 12px;
  perspective: 1000px;
}
@media (min-width: 760px) {
  .feature-steps-image-container { order: 2; height: 500px; }
}
.feature-image-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(40px) rotateX(-10deg);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.feature-image-wrap.is-active {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  visibility: visible;
  z-index: 2;
}
.feature-image-wrap.exit {
  opacity: 0;
  transform: translateY(-40px) rotateX(10deg);
  visibility: hidden;
  z-index: 1;
}
.feature-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-image-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

/* (Removed overlay scroll rules) */

/* ---------- 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(2, minmax(0, 1fr)); } }
.service {
  position: relative;
  overflow: hidden;
  padding: 1px; /* Espaço para a borda brilhar */
  background: rgba(255,255,255,0.1); 
  border-radius: 8px;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

@media (hover: hover) {
  .service {
    /* Fix Webkit overflow:hidden bug */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
  }
  .service:hover { transform: translateY(-4px); }
}

.service .conteudo {
  position: relative;
  z-index: 2;
  padding: 2.2rem 1.9rem;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 8px; /* mesmo border-radius do card para não quebrar */
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.service .conteudo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.06) 1.5px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}
@media (hover: hover) {
  .service:hover .conteudo::before { opacity: 1; }
}

.service .luz {
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* mobile: a luz não funciona tão bem sem mouse, então opcionalmente podemos deixá-la estática no hover ou oculta */
@media (hover: hover) {
  .service:hover .luz { opacity: 0.8; }
}

.service h3, .service p, .service__eyebrow, .service__list, .service__link {
  position: relative;
  z-index: 1;
}

.service__eyebrow {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--lime);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.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;
  color: var(--white);
}
.service p { font-size: 1.02rem; line-height: 1.55; color: rgba(255,255,255,.72); }
.service__list {
  list-style: none;
  display: grid;
  gap: .65rem;
  margin: 1.5rem 0 2rem;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  line-height: 1.45;
}
.service__list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .75rem;
  align-items: start;
}
.service__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .35rem;
  background: var(--lime);
}
.service__link {
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .75rem 0;
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--lime);
  transition: color .25s ease, border-color .25s ease;
}
.service__link:hover { color: var(--lime); }

/* MOBILE: sem hover */
@media (max-width: 760px) {
  .services .service.is-active { 
    transform: translateY(-4px); 
    box-shadow: 0 0 0 1px var(--lime), 0 0 25px color-mix(in srgb, var(--lime) 40%, transparent);
  }
  .services .service.is-active .conteudo::before {
    opacity: 1;
  }
  
  .bento-item.is-active {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  }
  .bento-item.is-active .bento-bg { opacity: 1; }
  .bento-item.is-active .bento-icon {
    background: var(--lime);
    transform: scale(1.05);
  }
}

/* ---------- Bento Grid (Para quem é) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.bento-item {
  position: relative;
  padding: 1.8rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  z-index: 1;
}
.bento-col-span-2 { grid-column: span 1; }
.bento-col-span-3 { grid-column: span 1; }
@media (min-width: 760px) {
  .bento-col-span-2 { grid-column: span 2; }
  .bento-col-span-3 { grid-column: span 3; }
}

@media (hover: hover) {
  .bento-item {
    /* Fix Webkit overflow:hidden bug */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
  }
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.bento-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: radial-gradient(circle at center, rgba(0,0,0,0.06) 1.5px, transparent 1px);
  background-size: 12px 12px;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.bento-item:hover .bento-bg { opacity: 1; }

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.bento-icon {
  width: 2.8rem; height: 2.8rem;
  border-radius: 0.6rem;
  background: rgba(0,0,0,0.04);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.bento-item:hover .bento-icon {
  background: var(--lime);
  transform: scale(1.05);
}
.bento-title {
  font-family: var(--display);
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
  margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.bento-desc {
  font-size: 1.02rem; color: var(--grey-on-light); line-height: 1.5;
}

/* ---------- FAQ (accordion nativo <details>) ---------- */
.faq { max-width: 62rem; }
.faq__eyebrow {
  margin-bottom: 1rem;
  color: var(--grey-on-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.faq__intro {
  max-width: 58ch;
  margin: -1.25rem 0 2.5rem;
  color: var(--grey-on-light);
  font-size: 1.05rem;
  line-height: 1.6;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; min-height: 44px; 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;
  cursor: pointer;
}
.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; 
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

.glow-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(238, 255, 4, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 255, 4, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), black, transparent);
  mask-image: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), black, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

@media (hover: hover) {
  .cta-final:hover .glow-grid { opacity: 1; }
}

.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 10%, var(--ink) 95%);
}

.cta-final .wrap {
  position: relative;
  z-index: 2;
}
.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(3, 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.webp");
  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-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: .8rem 1.2rem; min-height: 44px; border-radius: 9999px;
  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; gap: 1rem; }
  .cookie-banner__text { flex: 0 0 auto; }   /* evita que o flex-basis (280px) vire altura no eixo coluna */
  .cookie-banner__actions { width: 100%; justify-content: stretch; }
  .cookie-banner__btn { min-width: 0; flex: 1; padding-inline: .8rem; text-align: center; }
}

/* ===================================================================
   Preloader — contador em anel lime + revelação por faixas
   Fundo = cor do hero (--ink). Anel preenche no sentido horário com uma
   linha que varre do centro à borda; ao concluir, o círculo fica verde
   e duas faixas lime surgem do centro e correm às bordas revelando o site.
   =================================================================== */
html.is-loading, html.is-loading body { overflow: hidden; }

.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);                 /* mesmo fundo do hero */
  display: grid; place-items: center;
  overflow: hidden;
  transition: background-color .25s linear;
}
.preloader.is-bg-clear { background: transparent; }

/* ---- palco do círculo ---- */
.preloader__stage {
  position: relative; z-index: 2;
  transition: opacity .35s ease, transform .35s ease;
}
.preloader.is-reveal .preloader__stage { opacity: 0; transform: scale(.85); }

/* ---- círculo de progresso (gauge) ---- */
.preloader__circle {
  --p: 0;
  position: relative;
  width: min(46vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.2, .85, .25, 1);
}
.preloader__circle.is-complete { transform: scale(1.06); }

/* anel preenchido no sentido horário (conic) — vira verde ao concluir */
.preloader__ring {
  position: absolute; inset: 0; border-radius: 50%; z-index: 0;
  background: conic-gradient(var(--lime) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .08) 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 84%, #000 86%);
          mask: radial-gradient(farthest-side, #0000 84%, #000 86%);
  transition: background .4s ease;
}
.preloader__circle.is-complete .preloader__ring { background: var(--load-green); }

/* miolo: preenche de verde quando conclui ("revelado totalmente") */
.preloader__core {
  position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: var(--load-green);
  transform: scale(0); opacity: 0;
  transition: transform .45s cubic-bezier(.2, .85, .25, 1), opacity .3s ease;
}
.preloader__circle.is-complete .preloader__core {
  transform: scale(1); opacity: 1;
  filter: drop-shadow(0 0 26px rgba(43, 217, 106, .55));
}

/* linha varredora: do centro à borda, gira no sentido horário */
.preloader__hand {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 3px; height: 50%;
  background: linear-gradient(to top, transparent, var(--lime));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--lime);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(calc(var(--p, 0) * 3.6deg));
}
.preloader__circle.is-complete .preloader__hand { opacity: 0; transition: opacity .25s ease; }

/* porcentagem ao centro */
.preloader__count {
  position: relative; z-index: 3;
  display: flex; align-items: baseline; gap: .04em;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1; letter-spacing: -.02em;
  color: var(--lime);
  transition: color .35s ease;
}
.preloader__count i { font-style: normal; font-size: .5em; opacity: .85; }
.preloader__circle.is-complete .preloader__count { color: var(--ink); }

/* ---- faixas que revelam o site ---- */
.preloader__band {
  position: absolute; left: 0; width: 100%; height: 50.2%;
  background: var(--lime); z-index: 1;
  transform: scaleY(0);
  transition: transform .68s cubic-bezier(.76, 0, .24, 1);
}
.preloader__band--top { top: 0; transform-origin: bottom; }
.preloader__band--bottom { top: 50%; transform-origin: top; }

/* 1) surgem do centro até cobrir a tela */
.preloader.is-reveal .preloader__band { transform: scaleY(1); transition-duration: .24s; }

/* 2) deslizam para as bordas revelando o site no centro */
.preloader.is-split .preloader__band--top { transform: translateY(-101%); transition-duration: .68s; }
.preloader.is-split .preloader__band--bottom { transform: translateY(101%); transition-duration: .68s; }

@media (prefers-reduced-motion: reduce) {
  .preloader__band, .preloader__stage, .preloader__circle,
  .preloader__ring, .preloader__core, .preloader__hand,
  .preloader { transition-duration: .15s !important; }
}
