/* ==========================================================================
   Compasso Lab — design system
   Uma família tipográfica (Jost), dois temas, zero ornamento sem função.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fontes — self-hosted, variáveis, subset por caractere usado
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-normal-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0028-002E, U+0030-0036, U+0038-003A, U+003F-0047, U+0049-004A, U+004C-0057, U+0061-007A, U+00A9, U+00B7, U+00E1-00E3, U+00E7, U+00E9-00EA, U+00ED, U+00F3, U+00F5, U+00FA, U+2013-2014, U+2212;
}

/* Nenhuma itálica é usada: uma só face evita 16 KB de fonte pré-carregada
   sem uso. Se algum dia entrar itálico, é um novo @font-face + preload. */

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;

  /* escala tipográfica — oito degraus, todos fluidos */
  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-base: 1.0625rem;
  --t-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --t-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  --t-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --t-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.6rem);
  --t-4xl: clamp(2.9rem, 1.5rem + 5.6vw, 6.4rem);

  /* espaço */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 60ch;

  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-1: 160ms;
  --d-2: 320ms;
  --d-3: 640ms;

  /* marca de terceiro: cor oficial, fora do sistema */
  --wa-green: #25d366;
  --wa-ink: #ffffff;

  /* estados do bloco invertido no tema claro (laje escura) */
  --inv-danger: #ff9b8a;
  --inv-danger-fill: rgba(255, 155, 138, 0.1);
  --inv-danger-line: rgba(255, 155, 138, 0.45);
  --inv-success: #b7f0c8;
  --inv-success-fill: rgba(126, 217, 155, 0.12);
  --inv-success-line: rgba(126, 217, 155, 0.4);

  color-scheme: light dark;
}

/* claro */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ec;
  --bg-elev: #ffffff;
  --bg-soft: #e9e3d8;
  --ink: #0a0a0a;
  --ink-soft: #35332e;
  --ink-mute: #5f5b54;
  --line: rgba(10, 10, 10, 0.14);
  --line-soft: rgba(10, 10, 10, 0.07);
  --accent: #1a3a8f;
  --accent-fill: #1a3a8f;
  --accent-ink: #f4f1ec;
  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 28px rgba(10, 10, 10, 0.06);
  --shadow-2: 0 2px 6px rgba(10, 10, 10, 0.07), 0 28px 64px rgba(10, 10, 10, 0.12);
  --grain-opacity: 0.5;
  --inv-bg: #0a0a0a;
  --inv-ink: #f4f1ec;
  --inv-ink-soft: rgba(244, 241, 236, 0.74);
  --inv-ink-mute: rgba(244, 241, 236, 0.56);
  --inv-line: rgba(244, 241, 236, 0.18);
  --inv-line-soft: rgba(244, 241, 236, 0.08);
  --inv-field: rgba(244, 241, 236, 0.07);
  --inv-accent: #8fb2ff;
  --inv-accent-fill: #8fb2ff;
  --inv-accent-ink: #0a0a0a;
}

