/* Performance — fonte exclusiva da palavra-marca.
   Usa exatamente o WOFF2 latino da Archivo 900/100 aprovado no projeto.
   O preload correspondente fica no <head> para reduzir a cadeia crítica. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/archivo/v25/k3k6o8UDI-1M0wlSV9XAw6lQkqWY8Q82sJaRE-NWIDdgffTTnTRZ9xdp.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f0ea;
  --ink: #151515;
  --ink-soft: #4a4a46;
  --line: rgba(21, 21, 21, 0.16);
  --paper-glass: rgba(242, 240, 234, 0.82);
  --dark: #171717;
  --dark-line: rgba(255, 255, 255, 0.16);
  --light: #f4f2ed;
  --container: 1280px;
  --page-x: clamp(20px, 4vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navegação compacta e persistente: o menu fica presente sem virar o elemento principal da página. */
.site-header {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 0;
  width: 100%;
  padding-inline: var(--page-x);
  opacity: 0;
  transform: translateY(-12px);
  animation: header-in 640ms cubic-bezier(.22,.61,.36,1) 120ms forwards;
}

.nav-shell {
  width: min(100%, 1180px);
  min-height: 60px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}

.nav-brand {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.nav-menu a,
.nav-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
}

.nav-contact {
  padding-inline: 18px;
  color: var(--light);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--ink);
  background: transparent;
}

.nav-toggle {
  display: none;
}

.site-header.is-on-dark .nav-shell {
  color: var(--light);
  border-color: var(--dark-line);
  background: rgba(23, 23, 23, 0.82);
}

.site-header.is-on-dark .nav-menu a {
  color: rgba(244, 242, 237, 0.7);
}

.site-header.is-on-dark .nav-menu a:hover,
.site-header.is-on-dark .nav-menu a:focus-visible {
  color: var(--light);
}

.site-header.is-on-dark .nav-contact {
  color: var(--ink);
  background: var(--light);
  border-color: var(--light);
}

.site-header.is-on-dark .nav-contact:hover,
.site-header.is-on-dark .nav-contact:focus-visible {
  color: var(--light);
  background: transparent;
}

.hero {
  min-height: 100svh;
  display: flex;
  background: var(--bg);
  overflow: clip;
}

.hero-inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(132px, 18vh, 180px) var(--page-x) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(72px, 10vh, 120px);
}

/* Palavra-marca em grande escala: identidade por tipografia, não por efeitos decorativos. */
.hero-wordmark {
  margin: 0;
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-size: clamp(5.8rem, 16.2vw, 14.5rem);
  line-height: 0.78;
  font-weight: 900;
  font-stretch: 100%;
  font-synthesis: none;
  letter-spacing: -0.075em;
  white-space: nowrap;
  /* Mantém o surgimento visual, mas evita opacity: 0 — valor que pode retirar
     a palavra-marca da seleção de LCP em algumas versões do Lighthouse/Chromium. */
  opacity: 0.01;
  transform: translateY(28px);
  animation: wordmark-in 820ms cubic-bezier(.22,.61,.36,1) 180ms forwards;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.hero-heading-wrap,
.hero-copy {
  opacity: 0;
  transform: translateY(18px);
  animation: content-in 700ms cubic-bezier(.22,.61,.36,1) forwards;
}

.hero-heading-wrap {
  animation-delay: 420ms;
}

.hero-copy {
  animation-delay: 540ms;
}

.hero-eyebrow {
  margin: 0 0 20px;
  max-width: 420px;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero h1 span {
  font-weight: 400;
}

.hero-copy {
  padding-bottom: 6px;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 430px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.hero-cta {
  min-height: 52px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--light);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.nav-brand:focus-visible,
.nav-menu a:focus-visible,
.nav-contact:focus-visible,
.hero-cta:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Dobra 2 — composição editorial em fundo escuro, sem cards ou ornamentos genéricos. */
.one-page {
  position: relative;
  color: var(--light);
  background: var(--dark);
  overflow: clip;
}

.one-page__inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  margin-inline: auto;
  padding: clamp(104px, 12vw, 168px) var(--page-x) clamp(112px, 14vw, 184px);
}

.one-page__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(40px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 104px);
}

/* O rótulo ganha presença e vai para a direita, sem competir com o título principal. */
.one-page__eyebrow {
  grid-column: 9 / -1;
  justify-self: start;
  margin: 8px 0 0;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.62);
}

