/* =====================================================================================
   TOKENS — a única fonte de cor, tamanho de fonte e medida de layout do site.
   Regra: nenhum outro CSS usa cor literal, font-size literal ou medida fixa (px, rem, em, vw,
   vh, %, ch…). Conferir com: npm run tokens (scripts/tokens-check.mjs).
   Larguras de referência da grade: 390 (base) · 768 · 1440 · 2560.
   Tipografia: PROVISÓRIA, fontes do sistema (a definitiva vem na próxima etapa).
   ===================================================================================== */

/* ---------- Cor: tema claro (padrão e [data-theme='light']) ---------- */
:root,
:root[data-theme='light'] {
  --bg: #f5f5f2; /* fundo */
  --surface: #ecece8; /* superfície (cards, imagens de teste) */
  --text: #1c1c1a; /* texto */
  --text-2: #6a6a66; /* secundário */
  --line: #d6d6d1; /* linha */

  /* splash (decisão final): cortina grafite, palavra papel */
  --splash-cortina: #171716;
  --splash-texto: #ededea;

  color-scheme: light;
}

/* ---------- Cor: tema escuro ---------- */
:root[data-theme='dark'] {
  --bg: #171716;
  --surface: #222220;
  --text: #ededea;
  --text-2: #9c9c97;
  --line: #30302d;

  /* splash E1: cortina mais escura que o fundo, palavra papel */
  --splash-cortina: #0b0b0a;
  --splash-texto: #ededea;

  color-scheme: dark;
}

/* sem JS (theme-init não rodou): segue o aparelho */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #171716;
    --surface: #222220;
    --text: #ededea;
    --text-2: #9c9c97;
    --line: #30302d;
    --splash-cortina: #0b0b0a;
    --splash-texto: #ededea;
    color-scheme: dark;
  }
}

/* ---------- Cor: papéis derivados (sem cor de acento) ---------- */
:root {
  --link: var(--text); /* links: cor do texto, sempre sublinhados */
  --action-bg: var(--text); /* ação principal: inversão */
  --action-fg: var(--bg);
  --focus-ring: var(--text);
  --media-bg: var(--surface); /* fundo das imagens enquanto carregam / imagens de teste */
}

/* ---------- Medidas fixas de uso geral ---------- */
:root {
  --zero: 0;
  --full: 100%;
  --half: 50%;
  --border-w: 1px;
  --focus-w: 2px;
  --focus-offset: 3px;
  --underline-offset: 0.18em;
  --underline-w: 1px;
  --tap-min: 44px; /* área de toque mínima */
  --sr-size: 1px; /* .sr-only */
  --radius: 0; /* sem cantos arredondados (provisório) */
}

/* ---------- Espaçamento (base 4) ---------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section-gap: clamp(64px, 40.6px + 6vw, 128px); /* entre seções: 64 @390 → 128 @1440 */
}

/* ---------- Grade: colunas, gutter, margens e container ---------- */
/* 390 (base, até 767): 4 colunas · gutter 16 · margem 20 · container fluido */
:root {
  --cols: 4;
  --gutter: 16px;
  --margin: 20px;
  --container-max: 100vw;
  --container: min(100% - (2 * var(--margin)), var(--container-max));
  --grid-cols: repeat(var(--cols), minmax(0, 1fr));
  --span-card: 4; /* card da grade de trabalhos: 1 por linha */
  --span-text: 4; /* bloco de texto corrido */
  --measure: 62ch; /* largura máxima de leitura */
}
/* 768: 8 colunas · gutter 20 · margem 32 */
@media (min-width: 768px) {
  :root {
    --cols: 8;
    --gutter: 20px;
    --margin: 32px;
    --span-card: 4; /* 2 por linha */
    --span-text: 6;
  }
}
/* 1440: 12 colunas · gutter 24 · margem 48 · container até 1344 (cheio em 1440) */
@media (min-width: 1440px) {
  :root {
    --cols: 12;
    --gutter: 24px;
    --margin: 48px;
    --container-max: 1344px;
    --span-card: 6;
    --span-text: 7;
  }
}
/* 2560: 12 colunas · gutter 32 · margem 64 · container até 1920 */
@media (min-width: 2560px) {
  :root {
    --gutter: 32px;
    --margin: 64px;
    --container-max: 1920px;
  }
}

/* ---------- Proporções de mídia ---------- */
:root {
  --ratio-card: 3 / 2;
  --ratio-capa: 16 / 9;
  --ratio-imagem: 3 / 2;
}

/* ---------- Tipografia (PROVISÓRIA: fontes do sistema) ---------- */
:root {
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-splash: 'Manrope Splash', system-ui, sans-serif; /* só a palavra do splash */

  /* escala fluida: valor @390 → @1440 (e, no bloco 2560, @1440 → @2560) */
  --fs-display: clamp(2.75rem, 1.357rem + 5.714vw, 6.5rem); /* 44 → 104 */
  --fs-h1: clamp(2.25rem, 1.229rem + 4.19vw, 5rem); /* 36 → 80 */
  --fs-h2: clamp(1.75rem, 1.286rem + 1.905vw, 3rem); /* 28 → 48 */
  --fs-h3: clamp(1.25rem, 1.064rem + 0.762vw, 1.75rem); /* 20 → 28 */
  --fs-lead: clamp(1.125rem, 1.032rem + 0.381vw, 1.375rem); /* 18 → 22 */
  --fs-body: clamp(1rem, 0.954rem + 0.19vw, 1.125rem); /* 16 → 18 */
  --fs-small: clamp(0.875rem, 0.852rem + 0.095vw, 0.9375rem); /* 14 → 15 */
  --fs-label: clamp(0.75rem, 0.727rem + 0.095vw, 0.8125rem); /* 12 → 13 */

  --lh-display: 0.95;
  --lh-heading: 1.1;
  --lh-body: 1.55;
  --lh-tight: 1.2;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --tracking-display: -0.03em;
  --tracking-heading: -0.015em;
  --tracking-body: 0;
  --tracking-label: 0.06em;
}
@media (min-width: 1440px) {
  :root {
    --fs-display: clamp(6.5rem, 3.286rem + 3.571vw, 9rem); /* 104 → 144 */
    --fs-h1: clamp(5rem, 3.071rem + 2.143vw, 6.5rem); /* 80 → 104 */
    --fs-h2: clamp(3rem, 2.036rem + 1.071vw, 3.75rem); /* 48 → 60 */
    --fs-h3: clamp(1.75rem, 1.429rem + 0.357vw, 2rem); /* 28 → 32 */
    --fs-lead: clamp(1.375rem, 1.214rem + 0.179vw, 1.5rem); /* 22 → 24 */
    --fs-body: clamp(1.125rem, 0.964rem + 0.179vw, 1.25rem); /* 18 → 20 */
    --fs-small: clamp(0.9375rem, 0.857rem + 0.089vw, 1rem); /* 15 → 16 */
    --fs-label: clamp(0.8125rem, 0.732rem + 0.089vw, 0.875rem); /* 13 → 14 */
  }
}

/* ---------- Movimento ---------- */
:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 0.2s;
  --dur-2: 0.35s;
  --reveal-y: 40px; /* modules/reveal.js: itens sobem 40 px */
  --reveal-line-y: 125%; /* títulos por linha: sobe de dentro da máscara */
  --reveal-mask-top: 0.14em; /* folga da máscara p/ acentos e cedilha */
  --reveal-mask-bottom: 0.1em;
  --arrow-size: 0.62em;
  --arrow-gap: 0.3em;
}

/* ---------- Splash (src/splash/) — tempos e forma ficam no JS, iguais ao protótipo ---------- */
:root {
  --splash-z: 1000;
  --splash-altura-desenho: 110%; /* o desenho passa 10% da altura da tela */
  --splash-palavra-topo: 50%;
  --splash-fs: 20px;
  --splash-lh: 30px;
  --splash-tracking: 15px;
  --splash-peso: 200;
  --splash-entrada: 24px; /* título e grade sobem 24 px junto com a cortina */
}

/* Base copiada do Port (reset, Lenis, sr-only, foco, reveal, mídia com ponto focal) e enxugada:
   saíram a tipografia display, o botão pill, a bolinha "disponível" e tudo o que era identidade do Port.
   Toda medida e cor vem de tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: var(--full);
  text-size-adjust: var(--full);
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: var(--zero);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
  margin: var(--zero);
}
ol,
ul {
  padding: var(--zero);
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: var(--full);
}

/* links: sempre sublinhados, na cor do texto */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: var(--underline-w);
  text-underline-offset: var(--underline-offset);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: var(--zero);
  padding: var(--zero);
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: var(--sr-size);
  height: var(--sr-size);
  margin: calc(var(--sr-size) * -1);
  padding: var(--zero);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: var(--zero);
}

/* link "pular para o conteúdo": aparece no foco */
.skip-link {
  position: absolute;
  inset-inline-start: var(--margin);
  inset-block-start: var(--space-2);
  z-index: calc(var(--splash-z) + 1);
  padding: var(--space-2) var(--space-4);
  background: var(--action-bg);
  color: var(--action-fg);
  transform: translateY(calc(var(--full) * -2));
}
.skip-link:focus-visible {
  transform: none;
}

:focus-visible {
  outline: var(--focus-w) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---------- Ação principal: inversão (fundo = cor do texto) ---------- */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: var(--zero) var(--space-5);
  background: var(--action-bg);
  color: var(--action-fg);
  border: var(--border-w) solid var(--action-bg);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  text-decoration: none;
}
@media (hover: hover) {
  .action:hover {
    background: transparent;
    color: var(--text);
  }
}