/* escuro */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-elev: #121110;
  --bg-soft: #1b1a17;
  --ink: #f4f1ec;
  --ink-soft: #c6c1b8;
  --ink-mute: #918c82;
  --line: rgba(244, 241, 236, 0.14);
  --line-soft: rgba(244, 241, 236, 0.07);
  --accent: #8fb2ff;
  --accent-fill: #8fb2ff;
  --accent-ink: #0a0a0a;
  --shadow-1: inset 0 1px 0 rgba(244, 241, 236, 0.06), 0 2px 6px rgba(0, 0, 0, 0.4),
    0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-2: inset 0 1px 0 rgba(244, 241, 236, 0.08), 0 2px 6px rgba(0, 0, 0, 0.5),
    0 28px 64px rgba(0, 0, 0, 0.65);
  --grain-opacity: 0.35;
  --inv-bg: #f4f1ec;
  --inv-ink: #0a0a0a;
  --inv-ink-soft: #35332e;
  --inv-ink-mute: #5f5b54;
  --inv-line: rgba(10, 10, 10, 0.14);
  --inv-line-soft: rgba(10, 10, 10, 0.07);
  --inv-field: rgba(10, 10, 10, 0.04);
  --inv-accent: #1a3a8f;
  --inv-accent-fill: #1a3a8f;
  --inv-accent-ink: #f4f1ec;
  --inv-danger: #a3261a;
  --inv-danger-fill: rgba(163, 38, 26, 0.07);
  --inv-danger-line: rgba(163, 38, 26, 0.38);
  --inv-success: #1d6134;
  --inv-success-fill: rgba(29, 97, 52, 0.07);
  --inv-success-line: rgba(29, 97, 52, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-elev: #121110;
    --bg-soft: #1b1a17;
    --ink: #f4f1ec;
    --ink-soft: #c6c1b8;
    --ink-mute: #918c82;
    --line: rgba(244, 241, 236, 0.14);
    --line-soft: rgba(244, 241, 236, 0.07);
    --accent: #8fb2ff;
    --accent-fill: #8fb2ff;
    --accent-ink: #0a0a0a;
    --shadow-1: inset 0 1px 0 rgba(244, 241, 236, 0.06), 0 2px 6px rgba(0, 0, 0, 0.4),
      0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-2: inset 0 1px 0 rgba(244, 241, 236, 0.08), 0 2px 6px rgba(0, 0, 0, 0.5),
      0 28px 64px rgba(0, 0, 0, 0.65);
    --grain-opacity: 0.35;
    --inv-bg: #f4f1ec;
    --inv-ink: #0a0a0a;
    --inv-ink-soft: #35332e;
    --inv-ink-mute: #5f5b54;
    --inv-line: rgba(10, 10, 10, 0.14);
    --inv-line-soft: rgba(10, 10, 10, 0.07);
    --inv-field: rgba(10, 10, 10, 0.04);
    --inv-accent: #1a3a8f;
    --inv-accent-fill: #1a3a8f;
    --inv-accent-ink: #f4f1ec;
    --inv-danger: #a3261a;
    --inv-danger-fill: rgba(163, 38, 26, 0.07);
    --inv-danger-line: rgba(163, 38, 26, 0.38);
    --inv-success: #1d6134;
    --inv-success-fill: rgba(29, 97, 52, 0.07);
    --inv-success-line: rgba(29, 97, 52, 0.35);
  }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* grão discreto: uma camada de fundo, sem blend nem overlay fixo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

::selection {
  background: var(--accent-fill);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Um alvo de salto que recebe foco por script não precisa do anel: a rolagem já
   disse onde a pessoa foi, e um contorno de 2 px em volta da seção inteira é
   ruído. O escopo é de propósito — #formSuccess também tem tabindex="-1" e ali
   o anel deve continuar aparecendo. */
.section[tabindex="-1"]:focus-visible,
.site-header[tabindex="-1"]:focus-visible {
  outline: none;
}

.nav a:focus-visible,
.menu-nav a:focus-visible,
.footer-nav a:focus-visible,
.contact-direct a:focus-visible,
.menu-foot a:focus-visible {
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   4. Utilitários
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-1);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: top var(--d-1) var(--ease);
}

.skip:focus {
  top: calc(76px + var(--s-3));
}

/* --------------------------------------------------------------------------
   5. Tipografia — hierarquia por peso, tamanho e espaço. Nunca por família.
   -------------------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}

.display {
  font-weight: 600;
  font-size: var(--t-4xl);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 var(--s-6);
}

.display .thin {
  font-weight: 300;
  letter-spacing: -0.035em;
}

.display-2 {
  font-weight: 500;
  font-size: var(--t-3xl);
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0 0 var(--s-5);
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}

.lede--spaced {
  margin-top: var(--s-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-5);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-fill);
  flex: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-5);
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   6. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color var(--d-1) var(--ease),
    color var(--d-1) var(--ease), border-color var(--d-1) var(--ease),
    transform var(--d-1) var(--ease), opacity var(--d-1) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .arrow {
  transition: transform var(--d-1) var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.primary:hover {
  background: var(--accent-fill);
  color: var(--accent-ink);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.btn.large {
  padding: 18px 30px;
  font-size: var(--t-base);
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.6;
  cursor: progress;
  pointer-events: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
  height: 76px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent-fill);
  transition: opacity var(--d-2) var(--ease);
  opacity: 0;
}

.site-header.is-scrolled .progress {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  white-space: nowrap;
  justify-self: start;
}

/* a marca real tem proporção 412:442 — quase quadrada, com as pontas vivas */
.brand-mark {
  width: auto;
  height: 26px;
  flex: none;
}

