:root {
/* ============================================================================================================
   PALETA (identidade de cores): é o ÚNICO lugar com cores de marca. Cada token tem uma versão em canais RGB (--x-rgb, usada nos
   degradês e transparências) e a cor pronta (--x). Para trocar a identidade de um escritório, edite só os canais "R G B" abaixo.
   (Branco e preto puros, usados em sombras e textos sobre imagem, ficam fixos no CSS.)
   ============================================================================================================ */
  --ink-rgb: 23 29 32;            /* texto escuro padrão (corpo) */
  --ink: rgb(var(--ink-rgb));
  --muted-rgb: 127 118 104;       /* texto secundário */
  --muted: rgb(var(--muted-rgb));
  --sand-rgb: 232 230 227;        /* fundo claro principal (Processo, FAQ, depoimentos) */
  --sand: rgb(var(--sand-rgb));
  --sand-soft-rgb: 247 246 245;   /* cartões claros (depoimentos) */
  --sand-soft: rgb(var(--sand-soft-rgb));
  --sand-tint-rgb: 240 239 237;   /* item de FAQ aberto */
  --sand-tint: rgb(var(--sand-tint-rgb));
  --brand-rgb: 36 81 93;          /* cor de marca: fundo do palco, Contato, cabeçalho escuro */
  --brand: rgb(var(--brand-rgb));
  --text-rgb: 34 41 44;           /* texto/ícones escuros sobre o fundo claro */
  --text: rgb(var(--text-rgb));
  --deep-rgb: 23 47 55;           /* fundo escuro profundo (Sobre) */
  --deep: rgb(var(--deep-rgb));
  --deepest-rgb: 15 34 40;        /* fundo mais escuro (acordeão, bordas) */
  --deepest: rgb(var(--deepest-rgb));
  --footer-rgb: 27 55 64;         /* fundo do rodapé */
  --footer: rgb(var(--footer-rgb));
  --deep-light-rgb: 37 69 79;     /* brilho do fundo do Sobre */
  --deep-light: rgb(var(--deep-light-rgb));
  --stage-1-rgb: 47 90 102;        /* degradê do palco (celular e desktop) */
  --stage-1: rgb(var(--stage-1-rgb));
  --stage-2-rgb: 63 110 123;       /* degradê do palco */
  --stage-2: rgb(var(--stage-2-rgb));
  --stage-3-rgb: 79 130 144;     /* degradê do palco */
  --stage-3: rgb(var(--stage-3-rgb));
  --stage-4-rgb: 86 138 152;     /* degradê do palco */
  --stage-4: rgb(var(--stage-4-rgb));
  --stage-5-rgb: 73 119 132;     /* degradê do palco */
  --stage-5: rgb(var(--stage-5-rgb));
  --stage-6-rgb: 46 87 99;        /* degradê do palco (celular) */
  --stage-6: rgb(var(--stage-6-rgb));
  --stage-7-rgb: 53 96 108;        /* degradê do palco (celular) */
  --stage-7: rgb(var(--stage-7-rgb));
  --stage-8-rgb: 60 104 116;       /* degradê do palco (celular) */
  --stage-8: rgb(var(--stage-8-rgb));
  --glow-1-rgb: 127 181 194;      /* brilho claro atrás da corrente */
  --glow-1: rgb(var(--glow-1-rgb));
  --glow-2-rgb: 91 151 166;      /* brilho médio atrás da corrente */
  --glow-2: rgb(var(--glow-2-rgb));
  --shade-1-rgb: 11 24 28;        /* sombra das legendas dos painéis */
  --shade-1: rgb(var(--shade-1-rgb));
  --shade-2-rgb: 20 38 44;        /* sombra dos textos da corrente */
  --shade-2: rgb(var(--shade-2-rgb));
  --accent-rgb: 79 179 199;       /* destaque: fios e detalhes */
  --accent: rgb(var(--accent-rgb));
  --accent-ink-rgb: 31 106 122;    /* destaque para texto pequeno sobre o fundo claro (contraste ≥ 4,5:1) */
  --accent-ink: rgb(var(--accent-ink-rgb));
  --btn-rgb: 30 106 123;          /* fundo dos botões cheios (texto branco, contraste ≥ 4,5:1) */
  --btn: rgb(var(--btn-rgb));
  --paper: #ffffff;
  --header-h: 84px;

  /* comprimento da rolagem que controla a animação */
  --scroll-len: 689.6vh;   /* EXT (main.js) × 800vh: a fase hero → corrente é comprimida; + 1 card, expansão final até o painel do acordeão e fade da seção de projetos; antes: pausa antes da próxima página subir (100vh de sobreposição) */
  --overlap: 45vh;

  /* Identidade tipográfica
     brand   → fonte do logo: logo, menu, botões, rótulos e títulos
     body    → texto corrido */
  --font-brand: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-brand);
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  background: transparent;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}

/* degradê sutil só enquanto transparente, para manter legibilidade sobre a imagem */
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 -56px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: -1;
}

/* O cabeçalho é transparente da hero até a seção de projetos. A PARTIR da seção Processo todas as seções têm fundo no
   cabeçalho: .on-light = fundo claro (--sand) e texto escuro (Processo, FAQ, depoimentos); .on-dark = fundo escuro e texto
   claro (Sobre e Contato; .on-about usa o fundo do Sobre). As classes são ligadas em updateHeader() quando a seção chega ao cabeçalho. Seções novas depois
   de Processo devem seguir a mesma regra. */
.header.on-light {
  color: var(--ink);
  background: var(--sand);
  box-shadow: 0 1px 0 rgb(var(--text-rgb) / .12);
}
.header.on-dark {
  background: var(--brand);
  box-shadow: 0 1px 0 rgb(var(--sand-rgb) / .14);
}
.header.on-dark.on-about { background: var(--deep); }   /* mesma cor do fundo da seção Sobre (o Contato segue com o marrom) */
.header.on-light::before,
.header.on-dark::before { opacity: 0; }