/* ---------- Reveal (modules/reveal.js) ---------- */
.reveal-mask {
  display: block;
  overflow: hidden;
  /* folga p/ acentos (Á, Ê) e cedilha (Ç) com entrelinha < 1, sem mexer no layout */
  padding: var(--reveal-mask-top) var(--zero) var(--reveal-mask-bottom);
  margin: calc(var(--reveal-mask-top) * -1) var(--zero) calc(var(--reveal-mask-bottom) * -1);
}
.reveal-line {
  display: block;
}
/* estado inicial só com JS e sem reduced-motion — evita flash antes do GSAP */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-line {
    transform: translateY(var(--reveal-line-y));
  }
  .js [data-reveal-item] {
    opacity: 0;
    transform: translateY(var(--reveal-y));
  }
  .js .reveal-line.is-revealed,
  .js [data-reveal-item].is-revealed {
    opacity: 1;
    transform: none;
  }
  .js .is-revealing {
    transition:
      transform 0.9s var(--ease) var(--reveal-delay, 0s),
      opacity 0.9s var(--ease) var(--reveal-delay, 0s);
  }
}

/* ---------- Mídia com ponto focal (content.js → focus) ---------- */
.media-focus {
  object-position: var(--focus, var(--half) var(--half));
}
@media (max-width: 767px) {
  .media-focus {
    object-position: var(--focus-m, var(--focus, var(--half) var(--half)));
  }
}

/* seta ↗ dos links externos (templates/utils.js → arrowIcon) */
.arrow-ne {
  display: inline-block;
  flex: none;
  width: var(--arrow-size);
  height: var(--arrow-size);
  margin-left: var(--arrow-gap);
}

/* =====================================================================================
   TESTE v4 — linguagem visual da referência (Designpro) recriada com elementos próprios.
   Paleta grafite/papel (tokens do projeto, sem acento) · Familjen Grotesk + Instrument Sans · Caveat só no rabisco.
   Nada copiado da referência: código, desenhos, ícones e textos são deste projeto.
   O bloco :root abaixo é a PROPOSTA de tokens do teste (escala, cantos, bordas, espaços, tinta escura).
   ===================================================================================== */
:root {
  /* container (como a referência: 1320 px) */
  --v4-container-max: 1320px;
  --v4-container: min(100% - (2 * var(--margin)), var(--v4-container-max));

  /* escala (valor @390 → @1440) */
  --v4-hero: clamp(2.5rem, 1.571rem + 3.81vw, 5rem); /* 40 → 80 */
  --v4-h2: clamp(2.75rem, 1.96rem + 3.05vw, 4.75rem); /* 44 → 76 */
  --v4-h3: clamp(1.375rem, 1.19rem + 0.76vw, 1.875rem); /* 22 → 30 */
  --v4-cta: clamp(2.5rem, 1.757rem + 3.05vw, 4.5rem); /* 40 → 72 */
  --v4-quote: clamp(1.125rem, 0.846rem + 1.143vw, 1.875rem); /* 18 → 30 */
  --v4-lead: clamp(1.0625rem, 0.99rem + 0.29vw, 1.25rem); /* 17 → 20 */
  --v4-text: clamp(1rem, 0.95rem + 0.19vw, 1.125rem); /* 16 → 18 */
  --v4-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 → 15 */
  --v4-label: clamp(0.75rem, 0.7rem + 0.19vw, 0.875rem); /* 12 → 14 */
  --v4-hand: clamp(1.5rem, 1.29rem + 0.86vw, 2.125rem); /* 24 → 34 (rabisco) */
  --v4-lh-title: 1.1;
  --v4-track-title: -0.02em;
  --v4-track-label: 0.32em;

  /* cantos */
  --v4-r-pill: 999px;
  --v4-r-frame: 8px; /* capas da faixa e dos trabalhos */
  --v4-r-card: 16px; /* cards de serviço, foto */
  --v4-r-block: clamp(24px, 17.3px + 1.71vw, 40px); /* depoimento e CTA: 24 → 40 */

  /* bordas */
  --v4-border: 1px;
  --v4-frame: 4px; /* moldura clara das capas da faixa */

  /* espaços */
  --v4-section: clamp(80px, 62.17px + 4.571vw, 128px); /* ritmo entre seções: 80 → 128 */
  --v4-head-gap: clamp(40px, 30.1px + 2.54vw, 72px); /* cabeçalho de seção → conteúdo: 40 → 72 */
  --v4-hero-top: clamp(32px, 22.1px + 2.54vw, 64px); /* 32 → 64 */
  --v4-btn-h: 56px;
  --v4-round: 48px; /* botões redondos (setas) */

  /* faixas */
  --v4-strip-w: 72vw; /* largura de cada capa: 1,4 capa no celular */
  --v4-strip-ratio: 1.44;
  --v4-strip-dur: 80s;
  --v4-logos-dur: 60s;
  --v4-logo-scale: 0.72;
  --v4-fade: 12%; /* esmaecimento das bordas da faixa de logos */
  --v4-zoom: 1.03;

  /* tinta escura (pílula da navegação e bloco do depoimento): escura nos dois temas */
  --v4-ink: #1c1c1a;
  --v4-ink-fg: #f5f5f2;
  --v4-ink-fg-2: #c9c9c4;
  --v4-ink-line: transparent;
  --v4-btn-shadow: #9d9d98; /* sombra sólida dos botões (efeito "apertável") */
}
:root[data-theme='dark'] {
  --v4-ink: #0b0b0a;
  --v4-ink-fg: #ededea;
  --v4-ink-fg-2: #b5b5b0;
  --v4-ink-line: #30302d;
  --v4-btn-shadow: #5a5a56;
}
@media (min-width: 768px) {
  :root {
    --v4-strip-w: 40vw;
    --v4-logo-scale: 0.85;
  }
}
@media (min-width: 1200px) {
  :root {
    --v4-strip-w: min(23vw, 440px); /* 4 capas visíveis em 1440 */
    --v4-logo-scale: 1;
  }
}

/* ---------- Base do teste ---------- */
html {
  scroll-padding-top: calc(var(--tap-min) + var(--space-8));
}
body {
  font-size: var(--v4-text);
}
.v4-container {
  width: var(--v4-container);
  margin-inline: auto;
}
.v4-section {
  margin-top: var(--v4-section);
}
.v4-h2 {
  font-family: var(--font-display);
  font-size: var(--v4-h2);
  font-weight: 600;
  line-height: var(--v4-lh-title);
  letter-spacing: var(--v4-track-title);
  text-wrap: balance;
}
.v4-h3 {
  font-family: var(--font-display);
  font-size: var(--v4-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* pílula com ponto (selo do hero e cabeçalhos de seção) */
.v4-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-pill);
  font-size: var(--v4-small);
  font-weight: 500;
  line-height: 1.3;
}
.v4-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: var(--v4-r-pill);
  background: var(--text);
}
.v4-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--v4-head-gap);
  text-align: center;
}
.v4-head .v4-h2 {
  max-width: 16em;
  margin-top: var(--space-5);
}
.v4-sub {
  max-width: 34em;
  margin-top: var(--space-4);
  font-size: var(--v4-lead);
  line-height: 1.45;
  color: var(--text-2);
}

/* botões: pílula com sombra sólida embaixo */
.v4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--v4-btn-h);
  padding-inline: var(--space-6);
  border: var(--v4-border) solid var(--action-bg);
  border-radius: var(--v4-r-pill);
  background: var(--action-bg);
  color: var(--action-fg);
  box-shadow: 0 4px 0 var(--v4-btn-shadow);
  font-size: var(--v4-text);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-1), box-shadow var(--dur-1), background var(--dur-1), color var(--dur-1);
}
.v4-btn--linha {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text);
}
@media (hover: hover) {
  .v4-btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--v4-btn-shadow);
  }
}
.v4-btn--grande {
  min-height: calc(var(--v4-btn-h) + var(--space-2));
  padding-inline: var(--space-7);
  font-size: var(--v4-lead);
}

/* ---------- Header: nome à esquerda, pílula escura à direita ---------- */
.v4-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
.v4-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.v4-logo {
  font-family: var(--font-display);
  font-size: var(--v4-h3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.v4-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.v4-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-pill);
}
.theme-icon {
  width: var(--space-4);
  height: var(--space-4);
}
:root[data-theme='dark'] .theme-icon--moon,
:root:not([data-theme='dark']) .theme-icon--sun {
  display: none;
}
.v4-navpill {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
  border: var(--v4-border) solid var(--v4-ink-line);
  border-radius: var(--v4-r-pill);
  background: var(--v4-ink);
  color: var(--v4-ink-fg);
}
.v4-navpill__link,
.v4-menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding-inline: var(--space-4);
  border-radius: var(--v4-r-pill);
  color: var(--v4-ink-fg-2);
  font-size: var(--v4-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1);
}
.v4-menu-btn--on {
  color: var(--v4-ink-fg);
}
@media (hover: hover) {
  .v4-navpill__link:hover,
  .v4-menu-btn:hover {
    color: var(--v4-ink-fg);
  }
}
.v4-navpill__cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  margin-left: var(--space-2);
  padding-inline: var(--space-5);
  border-radius: var(--v4-r-pill);
  background: var(--v4-ink-fg);
  color: var(--v4-ink);
  font-size: var(--v4-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.v4-navpill :focus-visible {
  outline-color: var(--v4-ink-fg);
  outline-offset: calc(var(--focus-w) * -1);
}
.v4-navpill__cta:focus-visible {
  outline-color: var(--v4-ink);
  outline-offset: calc(var(--focus-w) * -2);
}
.v4-menu-btn {
  display: none;
}
@media (max-width: 1023px) {
  .v4-navpill__link,
  .v4-navpill__cta {
    display: none;
  }
  .v4-menu-btn {
    display: inline-flex;
    color: var(--v4-ink-fg);
  }
}

/* ---------- Painel do menu (< 1024): <dialog> modal, foco preso, Esc fecha ---------- */
.v4-panel {
  width: var(--full);
  max-width: var(--full);
  height: var(--full);
  max-height: var(--full);
  margin: var(--zero);
  padding: var(--zero);
  border: var(--zero);
  background: var(--bg);
  color: var(--text);
}
.v4-panel::backdrop {
  background: var(--bg);
}
.v4-panel__inner {
  display: flex;
  flex-direction: column;
  min-height: var(--full);
  padding-bottom: var(--space-7);
}
.v4-panel__nav {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-7);
}
.v4-panel__nav a {
  display: block;
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--v4-h2);
  font-weight: 600;
  line-height: var(--v4-lh-title);
  letter-spacing: var(--v4-track-title);
  text-decoration: none;
  border-bottom: var(--v4-border) solid var(--line);
}
.v4-panel__cta {
  align-self: flex-start;
  margin-top: var(--space-7);
}
@media (prefers-reduced-motion: no-preference) {
  .v4-panel[open] {
    animation: v4-panel-in 0.24s var(--ease);
  }
}
@keyframes v4-panel-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--space-4) * -1));
  }
}