.brand-word {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: 0.04em;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: var(--t-sm);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: color var(--d-1) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-2) var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a[aria-current="true"] {
  color: var(--ink);
  /* sem mudança de peso: a Jost é variável, e 400 → 500 alarga as letras e
     empurra os vizinhos, então a barra tremia a cada troca de seção. O ponto,
     a cor e o sublinhado já marcam o item ativo. */
}

.nav a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent-fill);
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-nav a[aria-current="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color var(--d-1) var(--ease),
    background-color var(--d-1) var(--ease);
}

.icon-btn:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.icon-btn:active {
  background: var(--bg-soft);
  border-color: var(--ink);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-btn .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-btn .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .icon-btn .icon-moon {
    display: block;
  }
}

.menu-btn {
  display: none;
}

/* Sete itens de menu não cabem ao lado da marca antes disto. */
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .header-row {
    grid-template-columns: auto 1fr;
  }
  .menu-btn {
    display: inline-flex;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* menu mobile */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.menu::backdrop {
  background: rgba(10, 10, 10, 0.5);
}

.menu[open] {
  display: flex;
  flex-direction: column;
}

body.menu-open {
  overflow: hidden;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.menu-nav {
  padding: var(--s-7) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.menu-nav a {
  font-size: clamp(1.6rem, 1.2rem + 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.menu-nav a:hover {
  color: var(--accent);
}

.menu-nav a:active {
  color: var(--accent);
}

.menu-foot {
  margin-top: auto;
  padding: var(--s-6) var(--gutter) var(--s-8);
  font-size: var(--t-sm);
  color: var(--ink-mute);
}

.menu-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-mark .mark {
  width: min(100%, 400px);
  height: auto;
  color: var(--ink);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-meta .meta-label {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-meta .meta-value {
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .hero-mark {
    order: -1;
  }
  .hero-mark .mark {
    width: min(52%, 230px);
  }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
  }
  .hero-mark .mark {
    width: min(44%, 170px);
  }
  .display {
    margin-bottom: var(--s-5);
  }
}

/* marquee */
.marquee {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0 var(--s-4) var(--s-2);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee:hover,
.marquee:focus-within {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--s-6);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  animation: marquee 52s linear infinite;
  animation-play-state: paused;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: running;
}

.marquee-track .sep {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--accent-fill);
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - var(--s-6) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee:hover,
  .marquee:focus-within {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
    width: auto;
    justify-content: center;
    row-gap: var(--s-2);
  }
  .marquee-track > :nth-child(n + 12) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Seções
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(64px, 7vw, 112px);
  position: relative;
  z-index: 1;
}

#processo,
#compromissos {
  padding-block: clamp(52px, 5.6vw, 88px);
}

#projetos,
#contato {
  padding-block: clamp(80px, 8.6vw, 136px);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head p:last-child {
  margin-top: var(--s-4);
  color: var(--ink-soft);
  max-width: 58ch;
  font-size: var(--t-lg);
  text-wrap: pretty;
}

/* manifesto: rótulo na coluna, texto na outra */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.22fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.manifesto-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.72fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: end;
}

.manifesto-text {
  font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  max-width: 34ch;
}

.manifesto-text strong {
  font-weight: 600;
}

.manifesto-text--small {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
  padding-bottom: 0.4em;
}

@media (max-width: 780px) {
  .manifesto-grid,
  .manifesto-body {
    grid-template-columns: 1fr;
  }
  .manifesto-text,
  .manifesto-text--small {
    max-width: none;
  }
}

/* serviços */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}

@media (max-width: 780px) {
  .services {
    grid-template-columns: 1fr;
  }
}

.service {
  background: var(--bg);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.section--soft .service {
  background: var(--bg-soft);
}

.service-num {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0;
}

.service h3 {
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--s-3);
}

.service p:not(.service-num) {
  color: var(--ink-soft);
  max-width: 46ch;
}

.service-list {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

.service-list li {
  display: flex;
  gap: var(--s-2);
}

.service-list li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 1px;
  margin-top: 0.75em;
  background: var(--accent);
}

/* casos: dois clientes reais — tela do site, ficha e link */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 56px);
}

.case {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 1.8vw, 26px);
  min-width: 0;
}