.header__inner {
  height: var(--header-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ---------- Logo ---------- */
.logo {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;                 /* sem isto a imagem era esticada na horizontal até a largura do texto abaixo */
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-brand);
}

/* logo em imagem: duas versões (clara e escura); a escura só aparece com o cabeçalho sobre fundo claro */
.logo__img { width: auto; height: 42px; }
.logo__img--escuro { display: none; }
.header.on-light .logo__img--claro { display: none; }
.header.on-light .logo__img--escuro { display: block; }

.logo__sub {
  font-size: 7px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
  padding-left: 1px;
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  gap: clamp(32px, 6vw, 88px);
}

.nav__link {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: color .25s ease, opacity .25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.header.on-light .nav__link.is-active { color: var(--accent-ink); }
.nav__link.is-active::after { transform: scaleX(1); }

/* ---------- Botão "Entrar em contato" (cabeçalho) ---------- */
.header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 21px;
  border: 1.5px solid currentColor;     /* vazado: só contorno; a cor acompanha o cabeçalho (branco sobre foto/verde, escuro sobre o creme) */
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.header__cta:hover,
.header__cta:focus-visible { background: var(--btn); border-color: var(--btn); color: #fff; transform: translateY(-1px); }   /* no hover enche com o dourado dos outros botões */
.header__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.header.on-light .header__cta:focus-visible { outline-color: var(--ink); }

/* ---------- Mobile toggle ---------- */
.menu-toggle {
  display: none;
  justify-self: end;
  grid-column: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero + transição (palco) ----------
   Sem JS ou com prefers-reduced-motion: hero estática em tela cheia.
   Com .story-on: o palco fica fixo (sticky) e o JS posiciona os cards conforme a rolagem. */
.story { position: relative; }

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overflow: clip;
  /* degradê da marca: tom claro e difuso no meio/direita, atrás da corrente, e tom escuro à esquerda, onde ficam os textos brancos
     (contraste conferido com a paleta de demonstração: reconferir ao trocar a paleta); o último valor é o fallback sólido */
  background:
    radial-gradient(ellipse 38% 62% at 70% 46%, rgb(var(--glow-1-rgb) / .55), rgb(var(--glow-1-rgb) / 0) 72%),
    radial-gradient(ellipse 30% 70% at 46% 72%, rgb(var(--glow-2-rgb) / .35), rgb(var(--glow-2-rgb) / 0) 70%),
    linear-gradient(90deg, var(--stage-1) 0%, var(--stage-2) 34%, var(--stage-3) 56%, var(--stage-4) 72%, var(--stage-5) 100%),
    var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.story-on .story {
  height: calc(100vh + var(--scroll-len));
  height: calc(100svh + var(--scroll-len));
}
.story-on .stage {
  position: sticky;
  top: 0;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  z-index: 2;
  background: var(--text);
  contain: layout paint;
  transform-origin: 50% 50%;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--main { z-index: 6; }
.card--main img,
.card--base-main img { object-position: center 60%; }

/* sem animação só a hero aparece; os demais cards só existem na animação */
.card:not(.card--main) { display: none; }
.story-on .card:not(.card--main) { display: block; visibility: hidden; }

.card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .56) 0%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35) 100%);
}

.hero__content {
  position: relative;
  z-index: 190;                         /* acima da foto principal enquanto ela encolhe (z 186 no JS) e abaixo dos textos da corrente (200) */
  grid-area: 1 / 1;
  text-align: center;
  /* padding-bottom maior = o bloco (título, subtítulo e botão) sobe 3,5vh; o transform fica livre para o JS da rolagem */
  padding: calc(var(--header-h) + 24px) 24px calc(24px + 7vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  will-change: opacity, transform;
}

/* h1 da página = logo no centro da hero (o texto do título saiu; o nome acessível vem do alt da imagem) */
.hero__logo {
  margin: 0;
  line-height: 0;
}
.hero__logo img {
  width: clamp(150px, 15vw, 245px);   /* 245 px é a largura real do arquivo: não passar disso para não borrar */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)) drop-shadow(0 6px 28px rgba(0, 0, 0, .45));   /* leve sombra atrás do logo */
}

.hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 2px 22px rgba(0, 0, 0, .6);   /* leve sombra atrás do subtítulo */
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 16px 38px;
  background: var(--btn);                  /* dourado escuro (antes branco); texto branco ≈ 5:1 */
  color: #fff;
  border-radius: 999px;                 /* pílula */
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent-ink);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Textos da corrente (trocam conforme o card central) ---------- */
.story-text {
  display: none;
  position: absolute;
  z-index: 200;
  grid-template-columns: 1fr;
  pointer-events: none;
  color: #fff;
  font-family: var(--font-brand);
  font-size: clamp(17px, 1.95vw, 32px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgb(var(--shade-2-rgb) / .45);
}
.story-on .story-text { display: grid; }
.story-text p {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
/* corrente à direita: os textos ficam à esquerda, mais perto do centro, num bloco centrado na linha do card em destaque
   (o do meio da tela, que define qual texto aparece): título logo ACIMA do eixo e descrição logo ABAIXO dele */
.story-text--top {
  bottom: calc(50% + 14px);
  left: 14vw;
  max-width: min(26ch, 31vw);
  text-align: left;
  justify-items: start;
}
.story-text--bottom {
  top: calc(50% + 14px);
  left: 14vw;
  max-width: min(32ch, 31vw);
}

/* ---------- Seção de projetos (acordeão) ----------
   Ocupa a tela e fica fixa (sticky). Não sobe mais por cima do palco: a margem negativa (uma tela + 105vh) a prende 105vh ANTES
   do fim da história, parada sobre o palco, e o main.js a faz aparecer em fade (opacidade) enquanto o último card da corrente,
   já no lugar de um dos painéis, vira o painel dela. A margem de baixo compensa esses 105vh, para o Processo continuar
   começando no mesmo ponto. */
.project-page {
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  background: var(--text);
  color: #fff;
  font-family: var(--font-brand);
}
.story-on .project-page {
  position: sticky;
  top: 0;
  border-radius: var(--pr, 36px) var(--pr, 36px) 0 0;   /* --pr (JS): os cantos só se desfazem quando a página termina de subir */
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .1);
}
.story-on .story + .project-page {
  margin-top: -205vh;
  margin-top: -205svh;
  opacity: 0;                           /* o main.js controla (fade) conforme a rolagem; sem JS/animação a seção é normal */
  visibility: hidden;
  pointer-events: none;
}
/* A seção de projetos fica PRESA (sticky) no topo até o fim do bloco que a contém (o <main>), que continua até o fim do Processo.
   Esta margem inferior dá a pausa com a seção parada antes de o Processo subir por cima dela. Não remover. */
.story-on .project-page { margin-bottom: 155vh; }   /* 50vh de pausa + 105vh da margem de cima */
/* evita o colapso de margens entre a seção de projetos e o <main> (mantém o bloco da seção presa íntegro) */
.story-on main { display: flow-root; }
/* ---------- Projetos: acordeão horizontal de imagens ----------
   Uma faixa com 5 painéis sem espaço entre eles, cantos externos arredondados e overflow hidden. Parados, os painéis
   dividem a largura; ao passar o cursor (ou focar com o teclado, ou tocar) o painel se expande e os outros se comprimem,
   mas continuam visíveis. A mudança é suave (flex-grow) e a legenda aparece sobre um degradê embaixo do painel ativo.
   Estados: :hover (só com mouse), :focus-visible e [data-active] (toque/teclado, definido em js/projetos.js). */
.projects__inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) - 4px) clamp(20px, 4vw, 64px) clamp(14px, 2.2vh, 24px);   /* rótulo "Portfólio" colado no cabeçalho */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 2vh, 24px);
}
.projects__intro { text-align: center; }
.projects__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(6px, 1vh, 12px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgb(var(--sand-rgb) / .85);
}
.projects__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.projects__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
.projects__lead {
  margin: clamp(6px, 1vh, 12px) auto 0;
  max-width: 90ch;                       /* uma linha em telas largas: sobra altura para o acordeão */
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: rgb(var(--sand-rgb) / .86);
}
.projects__hint--touch { display: none; }
@media (hover: none) {
  .projects__hint--hover { display: none; }
  .projects__hint--touch { display: inline; }
}