/* O título começa mais à esquerda para criar o eixo visual pedido e manter a assimetria controlada. */
.one-page h2 {
  grid-column: 2 / 11;
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.3rem, 7.35vw, 7.7rem);
  line-height: 0.93;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.one-page h2 span {
  font-weight: 400;
}

/* O texto de apoio acompanha o mesmo eixo esquerdo do título em telas amplas. */
.one-page__lead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding-bottom: clamp(88px, 10vw, 144px);
}

.one-page__lead p {
  grid-column: 2 / 9;
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: rgba(244, 242, 237, 0.82);
}

.one-page__principles {
  border-top: 1px solid var(--dark-line);
}

.one-page__principle {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.72fr);
  gap: clamp(40px, 8vw, 128px);
  align-items: baseline;
  min-height: 152px;
  padding: 40px 0;
  border-bottom: 1px solid var(--dark-line);
}

.one-page__principle h3,
.one-page__principle p {
  margin: 0;
}

.one-page__principle h3 {
  font-size: clamp(1.9rem, 3.25vw, 3.5rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.one-page__principle p {
  max-width: 520px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.62;
  color: rgba(244, 242, 237, 0.68);
}

/* Movimento funcional: a informação apenas ganha presença conforme entra na leitura. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms cubic-bezier(.22,.61,.36,1), transform 720ms cubic-bezier(.22,.61,.36,1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   DOBRA SOBRE — REFERÊNCIA VISUAL APROVADA (V15)
   A foto e a cor de fundo desta dobra devem permanecer com a mesma
   integração visual da V15: fundo escuro contínuo, sem borda/caixa
   aparente ao redor do retrato.
   ========================================================= */
.about {
  position: relative;
  color: var(--light);
  background: #0d0c0d;
  overflow: clip;
}

.about__inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  margin-inline: auto;
  padding: clamp(104px, 12vw, 164px) var(--page-x) clamp(112px, 13vw, 176px);
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  gap: clamp(52px, 7vw, 104px);
  align-items: center;
}

.about__text {
  min-width: 0;
}

.about__eyebrow {
  margin: 0 0 24px;
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.62);
}

/* MANUTENÇÃO — SOBRE | TÍTULO
   O font-size abaixo controla o tamanho do título desta dobra. */
.about h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3rem, 5.8vw, 5.85rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.about h2 span {
  font-weight: 400;
}

.about__copy {
  max-width: 560px;
  margin-top: clamp(28px, 4vw, 42px);
  display: grid;
  gap: 18px;
}

/* MANUTENÇÃO — SOBRE | TEXTO DESCRITIVO
   O font-size abaixo controla o tamanho dos parágrafos. */
.about__copy p,
.about__purpose {
  margin: 0;
  font-size: clamp(0.98rem, 1.08vw, 1.06rem);
  line-height: 1.68;
  color: rgba(244, 242, 237, 0.84);
}

/* MANUTENÇÃO — SOBRE | LARGURA BASE DO CONJUNTO VISUAL — DESKTOP
   Define a largura de referência do conjunto foto + assinatura.
   Para ampliar só a foto, ajuste scale() no seletor da FOTO DE PERFIL. */
.about__aside {
  justify-self: end;
  width: min(100%, 360px);
  display: grid;
  gap: 22px;
  align-content: start;
}

.about__visual {
  position: relative;
  margin: 0;
  width: 100%;
}

/* MANUTENÇÃO — SOBRE | FOTO DE PERFIL — DESKTOP (ACIMA DE 900px)
   translateY(): positivo desce / negativo sobe a FOTO.
   scale(): 1 = tamanho original / acima de 1 = amplia a FOTO.
   Para ajustar tablet/celular, use o bloco específico ao final do CSS.
   Não altere a máscara de transparência logo abaixo. */