.case-visual {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  /* `clip` em vez de `hidden`: overflow:hidden cria um contêiner de rolagem, e
     a timeline `view()` do parallax se prende a ele — que nunca rola — em vez
     da página. Quem não conhece `clip` fica com `hidden`, e sem parallax. */
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-soft);
  transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform 900ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .case-visual:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-2);
  }
  .case-visual:hover img {
    transform: scale(1.035);
  }
}

.case-body {
  min-width: 0;
}

.case-tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin: 0 0 var(--s-3);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.case-tag span:first-child {
  color: var(--accent);
}

.case h3 {
  font-size: var(--t-2xl);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.14;
  margin: 0 0 var(--s-3);
}

.case p:not(.case-tag) {
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin: var(--s-5) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: var(--t-sm);
  color: var(--ink-mute);
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-4);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink);
  text-decoration: none;
  transition: color var(--d-1) var(--ease), border-color var(--d-1) var(--ease),
    gap var(--d-1) var(--ease);
}

.case-link svg {
  flex: none;
}

.case-link:hover {
  gap: 10px;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 860px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* convite que fecha as seções de prova */
.section-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-lg);
  color: var(--ink-soft);
}

/* processo */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  /* As colunas moram no <ol>, não em cada <li>: com a grade em cada linha, a
     track do título era max-content por linha e a coluna de descrição
     serpenteava conforme o comprimento de "Imersão" a "Acompanhamento". */
  display: grid;
  grid-template-columns: 56px auto minmax(0, 1fr) auto;
  column-gap: var(--s-5);
}

.process li {
  display: grid;
  grid-column: 1 / -1;
  /* navegador sem subgrid: uma track fixa, larga o bastante para o maior título */
  grid-template-columns: 56px 13.5rem minmax(0, 1fr) auto;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.process h3 {
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--s-3);
}

.process p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.step-time {
  font-size: var(--t-sm);
  color: var(--ink-mute);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .process li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--s-2) var(--s-4);
    align-items: start;
  }
  .process li p,
  .process .step-time {
    grid-column: 2;
  }
  .process .step-time {
    margin-top: var(--s-1);
  }
}

/* compromissos */
.commitments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .commitments {
    grid-template-columns: 1fr;
  }
}

.commitment {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.commitment h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.commitment p {
  font-size: var(--t-sm);
  color: var(--ink-mute);
  max-width: 30ch;
  text-wrap: pretty;
}

/* estúdio / ficha */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

@media (max-width: 860px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

.ficha {
  margin: 0;
  border-top: 1px solid var(--line);
  display: grid;
  align-content: space-between;
}

.ficha > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.ficha dt {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 3px;
}

.ficha dd {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
  transition: color var(--d-1) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary:active {
  background: var(--bg-soft);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform var(--d-2) var(--ease);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 0 var(--s-6);
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: var(--t-base);
  line-height: 1.7;
}

/* O <details> nativo abre em corte seco. Onde o navegador sabe interpolar
   palavras-chave, a resposta desliza; onde não sabe, segue abrindo na hora. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    content-visibility: hidden;
    transition: block-size 340ms var(--ease),
      content-visibility 340ms allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
    content-visibility: visible;
  }

  @media (prefers-reduced-motion: reduce) {
    .faq-item::details-content {
      transition: none;
    }
  }
}

/* --------------------------------------------------------------------------
   10. Contato — bloco invertido, tokens próprios
   -------------------------------------------------------------------------- */
.section-contact {
  background: var(--inv-bg);
  color: var(--inv-ink);
  border-top: 1px solid var(--inv-line);
  position: relative;
  overflow: hidden;
}

.section-contact::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--inv-accent-fill), transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}

.section-contact .section-label {
  color: var(--inv-ink-mute);
}

.section-contact .display-2 {
  color: var(--inv-ink);
}

.section-contact .lede {
  color: var(--inv-ink-soft);
}

.section-contact :focus-visible {
  outline-color: var(--inv-accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.contact-intro {
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-intro p + p {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--inv-ink-mute);
}

.contact-direct {
  margin-top: auto;
  padding-top: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--t-sm);
}

@media (max-width: 900px) {
  .contact-direct {
    margin-top: var(--s-2);
  }
}

.contact-direct a:first-of-type {
  color: var(--inv-ink);
  font-weight: 500;
}

.contact-or {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inv-ink-mute);
  margin: 2px 0;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--inv-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  width: fit-content;
}

.contact-direct a:hover {
  color: var(--inv-ink);
}

/* formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}

.form-group label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--inv-ink-soft);
}

.form-group .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--inv-ink-mute);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--inv-line);
  border-radius: var(--r-1);
  background: var(--inv-field);
  color: var(--inv-ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.5;
  transition: border-color var(--d-1) var(--ease),
    background-color var(--d-1) var(--ease);
}

.form-group textarea {
  resize: vertical;
  min-height: 108px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--inv-ink-mute);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--inv-accent);
  background: color-mix(in srgb, var(--inv-field) 60%, transparent);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--inv-accent);
  outline-offset: 2px;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--inv-danger);
}

.field-error {
  font-size: var(--t-xs);
  line-height: 1.4;
  color: var(--inv-danger);
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-2);
}

.form-note {
  font-size: var(--t-xs);
  color: var(--inv-ink-mute);
  max-width: 34ch;
  line-height: 1.5;
}

.btn.inverse {
  background: var(--inv-accent-fill);
  color: var(--inv-accent-ink);
}

.btn.inverse:hover {
  background: var(--inv-ink);
  color: var(--inv-bg);
}

.form-noscript {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--inv-line);
  border-radius: var(--r-1);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--inv-ink-soft);
}

.form-noscript a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  display: none;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-1);
  font-size: var(--t-sm);
  line-height: 1.6;
  border: 1px solid transparent;
}

.form-status.is-visible {
  display: block;
  /* display:none → block não é animável: sem isto a confirmação entra em corte
     seco, no mesmo frame em que o formulário recolhe */
  animation: wa-in 280ms var(--ease) both;
}