.project-accordion {
  display: flex;
  width: 100%;
  /* a altura acompanha a largura, mas nunca passa do que cabe na tela abaixo do título (a seção ocupa 1 tela) */
  height: clamp(240px, min(50vw, calc(100svh - var(--header-h) - 166px)), 760px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--deepest);
}
.project-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--deepest);
  color: #fff;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: flex-grow 900ms cubic-bezier(.45, 0, .2, 1);   /* ease-in-out suave: começa e termina devagar */
}
.project-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 900ms cubic-bezier(.45, 0, .2, 1);
}
.project-panel__caption {
  position: absolute;
  left: 0; bottom: 0;
  width: clamp(280px, 40vw, 560px);      /* largura própria: o texto não reflui enquanto o painel muda de largura */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  padding: 72px clamp(16px, 1.8vw, 28px) clamp(14px, 1.6vw, 24px);
  opacity: 0;
  transition: opacity 300ms ease;          /* some rápido, sem esperar o painel fechar */
  pointer-events: none;
}
/* degradê da legenda: cobre a largura inteira do painel (o texto tem largura própria, o degradê não) */
.project-panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  height: 55%;
  background: linear-gradient(to top, rgb(var(--shade-1-rgb) / .82) 0%, rgb(var(--shade-1-rgb) / .5) 55%, rgb(var(--shade-1-rgb) / 0));
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.project-panel__title {
  font-family: var(--font-brand);
  font-size: clamp(15px, 1.35vw, 22px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.project-panel__text {
  font-family: var(--font-body);
  font-size: clamp(12.5px, 1vw, 15px);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}
.project-panel:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

/* painel ativo: expande; os demais comprimem (e escurecem um pouco), sem sumir */
.project-accordion[data-has-active] .project-panel { flex-grow: .7; }
.project-accordion[data-has-active] .project-panel img { filter: brightness(.78); }
.project-accordion .project-panel[data-active="true"] { flex-grow: 3; }
.project-accordion .project-panel[data-active="true"] img { filter: none; }
.project-accordion .project-panel[data-active="true"] .project-panel__caption,
.project-accordion .project-panel:focus-visible .project-panel__caption,
.project-accordion .project-panel[data-active="true"]::after,
.project-accordion .project-panel:focus-visible::after { opacity: 1; transition: opacity 600ms ease 250ms; }   /* a legenda aparece quando o painel já está abrindo */
/* hover só depois que o mouse se MOVE sobre a faixa (data-armed, js/projetos.js): sem isso, um cursor parado em cima da faixa abria
   um painel sozinho assim que a seção terminava de aparecer */
@media (hover: hover) {
  .project-accordion[data-armed]:hover .project-panel { flex-grow: .7; }
  .project-accordion[data-armed]:hover .project-panel img { filter: brightness(.78); }
  .project-accordion[data-armed] .project-panel:hover { flex-grow: 3; }
  .project-accordion[data-armed] .project-panel:hover img { filter: none; }
  .project-accordion[data-armed] .project-panel:hover .project-panel__caption,
  .project-accordion[data-armed] .project-panel:hover::after { opacity: 1; transition: opacity 600ms ease 250ms; }
}
/* Divisória curva durante a expansão (só desktop, em linha): cada painel tem a imagem `--bulge` px mais larga de cada lado e é recortado por
   clip-path. Parado: inset(0) = retângulo do painel (divisória reta). Durante a transição, js/projetos.js troca o clip-path por um
   polígono cujo limite com o vizinho é a MESMA curva nos dois painéis. Em coluna (celular) e com movimento reduzido nada disso atua. */
/* Desktop com mouse: a linha de apoio (e a dica "passe o cursor") sai da vista para dar altura ao acordeão; fica no HTML só para leitores
   de tela. No toque e no celular ela continua visível (a dica de toque faz falta lá). */
@media (min-width: 861px) and (hover: hover) {
  .projects__lead {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .project-accordion { height: clamp(240px, min(56vw, calc(100svh - var(--header-h) - 124px)), 800px); }
}
@media (min-width: 861px) {
  .project-accordion { --bulge: 20px; }
  .project-panel { overflow: visible; clip-path: inset(0); }
  .project-panel img { position: absolute; top: 0; left: calc(-1 * var(--bulge)); width: calc(100% + 2 * var(--bulge)); height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .project-panel,
  .project-panel img,
  .project-panel__caption,
  .project-panel::after,
  .project-accordion .project-panel:focus-visible .project-panel__caption,
  .project-accordion .project-panel:focus-visible::after,
  .project-accordion .project-panel[data-active="true"] .project-panel__caption,
  .project-accordion .project-panel[data-active="true"]::after,
  .project-accordion[data-armed] .project-panel:hover .project-panel__caption,
  .project-accordion[data-armed] .project-panel:hover::after { transition: none; }
}

/* ---------- Como funciona ----------
   Pausa clara depois dos projetos: fundo areia, texto marrom, muito espaço e tipografia. Sem sticky e sem animação
   longa: só uma entrada discreta (opacidade + deslocamento curto). */
.process {
  --p-ink: var(--text);                     /* marrom do site, escuro o bastante para texto */
  --p-soft: rgb(var(--text-rgb) / .78);      /* texto corrido: contraste ≈ 5:1 sobre o areia */
  --p-line: rgb(var(--text-rgb) / .22);
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;                   /* cobre inteiramente a última página, que fica presa atrás */
  padding: calc(var(--header-h) + clamp(40px, 5vw, 80px)) 0 clamp(96px, 11vw, 168px);
  background: var(--sand);
  color: var(--p-ink);
}
.story-on .process {
  border-radius: var(--pr, 36px) var(--pr, 36px) 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .1);
}
.process__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
/* Composição horizontal: abertura centralizada (rótulo, título, descrição) e, abaixo, as três etapas lado a lado em colunas iguais,
   ligadas por uma linha fina que sai do nó da etapa 01 e chega ao da 03. Sem sticky. No celular as etapas empilham (01 a 03) e a
   linha passa a ser vertical. */
.process__layout { display: block; }
.process__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.process__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.process__eyebrow::before,
.process__eyebrow::after {              /* fios dourados dos dois lados do rótulo */
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.process__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.process__lead {
  margin: clamp(24px, 2.6vw, 36px) auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--p-soft);
  text-wrap: pretty;
}

.process__steps {
  --step-gap: clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--step-gap);
  margin: clamp(36px, 4vw, 56px) 0 0;     /* números bem perto do texto de abertura */
  padding: 0;
  list-style: none;
}
.step { display: block; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
}
.step__body { margin-top: clamp(16px, 1.6vw, 24px); }
.step__title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.step__text {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.1vw, 17.5px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--p-soft);
}

/* Fechamento: só o botão, centralizado depois das etapas (sem linha e sem texto). */
.process__cta {
  margin-top: clamp(48px, 5vw, 80px);
  display: flex;
  justify-content: center;                /* botão centralizado abaixo das três etapas */
}
.process__button {
  display: inline-block;
  padding: 18px 38px;
  border: 0;
  border-radius: 999px;                 /* pílula, igual aos outros botões do site */
  background: var(--p-ink);
  color: var(--sand);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.process__button:hover,
.process__button:focus-visible { background: var(--accent-ink); transform: translateY(-2px); }
.process__button:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 4px; }

/* entrada discreta (só com a animação ligada; sem JS ou com movimento reduzido tudo aparece parado) */
.story-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.story-on [data-reveal].is-in { opacity: 1; transform: none; }
.story-on .process .process__title[data-reveal] { transition-delay: .08s; }
.story-on .process .process__lead[data-reveal] { transition-delay: .16s; }

/* ---------- Sobre ----------
   Fundo escuro (--deep) (gradiente sutil, var(--deep) nas áreas escuras e var(--deep-light) nas iluminadas). O topo da seção é reto (areia → marrom em linha horizontal). Em cima, a introdução centralizada; embaixo, a foto grande à esquerda (≈ 64%, encostada na
   borda, recorte orgânico por clipPath SVG) e uma coluna de texto estreita à direita, sem caixa. As medidas escalam com a largura
   (referência: 1672px). */
/* ---------- Espaçamento editorial (SÓ de Sobre em diante: Sobre, Experiências, FAQ, Contato e rodapé) ----------
   Escala exclusiva: 8, 16, 24, 32, 48, 64, 80 e 96px (--sp-*). A hero, as páginas de projeto e o Processo têm composição própria e
   NÃO usam estas variáveis. Regra do espaço entre seções (medido do último conteúdo de uma até o primeiro da seguinte):
     espaço total = --ed-after (fim da seção) + --ed-before (início da seguinte) = 128px no desktop, 80px no celular.
   Cada seção arredondada sobe sobre a anterior (margin-top negativo = seu raio); por isso o fim da seção ANTERIOR inclui o raio da
   PRÓXIMA (padding-bottom = --ed-after + raio seguinte) e o começo da seção não soma o raio (padding-top = --ed-before). */
.about, .testi, .faq, .contact, .footer {
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --ed-before: clamp(var(--sp-6), 6vw, var(--sp-8));          /* borda da seção → primeiro conteúdo (48 → 64) */
  --ed-after: clamp(var(--sp-4), 5vw, var(--sp-8));           /* último conteúdo → borda da seção seguinte (32 → 64) */
  --ed-curve-soft: 36px;                                      /* raio de Experiências e FAQ */
  --ed-curve-contact: clamp(36px, 5vw, 72px);                 /* raio do Contato */
  --ed-process-pb: clamp(96px, 11vw, 168px);                  /* padding-bottom do Processo (só leitura: o Processo não é editado) */
  --ed-eyebrow-title: clamp(var(--sp-2), 2vw, var(--sp-3));   /* rótulo → título (16 → 24) */
  --ed-title-lead: clamp(var(--sp-2), 2vw, var(--sp-3));      /* título → texto de apoio (16 → 24) */
  --ed-lead-content: clamp(var(--sp-4), 4vw, var(--sp-6));    /* apoio → cartões ou lista (32 → 48) */
  --ed-para-group: clamp(var(--sp-3), 2vw, var(--sp-4));      /* parágrafo → próximo grupo (24 → 32) */
  --ed-label-pills: clamp(var(--sp-2), 1.5vw, var(--sp-3));   /* rótulo secundário → cápsulas (16 → 24) */
  --ed-content-button: clamp(var(--sp-3), 2.4vw, var(--sp-4)); /* conteúdo principal → botão (24 → 32) */
  --ed-item-gap: clamp(12px, 1.2vw, var(--sp-2));             /* entre itens semelhantes: faixas e cápsulas (12 → 16) */
}

.about {
  --a-terra: var(--btn);                   /* terracota escuro: linha curta, divisórias e botão */
  position: relative;
  z-index: 4;
  /* sobe sobre o fim do Processo (que tem padding-bottom grande e não é editado): sobra --ed-after de areia abaixo do último conteúdo dele */
  margin-top: calc(var(--ed-after) - var(--ed-process-pb));
  padding: var(--ed-before) 0 0;        /* sem espaço embaixo: a base da foto encosta no começo da FAQ (antes sobrava --ed-after + curva) */
  scroll-margin-top: calc(var(--header-h) * .5);   /* o título não fica sob o cabeçalho ao usar a âncora */
  background:
    radial-gradient(ellipse 62% 58% at 80% 38%, rgb(var(--deep-light-rgb) / .95), rgb(var(--deep-light-rgb) / 0) 72%),
    radial-gradient(ellipse 55% 48% at 14% 92%, rgb(var(--deep-light-rgb) / .6), rgb(var(--deep-light-rgb) / 0) 70%),
    var(--deep);
  color: var(--sand);
  overflow: hidden;                     /* a curva e a foto nunca geram rolagem horizontal */
}
.about__clips { position: absolute; width: 0; height: 0; overflow: hidden; }

.about__inner { position: relative; z-index: 2; padding: 0 clamp(24px, 4vw, 72px); }
.about__intro {
  position: relative;
  z-index: 2;                           /* acima da foto: ela começa antes do fim da introdução */
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}
.about__lead {
  margin: clamp(16px, 1.3vw, 22px) auto 0;
  max-width: 760px;
  font-size: clamp(16px, 1.26vw, 22px);
  font-weight: 300;
  line-height: 1.4;
  color: rgb(var(--sand-rgb) / .9);
}
.about__intro::after {                  /* linha curta de destaque, centralizada, abaixo do texto de apoio */
  content: "";
  display: block;
  width: clamp(72px, 6vw, 104px);
  height: 5px;
  margin: clamp(16px, 1.2vw, 20px) auto 0;
  border-radius: 3px;
  background: var(--a-terra);
}

/* foto (≈ 64% da largura, a partir da borda esquerda) + coluna de texto (≈ 450px em 1672px) */
.about__split {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: clamp(28px, 3.4vw, 56px) auto 0;              /* a foto começa ABAIXO da barra dourada (antes subia e invadia título e barra) */
  display: grid;
  grid-template-columns: 64% minmax(0, 1fr);
  column-gap: clamp(32px, 4.8vw, 92px);
  align-items: start;
}
.about__split { margin-left: calc(-1 * clamp(24px, 4vw, 72px)); margin-right: calc(-1 * clamp(24px, 4vw, 72px)); }   /* foto encostada na borda */
@media (min-width: 1920px) { .about__split { margin-left: auto; margin-right: auto; } }

.about__media {
  margin: 0;
  aspect-ratio: 1070 / 675;
  -webkit-clip-path: url(#about-photo-shape);
  clip-path: url(#about-photo-shape);
}
.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;            /* enquadra pela base da foto: as cabeças sobem na forma e sobra menos fundo escuro em cima */
  filter: saturate(1.03) contrast(1.02);
}

.about__body {
  padding: clamp(40px, 5.7vw, 106px) clamp(24px, 4.3vw, 80px) 0 0;
  max-width: 520px;
}
.about__headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.5vw, 44px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
.about__text {
  margin: clamp(20px, 1.9vw, 34px) 0 0;
  font-size: clamp(16px, 1.06vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: rgb(var(--sand-rgb) / .9);
}

/* três indicadores com divisória vertical fina em terracota */
.about__stats {
  margin: clamp(26px, 2.1vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px clamp(10px, 1.2vw, 20px);
  border-left: 1px solid var(--a-terra);
}
.about__stat:first-child { padding-left: 0; border-left: 0; }
.about__stat:last-child { padding-right: 0; }
.about__stat-value {
  font-family: var(--font-brand);
  font-size: clamp(26px, 2.14vw, 38px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
}
.about__stat-label {
  font-family: var(--font-brand);
  font-size: clamp(9px, .66vw, 11px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgb(var(--sand-rgb) / .78);
}

/* botão em cápsula (≈ 345 × 52 em 1672px), terracota escuro */
.about__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(46px, 3.1vw, 54px);
  margin-top: clamp(28px, 2.4vw, 42px);
  padding: 0 clamp(24px, 2.55vw, 44px);
  border-radius: 999px;
  background: var(--a-terra);
  color: #fff;
  font-family: var(--font-brand);
  font-size: clamp(10.5px, .72vw, 12px);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  /* hover suave: cor, elevação e sombra mudam devagar (curva sem tranco) e a seta avança um pouco */
  transition: background-color .6s cubic-bezier(.22, .61, .36, 1), color .6s cubic-bezier(.22, .61, .36, 1),
              transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s cubic-bezier(.22, .61, .36, 1);
}
.about__cta span { display: inline-block; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.about__cta:hover,
.about__cta:focus-visible { background: #fff; color: var(--deepest); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .26); }
.about__cta:hover span,
.about__cta:focus-visible span { transform: translateX(5px); }
.about__cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.story-on .about .about__title[data-reveal] { transition-delay: .08s; }
.story-on .about .about__lead[data-reveal] { transition-delay: .16s; }
.story-on .about .about__media[data-reveal] { transition-delay: .1s; }
.story-on .about .about__text[data-reveal] { transition-delay: .08s; }
.story-on .about .about__stats[data-reveal] { transition-delay: .16s; }
/* o botão também tem entrada (data-reveal): a transição única abaixo mantém a entrada e o hover suaves, sem atraso no hover */
.story-on .about .about__cta[data-reveal] {
  transition: opacity .8s ease, transform .6s cubic-bezier(.22, .61, .36, 1), background-color .6s cubic-bezier(.22, .61, .36, 1),
              color .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s cubic-bezier(.22, .61, .36, 1);
}
.story-on .about .about__cta[data-reveal].is-in:hover,
.story-on .about .about__cta[data-reveal].is-in:focus-visible { transform: translateY(-2px); }

/* ---------- Depoimentos (Experiências) ----------
   Superfície areia depois do marrom de Sobre: os cantos de cima arredondados sobem 36px sobre o fim dela (mesma lógica das
   outras passagens). A seção é montada por js/depoimentos.js e só existe quando há depoimentos cadastrados.
   Desktop: três cartões lado a lado (≤ 1280px, espaço 24px). Até 1000px: uma faixa horizontal com scroll-snap, um cartão
   por vez com um pedaço do próximo à mostra (rolagem manual: toque e teclado, sem movimento automático). */
.testi {
  --t-ink: var(--text);
  --t-soft: rgb(var(--text-rgb) / .82);
  --t-line: rgb(var(--text-rgb) / .2);
  --t-gutter: clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * var(--ed-curve-soft));
  padding: var(--ed-before) 0 calc(var(--ed-after) + var(--ed-curve-soft));   /* + raio da FAQ, que sobe sobre o fim desta seção */
  scroll-margin-top: calc(var(--header-h) * .5);   /* o rótulo não fica sob o cabeçalho ao usar a âncora */
  border-radius: var(--ed-curve-soft) var(--ed-curve-soft) 0 0;
  background: var(--sand);
  color: var(--t-ink);
}
.testi__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--t-gutter); }
.testi__intro { text-align: center; }
.testi__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 var(--ed-eyebrow-title);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.testi__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.testi__title {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.testi__lead {
  margin: var(--ed-title-lead) auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--t-soft);
}

/* Carrossel (infinito e manual): a faixa ocupa a largura toda da tela, o primeiro cartão alinha com o conteúdo (≤ 1280px) e os
   vizinhos aparecem esmaecidos nas laterais, com as setas sobre as bordas (como na referência). Com 3 cartões ou menos no desktop
   não há rolagem nem setas. */
.testi { overflow-x: clip; }
.testi__stage {
  position: relative;
  margin-top: var(--ed-lead-content);
}
.testi__track {
  --t-gap: clamp(20px, 1.8vw, 24px);
  --t-side: max(var(--t-gutter), calc((100% - 1280px) / 2 + var(--t-gutter)));   /* margem lateral até o 1º cartão */
  container-type: inline-size;
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--t-side);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi__track.is-loop {                  /* cartões vizinhos esmaecidos nas laterais */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 calc(var(--t-side) * .8), #000 calc(100% - var(--t-side) * .8), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 calc(var(--t-side) * .8), #000 calc(100% - var(--t-side) * .8), transparent 100%);
}
.testi__list {
  margin: 0;
  padding: 0 var(--t-side);
  list-style: none;
  display: flex;
  gap: var(--t-gap);
  width: max-content;
  min-width: 100%;
}
.testi__item {
  display: flex;                         /* os cartões esticam até a mesma altura */
  flex: 0 0 calc((min(1280px, 100cqw) - 2 * var(--t-gutter) - 2 * var(--t-gap)) / 3);
  scroll-snap-align: start;
}
.testi__item:last-child { scroll-snap-align: end; }   /* sem cópias (3 cartões ou menos), o último precisa de encaixe alcançável */
.is-loop .testi__item:last-child { scroll-snap-align: start; }

/* setas laterais: círculos brancos sobre as bordas da faixa */
.testi__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: clamp(46px, 3.6vw, 58px);
  height: clamp(46px, 3.6vw, 58px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--t-ink);
  box-shadow: 0 6px 18px rgb(var(--text-rgb) / .16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.testi__btn--prev { left: clamp(10px, 1.6vw, 26px); }
.testi__btn--next { right: clamp(10px, 1.6vw, 26px); }
.testi__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.testi__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .testi__btn:hover { background: var(--t-ink); color: #fff; } }
.testi__stage.is-loop .testi__btn { display: grid; }
.testi__track:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.testi__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 2.6vw, 40px);
  border: 1px solid var(--t-line);
  border-radius: clamp(26px, 2.2vw, 32px);
  background: var(--sand-soft);
}
.testi__mark {                           /* aspa grande e discreta, só gráfica */
  display: block;
  height: .62em;
  margin: 0 0 4px -4px;
  font-family: var(--font-display);
  font-size: clamp(88px, 7vw, 112px);
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  opacity: .32;
  user-select: none;
}
.testi__quote { margin: 0; }
.testi__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.005em;
}
.testi__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;                      /* nome e projeto sempre no rodapé do cartão */
  padding-top: clamp(24px, 2.4vw, 36px);
}
.testi__who::before {
  content: "";
  order: -1;
  align-self: stretch;
  height: 1px;
  margin-bottom: 18px;
  background: var(--t-line);
}
.testi__name {
  font-family: var(--font-brand);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
}
.testi__project { font-size: 15px; line-height: 1.4; color: var(--t-soft); }
.testi__meta { order: -2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 16px; }   /* nota acima da divisória: nome e projeto ficam alinhados entre os cartões */
.testi__stars { display: inline-flex; gap: 2px; fill: var(--accent); }
.testi__source { font-size: 14px; line-height: 1.4; color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t-line); }
a.testi__source:hover { text-decoration-color: var(--accent); }
a.testi__source:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.testi__badge {                          /* só na prévia do modelo */
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 28px);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--t-ink);
  color: var(--sand);
  font-family: var(--font-brand);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.story-on .testi .testi__title[data-reveal] { transition-delay: .08s; }