/* ---------- Hero centralizado com desenhos à mão ---------- */
.v4-hero {
  position: relative;
  overflow-x: clip;
}
.v4-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--v4-hero-top);
  text-align: center;
}
.v4-hero__title {
  max-width: 920px;
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--v4-hero);
  font-weight: 600;
  line-height: var(--v4-lh-title);
  letter-spacing: var(--v4-track-title);
  text-wrap: balance;
}
.v4-hero__title span {
  white-space: nowrap; /* quebra só entre "Eu desenho." | "Eu programo." | "Nada se perde" | "no caminho." */
}
.v4-hero__text {
  max-width: 38em;
  margin-top: var(--space-5);
  font-size: var(--v4-lead);
  line-height: 1.5;
  text-wrap: pretty;
}
.v4-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (max-width: 479px) {
  .v4-actions {
    width: var(--full);
  }
  .v4-actions .v4-btn {
    flex: 1 1 auto; /* lado a lado de 360 px para cima; empilham abaixo disso */
    padding-inline: var(--space-4);
  }
}
.v4-doodle {
  position: absolute;
  display: none;
  color: var(--text-2);
  pointer-events: none;
}
@media (min-width: 1200px) {
  .v4-doodle {
    display: block;
  }
  .v4-doodle--esq {
    top: 150px;
    left: max(var(--space-2), calc(50% - 712px));
    width: 168px;
  }
  .v4-doodle--dir {
    top: 236px;
    right: max(var(--space-2), calc(50% - 700px));
    width: 270px;
  }
}
/* rabisco "alguns trabalhos recentes" com a seta curva para a faixa */
.v4-scribble {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  color: var(--text);
}
.v4-scribble__arrow {
  flex: none;
  width: clamp(44px, 36px + 2vw, 64px);
  margin-top: var(--space-3);
}
.v4-scribble__text {
  font-family: var(--font-hand);
  font-size: var(--v4-hand);
  font-weight: 500;
  line-height: 1;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}

/* ---------- Faixa de trabalhos: de ponta a ponta, moldura clara, loop lento ---------- */
.v4-strip {
  position: relative;
  margin-top: calc(var(--space-6) * -1);
}
.v4-strip__viewport {
  overflow: hidden;
}
.v4-strip__track {
  display: flex;
  gap: var(--gutter);
  width: max-content;
  padding-inline: var(--space-3);
}
.v4-strip__list {
  display: flex;
  gap: var(--gutter);
}
.v4-strip__item a {
  display: block;
  overflow: hidden;
  border: var(--v4-frame) solid var(--surface);
  border-radius: calc(var(--v4-r-frame) + var(--v4-frame));
  background: var(--surface);
}
.v4-strip__item a:focus-visible {
  outline-offset: var(--space-1);
}
.v4-strip__item img {
  width: var(--v4-strip-w);
  height: calc(var(--v4-strip-w) / var(--v4-strip-ratio));
  border-radius: var(--v4-r-frame);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .v4-strip__item a:hover img {
    transform: scale(var(--v4-zoom));
  }
}
/* botão de pausa discreto (WCAG 2.2.2) */
.v4-pause {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-pill);
  background: var(--bg);
  color: var(--text);
}
.v4-pause svg {
  width: 14px;
  height: 14px;
}
.v4-pause .ic-play,
.is-paused > .v4-pause .ic-pause {
  display: none;
}
.is-paused > .v4-pause .ic-play {
  display: block;
}
.v4-strip__pause {
  right: var(--margin);
  bottom: calc(var(--space-3) + var(--v4-frame));
}

/* ---------- Logos: rótulo espaçado + loop com bordas esmaecendo ---------- */
.v4-logos {
  position: relative;
  margin-top: clamp(56px, 45.3px + 2.74vw, 88px);
}
.v4-logos__label {
  padding-inline: calc(var(--margin) + 48px);
  font-family: var(--font-sans);
  font-size: var(--v4-label);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--v4-track-label);
  color: var(--text-2);
  text-align: center;
}
.v4-logos__viewport {
  overflow: hidden;
  margin-top: var(--space-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--v4-fade), #000 calc(100% - var(--v4-fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--v4-fade), #000 calc(100% - var(--v4-fade)), transparent);
}
.v4-logos__track {
  display: flex;
  width: max-content;
}
.v4-logos__list {
  display: flex;
  align-items: center;
  gap: clamp(40px, 30.1px + 2.54vw, 72px);
  padding-right: clamp(40px, 30.1px + 2.54vw, 72px);
}
.v4-logo-img {
  display: block;
  width: calc(var(--w) * 1px * var(--v4-logo-scale));
  aspect-ratio: var(--r);
  background: var(--text-2);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.v4-logos__pause {
  top: calc(var(--space-1) * -1);
  right: var(--margin);
}

/* movimento das faixas: só sem reduced-motion; pausa no hover, no foco e pelo botão */
@media (prefers-reduced-motion: no-preference) {
  .v4-strip__track {
    animation: v4-marquee var(--v4-strip-dur) linear infinite;
  }
  .v4-logos__track {
    animation: v4-marquee-logos var(--v4-logos-dur) linear infinite;
  }
  .v4-strip:hover .v4-strip__track,
  .v4-strip:focus-within .v4-strip__track,
  .v4-strip.is-paused .v4-strip__track,
  .v4-logos:hover .v4-logos__track,
  .v4-logos:focus-within .v4-logos__track,
  .v4-logos.is-paused .v4-logos__track {
    animation-play-state: paused;
  }
}
@keyframes v4-marquee {
  to {
    transform: translateX(calc(-50% - var(--gutter) / 2));
  }
}
@keyframes v4-marquee-logos {
  to {
    transform: translateX(-50%);
  }
}
/* reduced-motion: faixa parada e rolável; logos parados, em linhas centralizadas */
@media (prefers-reduced-motion: reduce) {
  .v4-strip__viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--space-3);
    scrollbar-width: thin;
  }
  .v4-strip__item {
    scroll-snap-align: start;
  }
  .v4-strip__list[aria-hidden='true'],
  .v4-logos__list[aria-hidden='true'],
  .v4-pause {
    display: none;
  }
  .v4-logos__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .v4-logos__track {
    width: auto;
  }
  .v4-logos__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6) var(--space-7);
    width: var(--v4-container);
    margin-inline: auto;
    padding: var(--zero);
  }
}

/* ---------- Depoimento: bloco escuro centralizado ---------- */
.v4-quote {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(40px, 28.6px + 2.92vw, 80px) clamp(24px, 8px + 4.1vw, 88px);
  border: var(--v4-border) solid var(--v4-ink-line);
  border-radius: var(--v4-r-block);
  background: var(--v4-ink);
  color: var(--v4-ink-fg);
  text-align: center;
}
.v4-quote__text {
  font-size: var(--v4-quote);
  line-height: 1.55;
  text-wrap: pretty;
}
.v4-quote__text p::before {
  content: '“';
}
.v4-quote__text p::after {
  content: '”';
}
.v4-quote__who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-7);
}
.v4-quote__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  border: var(--v4-border) solid var(--v4-ink-fg-2);
  border-radius: var(--v4-r-pill);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.v4-quote__name {
  font-family: var(--font-display);
  font-size: var(--v4-h3);
  font-weight: 600;
  line-height: 1.2;
}
.v4-quote__role {
  font-size: var(--v4-small);
  color: var(--v4-ink-fg-2);
}

/* ---------- Processo: 3 passos com ícone, número e seta curva ---------- */
.v4-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8) var(--gutter);
}
@media (min-width: 768px) {
  .v4-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.v4-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v4-step__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-6);
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-pill);
}
.v4-step__icon-svg {
  width: 26px;
  height: 26px;
}
.v4-step__num {
  position: absolute;
  top: -6px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--v4-r-pill);
  background: var(--action-bg);
  color: var(--action-fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}
.v4-step__text {
  max-width: 24em;
  margin-top: var(--space-4);
  font-size: var(--v4-lead);
  line-height: 1.5;
  color: var(--text-2);
}
.v4-step__arrow {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + var(--gutter) / 2);
  width: min(calc(100% - 96px), 220px);
  color: var(--text-2);
  transform: translateX(-50%);
}
@media (min-width: 768px) {
  .v4-step__arrow {
    display: block;
  }
}