/* o "editar" dentro da caixa de status é um botão com cara de link: devolve o
   formulário preenchido em vez de obrigar a recarregar a página */
.form-status-edit {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.form-status-edit:hover {
  text-decoration-thickness: 2px;
}

.form-status.success {
  border-color: var(--inv-success-line);
  background: var(--inv-success-fill);
  color: var(--inv-success);
}

.form-status.error {
  border-color: var(--inv-danger-line);
  background: var(--inv-danger-fill);
  color: var(--inv-danger);
}

.contact-form.is-sent .form-row,
.contact-form.is-sent .form-group,
.contact-form.is-sent .form-actions {
  display: none;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy {
  margin-top: var(--s-6);
  border-top: 1px solid var(--inv-line-soft);
  padding-top: var(--s-4);
  font-size: var(--t-xs);
  color: var(--inv-ink-mute);
  line-height: 1.6;
}

.privacy summary {
  cursor: pointer;
  color: var(--inv-ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 0;
}

.privacy summary::-webkit-details-marker {
  display: none;
}

.privacy summary::before {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.privacy[open] summary::before {
  content: "–";
}

.privacy p {
  margin-top: var(--s-2);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 4vw, 64px) calc(clamp(40px, 4vw, 64px) + 44px);
  position: relative;
  z-index: 1;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
}

@media (max-width: 780px) {
  .footer-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: var(--s-5);
  }
  .footer-meta {
    text-align: left;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-soft);
}

.footer-brand .brand-mark {
  height: 22px;
}

.footer-brand .brand-word {
  font-size: 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-sm);
  color: var(--ink-mute);
  transition: color var(--d-1) var(--ease);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-nav a:active {
  color: var(--ink);
}

.footer-meta {
  font-size: var(--t-xs);
  color: var(--ink-mute);
  margin: 0;
  text-align: right;
}

/* --------------------------------------------------------------------------
   12. WhatsApp flutuante
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-2);
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  animation: wa-in 420ms var(--ease) 700ms backwards;
}

.wa:hover {
  transform: translateY(-2px);
}

.wa:focus-visible {
  outline-offset: 4px;
}

.wa-disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--wa-ink);
  display: grid;
  place-items: center;
  flex: none;
}

.wa-disc svg {
  width: 24px;
  height: 24px;
}

.wa-label {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Abaixo de 1600px a calha lateral não comporta a pílula com rótulo: ela
   invadiria a coluna de conteúdo. Nessa faixa fica o disco. */
@media (max-width: 1599px) {
  .wa {
    padding: 0;
    gap: 0;
    background: var(--wa-green);
  }
  .wa-label {
    display: none;
  }
  .wa-disc {
    width: 56px;
    height: 56px;
  }
  .wa-disc svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) {
  .wa.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }
  /* o disco entrava e saía por corte seco: opacidade e visibilidade não estavam
     na lista de transições do .wa */
  .wa {
    transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease),
      opacity var(--d-2) var(--ease), visibility var(--d-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   13. Página 404
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 78vh;
  display: grid;
  align-content: center;
  padding-block: clamp(80px, 14vw, 180px);
}

.notfound .display {
  max-width: 16ch;
}

.notfound .cta-row {
  margin-top: var(--s-6);
}

.link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--accent);
}