.story-on .testi .testi__lead[data-reveal] { transition-delay: .16s; }

@media (max-width: 1000px) {
  /* celular/tablet: um cartão por vez com o próximo à mostra; rolagem por toque (sem setas nem máscara) */
  .testi__list { gap: 16px; }
  .testi__item { flex: 0 0 min(84vw, 440px); }
  .testi__btn { display: none !important; }
  .testi__track.is-loop { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Perguntas frequentes ----------
   Nova superfície areia depois do marrom de Sobre: os cantos de cima arredondados sobem 36px sobre o fim da seção anterior
   (mesma lógica da passagem Processo → Sobre). Uma coluna de perguntas expansíveis (<details>) em faixas de cantos bem
   arredondados; abrir/fechar é imediato (sem animação). */
.faq {
  --f-ink: var(--text);
  --f-soft: rgb(var(--text-rgb) / .8);
  --f-line: rgb(var(--text-rgb) / .22);
  --faq-pad: clamp(28px, 3vw, 36px);    /* padding horizontal da faixa */
  --faq-num: 40px;                      /* largura do número */
  --faq-gap: 24px;
  position: relative;
  z-index: 5;
  margin-top: 0;                        /* começa exatamente onde o Sobre termina (antes subia 36px sobre ele) */
  padding: calc(var(--ed-before) + clamp(24px, 3vw, 40px)) 0 calc(var(--ed-after) + var(--ed-curve-contact));   /* topo com mais respiro (+24 a +40px) após a foto do Sobre; + raio do Contato embaixo, que sobe sobre o fim desta seção */
  scroll-margin-top: calc(var(--header-h) * .5);   /* o rótulo não fica sob o cabeçalho ao usar a âncora */
  border-radius: 0;                     /* sem o arredondado do topo */
  background: var(--sand);
  color: var(--f-ink);
}
.faq__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.faq__intro { text-align: center; }
.faq__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 var(--ed-eyebrow-title);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.faq__eyebrow::before {                 /* traço na cor de destaque, como nos rótulos de Processo */
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.faq__title {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.faq__lead {
  margin: var(--ed-title-lead) auto 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--f-soft);
}

.faq__list {
  max-width: 1040px;
  margin: var(--ed-lead-content) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--ed-item-gap);
}
.faq__item {
  border: 1px solid var(--f-line);
  border-radius: 44px;
  background: var(--sand);
  transition: background-color .5s cubic-bezier(.22, .61, .36, 1), border-color .5s cubic-bezier(.22, .61, .36, 1);
}
.faq__item[open]:not(.is-closing) { background: var(--sand-tint); border-color: rgb(var(--text-rgb) / .3); }
.faq__summary {
  display: flex;
  align-items: center;
  gap: var(--faq-gap);
  min-height: 88px;
  padding: 14px var(--faq-pad);
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::marker { content: ""; }
.faq__summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.faq__num {
  flex: 0 0 var(--faq-num);
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgb(var(--text-rgb) / .55);
}
.faq__q {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
}
/* botão visual circular com + (vira − quando aberto), desenhado em CSS */
.faq__icon {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--text-rgb) / .35);
  border-radius: 50%;
  transition: background-color .3s ease, border-color .5s ease, color .3s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.faq__item[open]:not(.is-closing) .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }   /* + vira − girando */
.faq__summary:focus-visible .faq__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) {                 /* hover só com mouse (no toque o vermelho não fica "grudado") */
  .faq__summary:hover .faq__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
}
.faq__item[open]:not(.is-closing) .faq__icon { border-color: var(--f-ink); }
.faq__item[open] .faq__summary:focus-visible .faq__icon { border-color: var(--accent); }