.about__visual img {
  display: block;
  width: 100%;
  height: auto;

  /* FOTO DE PERFIL — ajuste visual atual (preservado) */
  transform: translateY(+25px) scale(1.40);
  transform-origin: center center;

  /* SOBRE — fusão da foto com o fundo escuro (preservada).
     Os percentuais regulam a transparência apenas nas extremidades.
     A máscara não altera tamanho ou posição. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* MANUTENÇÃO — SOBRE | ASSINATURA — DESKTOP (ACIMA DE 900px)
   scale(2.25) mantém o tamanho visual aprovado da ASSINATURA.
   margin-left ajusta sua posição horizontal sem redimensionar a foto.
   No tablet/celular, os valores ficam em um bloco próprio ao final do CSS. */
.about__signature {
  width: min(100%, 315px);
  margin-left: -150px;
  transform: rotate(-3deg) scale(2.25);
  transform-origin: left center;
}

/* MANUTENÇÃO — SOBRE | ASSINATURA — POSIÇÃO VERTICAL NO DESKTOP
   top negativo SOBE a assinatura; positivo DESCE.
   Atua somente acima de 900px e não desloca a foto nem muda seu tamanho. */
@media (min-width: 901px) {
  .about__signature {
    position: relative;
    top: 90px;
  }
}

.about__signature-static {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes header-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wordmark-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes content-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .site-header {
    top: 16px;
  }

  .nav-shell {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 56px;
    padding: 7px 8px 7px 16px;
  }

  .nav-contact {
    display: none;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    justify-content: flex-start;
    padding-inline: 12px;
    color: var(--ink-soft) !important;
  }

  .site-header.is-on-dark .nav-menu {
    border-color: var(--dark-line);
    background: var(--dark);
  }

  .site-header.is-on-dark .nav-menu a {
    color: rgba(244, 242, 237, 0.74) !important;
  }

  .hero-inner {
    padding-top: 128px;
    gap: 64px;
  }

  .hero-wordmark {
    font-size: clamp(5rem, 22vw, 10rem);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 520px;
  }
}


@media (max-width: 760px) {
  .one-page__intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .one-page__eyebrow,
  .one-page h2 {
    grid-column: 1;
  }

  .one-page__lead {
    grid-template-columns: 1fr;
  }

  .one-page__lead p {
    grid-column: 1;
  }

  .one-page__principle {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-x: 20px;
  }

  .hero-inner {
    min-height: 100svh;
    padding-top: 112px;
    padding-bottom: 32px;
    gap: 56px;
  }

  /* MANUTENÇÃO — HERO | MARCA SENSUS. — CELULAR (ATÉ 560px)
     Mantém o tamanho responsivo já aprovado. O tracking fica só um pouco
     mais fechado que no desktop (-0.075em), preservando a leitura da Archivo
     sem voltar ao aspecto excessivamente comprimido do ajuste antigo. */
  .hero-wordmark {
    font-size: clamp(3.65rem, 19.7vw, 7rem);
    letter-spacing: -0.08em;
  }

  .hero-eyebrow {
    max-width: 320px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy p {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-cta {
    width: 100%;
    min-height: 52px;
  }

  .one-page__inner {
    padding-top: 88px;
    padding-bottom: 104px;
  }

  .one-page__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 64px;
  }

  .one-page__eyebrow {
    margin-top: 0;
  }

  .one-page h2 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .one-page__lead {
    padding-bottom: 72px;
  }

  .one-page__lead p {
    font-size: 1.16rem;
  }

  .one-page__principle {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding: 32px 0;
  }

  .one-page__principle h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dobra 3 — processo claro e objetivo. A seção se monta sozinha ao entrar em cena, sem exigir rolagem etapa a etapa. */
.process {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  overflow: clip;
}

.process__inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  margin-inline: auto;
  padding: clamp(104px, 12vw, 168px) var(--page-x) clamp(112px, 13vw, 176px);
}

.process__heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.process__eyebrow {
  grid-column: 1 / 4;
  align-self: start;
  margin: 0;
  /* O rótulo sobe de forma mais evidente para criar o respiro assimétrico
     observado na dobra anterior, sem competir com o título principal. */
  transform: translateY(-40px);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.process h2 {
  grid-column: 4 / 10;
  margin: 0;
  font-size: clamp(3.3rem, 6.5vw, 7rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.058em;
}

.process h2 span {
  font-weight: 400;
}

.process__intro {
  grid-column: 10 / -1;
  margin: 0 0 6px;
  max-width: 360px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.process__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
}

/* A linha clara mostra o percurso inteiro antes da animação começar. */
.process__timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: calc(100% - 5px);
  height: 1px;
  background: var(--line);
}

.process__stage {
  position: relative;
  min-width: 0;
  padding: 8px clamp(28px, 3vw, 56px) 0 0;
}

/* Cada etapa possui seu próprio ponto e seu próprio trecho de conexão.
   Assim, a sequência realmente acontece ponto → linha → próximo ponto. */
.process__stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -45px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}

.process__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -40px;
  left: 5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}

.process__stage:last-child::after {
  width: calc(100% - 5px);
}

.process__stage h3,
.process__stage p {
  margin: 0;
}

.process__stage h3 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 2.5vw, 2.75rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.process__stage p {
  max-width: 285px;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* Com JavaScript, os pontos começam vazados e a conexão é construída uma única vez.
   Sem JavaScript, o processo permanece completamente visível como fallback. */
.js .process__heading {
  opacity: 0;
  transform: translateY(18px);
}

.js .process__stage h3,
.js .process__stage p {
  opacity: 0;
  transform: translateY(14px);
}

.js .process__stage::before {
  border-color: rgba(21, 21, 21, 0.38);
  background: var(--bg);
}

.js .process__stage::after {
  transform: scaleX(0);
}

.js .process.is-ready .process__heading {
  animation: process-content-in 680ms cubic-bezier(.22,.61,.36,1) forwards;
}

.js .process.is-ready .process__stage h3,
.js .process.is-ready .process__stage p {
  animation: process-content-in 520ms cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--copy-delay);
}

.js .process.is-ready .process__stage::before {
  animation: process-dot-fill 300ms ease forwards;
  animation-delay: var(--dot-delay);
}

.js .process.is-ready .process__stage::after {
  animation: process-segment-in 560ms cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--line-delay);
}