/* ---------- Serviços: 3 cards com borda, imagem embaixo sangrando à direita ---------- */
.v4-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}
@media (min-width: 768px) {
  .v4-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.v4-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 20.3px + 0.95vw, 32px) 0 0 clamp(24px, 20.3px + 0.95vw, 32px);
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-card);
}
.v4-service .v4-h3 {
  padding-right: var(--space-5);
}
.v4-service__text {
  margin-top: var(--space-3);
  margin-bottom: var(--space-7);
  padding-right: var(--space-5);
  color: var(--text-2);
  line-height: 1.55;
}
.v4-service__img {
  margin-top: auto;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-top-left-radius: var(--v4-r-frame);
  background: var(--surface);
}
.v4-service__img img {
  width: var(--full);
  height: var(--full);
  object-fit: cover;
  object-position: left center;
}
.v4-service__img--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: var(--v4-border) dashed var(--line);
  border-left: var(--v4-border) dashed var(--line);
  color: var(--text-2);
  font-size: var(--v4-small);
  letter-spacing: 0.06em;
}

/* ---------- Trabalhos em destaque: grade 2×2 + carrosséis ---------- */
.v4-works {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7) var(--gutter);
}
@media (min-width: 768px) {
  .v4-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.v4-work {
  display: block;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--v4-r-frame);
}
.v4-work:focus-visible {
  outline-offset: var(--space-2);
}
.v4-work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.47;
  border-radius: var(--v4-r-frame);
  background: var(--surface);
}
.v4-work__media img {
  width: var(--full);
  height: var(--full);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}
.v4-work__media--post img {
  object-fit: contain; /* post inteiro, na proporção original, sobre a superfície */
  padding-block: var(--space-5);
}
@media (hover: hover) {
  .v4-work:hover .v4-work__media img {
    transform: scale(var(--v4-zoom));
  }
}
.v4-tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--v4-r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--v4-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v4-work__name {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--v4-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
@media (hover: hover) {
  .v4-work:hover .v4-work__name,
  .v4-work:hover .v4-carousel__name {
    text-decoration: underline;
    text-decoration-thickness: var(--underline-w);
    text-underline-offset: var(--underline-offset);
  }
}
.v4-carousel {
  margin-top: clamp(64px, 52.6px + 2.92vw, 104px);
}
.v4-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.v4-carousel__nav {
  display: flex;
  gap: var(--space-2);
}
.v4-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--v4-round);
  height: var(--v4-round);
  border: var(--v4-border) solid var(--text);
  border-radius: var(--v4-r-pill);
  color: var(--text);
  transition: background var(--dur-1), color var(--dur-1), opacity var(--dur-1);
}
.v4-round[aria-disabled='true'] {
  opacity: 0.35;
  cursor: default;
}
@media (hover: hover) {
  .v4-round:not([aria-disabled='true']):hover {
    background: var(--text);
    color: var(--bg);
  }
}
.v4-carousel__ic {
  width: 20px;
  height: 20px;
}
.v4-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
@media (min-width: 768px) {
  .v4-carousel__track {
    grid-auto-columns: calc((100% - var(--gutter)) / 2.15);
  }
}
@media (min-width: 1200px) {
  .v4-carousel__track {
    grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3);
  }
}
.v4-carousel__track:focus-visible {
  outline-offset: var(--space-1);
}
.v4-carousel__item {
  scroll-snap-align: start;
}
.v4-carousel__name {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--v4-lead);
  font-weight: 600;
  line-height: 1.3;
}
.v4-carousel__track--posts {
  grid-auto-columns: max-content;
}
.v4-post {
  overflow: hidden;
  border-radius: var(--v4-r-frame);
  background: var(--surface);
}
.v4-post img {
  width: auto;
  height: clamp(320px, 266.7px + 13.7vw, 464px); /* 320 → 464: posts na proporção original */
}
.v4-carousel__item--post .v4-carousel__name {
  font-family: var(--font-sans);
  font-size: var(--v4-small);
  font-weight: 500;
  color: var(--text-2);
}

/* ---------- Sobre: centralizado ---------- */
.v4-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.v4-about__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(168px, 140px + 7.2vw, 240px);
  aspect-ratio: 4 / 5;
  border: var(--v4-border) dashed var(--line);
  border-radius: var(--v4-r-card);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--v4-small);
  letter-spacing: 0.06em;
}
.v4-about__text {
  max-width: 28.5em; /* ~62 caracteres por linha (limite 65) */
  font-size: var(--v4-lead);
  line-height: 1.6;
  text-wrap: pretty;
}
.v4-about__link {
  margin-top: calc(var(--space-3) * -1);
  font-size: var(--v4-lead);
}

/* ---------- CTA final: card com borda, centralizado ---------- */
.v4-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(48px, 39.1px + 2.29vw, 72px) clamp(20px, 3.3px + 4.29vw, 64px);
  border: var(--v4-border) solid var(--line);
  border-radius: var(--v4-r-block);
  text-align: center;
}
.v4-cta__title {
  max-width: 12em;
  font-family: var(--font-display);
  font-size: var(--v4-cta);
  font-weight: 600;
  line-height: var(--v4-lh-title);
  letter-spacing: var(--v4-track-title);
  text-wrap: balance;
}
.v4-cta__text {
  max-width: 30em;
  margin-top: var(--space-5);
  font-size: var(--v4-lead);
  line-height: 1.5;
  color: var(--text-2);
}
.v4-cta .v4-btn {
  margin-top: var(--space-7);
}
@media (max-width: 479px) {
  .v4-cta .v4-btn {
    width: var(--full);
    padding-inline: var(--space-4);
  }
}
.v4-cta__mail {
  margin-top: var(--space-6);
  font-size: var(--v4-small);
  color: var(--text-2);
}
.v4-cta__mail a {
  color: var(--text);
}

/* ---------- Rodapé ---------- */
.v4-footer {
  margin-top: clamp(48px, 38.9px + 2.29vw, 72px);
  padding-block: var(--space-6);
  border-top: var(--v4-border) solid var(--line);
  font-size: var(--v4-small);
  color: var(--text-2);
}
.v4-footer a {
  color: var(--text-2);
}

/* ======================================================================================
   Teste v5 — camada sobre o layout-v4.css (que entra inteiro antes deste arquivo).
   html.js-mov = JS ligado e sem prefers-reduced-motion (classe posta no <head>, antes da 1ª pintura).
   Sem js-mov (sem JS, reduced-motion ou falha ao carregar o GSAP): tudo estático, visível e na posição final.
   Movimento: só transform, opacity e clip-path (exceção registrada: stroke-dashoffset nos traços SVG).
   ====================================================================================== */
:root {
  --v4-frame: 6px; /* v4.1: moldura de 6 px nas capas */
  --v5-ease: cubic-bezier(0.7, 0, 0.2, 1);
  --v5-phone-w: 260px; /* moldura do celular: 260 px no celular, 300 px a partir de 768 */
  --v5-phone-b: 10px;
  --v5-phone-r: 36px;
  --v5-grafite: #2b2b29;
  --v5-hl-w: 0.11em; /* sublinhado grosso do trecho destacado */
}
@media (min-width: 768px) {
  :root {
    --v5-phone-w: 300px;
  }
}

/* ---------- v4.1: rabiscos com mais massa ---------- */
.v4-doodle {
  color: var(--text);
}
@media (min-width: 1200px) {
  .v4-doodle--esq {
    top: 140px;
    width: 184px;
  }
  .v4-doodle--dir {
    width: 284px;
  }
}

/* ---------- v4.1: moldura de 6 px nas capas (faixa já usa --v4-frame; agora destaques e "Mais sites") ---------- */
.v4-work__media {
  border: var(--v4-frame) solid var(--surface);
  border-radius: calc(var(--v4-r-frame) + var(--v4-frame));
}
.v4-work__media img {
  border-radius: var(--v4-r-frame);
}

/* ---------- v4.1: seta ↗ nas pílulas ---------- */
.v5-ne {
  flex: none;
  width: 1em;
  height: 1em;
  margin-left: var(--space-2);
}
.v4-navpill__cta .v5-ne {
  width: 0.95em;
  height: 0.95em;
}

/* ---------- letras que rolam (menu e botões): o texto sobe e uma cópia entra por baixo ---------- */
.v5-roll {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  line-height: 1.3;
  vertical-align: top;
}
.v5-roll__l {
  display: flex;
  white-space: pre;
}
.v5-roll__l--b {
  position: absolute;
  top: 100%;
  left: 0;
}
.v5-roll__l span {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .v5-roll__l span {
    transition: transform 0.55s var(--v5-ease);
    transition-delay: calc(var(--i) * 14ms);
  }
  :is(a, button):focus-visible .v5-roll__l span {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  :is(a, button):hover .v5-roll__l span {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .v5-roll__l--b {
    display: none;
  }
}

/* ---------- header some ao rolar para baixo e volta ao rolar para cima ---------- */
.js-mov .v4-header {
  transition: transform 0.45s var(--v5-ease);
}
.js-mov .v4-header.is-hidden {
  transform: translateY(-100%);
}

/* hero sem splash (2ª visita): fica escondido só até o GSAP montar a entrada */
.hero-espera [data-hero-entra],
.hero-espera [data-hero-titulo],
.hero-espera .v4-doodle,
.hero-espera .v4-scribble {
  opacity: 0;
}

/* ---------- faixas: com movimento, a de trabalhos é do GSAP (velocidade e inclinação ligadas à rolagem) ---------- */
.js-mov .v4-strip__track {
  animation: none;
}
/* sem movimento: o que a v4 fazia no reduced-motion vale também sem JS */
html:not(.js-mov) .v4-strip__track,
html:not(.js-mov) .v4-logos__track {
  animation: none;
}
html:not(.js-mov) .v4-strip__viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--space-3);
  scrollbar-width: thin;
}
html:not(.js-mov) .v4-strip__item {
  scroll-snap-align: start;
}
html:not(.js-mov) .v4-strip__list[aria-hidden='true'],
html:not(.js-mov) .v4-logos__list[aria-hidden='true'],
html:not(.js-mov) .v4-pause {
  display: none;
}
html:not(.js-mov) .v4-logos__viewport {
  -webkit-mask-image: none;
  mask-image: none;
}
html:not(.js-mov) .v4-logos__track {
  width: auto;
}
html:not(.js-mov) .v4-logos__list {
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-7);
  width: var(--v4-container);
  margin-inline: auto;
  padding: var(--zero);
}

