/* ==========================================================================
   WS Consultoria — landing page
   Porte fiel do design "WS Consultoria.dc.html" (Claude Design) para HTML puro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paleta — hex é o fallback; os valores autorais em oklch vêm no @supports. */
  --paper: #f4f7fb;
  --paper-2: #ecf1f5;
  --ink: #0f1624;
  --night: #090d16;
  --muted: #535864;
  --silver: #a0a5ae;
  --silver-lt: #caced6;
  --silver-hover: #c3c7cf;

  /* Triplas para transparências. */
  --paper-rgb: 244 247 251;
  --ink-rgb: 15 22 36;
  --night-rgb: 9 13 22;
  --silver-rgb: 160 165 174;

  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: Karla, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);
  --shell: 1400px;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --paper: oklch(0.975 0.006 250);
    --paper-2: oklch(0.955 0.008 250);
    --ink: oklch(0.2 0.03 265);
    --night: oklch(0.16 0.02 265);
    --muted: oklch(0.46 0.02 265);
    --silver: oklch(0.72 0.014 265);
    --silver-lt: oklch(0.85 0.012 265);
    --silver-hover: oklch(0.83 0.012 265);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote, figure { margin: 0; }

::selection { background: rgb(var(--silver-rgb) / .3); }

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.shell { max-width: var(--shell); margin: 0 auto; }

/* O cabeçalho é fixo: âncora não pode parar embaixo dele. */
section[id] { scroll-margin-top: 96px; }

/* Espelha a imagem. Só serve em elemento sem transform próprio. */
.is-mirrored { transform: scaleX(-1); }

/* Ancora o corte no topo. Não vence regras de seção que já definem
   object-position (ex.: .case img) — ali use o modificador da própria seção. */
.is-top { object-position: center top; }

.section { padding: var(--section-y) var(--gutter); }
.section--tight { --section-y: clamp(80px, 10vw, 150px); }
.section--dark { background: var(--night); color: var(--paper); }
.section--paper-2 { background: var(--paper-2); }

/* Blocos de texto recorrentes ---------------------------------------------- */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .eyebrow { color: var(--silver-lt); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  opacity: .65;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}

/* Cabeçalho de seção em duas colunas (título + texto de apoio). */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}

/* Botões -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 18px 30px;
  border-radius: 2px;
  transition: transform .5s var(--ease), background .4s, box-shadow .5s, border-color .4s;
}

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgb(var(--night-rgb) / .5);
}

.btn--ghost {
  border: 1px solid rgb(var(--paper-rgb) / .32);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: rgb(var(--paper-rgb) / .8);
  background: rgb(var(--paper-rgb) / .06);
}

.btn--silver { background: var(--silver); color: var(--night); }
.btn--silver:hover { transform: translateY(-3px); background: var(--silver-hover); }

.btn--sm {
  font-size: 11.5px;
  padding: 13px 22px;
  gap: 0;
}
.btn--sm:hover { transform: translateY(-2px); }

.btn--lg {
  font-size: 12.5px;
  gap: 14px;
  padding: 20px 34px;
}

/* --------------------------------------------------------------------------
   3. Animações
   -------------------------------------------------------------------------- */
@keyframes wsKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}
@keyframes wsFade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wsLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes wsCue {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* Reveal no scroll. A classe em <html> só entra via JS: sem JS, nada some. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .95s var(--ease), transform 1.05s var(--ease);
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   4. Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    background .5s var(--ease),
    padding .5s var(--ease),
    border-color .5s,
    color .5s;
}

/* Rolou um pouco: fundo esfumaçado e barra mais baixa. */
.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgb(var(--night-rgb) / .55);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

/* Passou do hero: barra clara sobre o corpo da página. */
.site-header.is-solid {
  background: rgb(var(--paper-rgb) / .92);
  color: var(--ink);
  border-bottom-color: rgb(var(--ink-rgb) / .12);
}

/* Ficam acima do painel de menu, que é irmão deles. */
.brand,
.header__actions {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.brand__mark {
  height: 46px;
  width: auto;
  transition: height .5s var(--ease), filter .5s;
}
.site-header.is-scrolled .brand__mark { height: 36px; }
.site-header.is-solid .brand__mark { filter: brightness(.5) contrast(1.15); }

.brand__sig {
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .72;
  line-height: 1.5;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity .3s;
}
.site-nav a:hover { opacity: 1; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid rgb(var(--paper-rgb) / .3);
  color: inherit;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 9px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .4s, color .4s;
}
.site-header.is-solid .lang-toggle { border-color: rgb(var(--ink-rgb) / .22); }
.lang-toggle .is-off { opacity: .45; }

/* Botão do menu — duas barras que viram um X. Só aparece no breakpoint. */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}

.site-header.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Com o painel aberto o cabeçalho volta ao claro sobre fundo escuro.
   O backdrop-filter precisa sair: ele criaria bloco de contenção e prenderia
   o painel (position: fixed) dentro da barra. */