/* Ritmo intencional: o primeiro ponto acende, a linha alcança a etapa seguinte,
   o próximo ponto preenche e o percurso continua até ultrapassar a Publicação. */
.process__stage:nth-child(1) {
  --dot-delay: 700ms;
  --copy-delay: 820ms;
  --line-delay: 980ms;
}

.process__stage:nth-child(2) {
  --dot-delay: 1540ms;
  --copy-delay: 1660ms;
  --line-delay: 1820ms;
}

.process__stage:nth-child(3) {
  --dot-delay: 2380ms;
  --copy-delay: 2500ms;
  --line-delay: 2660ms;
}

.process__stage:nth-child(4) {
  --dot-delay: 3220ms;
  --copy-delay: 3340ms;
  --line-delay: 3500ms;
}

@keyframes process-segment-in {
  to { transform: scaleX(1); }
}

@keyframes process-content-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes process-dot-fill {
  to {
    border-color: var(--ink);
    background: var(--ink);
  }
}

@media (max-width: 900px) {
  .process__heading {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: 40px;
  }

  .process__eyebrow {
    grid-column: 1 / 3;
    transform: translateY(-24px);
  }

  .process h2 {
    grid-column: 3 / -1;
  }

  .process__intro {
    grid-column: 3 / 8;
    max-width: 520px;
  }

  .process__stage {
    padding-right: clamp(22px, 3vw, 36px);
  }
}

@media (max-width: 640px) {
  .process__inner {
    padding-top: 88px;
    padding-bottom: 104px;
  }

  .process__heading {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding-bottom: 64px;
  }

  .process__eyebrow,
  .process h2,
  .process__intro {
    grid-column: 1;
  }

  .process__eyebrow {
    margin-top: 0;
    transform: none;
  }

  .process h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .process__intro {
    max-width: 100%;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0 28px;
  }

  /* No mobile, cada etapa desenha o próprio trecho vertical. Isso mantém a
     animação alinhada mesmo quando os textos têm alturas diferentes. */
  .process__timeline::before {
    display: none;
  }

  .process__stage {
    min-height: 0;
    padding: 0 0 48px 24px;
    border-left: 1px solid var(--line);
  }

  .process__stage:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }

  .process__stage::before {
    top: 4px;
    left: -5px;
  }

  .process__stage::after,
  .process__stage:last-child::after {
    top: 9px;
    left: -1px;
    width: 1px;
    height: 100%;
    transform-origin: center top;
  }

  .process__stage:last-child::after {
    height: 40px;
  }

  .process__stage h3 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .process__stage p {
    max-width: 100%;
  }

  .js .process__stage::after {
    transform: scaleY(0);
  }

  .js .process.is-ready .process__stage::after {
    animation-name: process-segment-in-mobile;
  }
}