/* ---------- Depoimentos: bloco escuro, miniatura do trabalho ao lado da citação ---------- */
.v5-deps {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(28px, 16.6px + 2.92vw, 68px) clamp(20px, 6.3px + 3.5vw, 72px);
  border: var(--v4-border) solid var(--v4-ink-line);
  border-radius: var(--v4-r-block);
  background: var(--v4-ink);
  color: var(--v4-ink-fg);
}
.v5-deps__list {
  display: grid;
}
.v5-dep + .v5-dep {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: var(--v4-border) solid rgb(255 255 255 / 0.14);
}
.v5-dep__fig {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .v5-dep__fig {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 16px + 2.1vw, 64px);
  }
}
.v5-dep__thumb {
  position: relative;
  padding: var(--v4-frame);
  border-radius: calc(var(--v4-r-frame) + var(--v4-frame));
  background: rgb(255 255 255 / 0.09);
}
.v5-dep__thumb img {
  width: var(--full);
  height: auto;
  aspect-ratio: 1.47;
  border-radius: var(--v4-r-frame);
  object-fit: cover;
  object-position: center top;
}
.v5-dep__work {
  position: absolute;
  top: calc(var(--v4-frame) + var(--space-3));
  left: calc(var(--v4-frame) + var(--space-3));
  padding: var(--space-1) var(--space-3);
  border-radius: var(--v4-r-pill);
  background: var(--v4-ink);
  color: var(--v4-ink-fg);
  font-size: var(--v4-label);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.v5-dep__quote {
  margin: var(--zero);
  font-size: var(--v4-quote);
  line-height: 1.5;
  text-wrap: pretty;
}
.v5-dep__quote p::before {
  content: '“';
}
.v5-dep__quote p::after {
  content: '”';
}
.v5-hl,
.v5-hl * {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: var(--v5-hl-w);
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: none;
}
.v5-dep__who {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-6);
  padding-right: 56px; /* espaço do botão de pausa */
}
.v5-dep__name {
  font-family: var(--font-display);
  font-size: var(--v4-h3);
  font-weight: 600;
  line-height: 1.2;
}
.v5-dep__role {
  font-size: var(--v4-small);
  color: var(--v4-ink-fg-2);
}
.v5-deps__pause {
  right: clamp(16px, 10px + 1vw, 28px);
  bottom: clamp(16px, 10px + 1vw, 28px);
  border-color: rgb(255 255 255 / 0.28);
  background: transparent;
  color: var(--v4-ink-fg);
}
.v5-deps__pause:focus-visible {
  outline-color: var(--v4-ink-fg);
}
/* com movimento: os 5 empilhados no mesmo lugar (altura = o mais alto, sem CLS na troca) */
.js-mov .v5-dep {
  grid-area: 1 / 1;
}
.js-mov .v5-dep + .v5-dep {
  margin-top: var(--zero);
  padding-top: var(--zero);
  border-top: var(--zero);
}
.js-mov .v5-dep:not(:first-child) {
  visibility: hidden;
  opacity: 0;
}

/* ---------- Faixa tipográfica gigante (aria-hidden) ---------- */
.v5-band {
  margin-top: var(--v4-section);
  padding-block: 0.6vw 1.6vw; /* folga para descendentes (g, p) */
  overflow: hidden;
}
.v5-band__track {
  display: flex;
  width: max-content;
}
.v5-band__row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding-right: 0.3em;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.v5-band__w--linha {
  color: transparent;
  -webkit-text-stroke: max(1px, 0.014em) var(--text);
}
.v5-band__star {
  flex: none;
  width: 0.42em;
  height: 0.42em;
}

/* ---------- "Mais sites": < 1024 rolagem por toque com snap (sem setas) ---------- */
.v5-mais {
  margin-top: clamp(64px, 52.6px + 2.92vw, 104px);
}
.v5-mais__title,
.v5-ig__title {
  margin-bottom: var(--space-5);
}
.v5-mais__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block: var(--space-2) var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.v5-mais__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--gutter);
}
@media (min-width: 768px) {
  .v5-mais__track {
    grid-auto-columns: calc((100% - var(--gutter)) / 2.15);
  }
}
@media (min-width: 1200px) {
  .v5-mais__track {
    grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3);
  }
}
.v5-mais__item {
  scroll-snap-align: start;
}
.v5-mais__bar {
  display: none;
}
/* ≥ 1024 com movimento: seção fixa, os sites passam na horizontal com a rolagem vertical */
@media (min-width: 1024px) {
  .js-mov .v5-mais__viewport {
    overflow: clip;
    margin-block: calc(var(--space-3) * -1);
    padding-block: var(--space-3);
    scroll-snap-type: none;
  }
  .js-mov .v5-mais__track {
    display: flex;
    width: max-content;
  }
  .js-mov .v5-mais__item {
    flex: none;
    width: min(56vw, 760px);
  }
  .js-mov .v5-mais__bar {
    display: block;
    height: 2px;
    margin-top: var(--space-5);
    overflow: hidden;
    border-radius: 2px;
    background: var(--line);
  }
  .js-mov .v5-mais__bar span {
    display: block;
    height: var(--full);
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left center;
  }
}

/* ---------- Social media no estilo Stories ---------- */
.v5-ig {
  position: relative;
  margin-top: clamp(64px, 52.6px + 2.92vw, 104px);
}
/* sem movimento: os 5 posts numa fileira rolável por toque e teclado */
.v5-ig__stage {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.v5-ig__stage:focus-visible {
  outline-offset: var(--space-1);
}
.v5-ig__list {
  display: flex;
  gap: var(--gutter);
  width: max-content;
}
.v5-ig__item {
  flex: none;
  width: clamp(240px, 205px + 9vw, 320px);
  scroll-snap-align: start;
}
.v5-ig__post {
  overflow: hidden;
  border-radius: var(--v4-r-frame);
  background: var(--surface);
}
.v5-ig__post img {
  width: var(--full);
  height: auto;
  -webkit-user-drag: none;
}
.v5-ig__name {
  margin-top: var(--space-3);
  font-size: var(--v4-small);
  font-weight: 500;
  color: var(--text-2);
}
.v5-ig__screen,
.v5-ig__phone,
.v5-ig__caption,
.v5-ig__pause {
  display: none;
}
/* com movimento: palco centralizado, post ativo dentro do celular, vizinhos menores, esmaecidos e girados */
.js-mov .v5-ig__stage {
  position: relative;
  height: calc(var(--v5-phone-w) * 1.9);
  overflow: hidden;
  padding: var(--zero);
  scroll-snap-type: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.js-mov .v5-ig__stage:focus-visible {
  outline-offset: calc(var(--focus-w) * -1);
}
.js-mov .v5-ig__list {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: var(--full);
  perspective: 1200px;
}
.js-mov .v5-ig__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  pointer-events: none;
}
.js-mov .v5-ig__item:not(:first-child) {
  opacity: 0;
}
.js-mov .v5-ig__post {
  width: calc(var(--v5-phone-w) - 2 * var(--v5-phone-b));
  border-radius: 6px;
}
.js-mov .v5-ig__name {
  display: none;
}
.js-mov .v5-ig__screen,
.js-mov .v5-ig__phone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: var(--v5-phone-w);
  margin-left: calc(var(--v5-phone-w) / -2);
  border-radius: var(--v5-phone-r);
  pointer-events: none;
}
.js-mov .v5-ig__screen {
  background: var(--v4-ink);
}
.js-mov .v5-ig__phone {
  z-index: 2;
  border: var(--v5-phone-b) solid var(--v5-grafite);
  box-shadow: 0 0 0 1px var(--v4-ink-line);
}
.v5-ig__island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: var(--v4-r-pill);
  background: var(--v5-grafite);
}
.v5-ig__bars {
  position: absolute;
  top: 40px;
  right: 12px;
  left: 12px;
  display: flex;
  gap: 4px;
}
.v5-ig__bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.28);
}
.v5-ig__bar > span {
  display: block;
  height: var(--full);
  background: #f5f5f2;
  transform: scaleX(0);
  transform-origin: left center;
}
.js-mov .v5-ig__caption {
  display: grid;
  justify-items: center;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--v4-lead);
  font-weight: 600;
  line-height: 1.3;
}
.v5-ig__cap {
  grid-area: 1 / 1;
  overflow: hidden;
}
.v5-ig__cap > span {
  display: block;
}
.js-mov .v5-ig__cap:not(:first-child) > span {
  transform: translateY(110%);
}
.js-mov .v5-ig__pause {
  display: inline-flex;
  top: 0;
  right: 0;
}

/* ---------- cursor-etiqueta "Ver trabalho" (só ponteiro fino) ---------- */
.v5-cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .js-mov .v5-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--v4-r-pill);
    background: var(--action-bg);
    color: var(--action-fg);
    font-size: var(--v4-small);
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
  }
}