.site-header.nav-open {
  color: var(--paper);
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.nav-open .brand__mark { filter: none; }
.site-header.nav-open .lang-toggle { border-color: rgb(var(--paper-rgb) / .3); }

.btn__short { display: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
/* min-height em vez de height: em tela baixa o hero cresce em vez de cortar. */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
}

/* O quadro existe só para carregar o espelho: na mídia ele brigaria com o
   Ken Burns, que já ocupa o transform. Para desfazer, tire "is-mirrored". */
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: wsKen 26s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(var(--night-rgb) / .82) 0%,
    rgb(var(--night-rgb) / .58) 38%,
    rgb(var(--night-rgb) / .92) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* O topo precisa passar por baixo do cabeçalho fixo. */
  padding: clamp(116px, 17vh, 176px) var(--gutter) clamp(28px, 4vw, 44px);
}

.hero__copy {
  max-width: 1000px;
  animation: wsFade 1.2s var(--ease) .15s both;
}

.hero__eyebrow {
  margin-bottom: 22px;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  /* A chamada tem duas linhas longas: escala menor que a do design original,
     para a segunda linha caber sem quebrar. */
  font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--silver-lt);
}

.hero__text {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  font-weight: 300;
  color: rgb(var(--paper-rgb) / .78);
}

/* "Ler mais" — só existe no celular, onde o parágrafo é recortado.
   Usa a mesma linguagem do .btn--ghost, em versão miúda: sem moldura o
   botão se perdia no meio da chamada e parecia texto solto. */
.hero__more {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 18px;
  border: 1px solid rgb(var(--paper-rgb) / .32);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .4s, background .4s;
}
.hero__more:hover {
  border-color: rgb(var(--paper-rgb) / .8);
  background: rgb(var(--paper-rgb) / .06);
}

/* Seta em CSS puro — aponta para baixo fechado, para cima aberto. */
.hero__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .4s var(--ease);
}
.hero__copy.is-expanded .hero__more::after {
  transform: translateY(1px) rotate(-135deg);
}

.hero__more-close { display: none; }
.hero__copy.is-expanded .hero__more-open { display: none; }
.hero__copy.is-expanded .hero__more-close { display: inline; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: 22px;
  border-top: 1px solid rgb(var(--paper-rgb) / .16);
}

.hero__cue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(var(--paper-rgb) / .6);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__cue i {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: rgb(var(--paper-rgb) / .5);
  animation: wsCue 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   6. Faixa de números
   -------------------------------------------------------------------------- */
.stats {
  background: var(--night);
  color: var(--paper);
  padding: clamp(28px, 3vw, 40px) var(--gutter);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: var(--silver-lt);
}

.stat__label {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgb(var(--paper-rgb) / .62);
}

/* --------------------------------------------------------------------------
   7. Sobre
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.about__portrait { position: relative; }

.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.about__plate {
  position: absolute;
  bottom: -1px;
  left: -1px;
  background: var(--paper);
  padding: 18px 24px 10px 0;
}
.about__plate p:first-child {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}
.about__plate p + p {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  max-width: 60ch;
}
.about__body p {
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 300;
  opacity: .78;
}

/* Três pilares, separados por hairline. */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: rgb(var(--ink-rgb) / .12);
}
.pillar {
  background: var(--paper);
  padding: 22px 20px 20px 20px;
}
.pillar:first-child { padding-left: 0; }
.pillar__name { font-size: 13px; letter-spacing: .04em; font-weight: 500; }
.pillar__desc { margin-top: 6px; font-size: 12.5px; line-height: 1.5; opacity: .55; }

/* --------------------------------------------------------------------------
   8. Serviços
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1px;
}

.card {
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / .14);
  padding: clamp(28px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .5s;
}
.card:hover { background: var(--paper); }

.card__num { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
  opacity: .66;
}

/* --------------------------------------------------------------------------
   9. Método
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(28px, 3vw, 44px);
}

.step { display: flex; flex-direction: column; gap: 18px; }

.step__rule { height: 1px; background: rgb(var(--ink-rgb) / .2); }

/* A primeira etapa desenha a régua ao carregar. */
.step:first-child .step__rule {
  background: var(--muted);
  transform-origin: left;
  animation: wsLine 1.4s var(--ease) both;
}

.step__when { opacity: .5; }

.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

.step__text {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
  opacity: .66;
}

/* --------------------------------------------------------------------------
   10. Casos
   -------------------------------------------------------------------------- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.case { display: flex; flex-direction: column; gap: 20px; }

.case img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Ancorado no topo: o corte come o rodapé da foto, nunca a cabeça. */
  object-position: center top;
  border-radius: 2px;
  filter: saturate(.85);
}

/* Exceção: foto cujo assunto está no meio do quadro, não no alto. */
.case img.is-centered { object-position: center center; }