@keyframes process-segment-in-mobile {
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .process__heading,
  .js .process__stage h3,
  .js .process__stage p {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .js .process__stage::before {
    border-color: var(--ink);
    background: var(--ink);
    animation: none !important;
  }

  .js .process__stage::after {
    transform: scaleX(1);
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .js .process__stage::after {
    transform: scaleY(1);
  }
}


@media (max-width: 900px) {
  /* MANUTENÇÃO — SOBRE | ORDEM NO MOBILE/TABLET (ATÉ 900px)
     O JavaScript move só o parágrafo do propósito para depois da foto.
     No desktop o texto permanece agrupado como na versão aprovada. */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
  }

  .about__aside {
    justify-self: center;
    width: min(100%, 360px);
  }

  /* MANUTENÇÃO — SOBRE | FOTO DE PERFIL — TABLET E CELULAR (ATÉ 900px)
     Ajuste só estes valores para mover/redimensionar a foto nessas telas.
     translateY(): negativo sobe / positivo desce.
     scale(): 1 = tamanho padrão / 1.40 = 40% maior.
     A largura base continua fluida pelo .about__aside; a máscara é preservada. */
  .about__visual img {
    transform: translateY(25px) scale(1.40);
  }

  /* MANUTENÇÃO — SOBRE | ASSINATURA — TABLET E CELULAR (ATÉ 900px)
     top: negativo sobe / positivo desce só a assinatura.
     margin-left: move horizontalmente; scale(): altera apenas tamanho visual.
     Estes são os valores já usados no celular pequeno, agora também no tablet.
     A assinatura continua sendo o SVG estático, sem animação. */
  .about__signature {
    position: relative;
    top: 0px;
    width: min(100%, 260px);
    margin-left: 8px;
    margin-top: 2px;
    transform: rotate(-3deg) scale(1.15);
    transform-origin: left center;
  }
}

@media (max-width: 560px) {
  .about__inner {
    padding-top: 88px;
    padding-bottom: 104px;
    gap: 36px;
  }

  .about h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }

  .about__copy {
    margin-top: 24px;
  }

  /* MANUTENÇÃO — SOBRE | LARGURA DO CONJUNTO — CELULAR (ATÉ 560px)
     Centrado na coluna e limitado à largura disponível no aparelho. */
  .about__aside {
    width: min(100%, 300px);
  }

  /* MANUTENÇÃO — SOBRE | FOTO DE PERFIL — CELULAR (ATÉ 560px)
     translateX(): positivo move a foto à direita; translateY(): positivo desce.
     scale(): tamanho visual. Reduzir de 1.40 para 1.08 evita cortes no mobile.
     A máscara de transparência no seletor geral é PRESERVADA. */
  .about__visual img {
    transform: translate(10px, 16px) scale(1.08);
    transform-origin: center center;
  }

  /* MANUTENÇÃO — SOBRE | ASSINATURA SVG ESTÁTICA — CELULAR (ATÉ 560px)
     width acompanha o contêiner; scale ajusta o tamanho visual.
     translateX() move apenas a assinatura. Desktop não é modificado. */
  .about__signature {
    justify-self: center;
    width: 82%;
    margin-left: 0;
    margin-top: 2px;
    top: 0;
    transform: translateX(15px) rotate(-3deg) scale(1.85);
    transform-origin: center center;
  }
}

/* =========================================================
   DOBRA FAQ — MANUTENÇÃO | CONTEÚDO E ACORDEÃO
   As perguntas e respostas são editadas somente no index.html.
   <details>/<summary> funcionam sem JavaScript; a marca +/- é visual.
   ========================================================= */