/* ---------- CTA: botão magnético ---------- */
.v5-magnet {
  display: inline-flex;
  margin-top: var(--space-7);
}
.v4-cta .v5-magnet .v4-btn {
  margin-top: var(--zero);
}
@media (max-width: 479px) {
  .v5-magnet {
    width: var(--full);
  }
}

/* ---------- Rodapé com "Voltar ao topo" ---------- */
.v5-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.v5-footer .v5-top {
  min-height: var(--tap-min);
  padding-inline: var(--space-5);
  box-shadow: 0 3px 0 var(--v4-btn-shadow);
  color: var(--text);
  font-size: var(--v4-small);
}

/* ---------- SplitText (tag span): palavras/letras em inline-block; máscara com folga para acentos e descendentes ---------- */
.js-mov .w,
.js-mov .c,
.js-mov .w-mask {
  display: inline-block;
}
.js-mov .l {
  display: block;
}
.js-mov .w-mask {
  padding-block: 0.14em;
  margin-block: -0.14em;
}
/* alvo de âncora focado por script: sem contorno (o foco só marca o ponto de partida do Tab) */
[tabindex='-1']:focus {
  outline: none;
}

/* < 480: os dois botões do hero continuam lado a lado (como na v4) mesmo com a seta ↗ */
@media (max-width: 479px) {
  .v4-actions .v4-btn {
    padding-inline: 14px;
    font-size: 0.9375rem;
  }
  .v4-actions .v5-ne {
    width: 0.85em;
    height: 0.85em;
    margin-left: 6px;
  }
}

/* camadas próprias (compositor) para o que se move a cada quadro: sem repintar imagens e o texto gigante na rolagem */
/* v5.1: a inclinação da faixa, a paralaxe dos serviços e o scrub do CTA saíram; só ficam em camada própria os trilhos em loop */
.js-mov .v4-strip__track,
.js-mov .v5-band__track {
  will-change: transform;
}
@media (min-width: 1024px) {
  .js-mov .v5-mais__track {
    will-change: transform;
  }
}

/* logos: esmaecimento das bordas por gradientes na cor do fundo (mesmo efeito da máscara da v4, sem a camada extra de máscara
   sobre a animação; mais barato na rolagem em telas 2x) */
.js-mov .v4-logos__viewport {
  position: relative;
  -webkit-mask-image: none;
  mask-image: none;
}
.js-mov .v4-logos__viewport::before,
.js-mov .v4-logos__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: var(--v4-fade);
  pointer-events: none;
}
.js-mov .v4-logos__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.js-mov .v4-logos__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

/* ================= v5.1 ================= */
/* foto do Stanley no Sobre (copiada do Port): mesmo quadro 4:5 de antes, agora com a imagem */
.v5-foto {
  display: block;
  overflow: hidden;
  border: 0;
}
.v5-foto img {
  display: block;
  width: var(--full);
  height: var(--full);
  object-fit: cover;
}

/* quadro de marca do card "Identidade visual" (CSS + SVG, original, na paleta do site) */
.v5-marca {
  container-type: inline-size; /* as medidas em cqi valem para o invólucro interno */
}
.v5-marca__in {
  display: grid;
  height: var(--full);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5cqi 6cqi;
  padding: 9cqi 9cqi 8cqi;
  color: var(--text);
}
.v5-marca__aa {
  font-family: var(--font-display);
  font-size: 34cqi;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.v5-marca__formas {
  display: grid;
  grid-template-columns: repeat(3, 10cqi);
  gap: 3cqi;
  align-self: start;
}
.v5-marca__formas svg {
  display: block;
  width: var(--full);
  height: auto;
}
.v5-marca__cores {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3cqi;
}
.v5-marca__cor > span {
  display: block;
  aspect-ratio: 1 / 1;
  border: var(--v4-border) solid var(--line);
  border-radius: 3cqi;
}
.v5-marca__cor small {
  display: block;
  margin-top: 1.6cqi;
  font-size: max(9px, 3.4cqi);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.v5-marca__tipo {
  grid-column: 1 / -1;
  padding-top: 3cqi;
  border-top: var(--v4-border) solid var(--line);
  font-family: var(--font-sans);
  font-size: max(10px, 4cqi);
  color: var(--text-2);
}

/* v5.1: com a rolagem nativa (toque e abaixo de 1024), o menu e o splash prendem a rolagem por esta classe */
html.rolagem-presa {
  overflow: hidden;
}

/* ======================================================================================
   Teste v6 — polimento visual, sobre o layout-v4.css e o layout-v5.css (entra depois dos dois).
   html.js-mov = JS ligado e sem prefers-reduced-motion. Sem js-mov: tudo estático, visível e no estado final.
   ====================================================================================== */

/* ---------- 2. escala tipográfica do desktop (a partir de 1024; valores de 1024 → 1600) ---------- */
:root {
  --v6-nome-trab: clamp(1.25rem, 1.1rem + 0.45vw, 1.625rem); /* nomes dos trabalhos: 20 @390 · 22 @1024 · 24 @1440 */
  --v6-quote: clamp(1.25rem, 0.925rem + 1.3333vw, 2.125rem); /* citação: 20 @390 → 34 @1440 */
}
@media (min-width: 1024px) {
  :root {
    --v4-text: clamp(1.125rem, 0.9028rem + 0.3472vw, 1.25rem); /* corpo: 18 → 20 (19,4 @1440) */
    --v4-lead: clamp(1.25rem, 1.0278rem + 0.3472vw, 1.375rem); /* subtítulos: 20 → 22 (21,4 @1440) */
    --v4-h2: clamp(4rem, 1.3333rem + 4.1667vw, 5.5rem); /* títulos de seção: 64 → 88 (81 @1440) */
  }
}
.v4-work__name,
.v4-carousel__name {
  font-size: var(--v6-nome-trab);
}
.v4-cta__mail {
  font-size: max(1rem, var(--v4-small)); /* linha de e-mail: nunca menor que 16 px */
}

/* ---------- 3. fundo que inverte com a rolagem (depoimentos e CTA final) ----------
   Página: cor fixa do tema (--v6-pagina), pintada no html; o body fica transparente para a camada fixa .v6-fundo
   (cor oposta, opacidade ligada à rolagem) aparecer atrás do conteúdo. Na metade da transição, html.fundo-inv troca
   os tokens de texto para os do tema oposto. Sem js-mov, as duas seções já ficam no estado final (faixa de fundo
   oposto, de ponta a ponta). */
:root,
:root[data-theme='light'] {
  --v6-pagina: #f5f5f2;
  --v6-pagina-inv: #171716;
  --v6-grao-op: 0.045;
  --v6-brilho-op: 0.85;
}
:root[data-theme='dark'] {
  --v6-pagina: #171716;
  --v6-pagina-inv: #f5f5f2;
  --v6-grao-op: 0.028;
  --v6-brilho-op: 0.7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --v6-pagina: #171716;
    --v6-pagina-inv: #f5f5f2;
    --v6-grao-op: 0.028;
    --v6-brilho-op: 0.7;
  }
}
html {
  background-color: var(--v6-pagina);
}
body {
  background: transparent;
}
.js-mov body {
  transition: color 0.4s ease;
}

/* tokens do tema escuro aplicados sobre o claro (página invertida, ou a seção no estado final sem movimento) */
:root[data-theme='light'].fundo-inv,
:root[data-theme='light']:not(.js-mov) [data-inverte],
:root:not([data-theme]) [data-inverte] {
  --bg: #171716;
  --surface: #222220;
  --text: #ededea;
  --text-2: #9c9c97;
  --line: #30302d;
  --v4-ink: #0b0b0a;
  --v4-ink-fg: #ededea;
  --v4-ink-fg-2: #b5b5b0;
  --v4-ink-line: #30302d;
  --v4-btn-shadow: #5a5a56;
  --v6-brilho-op: 0.7;
  color-scheme: dark;
}
/* tokens do tema claro aplicados sobre o escuro */
:root[data-theme='dark'].fundo-inv,
:root[data-theme='dark']:not(.js-mov) [data-inverte] {
  --bg: #f5f5f2;
  --surface: #ecece8;
  --text: #1c1c1a;
  --text-2: #6a6a66;
  --line: #d6d6d1;
  --v4-ink: #1c1c1a;
  --v4-ink-fg: #f5f5f2;
  --v4-ink-fg-2: #c9c9c4;
  --v4-ink-line: transparent;
  --v4-btn-shadow: #9d9d98;
  --v6-brilho-op: 0.85;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) [data-inverte] {
    --bg: #f5f5f2;
    --surface: #ecece8;
    --text: #1c1c1a;
    --text-2: #6a6a66;
    --line: #d6d6d1;
    --v4-ink: #1c1c1a;
    --v4-ink-fg: #f5f5f2;
    --v4-ink-fg-2: #c9c9c4;
    --v4-ink-line: transparent;
    --v4-btn-shadow: #9d9d98;
    color-scheme: light;
  }
}
/* papéis derivados recalculados dentro da seção (no :root eles já seguem os tokens) */
[data-inverte] {
  --link: var(--text);
  --action-bg: var(--text);
  --action-fg: var(--bg);
  --focus-ring: var(--text);
  --media-bg: var(--surface);
}
[data-inverte]:not([data-inverte='continua']) {
  margin-top: calc(var(--v4-section) * 0.5);
  padding-block: var(--v4-section) calc(var(--v4-section) * 0.6); /* v6: menos vazio entre o fim da seção e a próxima */
}
/* o rodapé continua a zona escura do CTA final (sem faixa clara entre os dois) */
.v6-footer[data-inverte] {
  margin-top: var(--zero);
}
html:not(.js-mov) [data-inverte] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 0 0 100vmax var(--bg); /* faixa de ponta a ponta, sem rolagem lateral */
  clip-path: inset(0 -100vmax);
}
.v6-fundo,
.v6-grao {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v6-fundo {
  background: var(--v6-pagina-inv);
  opacity: 0;
}
html:not(.js-mov) .v6-fundo {
  display: none;
}

/* ---------- 4. grão de papel (SVG de ruído, 0,3 kB), atrás do conteúdo: não toca na nitidez do texto ---------- */
.v6-grao {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: var(--v6-grao-op);
}

/* ---------- 1, 10, 11. Sobre sem foto: parágrafo e linha do tempo ---------- */
.v4-about {
  gap: var(--space-7);
}
.v4-about__link {
  margin-top: var(--zero);
}
.v6-tempo {
  position: relative;
  display: grid;
  width: var(--full);
  margin-block: var(--space-5) var(--space-3);
  padding: var(--zero);
  list-style: none;
  text-align: left;
}
.v6-marco {
  position: relative;
  padding: 0 0 var(--space-7) 40px;
}
.v6-marco:last-child {
  padding-bottom: var(--zero);
}
.v6-marco__ponto {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--text);
  border-radius: var(--v4-r-pill);
  background: var(--v6-pagina);
}
.fundo-inv .v6-marco__ponto {
  background: var(--bg);
}
.v6-marco__ponto i {
  position: absolute;
  inset: 3px;
  border-radius: var(--v4-r-pill);
  background: var(--text);
}
.v6-marco__seg {
  position: absolute;
  top: 14px;
  left: 7px;
  width: 2px;
  height: var(--full);
  background: var(--line);
}
.v6-marco__seg > span {
  display: block;
  width: var(--full);
  height: var(--full);
  background: var(--text);
  transform-origin: center top;
}
.v6-marco__corpo {
  display: flex;
  flex-direction: column;
}
.v6-marco__logos {
  order: 3;
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.v6-marco__logo {
  width: auto;
  height: 30px;
  background: var(--text);
}
.v6-marco__titulo {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.v6-marco__texto {
  max-width: 22em;
  margin-top: var(--space-2);
  color: var(--text-2);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .v6-tempo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-8);
    text-align: center;
  }
  .v6-marco {
    padding: 40px var(--space-5) 0;
  }
  .v6-marco__ponto {
    top: 0;
    left: calc(50% - 8px);
  }
  .v6-marco__seg {
    top: 7px;
    left: 50%;
    width: var(--full);
    height: 2px;
  }
  .v6-marco__seg > span {
    transform-origin: left center;
  }
  .v6-marco__logos {
    justify-content: center;
  }
  .v6-marco__texto {
    margin-inline: auto;
  }
}
/* sem movimento: a linha já desenhada e os marcos acesos (estado final) */