/* a resposta fica alinhada com o início do texto da pergunta */
.faq__a {
  padding: 0 calc(var(--faq-pad) + 38px + var(--faq-gap)) 30px calc(var(--faq-pad) + var(--faq-num) + var(--faq-gap));
}
.faq__a p {
  margin: 0;
  max-width: 65ch;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--f-soft);
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  :root { --header-h: 72px; --scroll-len: 706.8vh; --overlap: 40vh; }

  .header__inner { padding: 0 20px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; grid-column: 2; }
  .header__actions { grid-column: 2; gap: 8px; }
  .header__cta { padding: 8px 13px; font-size: 10px; letter-spacing: .1em; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 8px 20px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { color: var(--ink); padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .nav__link.is-active { color: var(--accent-ink); }
  .nav__link::after { display: none; }

  .logo__img { height: 38px; }
  .hero__content { gap: 20px; }

  .story-text { font-size: 13px; z-index: 200; }   /* coluna estreita à esquerda; a corrente ocupa a direita */
  .story-text--top { bottom: calc(50% + 10px); left: 5vw; right: auto; max-width: 44vw; font-size: 15px; }
  .story-text--bottom { top: calc(50% + 10px); left: 5vw; max-width: 44vw; }
  .story-on .stage::before,
  .story-on .stage::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    z-index: 150;
    pointer-events: none;
    opacity: var(--text-a, 0);
  }
  .story-on .stage::before { top: 0; height: 30%; background: linear-gradient(to bottom, rgb(var(--stage-1-rgb) / .95) 25%, rgb(var(--stage-1-rgb) / 0)); }
  .story-on .stage::after { bottom: 0; height: 28%; background: linear-gradient(to top, rgb(var(--stage-1-rgb) / .95) 25%, rgb(var(--stage-1-rgb) / 0)); }
  .stage {
    background:
      radial-gradient(ellipse 60% 55% at 74% 46%, rgb(var(--glow-1-rgb) / .55), rgb(var(--glow-1-rgb) / 0) 72%),
      linear-gradient(90deg, var(--stage-6) 0%, var(--stage-7) 30%, var(--stage-8) 52%, var(--stage-4) 76%, var(--stage-5) 100%),
      var(--brand);
  }

  .story-on .project-page,
  .story-on .process { border-radius: var(--pr, 28px) var(--pr, 28px) 0 0; }

  .projects__inner { padding-left: 20px; padding-right: 20px; gap: 18px; }
  .projects__lead { font-size: 14px; }
  .project-accordion { flex-direction: column; height: min(58svh, 520px); border-radius: 22px; }
  .project-panel__caption { width: 100%; padding: 48px 16px 14px; }
  .project-panel__title { font-size: 15px; }
  .project-panel__text { font-size: 13px; }

  .about__inner { padding: 0 22px; }
  .about__title { font-size: clamp(36px, 10vw, 46px); }
  .about__lead { font-size: 16px; }
  .about { padding-bottom: calc(var(--ed-after) + 8px); }   /* no celular o texto vem depois da foto: o fim da seção é o botão, que não pode encostar na FAQ */
  .about__split { display: block; margin: 24px -22px 0; }
  .about__media { aspect-ratio: 1.42 / 1; -webkit-clip-path: url(#about-photo-shape-m); clip-path: url(#about-photo-shape-m); }
  .about__img { object-position: 50% 100%; }
  .about__body { max-width: none; padding: 36px 22px 0; }
  .about__headline { font-size: clamp(30px, 8.6vw, 38px); }
  .about__headline br { display: none; }
  .about__stats { margin-top: 30px; }
  .about__stat { padding: 2px 12px; }
  .about__stat-value { font-size: 26px; }
  .about__stat-label { font-size: 10px; letter-spacing: .1em; }
  .about__cta { margin-top: 32px; min-height: 48px; font-size: 11px; padding: 0 26px; }

  .faq { --faq-pad: 20px; --faq-num: 26px; --faq-gap: 14px; }
  .faq__inner { padding: 0 21px; }
  .faq__title { font-size: clamp(36px, 10.4vw, 44px); }
  .faq__item { border-radius: 32px; }
  .faq__summary { min-height: 76px; padding-top: 16px; padding-bottom: 16px; }
  .faq__num { font-size: 12px; letter-spacing: .06em; }
  .faq__q { font-size: 17px; }
  .faq__icon { flex-basis: 36px; width: 36px; height: 36px; }
  .faq__a { padding: 0 20px 24px calc(var(--faq-pad) + var(--faq-num) + var(--faq-gap)); }
  .faq__a p { font-size: 15.5px; }

  .process { padding: calc(var(--header-h) + 36px) 0 88px; }
  .process__inner { padding: 0 20px; }
  .process__title { font-size: clamp(32px, 9vw, 42px); }
  .process__lead { margin-top: 24px; }
  .process__cta { margin-top: 40px; }
  .process__button { width: 100%; text-align: center; padding: 18px 24px; }
}

/* Processo no celular (até 760px): etapas empilhadas na ordem 01–03. */
@media (max-width: 760px) {
  .process__steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .step { padding: 0 0 36px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { font-size: 44px; }
  .step__body { margin-top: 14px; }
}

/* ---------- Contato (fechamento) ----------
   Marrom da identidade com cantos de cima bem arredondados sobre o areia da FAQ (sobe o mesmo valor do raio). As três cápsulas
   são só orientações visuais (não são campos). O botão vira link do WhatsApp quando js/contato.js tem número. */
.contact {
  --c-r: var(--ed-curve-contact);
  --c-line: rgb(var(--sand-rgb) / .32);
  position: relative;
  z-index: 6;
  margin-top: calc(-1 * var(--c-r));
  padding: var(--ed-before) 0 var(--ed-after);
  scroll-margin-top: calc(var(--header-h) * .5);   /* o título não fica sob o cabeçalho ao usar a âncora */
  border-radius: var(--c-r) var(--c-r) 0 0;
  background: var(--brand);
  color: var(--sand);
  text-align: center;
}
.contact__inner { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.contact__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 var(--ed-eyebrow-title);
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgb(var(--sand-rgb) / .9);
}
.contact__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.contact__title {
  margin: 0 auto;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 86px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: #fff;
}
.contact__lead {
  margin: var(--ed-title-lead) auto 0;
  max-width: 650px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  text-wrap: balance;
  color: rgb(var(--sand-rgb) / .92);
}
.contact__hint {
  margin: var(--ed-para-group) 0 0;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--sand-rgb) / .8);
}
.contact__steps {
  margin: var(--ed-label-pills) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--ed-item-gap);
}
.contact__step {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 32px 0 26px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  color: #fff;
}
.contact__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: rgb(var(--sand-rgb) / .72);
}
.contact__action { margin-top: var(--ed-content-button); }
.contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 clamp(28px, 3vw, 46px);
  border: 0;
  border-radius: 999px;
  background: var(--btn);                  /* terracota escuro (texto branco ≈ 6:1) */
  color: #fff;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.contact__button[aria-disabled="true"] { cursor: default; }   /* WhatsApp ainda não configurado (js/contato.js) */