.faq {
  color: var(--ink);
  background: var(--bg);
  scroll-margin-top: 96px;
}

.faq__inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  margin-inline: auto;
  padding: clamp(104px, 12vw, 168px) var(--page-x) clamp(112px, 13vw, 176px);
}

.faq__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .55fr);
  column-gap: clamp(40px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}

.faq__eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 clamp(20px, 3vw, 42px);
  color: var(--ink-soft);
  font-size: clamp(.82rem, 1vw, .98rem);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.faq h2 {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 700;
}

.faq h2 span {
  font-weight: 400;
}

.faq__intro {
  max-width: 320px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
  min-height: 92px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.18rem, 2.2vw, 2.05rem);
  line-height: 1.23;
  font-weight: 500;
  letter-spacing: -.035em;
  transition: color 180ms ease;
}

.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ''; }
.faq__question:hover { color: #63615c; }
.faq__question:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

/* O círculo mantém uma área visual estável ao abrir/fechar o item. */
.faq__symbol {
  position: relative;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.faq__symbol::before,
.faq__symbol::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}
.faq__symbol::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__symbol::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__answer {
  max-width: 760px;
  padding: 0 clamp(52px, 7vw, 96px) 32px 0;
}
.faq__answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.7;
}

/* =========================================================
   RODAPÉ — MANUTENÇÃO | ENCERRAMENTO INSTITUCIONAL
   Sem canais de contato inventados: a âncora #contato aponta para
   esta seção, e o canal definitivo poderá ser incluído depois.
   ========================================================= */
.site-footer {
  color: var(--light);
  background: var(--dark);
  scroll-margin-top: 80px;
}

.site-footer__inner {
  width: min(100%, calc(var(--container) + (var(--page-x) * 2)));
  margin-inline: auto;
  padding: clamp(88px, 10vw, 136px) var(--page-x) 32px;
}

.site-footer__closing {
  padding-bottom: clamp(92px, 12vw, 160px);
}
.site-footer__eyebrow {
  margin: 0 0 clamp(28px, 4vw, 52px);
  color: rgba(244, 242, 237, .58);
  font-size: clamp(.82rem, 1vw, .98rem);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-footer h2 {
  margin: 0;
  max-width: 1060px;
  font-size: clamp(3.25rem, 7vw, 7.5rem);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.06em;
}
.site-footer h2 span { font-weight: 400; }
.site-footer__description {
  max-width: 480px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  color: rgba(244, 242, 237, .7);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}
.site-footer__brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.05em;
  text-decoration: none;
  white-space: nowrap;
}
.site-footer__bottom p {
  margin: 0;
  color: rgba(244, 242, 237, .58);
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
}
.site-footer__top {
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-footer__top span { margin-left: 8px; }
.site-footer__brand:focus-visible,
.site-footer__top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

/* FAQ e rodapé — mesmos limites de quebra já usados na SENSUS. */
@media (max-width: 900px) {
  .faq__heading { grid-template-columns: 1fr; row-gap: 28px; }
  .faq__intro { max-width: 560px; }
  .faq__question { min-height: 80px; }
}

@media (max-width: 560px) {
  .faq__inner { padding-top: 88px; padding-bottom: 104px; }
  .faq h2 { font-size: clamp(2.8rem, 12.8vw, 4.5rem); }
  .faq__heading { margin-bottom: 56px; }
  .faq__question {
    min-height: 76px;
    padding: 22px 0;
    font-size: clamp(1.18rem, 5.3vw, 1.55rem);
    gap: 18px;
  }
  .faq__symbol { flex-basis: 32px; height: 32px; }
  .faq__answer { padding-right: 8px; padding-bottom: 26px; }
  .site-footer__inner { padding-top: 88px; padding-bottom: 28px; }
  .site-footer h2 { font-size: clamp(2.9rem, 12vw, 4.3rem); }
  .site-footer__closing { padding-bottom: 104px; }
  .site-footer__bottom { align-items: start; flex-wrap: wrap; gap: 16px 24px; }
  .site-footer__bottom p { order: 3; flex: 0 0 100%; text-align: left; }
}