/* ---------- 6. depoimento editorial ---------- */
.v5-deps {
  max-width: none;
  padding: var(--zero);
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
}
.v5-dep + .v5-dep {
  border-top-color: var(--line);
}
@media (min-width: 768px) {
  .v5-dep__fig {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 8px + 4.2vw, 96px);
  }
}
.v6-nav {
  overflow: hidden;
  padding: var(--zero);
  border: var(--v4-border) solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.55);
}
.v6-nav__barra {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 38px;
  padding-inline: 14px;
  border-bottom: var(--v4-border) solid var(--line);
}
.v6-nav__pontos {
  display: flex;
  flex: none;
  gap: 6px;
}
.v6-nav__pontos i {
  width: 9px;
  height: 9px;
  border-radius: var(--v4-r-pill);
  background: var(--line);
}
.v6-nav__url {
  overflow: hidden;
  max-width: 62%;
  margin-inline: auto;
  padding: 3px 14px;
  border-radius: var(--v4-r-pill);
  background: var(--bg);
  color: var(--text-2);
  font-size: var(--v4-label);
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-27px); /* centraliza na barra, descontando os três pontos */
}
.v5-dep__thumb.v6-nav img {
  display: block;
  border-radius: 0;
}
.v6-aspa {
  display: block;
  width: clamp(88px, 61px + 6.86vw, 160px);
  height: auto;
  margin-bottom: clamp(12px, 8px + 1vw, 24px);
  color: var(--text);
}
.v5-dep__quote {
  font-size: var(--v6-quote);
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.v5-dep__quote p::before,
.v5-dep__quote p::after {
  content: none;
}
.v5-dep__who {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(24px, 18px + 1.5vw, 40px);
  padding-right: 44px;
}
.v5-dep__who::before {
  content: '';
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--text);
}
.v5-dep__name {
  font-family: var(--font-sans);
  font-size: var(--v4-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.v5-dep__role {
  color: var(--text-2);
}
.v5-deps__pause {
  right: 0;
  bottom: 0;
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}
.v5-deps__pause:focus-visible {
  outline-color: var(--text);
}

/* ---------- 8. botões de pausa: menores e discretos; acendem no hover da seção e no foco por teclado ---------- */
.v4-pause {
  width: 28px;
  height: 28px;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.v4-pause svg {
  width: 11px;
  height: 11px;
}
.v4-pause:focus-visible,
.is-paused > .v4-pause,
.v4-pause[aria-pressed='true'] {
  opacity: 1;
}
@media (hover: hover) {
  :is(.v4-strip, .v4-logos, .v5-deps, .v5-ig):hover .v4-pause {
    opacity: 1;
  }
}

/* ---------- 5. Stories: celular maior, sombra suave e brilho ambiente da própria imagem ---------- */
:root {
  --v5-phone-w: 280px;
}
@media (min-width: 768px) {
  :root {
    --v5-phone-w: 320px;
  }
}
@media (min-width: 1200px) {
  :root {
    --v5-phone-w: 360px;
  }
}
.v6-ig__brilho {
  display: none;
}
.js-mov .v5-ig__stage {
  overflow: visible; /* o brilho passa das bordas do palco; quem corta os vizinhos é a lista */
}
.js-mov .v5-ig__list {
  overflow: clip;
}
.js-mov .v6-ig__brilho {
  position: absolute;
  inset: -12% calc(var(--margin) * -1);
  display: block;
  overflow: hidden;
  opacity: var(--v6-brilho-op);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(farthest-side, #000 30%, transparent);
  mask-image: radial-gradient(farthest-side, #000 30%, transparent);
}
.js-mov .v6-ig__brilho img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--v5-phone-w) * 2.8);
  height: calc(var(--v5-phone-w) * 2.1);
  margin: calc(var(--v5-phone-w) * -1.05) 0 0 calc(var(--v5-phone-w) * -1.4);
  max-width: none; /* o img global tem max-width: 100% */
  object-fit: cover;
  filter: blur(60px) saturate(1.8);
  opacity: 0;
}
@media (max-width: 767px) {
  /* no celular o aparelho ocupa quase a largura: o brilho cresce para cima e para baixo */
  .js-mov .v6-ig__brilho {
    inset-block: -22%;
  }
  .js-mov .v6-ig__brilho img {
    height: calc(var(--v5-phone-w) * 2.7);
    margin-top: calc(var(--v5-phone-w) * -1.35);
  }
}
.js-mov .v6-ig__brilho img:first-child {
  opacity: 1;
}
.js-mov .v5-ig__screen {
  box-shadow:
    0 50px 90px -40px rgb(0 0 0 / 0.5),
    0 16px 32px -16px rgb(0 0 0 / 0.3);
}
.v5-ig__pause {
  z-index: 3;
}
/* título e legenda acima do brilho (que passa das bordas do palco) */
.v5-ig > h3,
.v5-ig__caption {
  position: relative;
  z-index: 2;
}

/* ---------- 7. rodapé: linha + "Voltar ao topo" e "Stanley Tiago" gigante ajustado à largura ---------- */
.v6-footer {
  container-type: inline-size;
  padding-bottom: var(--zero);
}
.v6-footer__nome {
  margin-top: clamp(24px, 14px + 2.5vw, 56px);
  padding-bottom: 0.06em;
  overflow: clip;
  font-family: var(--font-display);
  font-size: 18.4cqi; /* "Stanley Tiago" mede 5,4 em; 100 / 5,4 ≈ 18,5 → ocupa a largura do container */
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--text);
}

/* ---------- SplitText das letras do nome gigante ---------- */
.js-mov .v6-footer__nome .c {
  display: inline-block;
}

/* corpo nunca abaixo de 16 px: linha do rodapé */
.v6-footer .v5-footer p {
  font-size: max(1rem, var(--v4-small));
}

/* ---------- publicação v6: <picture> (AVIF + WebP) e cards sem link ---------- */
.v6-pic {
  display: block;
}
.v4-work__media .v6-pic,
.v4-service__img .v6-pic {
  width: var(--full);
  height: var(--full);
}
/* faixa: a moldura que antes ficava no link */
.v4-strip__item .v6-card {
  display: block;
  overflow: hidden;
  border: var(--v4-frame) solid var(--surface);
  border-radius: calc(var(--v4-r-frame) + var(--v4-frame));
  background: var(--surface);
}
/* sem página de trabalho: nada de sublinhado de link no nome ao passar o mouse */
@media (hover: hover) {
  .v4-work:hover .v4-work__name,
  .v4-work:hover .v4-carousel__name {
    text-decoration: none;
  }
}

/* ======================================================================================
   v7 — camada sobre a v6: hero com mais respiro, Stories em card no formato do post, rodapé sem corte e movimento no celular.
   Paleta e fontes intocadas. Movimento só com html.js-mov; sem ele (reduced-motion, sem JS) tudo fica estático e visível.
   ====================================================================================== */

/* ---------- 1. Hero: sem sol e sem lápis, mais espaço negativo, faixa começando mais abaixo ---------- */
.v4-hero__inner {
  padding-top: clamp(64px, 44px + 5.2vw, 128px);
}
.v4-hero__title {
  max-width: 15em;
}
.v4-hero__text {
  max-width: 560px;
  margin-top: clamp(20px, 16px + 1vw, 32px);
}
.v4-actions {
  margin-top: clamp(40px, 32px + 2vw, 64px);
}
/* rabisco "alguns trabalhos recentes" ~20% menor */
.v4-scribble {
  margin-top: clamp(48px, 28px + 6.4vw, 140px);
}
.v4-scribble__text {
  font-size: calc(var(--v4-hand) * 0.8);
}
.v4-scribble__arrow {
  width: calc(clamp(44px, 36px + 2vw, 64px) * 0.8);
}
/* no celular o rabisco encostava no topo das capas: a faixa sobe menos sobre ele */
@media (max-width: 767px) {
  .v4-strip {
    margin-top: calc(var(--space-2) * -1);
  }
}

/* ---------- 2. Stories: card no formato do post (sem moldura de celular e sem faixa preta), barras por cima da imagem ---------- */
.v7-ig__topo,
.v7-ig__veu {
  display: none;
}
.js-mov .v5-ig__stage {
  height: calc(var(--v5-phone-w) * 1.26 + 48px); /* o post mais alto é 1080 × 1356; +48 px para a sombra do card */
}
.js-mov .v5-ig__item {
  align-items: flex-start; /* topo de todos os cards alinhado: as barras ficam sempre no topo do card ativo */
}
.js-mov .v5-ig__post {
  position: relative;
  width: var(--v5-phone-w);
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 28px 56px -28px rgb(0 0 0 / 0.42),
    0 10px 20px -12px rgb(0 0 0 / 0.22);
}
.js-mov .v5-ig__post img {
  display: block;
}
/* véu dos vizinhos: o card fica opaco (o brilho não passa por ele) e esmaece com a cor do fundo */
.js-mov .v7-ig__veu {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.js-mov .v7-ig__topo {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: block;
  width: var(--v5-phone-w);
  height: 64px;
  margin-left: calc(var(--v5-phone-w) / -2);
  border-radius: 20px 20px 0 0;
  background: linear-gradient(rgb(0 0 0 / 0.3), rgb(0 0 0 / 0));
  pointer-events: none;
}
.js-mov .v7-ig__topo .v5-ig__bars {
  top: 12px;
  right: 12px;
  left: 12px;
}
/* brilho: metade da intensidade da v6 */
.js-mov .v6-ig__brilho {
  opacity: calc(var(--v6-brilho-op) * 0.5);
}

/* ---------- 3. Rodapé: "Stanley Tiago" inteiro (descendentes do y e do g) e respiro antes do fim da página ---------- */
.v6-footer {
  padding-bottom: clamp(24px, 16px + 2.5vw, 56px);
}
.v6-footer__nome {
  padding-bottom: 0.16em; /* a caixa recortada inclui o "y" e o "g" */
  font-size: 18cqi;
  line-height: 1.04;
}

/* ---------- 4. Processo no celular: ícone à esquerda e uma linha vertical ligando os 3 passos ---------- */
.v7-passo__seg {
  display: none;
}
@media (max-width: 767px) {
  .v4-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: var(--space-5);
    align-items: start;
    text-align: left;
  }
  .v4-step__icon {
    grid-row: 1 / span 2;
    margin-bottom: var(--zero);
    background: var(--bg);
  }
  .v4-step .v4-h3 {
    align-self: end;
    margin-top: var(--space-2);
  }
  .v4-step__text {
    margin-top: var(--space-2);
  }
  /* trecho da linha: do pé do ícone deste passo até o topo do ícone do próximo */
  .v7-passo__seg {
    position: absolute;
    top: 72px;
    left: 35px;
    display: block;
    width: 2px;
    height: calc(100% - 72px + var(--space-8));
    background: var(--line);
  }
  .v7-passo__seg > span {
    display: block;
    height: var(--full);
    background: var(--text);
    transform-origin: 50% 0;
  }
  .js-mov .v7-passo__seg > span {
    transform: scaleY(0);
  }
}

/* ---------- 5. Destaques empilhando (só no celular, com movimento): cada card preso no topo, o próximo sobe por cima ---------- */
.v7-veu {
  display: none;
}
@media (max-width: 767px) {
  .js-mov [data-destaques] > li {
    position: sticky;
    top: 84px; /* abaixo do header; cada card 12 px mais baixo que o anterior, para a pilha aparecer */
  }
  .js-mov [data-destaques] > li:nth-child(2) {
    top: 96px;
  }
  .js-mov [data-destaques] > li:nth-child(3) {
    top: 108px;
  }
  .js-mov [data-destaques] > li:nth-child(4) {
    top: 120px;
  }
  .js-mov [data-destaques] .v4-work {
    position: relative;
    padding-bottom: var(--space-4);
    background: var(--bg);
    transform-origin: 50% 0;
  }
  .js-mov [data-destaques] .v7-veu {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: var(--v4-r-frame);
    background: #000;
    opacity: 0;
    pointer-events: none;
  }
}

/* ---------- 6. "Mais sites" fixo também abaixo de 1024 (com movimento): passagem horizontal ligada à rolagem ---------- */
@media (max-width: 1023px) {
  .js-mov .v5-mais__viewport {
    overflow: clip;
    margin-block: calc(var(--space-3) * -1);
    padding-block: var(--space-3);
    scroll-snap-type: none;
  }
  .js-mov .v5-mais__track {
    display: flex;
    width: max-content;
    will-change: transform;
  }
  .js-mov .v5-mais__item {
    flex: none;
    width: 78vw;
  }
  .js-mov .v5-mais__bar {
    display: block;
    height: 2px;
    margin-top: var(--space-5);
    overflow: hidden;
    border-radius: 2px;
    background: var(--line);
  }
  .js-mov .v5-mais__bar span {
    display: block;
    height: var(--full);
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left center;
  }
}

/* ---------- 7. seção fixa: a largura que o ScrollTrigger escreve na seção e no espaçador (inline) vale até o próximo
   recálculo; ao estreitar a janela (390 → 320) ela passava 50 px da tela por ~250 ms. max-width limita sem esperar. ---------- */
.pin-spacer:has(> [data-mais]),
.js-mov [data-mais] {
  max-width: 100% !important; /* o ScrollTrigger também escreve max-width inline na seção */
}

/* ===== v8: Stories de volta dentro do celular, sem faixa preta =====
   Tela = a imagem do post ativo desfocada (30 px), escurecida (35%) e levemente saturada; por cima, o post inteiro na
   largura da tela (proporção natural, sem corte), cantos de 10 px. Barras logo abaixo da ilha. Vizinhos seguem como cards
   fora do celular; o brilho atrás continua. Sem movimento (reduced-motion): fileira, como antes. */
:root {
  --v5-phone-w: 260px;
  --v5-phone-b: 10px;
  --v5-phone-r: 40px;
}
@media (min-width: 768px) {
  :root {
    --v5-phone-w: 300px;
  }
}
@media (min-width: 1200px) {
  :root {
    --v5-phone-w: 320px;
  }
}
.js-mov .v5-ig__stage {
  height: calc(var(--v5-phone-w) * 1.9);
}
.js-mov .v5-ig__item {
  align-items: center; /* o post fica no meio da tela do celular */
}
.js-mov .v5-ig__post {
  width: calc(var(--v5-phone-w) - 2 * var(--v5-phone-b));
  border-radius: 10px;
  box-shadow:
    0 18px 36px -18px rgb(0 0 0 / 0.45),
    0 6px 12px -8px rgb(0 0 0 / 0.25);
}
/* fundo da tela: a imagem do post ativo cobrindo a tela inteira */
.js-mov .v5-ig__screen {
  overflow: hidden;
}
.js-mov .v5-ig__screen img {
  position: absolute;
  inset: 0;
  width: var(--full);
  height: var(--full);
  max-width: none;
  object-fit: cover;
  filter: blur(30px) brightness(0.65) saturate(1.2);
  opacity: 0;
  transform: scale(1.35); /* o desfoque esmaece as bordas da imagem: ampliada, a borda fica fora da tela */
}
.js-mov .v5-ig__screen img:first-child {
  opacity: 1;
}
/* barras logo abaixo da ilha (ilha: 8 + 22 px), com sombra leve para ler sobre qualquer imagem */
.js-mov .v5-ig__phone .v5-ig__bars {
  top: 38px;
  right: 14px;
  left: 14px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.45));
}
.js-mov .v5-ig__phone .v5-ig__bar {
  background: rgb(255 255 255 / 0.35);
}

/* ===== Fontes: par B (Familjen Grotesk + Instrument Sans 400–600) e Caveat só nas letras do rabisco (OFL-1.1) ===== */
@font-face { font-family: 'Familjen Teste'; src: url('/fontes/familjen-var.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Instrument Teste'; src: url('/fontes/instrument-var.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Caveat Rabisco'; src: url('/fontes/caveat-500-rabisco.woff2') format('woff2'); font-weight: 500; font-display: swap; }
:root { --font-sans: 'Instrument Teste', system-ui, sans-serif; --font-display: 'Familjen Teste', system-ui, sans-serif; --font-hand: 'Caveat Rabisco', 'Segoe Print', cursive; }