.case__body { display: flex; flex-direction: column; gap: 12px; }
.case__where { font-family: var(--mono); font-size: 11px; color: var(--silver-lt); }

.case__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.case__text {
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 300;
  color: rgb(var(--paper-rgb) / .62);
}

.case__result {
  margin-top: 4px;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--silver-lt);
}

/* --------------------------------------------------------------------------
   11. Galeria
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(8px, 1vw, 14px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  grid-column: span 2;
  transition: transform .8s var(--ease);
}
.gallery img:hover { transform: scale(1.015); }

.gallery img.is-wide {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 5vw, 80px);
}

.faq__list { display: flex; flex-direction: column; }

.faq__item { border-top: 1px solid rgb(var(--ink-rgb) / .16); }
.faq__item:last-child { border-bottom: 1px solid rgb(var(--ink-rgb) / .16); }

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-size: 17px;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__sign {
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: transform .35s var(--ease);
}
.faq__item[open] .faq__sign { transform: rotate(45deg); }

.faq__item p {
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
  opacity: .68;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   13. Contato
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  padding: clamp(90px, 11vw, 170px) var(--gutter);
}

.contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  filter: grayscale(1);
}

.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}

.contact__text {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  color: rgb(var(--paper-rgb) / .72);
}

/* --------------------------------------------------------------------------
   14. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: rgb(var(--paper-rgb) / .55);
  padding: clamp(48px, 5vw, 80px) var(--gutter) clamp(26px, 3vw, 38px);
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
}

.site-footer .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 3.5vw, 52px);
}

.footer__logo { width: min(420px, 72vw); height: auto; }

/* Colunas: marca, navegação, contato, praças. */
.footer__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
}

.footer__title {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver-lt);
}

.footer__note {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 34ch;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col li { font-size: 13px; line-height: 1.5; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--paper); }

/* Barra final: crédito e volta ao topo. */
.footer__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid rgb(var(--paper-rgb) / .12);
  font-size: 11.5px;
  letter-spacing: .04em;
}

.footer__bar a { transition: color .3s; }
.footer__bar a:hover { color: var(--paper); }

/* --------------------------------------------------------------------------
   15. Responsivo
   -------------------------------------------------------------------------- */
/* O menu horizontal já encosta nos botões antes dos 1080px — daí em diante
   ele vira painel. */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(4px, 1.5vh, 14px);
    padding: 0 var(--gutter);
    background: rgb(var(--night-rgb) / .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    font-family: var(--serif);
    font-size: clamp(26px, 6.5vw, 40px);
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--paper);
    opacity: .82;
    padding: 8px 0;
  }
  .site-nav a:hover { opacity: 1; }
}

@media (max-width: 900px) {
  .hero__title { font-size: clamp(26px, 5.6vw, 40px); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 18px; }

  .section-head,
  .about,
  .faq { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .pillars { grid-template-columns: 1fr; }
  .pillar { padding-left: 0; }

  /* A galeria vira duas colunas, com a foto larga ocupando a linha inteira. */
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { grid-column: span 1; }
  .gallery img.is-wide { grid-column: span 2; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* A barra fica cheia demais para caber marca + assinatura + dois botões. */
@media (max-width: 640px) {
  section[id] { scroll-margin-top: 80px; }

  /* O hero inteiro não cabe numa tela de celular: o parágrafo é recortado
     em três linhas e o resto vem no "Ler mais". Tudo condicionado a
     .has-more, que só o JS liga — sem script, o texto fica inteiro. */
  .hero__copy.has-more .hero__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero__copy.has-more.is-expanded .hero__text {
    display: block;
    overflow: visible;
  }
  .hero__copy.has-more .hero__more { display: inline-flex; }

  /* Na tela do celular a escala fluida ainda subia demais: aqui a chamada
     é fixada num tamanho que deixa hero + botões caberem sem rolagem. */
  .hero__title {
    font-size: clamp(23px, 6.4vw, 30px);
    line-height: 1.12;
    letter-spacing: -0.015em;
  }
  .hero__text {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.62;
  }
  .hero__eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: .22em;
  }
  .hero__inner { padding-top: clamp(96px, 14vh, 132px); }

  .hero__actions { margin-top: 26px; }

  .site-header { gap: 12px; }
  .brand__sig { display: none; }
  .brand__mark { height: 38px; }
  .site-header.is-scrolled .brand__mark { height: 32px; }

  .header__actions { gap: 10px; }
  .btn--sm { padding: 11px 14px; letter-spacing: .1em; }
  .btn__full { display: none; }
  .btn__short { display: inline; }

  .lang-toggle { padding: 8px 9px; letter-spacing: .1em; }
}

@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn--sm { width: auto; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; text-align: center; }
}

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

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__media,
  .hero__copy,
  .hero__cue i,
  .step:first-child .step__rule { animation: none; }

  .btn:hover,
  .gallery img:hover { transform: none; }
}