.link:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Revelação, movimento e impressão
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Movimento — entrada do herói, deriva da marca, microinterações
   -------------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: scale(0.93);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* o herói entra em cascata, uma vez, no carregamento */
.js .hero .eyebrow,
.js .hero .lede,
.js .hero .cta-row,
.js .hero-meta {
  animation: rise 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js .hero-mark {
  animation: mark-in 1500ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

.js .hero .eyebrow {
  animation-delay: 40ms;
}

.js .hero .lede {
  animation-delay: 420ms;
}

.js .hero .cta-row {
  animation-delay: 520ms;
}

.js .hero-meta {
  animation-delay: 620ms;
}

/* O título entra palavra por palavra, cada uma subindo de trás de uma linha
   invisível: o padding dá espaço para a perna do "g" e o margin negativo devolve
   o mesmo espaço ao layout, então nada se mexe. */
.js .hero .display .line {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.js .hero .display .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: line-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js .hero .display .line:nth-child(1) > span {
  animation-delay: 100ms;
}

.js .hero .display .line:nth-child(2) > span {
  animation-delay: 160ms;
}

.js .hero .display .line:nth-child(3) > span {
  animation-delay: 220ms;
}

.js .hero .display .line:nth-child(4) > span {
  animation-delay: 280ms;
}

@keyframes line-rise {
  to {
    transform: none;
  }
}

/* a marca deriva devagar com o scroll — só onde existe timeline de scroll */
@supports (animation-timeline: scroll()) {
  .js .hero-mark .mark {
    animation: mark-drift linear both;
    animation-timeline: scroll();
    animation-range: 0 70vh;
  }

  @keyframes mark-drift {
    from {
      transform: translateY(0) scale(1);
    }
    to {
      transform: translateY(-64px) scale(1.05);
    }
  }
}

/* o traço do rótulo se desenha quando a seção entra */
.js .reveal .section-label::before {
  width: 0;
}

.js .reveal.is-visible .section-label::before {
  width: 18px;
  transition: width 700ms var(--ease) 160ms;
}

/* O título da seção é revelado por uma cortina: o bloco sobe com a seção e o
   cabeçalho aparece de cima para baixo, 80 ms depois. É o mesmo gesto da
   entrada do herói, em escala menor. */
.js .reveal .display-2,
.js .reveal .manifesto-text {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 780ms cubic-bezier(0.16, 1, 0.3, 1) 80ms;
}

.js .reveal.is-visible .display-2,
.js .reveal.is-visible .manifesto-text {
  clip-path: inset(0 0 -6% 0);
}

/* Cascata nos blocos que são listas: com todos entrando no mesmo frame, a
   grelha inteira piscava de uma vez. O atraso é por ordem de leitura, então
   continua fazendo sentido quando a grade vira uma coluna só. */
.services .service:nth-child(1) {
  --reveal-delay: 0ms;
}

.services .service:nth-child(2) {
  --reveal-delay: 90ms;
}

.services .service:nth-child(3) {
  --reveal-delay: 180ms;
}

.services .service:nth-child(4) {
  --reveal-delay: 270ms;
}

.cases .case:nth-child(1) {
  --reveal-delay: 60ms;
}

.cases .case:nth-child(2) {
  --reveal-delay: 200ms;
}

.process li:nth-child(1) {
  --reveal-delay: 0ms;
}

.process li:nth-child(2) {
  --reveal-delay: 60ms;
}

.process li:nth-child(3) {
  --reveal-delay: 120ms;
}

.process li:nth-child(4) {
  --reveal-delay: 180ms;
}

.process li:nth-child(5) {
  --reveal-delay: 240ms;
}

.commitments .commitment:nth-child(1) {
  --reveal-delay: 0ms;
}

.commitments .commitment:nth-child(2) {
  --reveal-delay: 70ms;
}

.commitments .commitment:nth-child(3) {
  --reveal-delay: 140ms;
}

.commitments .commitment:nth-child(4) {
  --reveal-delay: 210ms;
}

/* A tela do caso desliza dentro da moldura conforme a seção atravessa a tela.
   Usa a timeline de view onde ela existe; onde não existe, a imagem fica
   parada. O parallax mexe em `translate`, não em `transform`, para não brigar
   com o zoom do hover. */
.case-visual img {
  scale: 1.08;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .case-visual img {
      animation: case-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    @keyframes case-drift {
      from {
        translate: 0 -3.2%;
      }
      to {
        translate: 0 3.2%;
      }
    }
  }
}

/* troca de tema: a nova paleta nasce no botão e abre em círculo */
::view-transition-new(root) {
  animation: theme-wipe 520ms var(--ease);
}

@keyframes theme-wipe {
  from {
    clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0));
  }
  to {
    clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0));
  }
}