.contact__button:not([aria-disabled="true"]):hover,
.contact__button:not([aria-disabled="true"]):focus-visible { background: #fff; color: var(--deepest); transform: translateY(-2px); }
.contact__button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* Desktop: textos à esquerda (rótulo, título, apoio) e, à direita, as três cápsulas empilhadas com o botão logo abaixo. Em telas
   até 860px tudo volta a uma coluna centralizada, na ordem do HTML. */
@media (min-width: 861px) {
  .contact { text-align: left; }
  .contact__inner {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
  .contact__eyebrow { justify-content: flex-start; }
  .contact__title { margin: 0; font-size: clamp(38px, 4.6vw, 70px); }
  .contact__lead { margin-left: 0; margin-right: 0; max-width: 44ch; text-wrap: pretty; }
  .contact__hint { margin-top: 0; }
  .contact__steps { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; }
  .contact__button { width: 100%; }
}
.story-on .contact .contact__title[data-reveal] { transition-delay: .08s; }
.story-on .contact .contact__lead[data-reveal] { transition-delay: .16s; }

/* ---------- Rodapé ---------- */
.footer {
  position: relative;
  z-index: 6;
  background: var(--footer);                  /* um tom mais escuro que o Contato */
  border-top: 1px solid rgb(var(--sand-rgb) / .16);
  color: rgb(var(--sand-rgb) / .9);
}
.footer__inner { max-width: 1280px; margin: 0 auto; padding: var(--sp-6) clamp(20px, 4vw, 48px) var(--sp-4); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px 64px; }
.footer__logo { color: #fff; }
.footer__tagline { margin: 20px 0 0; max-width: 30ch; font-size: 16px; font-weight: 300; line-height: 1.6; }
.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 34px;
  max-width: 600px;
}
.footer a { color: inherit; text-decoration: none; }
.footer__links a,
.footer__info a {
  display: inline-block;
  padding: 10px 0;                      /* área de toque confortável */
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom 8px / 0 1px no-repeat;
  transition: background-size .3s ease;
}
.footer__links a:hover,
.footer__info a:hover { background-size: 100% 1px; }
.footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 2px; }
.footer__info {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 40px;
  font-size: 15px;
}
.footer__info[hidden] { display: none; }
.footer__label { margin-right: 10px; font-family: var(--font-brand); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--sand-rgb) / .65); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: clamp(40px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid rgb(var(--sand-rgb) / .16);
  font-size: 14px;
}
.footer__copy { margin: 0; color: rgb(var(--sand-rgb) / .78); }
.footer__up {
  display: inline-block;
  padding: 10px 0;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__up:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 860px) {
  .about, .testi, .faq, .contact, .footer { --ed-curve-soft: 28px; --ed-curve-contact: 36px; --ed-process-pb: 88px; }
  .contact__title { font-size: clamp(36px, 10.4vw, 46px); }
  .contact__steps { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .contact__step { min-height: 62px; }
  .contact__button { width: 100%; max-width: 420px; padding: 0 22px; font-size: 12px; letter-spacing: .12em; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__links { justify-content: flex-start; flex-direction: column; gap: 0; }
  .footer__links a { padding: 12px 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header, .header::before { transition: none; }
  [data-reveal], .step, .step__num, .process__button { transition: none; }
  .faq__item, .faq__icon { transition: none; }
  .contact__button, .footer__links a, .footer__info a, .testi__btn { transition: none; }
  .about__cta, .about__cta span { transition: none !important; }
}