/* sublinhado que se desenha nos links de texto */
.footer-nav a,
.menu-foot a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  /* o link é um alvo de 44 px com o texto centrado: sem background-origin a
     linha nascia na base da caixa, uns 10 px abaixo da palavra */
  background-origin: content-box;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 380ms var(--ease), color var(--d-1) var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.menu-foot a:hover,
.menu-foot a:focus-visible {
  background-size: 100% 1px;
}

/* passar o mouse no card já mostra o destino do link */
@media (hover: hover) and (pointer: fine) {
  .case:hover .case-link {
    gap: 10px;
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
}

/* troca de tema com cross-fade onde houver View Transitions */
::view-transition-old(root) {
  animation-duration: 320ms;
}

/* o que muda no reduced-motion: nada de entrada em cascata nem deriva */
@media (prefers-reduced-motion: reduce) {
  .js .hero .eyebrow,
  .js .hero .display,
  .js .hero .lede,
  .js .hero .cta-row,
  .js .hero-meta,
  .js .hero-mark,
  .js .hero-mark .mark,
  .js .hero .display .line > span {
    animation: none;
    opacity: 1;
    transform: none;
  }
  /* a cortina do título sairia como um piscar: o texto aparece inteiro */
  .js .reveal .display-2,
  .js .reveal .manifesto-text,
  .js .reveal.is-visible .display-2,
  .js .reveal.is-visible .manifesto-text {
    clip-path: none;
    transition: none;
  }
  .js .reveal .section-label::before {
    width: 18px;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-nav a {
    animation: menu-in 260ms var(--ease) backwards;
  }
  .menu[open] .menu-nav a:nth-child(2) {
    animation-delay: 35ms;
  }
  .menu[open] .menu-nav a:nth-child(3) {
    animation-delay: 70ms;
  }
  .menu[open] .menu-nav a:nth-child(4) {
    animation-delay: 105ms;
  }
  .menu[open] .menu-nav a:nth-child(5) {
    animation-delay: 140ms;
  }
  .menu[open] .menu-nav a:nth-child(6) {
    animation-delay: 175ms;
  }
  .menu[open] .menu-nav a:nth-child(7) {
    animation-delay: 210ms;
  }
  .menu[open] .menu-nav a:nth-child(8) {
    animation-delay: 245ms;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .btn .arrow {
    transition: none;
  }
  /* o zoom da tela no hover também é movimento: sai inteiro, não só a transição */
  .case-visual img {
    transition: none;
    transform: none;
    scale: 1;
    translate: none;
    animation: none;
  }
  .case-visual:hover img {
    transform: none;
  }
  .form-status.is-visible {
    animation: none;
  }
  .wa {
    transition: none;
  }
  ::view-transition-new(root) {
    animation: none;
  }
}

@media print {
  .site-header,
  .menu,
  .marquee,
  .wa,
  .section-contact::after {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding-block: 24px;
  }
  .section-contact {
    --inv-bg: #fff;
    --inv-ink: #000;
    --inv-ink-soft: #222;
    --inv-ink-mute: #444;
    --inv-line: rgba(0, 0, 0, 0.2);
    --inv-line-soft: rgba(0, 0, 0, 0.1);
    --inv-field: #f4f4f4;
    --inv-accent: #000;
    --inv-accent-fill: #000;
    --inv-accent-ink: #fff;
    background: #fff;
    color: #000;
  }
}
