* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Sem `scroll-behavior: smooth` aqui: o refresh do ScrollTrigger rola até o
   topo para medir e volta, e com smooth essa ida vira animação — ele mede com
   a página rolada e todos os gatilhos ficam no lugar errado. Os links internos
   rolam suave pelo JS (script.js, "LINKS INTERNOS"). */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  /* clip (não hidden): corta o overflow horizontal SEM virar scroll container.
     Com html + body em overflow-x:hidden o body vira scroller e quebra o
     position:sticky do palco de Serviços. */
  overflow-x: clip;
}

/* ── Ticker ── */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  padding: 13px 0;
  margin-top: 18px;
  border-radius: 18px;
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.ticker__track {
  display: inline-flex;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 26px;
  white-space: nowrap;
}

.ticker__track span::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3d8bff;
  margin-left: 26px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

/* ── Topbar / Navbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 8px;
}

.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 12px 24px;
  max-width: 880px;
  width: 100%;
  margin: 12px auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.navbar__logo {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.navbar__logo-dot {
  color: #111;
}

.navbar__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.navbar__links a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.navbar__links a:hover {
  color: #111;
  text-decoration: underline;
}

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateX(120px);
  transition: transform 0.5s ease, box-shadow 0.2s ease, opacity 0.5s ease;
}

.whatsapp-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  animation: whatsapp-pulse 2.6s ease-in-out 1s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 18px rgba(37, 211, 102, 0);
  }
}

@media (max-width: 600px) {
  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}

/* ── Chat Widget (phone mockup) ── */
.chat-widget {
  position: fixed;
  bottom: 0;
  right: 20px;
  z-index: 998;
  pointer-events: none;
  transform: scale(0.61);
  transform-origin: bottom right;
}

.chat-widget .device {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chat-widget.is-open {
  pointer-events: auto;
}

.chat-widget.is-open .device {
  opacity: 1;
  transform: translateY(0);
}

.chat-widget .device-screen {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff !important;
}

.chat-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 6px;
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1e;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.chat-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1c1c1e;
}

.chat-widget__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 16px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.chat-widget__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #007aff;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-widget__header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chat-widget__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #075e54);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.chat-widget__avatar-dot { color: #fff; }

.chat-widget__name {
  font-size: 22px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1.2;
}

.chat-widget__status {
  font-size: 16px;
  color: #8e8e93;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chat-widget__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

.chat-widget__close {
  position: absolute;
  top: -36px;
  right: -36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #333;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 10;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.chat-widget__close:hover {
  background: #111;
  color: #fff;
  transform: scale(1.1);
}

.chat-widget__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  scroll-behavior: smooth;
}

.chat-message { display: flex; }
.chat-message--bot { justify-content: flex-start; }
.chat-message--user { justify-content: flex-end; }

.chat-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 20px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.chat-message--bot .chat-bubble {
  background: #e9e9eb;
  color: #1c1c1e;
  border-bottom-left-radius: 6px;
}

.chat-message--user .chat-bubble {
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e9e9eb;
  padding: 14px 18px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  width: fit-content;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  animation: typing-dot 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-widget__options {
  padding: 4px 0 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
  flex-shrink: 0;
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
}

.chat-option {
  background: #fff;
  border: none;
  color: #007aff;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  padding: 14px 18px;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
  transition: background 0.15s;
}

.chat-option::after {
  content: "›";
  color: #c7c7cc;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.chat-option:hover {
  background: #f2f2f7;
}

.chat-option:active {
  background: #e5e5ea;
}

.chat-widget__options .chat-option:last-child {
  border-bottom: none;
}

.chat-final-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  padding: 16px 24px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  margin: 4px 14px 10px;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.chat-final-btn:hover {
  background: #1db954;
  transform: translateY(-1px);
}

.chat-final-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Seções ── */
main section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(16px, 4vw, 60px) 50px;
  border-bottom: 1px solid #eee;
  width: 100%;
  max-width: 100%;
}

.page-body {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 100vh;
  margin-top: 100svh;
  padding-top: 4px;
}

/* Páginas sem o hero fixo (sobre.html): o conteúdo começa no topo, e sem os
   cantos de "card" — não há nada embaixo, só o fundo branco aparecendo neles. */
.page-body.page-body--solo {
  margin-top: 0;
}

.page-body.page-body--solo,
.page-body.page-body--solo > section {
  border-radius: 0;
}

/* ── Empilhamento de cards: cada seção sobe sobre a anterior ── */
/* Dá a "borda de card" no topo de cada seção (mesma linguagem do hero). */
.page-body > section {
  position: relative;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 44px rgba(16, 24, 40, 0.08);
}

/* ── Empilhamento no celular (o JS liga com .is-sticky-stack) ──
   A seção gruda quando o FUNDO dela chega ao fim da tela: top = 100svh −
   altura real (--stack-h, medida pelo JS). svh (a menor altura) garante que o
   fundo da seção foi visto antes de ela parar; com a barra de endereço
   escondida, a faixa que sobra embaixo mostra o topo da próxima seção.
   O `main` na frente vence os `.page-body > section.faq/.process {
   position: relative }` do fim do arquivo. */
main .page-body.is-sticky-stack > section {
  position: sticky;
  top: calc(100vh - var(--stack-h, 100vh));
  top: calc(100svh - var(--stack-h, 100svh));
}

/* Costura entre duas seções (o JS cria): o véu fica logo ACIMA dela, cobrindo
   a seção congelada enquanto a próxima sobe. Mora fora das seções porque
   várias têm overflow:hidden, que cortaria um véu desenhado fora delas.
   Branco a 0.4 = o que `opacity: 0.6` na seção dá sobre fundo branco; cor
   sólida o compositor resolve sem textura nenhuma. */
.section-seam {
  position: relative;
  height: 0;
  pointer-events: none;
}

.section-seam__veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100lvh;
  background: #fff;
  opacity: 0;
}

/* A opacidade segue a posição da costura: 0 com ela no fim da tela, 0.4 com
   ela no topo — a mesma janela do congelamento. Roda no compositor. Sem
   suporte, o JS anima pelo GSAP. */
@supports (animation-timeline: view()) {
  .section-seam {
    view-timeline-name: --seam;
    /* sem isto o view() desconta o scroll-padding-top da navbar e o véu
       termina ~60px antes da próxima seção chegar ao topo */
    view-timeline-inset: 0;
  }

  .section-seam__veil {
    animation: seam-veil linear both;
    animation-duration: 1ms;
    animation-timeline: --seam;
    animation-range: cover 0% cover 100%;
  }
}

@keyframes seam-veil {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}

/* Fundo sólido: o card precisa de corpo para a borda/sombra aparecerem */
.page-body > section.services,
.page-body > section.projects,
.page-body > section.about,
.page-body > section.faq {
  background: #fff;
}

main section h2 {
  font-size: 32px;
  color: #111;
}

/* ── Cortina Hero (WebGL ribbon background) ── */
.cortina-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 64px 24px;
  background: #020706;
  transform-origin: center center;
  /* Mobile-first: no celular o hero só recebe `opacity` no scroll, então é só
     isso que anunciamos. Cada propriedade a mais aqui faz o navegador reservar
     uma textura do tamanho da tela sem necessidade — e o hero já carrega um
     canvas WebGL. `filter` e `transform` são acréscimos de desktop. */
  will-change: opacity;
}

@media (hover: hover) and (pointer: fine) {
  .cortina-hero {
    will-change: filter, transform, opacity;
  }
}

.cortina-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 6, 5, 0.3), transparent 65%),
    linear-gradient(0deg, rgba(0, 5, 4, 0.6), transparent 28%, transparent 80%, rgba(0, 5, 4, 0.2));
  content: "";
  pointer-events: none;
}

.cortina-hero__canvas {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cortina-hero--fallback::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center, #020706 25%, transparent 65%),
    repeating-linear-gradient(90deg, #010408 0 16px, #0d2a53 17px, #081a38 19px, #010408 27px);
  pointer-events: none;
}

.cortina-hero__content {
  width: min(100%, 1440px);
  min-width: 0;
  justify-self: center;
  text-align: center;
  animation: cortina-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cortina-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(42px, 7vh, 76px);
  color: #f3fff9;
  font-family: "Anton", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  text-transform: uppercase;
}

.cortina-brand__mark {
  width: 10px;
  height: 22px;
  border: 1px solid #5b9bff;
  border-radius: 100%;
  box-shadow: 0 0 18px rgba(91, 155, 255, 0.8), inset 0 0 7px rgba(91, 155, 255, 0.55);
  transform: rotate(25deg);
}

.cortina-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 0 20px;
  color: #5b9bff;
  font-family: "Anton", sans-serif;
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cortina-hero__eyebrow span {
  width: 27px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.cortina-hero h1 {
  max-width: 1400px;
  margin: 0 auto;
  font-family: "Anton", sans-serif;
  font-size: clamp(3.25rem, 8.4vw, 7.7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 5px 36px rgba(0, 0, 0, 0.82);
  color: #f3fff9;
}

/* ── Hero — Transição 01: digitação do título ── */
.cortina-hero h1 .title-line {
  display: block;
}

.cortina-hero h1 .title-line--script {
  margin-top: 0.09em;
  color: #5b9bff;
  font-family: "Condiment", cursive;
  font-size: 0.76em;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: 0 0 26px rgba(65, 151, 255, 0.24), 0 5px 30px rgba(0, 0, 0, 0.9);
}

/* Cada caractere ocupa seu espaço desde o início → zero layout shift */
.cortina-hero h1 .type-ch {
  visibility: hidden;
}

.cortina-hero h1 .type-ch.is-on {
  visibility: visible;
}

.type-caret {
  display: inline-block;
  width: 0.055em;
  min-width: 2px;
  height: 0.78em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.05em;
  animation: caret-blink 0.85s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* ── Hero — Transição 02: descrição escondida até a digitação terminar ── */
.cortina-hero__description.is-pending {
  opacity: 0;
}

/* Título escondido até a digitação começar (evita o "flash" pós-preloader) */
.cortina-hero h1.is-pending {
  opacity: 0;
}

.cortina-hero__description {
  max-width: 610px;
  margin: clamp(25px, 4vh, 38px) auto 0;
  color: #a9b5c8;
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  line-height: 1.7;
  text-wrap: balance;
}

.cortina-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 58px;
  margin-top: clamp(28px, 4.5vh, 42px);
  padding: 0 30px;
  overflow: hidden;
  border: 1px solid #5b9bff;
  border-radius: 2px;
  color: #06142a;
  background: #5b9bff;
  box-shadow: 0 0 0 rgba(91, 155, 255, 0), 0 12px 34px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-family: "Anton", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.cortina-hero__cta svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 220ms ease;
}

.cortina-hero__cta:hover {
  color: #5b9bff;
  background: rgba(5, 14, 30, 0.78);
  box-shadow: 0 0 28px rgba(91, 155, 255, 0.24), 0 14px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.cortina-hero__cta:hover svg {
  transform: translateX(4px);
}

.cortina-hero__note {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 15px 0 0;
  color: rgba(222, 233, 245, 0.56);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes cortina-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .cortina-hero {
    padding: 42px 18px 70px;
  }

  .cortina-brand {
    margin-bottom: 42px;
  }

  .cortina-hero h1 {
    font-size: clamp(1.6rem, 8vw, 3.4rem);
    line-height: 0.96;
  }

  .cortina-hero h1 .title-line--script {
    font-size: clamp(1.7rem, 8.1vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  .cortina-hero__description {
    max-width: 34ch;
    line-height: 1.55;
  }

  .cortina-hero__cta {
    width: min(100%, 330px);
    padding-inline: 20px;
  }

  .cortina-hero__note {
    flex-wrap: wrap;
  }
}

/* ── Sobre (Split-Screen com Foto P&B) ── */
.hero-viewport {
  position: relative;
  width: 100%; /* 100vw incluía a barra de rolagem → overflow horizontal */
  height: 100vh;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d6d7d9;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  z-index: 40;
}

.hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-corner::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hud-corner::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.hud-top-left { top: 0; left: 0; }
.hud-top-right { top: 0; right: 0; }
.hud-bottom-left { bottom: 0; left: 0; }
.hud-bottom-right { bottom: 0; right: 0; }

.hero-watermark {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: clamp(14rem, 28vw, 36rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 4vw;
}

.watermark-left { opacity: 0.85; }
.watermark-right { opacity: 0.65; }

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* cor parcial: mantém o clima escuro da seção sem virar P&B */
  filter: grayscale(35%) saturate(0.95) contrast(1.08) brightness(0.94);
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 48% 52%;
  z-index: 10;
}

.hero-col-left {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4vw 48px 5vw;
  z-index: 12;
  overflow: hidden;
}

.mentor-identity {
  position: relative;
  z-index: 5;
  margin-bottom: 24px;
}

.mentor-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.mentor-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.75rem, 0.95vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-col-right {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw 48px 4.5vw;
  background: #0c0d0e;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.12);
  z-index: 15;
}

.right-content-wrapper {
  max-width: 580px;
  width: 100%;
}

.tag-experience {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.headline-experience {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.6rem, 4.4vw, 4.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.headline-experience span { display: block; }

.desc-experience {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 42px;
  max-width: 500px;
}

.metrics-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Link para sobre.html (a continuação do "Quem sou eu") */
.about-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.about-more:hover {
  gap: 14px;
  border-bottom-color: #fff;
}

.about-more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.metric-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item:hover {
  border-bottom-color: rgba(255, 255, 255, 0.45);
  transform: translateX(4px);
}

.metric-value {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  font-weight: 600;
  color: #ffffff;
  min-width: 90px;
  letter-spacing: -0.01em;
}

.metric-label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.72rem, 0.88vw, 0.88rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

/* ── Serviços — pilha de cards fixa no viewport (method-steps-stack) ──
   Estrutura: [viewport 1: título] + [viewport 2: palco sticky de 100svh
   dentro de um wrapper com 100svh + distância de scroll]. O JS define a
   distância em --stack-distance e dirige a timeline pelo progresso do scroll.
   O palco é sticky (e não pin fixed) porque as seções do .page-body recebem
   transform/filter no efeito de empilhamento — o que quebraria position:fixed. */
.page-body > section.services {
  display: block;
  min-height: auto;
  padding: 0;
  border-bottom: none;
  color: #fff;
  background: #0a0a0a;
  --padding-x: clamp(12px, 2.8vw, 32px);
  --progress: 0;
  --scroll-velocity: 0;
  --total-items: 4; /* fallback; o JS define pelo nº real de cards */
  --stack-distance: 0px;
  --width: min(504px, 39vw, 62vh);
  --height: min(550px, 42.5vw, 67.5vh);
  --stack-gap: clamp(18px, 2.2vw, 32px);
  --desc-right: clamp(24px, 8.8vw, 120px);
  --parallax-scale: 1.1;
  --velocity-factor: 0.9px;
}

/* Bloco 1 — título. Altura = só o conteúdo (o palco sticky abaixo não
   precisa de um viewport inteiro antes dele; com 100svh sobrava meia tela vazia). */
.services__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(104px, 15vh, 150px) var(--padding-x) clamp(40px, 6vh, 64px);
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), transparent 35%), #0a0a0a;
}

.services .services__label {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
}

.services .services__title {
  width: min(900px, 92vw);
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 8.8vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.services .services__title em {
  font-weight: 200;
  font-style: italic;
}

.services .services__subtitle {
  max-width: 520px;
  margin: 26px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

/* Viewport 2 — wrapper que dá a distância de scroll e palco sticky */
.team-stage {
  position: relative;
  height: calc(100svh + var(--stack-distance));
}

.team-content {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--padding-x);
  isolation: isolate;
  background: #0a0a0a;
}

/* Grão sutil, só dentro do palco */
.team-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.55) 0.5px, transparent 0.6px),
    radial-gradient(rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
}

/* Rótulo do topo */
.team-index {
  position: absolute;
  top: clamp(96px, 12vh, 124px); /* abaixo da navbar fixa do site */
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
  white-space: nowrap;
}

.team-index-number {
  opacity: 0.62;
}

/* Pilha de cards — todos ocupam a mesma célula e são movidos pelo GSAP */
.team-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: var(--width);
  height: var(--height);
}

.team-card {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #171717;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.team-card-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  background-position: center;
  background-size: cover;
}

.team-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  filter: grayscale(100%);
  opacity: 0.3;
  transform:
    translateX(calc(var(--scroll-velocity) * var(--velocity-factor)))
    translateY(calc(var(--scroll-velocity) * var(--velocity-factor)))
    translateZ(0)
    scale(var(--parallax-scale));
  transition: filter 1.4s ease, opacity 1.4s ease;
}

.team-card.is-active .team-card-image {
  filter: grayscale(0%);
  opacity: 1;
}

/* Descrições — só a ativa aparece */
.team-info {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  padding: 0 var(--padding-x);
}

.team-description {
  position: absolute;
  top: clamp(180px, 26.1vh, 267px);
  right: var(--desc-right);
  width: min(300px, calc((100vw - var(--width)) / 2 - var(--desc-right) - 16px));
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: normal;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.team-description.is-active {
  opacity: 1;
  transform: translateY(0);
}

.services .team-description h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.services .team-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.services .team-description ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.services .team-description li {
  position: relative;
  padding-left: 16px;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.services .team-description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d8bff;
}

/* Contador gigante — sincronizado com o card ativo */
.team-counter {
  position: absolute;
  bottom: clamp(48px, 8vh, 76px);
  left: clamp(60px, 12.5vw, 180px);
  z-index: 5;
  pointer-events: none;
  font-size: clamp(120px, 16.6vw, 240px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.team-counter-value {
  display: block;
  min-width: 1.18em;
  font-variant-numeric: tabular-nums;
  will-change: opacity, transform;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── Tablet ── */
@media (max-width: 1199px) {
  .page-body > section.services {
    --width: min(74vw, 333px, 42vh);
    --height: min(81vw, 364px, 46vh);
    --parallax-scale: 1.08;
    --velocity-factor: 0.45px;
  }

  .services .services__title {
    font-size: clamp(32px, 6.25vw, 48px);
  }

  .team-description {
    top: auto;
    right: 50%;
    bottom: clamp(48px, 8vh, 70px);
    width: min(82vw, 320px);
    transform: translate(50%, 18px);
    text-align: center;
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .team-description.is-active {
    transform: translate(50%, 0);
  }

  .services .team-description h3 {
    font-size: clamp(18px, 4.6vw, 22px);
  }

  .services .team-description ul {
    display: none;
  }

  .team-counter {
    top: clamp(128px, 18vh, 160px); /* abaixo da navbar + rótulo */
    bottom: auto;
    left: var(--padding-x);
    font-size: clamp(58px, 18vw, 100px);
    opacity: 0.42;
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .page-body > section.services {
    --width: min(82vw, 255px, 38vh);
    --height: min(calc(var(--width) * 1.09), 43vh);
  }

  .services__intro,
  .team-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services .services__title {
    font-size: clamp(30px, 8.55vw, 38px);
  }

  .services .services__subtitle {
    font-size: 15px;
  }
}

/* ── Parallax da foto dos cards de serviço no mobile ──
   Só a propriedade `translate` (independente de `transform`, não conflita
   com o parallax por velocidade do desktop nem com o `transform: none`
   do modo lista estática) — sem blur nem scale, então não repete o custo
   de rasterização que travava o scroll. `animation-timeline` roda
   inteiramente no compositor, nunca na thread principal; sem suporte no
   navegador, a imagem fica parada (comportamento atual).

   A timeline observa o `.team-card` (view-timeline-name), não a imagem
   direto: a imagem está dentro de `.team-card { overflow: hidden }`, e
   como `overflow: hidden` cria um scroll container, `animation-timeline:
   view()` na própria imagem tomaria ESSE card (que nunca rola) como
   referência e travaria o progresso sempre no meio. Nomeando a timeline
   no card — cujo ancestral real é a página — e escutando o nome de
   dentro da imagem, ela reage à posição de rolagem de verdade.

   A imagem é levemente maior que o card pra sobrar margem pro translate
   sem revelar borda — e `.team-card`/`.team-card-scene` cortam (overflow)
   qualquer sobra de qualquer forma. */
@media (prefers-reduced-motion: no-preference) and ((max-width: 767px) or ((hover: none) and (pointer: coarse))) {
  @supports (animation-timeline: view()) {
    .team-card {
      view-timeline-name: --team-card-view;
    }

    .team-card-image {
      inset: -14px;
      width: calc(100% + 28px);
      height: calc(100% + 28px);
      animation: team-card-parallax linear both;
      animation-duration: 1ms;
      animation-timeline: --team-card-view;
      animation-range: cover 0% cover 100%;
    }

    @keyframes team-card-parallax {
      from { translate: 0 -14px; }
      to   { translate: 0 14px; }
    }
  }
}

/* ── Lista estática (celular/touch e "movimento reduzido") ──
   Sem palco sticky: cada serviço vira um bloco vertical com a imagem em cima e
   a descrição completa embaixo. .team-cards e .team-info viram display:contents
   para que cards e descrições sejam filhos diretos do grid e possam ser
   intercalados via `order` (card 1, descrição 1, card 2, descrição 2, ...). */
@media (prefers-reduced-motion: reduce), (max-width: 767px), (hover: none) and (pointer: coarse) {
  .page-body > section.services {
    --stack-distance: 0px;
  }

  .team-stage {
    height: auto;
  }

  .team-content {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding: 64px 16px 56px;
    gap: 0;
    overflow: visible;
  }

  .team-content::after {
    display: none;
  }

  .team-index {
    position: static;
    order: 0;
    justify-self: center;
    margin-bottom: 28px;
    transform: none;
  }

  .team-cards,
  .team-info {
    display: contents;
  }

  .team-card {
    position: relative;
    inset: auto;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  .team-card-image {
    transform: none;
    transition: none;
    filter: grayscale(0%);
    opacity: 1;
  }

  .team-description,
  .team-description.is-active {
    position: static;
    width: 100%;
    margin: 18px 0 44px;
    text-align: left;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .team-description:last-child {
    margin-bottom: 0;
  }

  .services .team-description h3 {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .services .team-description ul {
    display: block;
  }

  .team-counter {
    display: none;
  }

  /* Intercala card N e descrição N */
  .team-card:nth-child(1) { order: 1; }
  .team-description:nth-child(1) { order: 2; }
  .team-card:nth-child(2) { order: 3; }
  .team-description:nth-child(2) { order: 4; }
  .team-card:nth-child(3) { order: 5; }
  .team-description:nth-child(3) { order: 6; }
  .team-card:nth-child(4) { order: 7; }
  .team-description:nth-child(4) { order: 8; }
  .team-card:nth-child(5) { order: 9; }
  .team-description:nth-child(5) { order: 10; }
  .team-card:nth-child(6) { order: 11; }
  .team-description:nth-child(6) { order: 12; }
}

/* ── Projetos ── */
.projects {
  display: block;
  min-height: auto;
  padding: 40px 0;
  border-bottom: none;
}

.projects__shell {
  position: relative;
  width: 96%;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 20px;
  padding: 70px 50px 90px;
}

.projects__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d8bff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.projects__title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  max-width: 640px;
  margin-bottom: 40px;
}

.projects__title em {
  font-weight: 200;
  font-style: italic;
  color: #3d8bff;
}

/* ── Em breve card ── */
.em-breve {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 40px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(61,139,255,0.04) 100%);
  overflow: hidden;
}

.em-breve__border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px dashed rgba(61,139,255,0.25);
  mask-image: linear-gradient(135deg, #000 0%, transparent 50%, #000 100%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 50%, #000 100%);
  animation: em-breve-border 4s ease-in-out infinite alternate;
}

@keyframes em-breve-border {
  0%   { mask-image: linear-gradient(135deg, #000 0%, transparent 50%, #000 100%);
         -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 50%, #000 100%); }
  100% { mask-image: linear-gradient(315deg, #000 0%, transparent 50%, #000 100%);
         -webkit-mask-image: linear-gradient(315deg, #000 0%, transparent 50%, #000 100%); }
}

.em-breve__label {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
}

.em-breve__label::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #3d8bff;
  margin: 14px auto 0;
}

.em-breve__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  letter-spacing: 0.01em;
}

/* ── Quem sou eu ── */
.about {
  display: block;
  min-height: auto;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid #eee;
}

.about__shell {
  width: 96%;
  max-width: 1100px;
  margin: 0 auto;
}

.about__head {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.about__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
  margin-bottom: 18px;
}

.about__title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111;
  margin-bottom: 0;
}

.about__title em {
  font-weight: 200;
  font-style: italic;
  color: #3d8bff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

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

.about__intro {
  font-size: 19px;
  line-height: 1.7;
  color: #222;
  font-weight: 600;
}

.about__text p:not(.about__intro) {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
}

.about__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f6f7fb;
  border: 1px solid #ececf2;
  border-radius: 18px;
  padding: 26px;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px -18px rgba(20, 30, 60, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about__highlight:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 139, 255, 0.30);
  box-shadow: 0 18px 36px -18px rgba(61, 139, 255, 0.35);
}

.about__highlight-img {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.about__highlight h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.about__highlight p {
  font-size: 13.5px;
  line-height: 1.45;
  color: #777;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about__panel {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .about__title {
    font-size: 28px;
  }

  .about__intro {
    font-size: 16px;
  }

  .about__highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  grid-column: span 1;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.4);
}

.project-card--large {
  grid-column: span 2;
  min-height: 260px;
  font-size: 22px;
}

@media (max-width: 760px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--large {
    grid-column: span 1;
  }
}

/* ── Preloader ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 70%);
  pointer-events: none;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__slot {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.preloader__brand,
.preloader__logo {
  grid-column: 1;
  grid-row: 1;
  line-height: 1;
}

.preloader__brand {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.preloader__brand-suffix {
  color: #3d8bff;
  margin-left: 4px;
}

/* "Studio" do preloader com a mesma linguagem da frase do hero */
.preloader__studio {
  font-family: "Condiment", cursive;
  font-size: 1.15em;
  color: #5b9bff;
  letter-spacing: 0.01em;
}

.preloader__logo {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  opacity: 0;
  will-change: transform, color, opacity;
  transform-origin: center center;
}

.preloader__logo-dot {
  color: #3d8bff;
}

.preloader__bar-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px 28px;
}

.preloader__bar {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.preloader__bar-fill {
  position: relative;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0), #3d8bff);
  border-radius: 0;
  transition: width 0.2s ease;
}

.preloader__bar-fill::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3d8bff;
  box-shadow: 0 0 10px 2px rgba(61, 139, 255, 0.7);
  transform: translate(50%, -50%);
}

.preloader__counter {
  font-family: 'Raleway', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  min-width: 46px;
  text-align: right;
}

.preloader__brand-suffix.is-popping {
  display: inline-block;
  transform-origin: center;
}

/* ══════════════════════════════════════════
   RESPONSIVIDADE
   ══════════════════════════════════════════ */

/* ── Hambúrguer e menu mobile ── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.navbar__hamburger:hover {
  background: #f2f2f2;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
}

.nav-mobile.is-open {
  max-height: 400px;
}

.nav-mobile ul {
  list-style: none;
  padding: 8px 0 16px;
}

.nav-mobile ul li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile ul li a:hover {
  background: #f5f5f5;
  color: #111;
}

/* ── 1100px: navbar começa a ficar apertada ── */
@media (max-width: 1100px) {
  .navbar {
    gap: 12px;
    padding: 12px 20px;
  }

  .navbar__links {
    gap: 14px;
  }

  .navbar__links a {
    font-size: 13px;
  }

}

/* ── 900px: layout em coluna, hambúrguer ativo ── */
@media (max-width: 900px) {
  /* Navbar: oculta links, mostra hambúrguer */
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }

  .navbar {
    margin: 8px auto;
    padding: 12px 20px;
  }

  /* Hero — tablet em coluna */
  .hero-viewport {
    height: auto;
    min-height: 100vh;
  }

  .hero-grid {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-col-left {
    padding: 90px 6vw 30px 6vw;
    justify-content: flex-start;
  }

  .hero-col-right {
    padding: 30px 6vw 90px 6vw;
    background: #0c0d0e;
  }

  .hero-image {
    position: relative;
    height: 50vh;
    min-height: 350px;
  }

  .hero-watermark {
    font-size: clamp(8rem, 20vw, 15rem);
    top: 22%;
  }

  /* Seções comuns sem altura mínima forçada */
  main section:not(.hero-viewport):not(.cortina-hero) {
    padding: var(--nav-clear) 28px 40px; /* topo limpa a navbar fixa */
    min-height: auto;
  }

  /* Ticker */
  .loop-green {
    color: #ff5500;
  }

  /* Projetos */
  .projects__shell {
    padding: 50px 28px 60px;
  }

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

  .project-card--large {
    grid-column: span 2;
  }
}

/* ── 680px: tablet menor ── */
@media (max-width: 680px) {
  .navbar {
    margin: 6px auto;
    padding: 10px 16px;
    border-radius: 12px;
    gap: 8px;
  }

  .navbar__logo {
    font-size: 20px;
  }

  /* Hero mobile — foto acima, painel abaixo */
  .hero-viewport {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    background-color: #0a0b0d;
  }

  .hero-frame {
    inset: 10px;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 56vh;
    min-height: 380px;
    max-height: 520px;
    object-fit: cover;
    object-position: 51.5% 0%;
    filter: grayscale(35%) saturate(0.95) contrast(1.08) brightness(0.97);
  }

  .hero-watermark {
    display: none;
  }

  .hero-grid {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
  }

  .hero-col-left {
    position: relative;
    padding: 0;
    background: #0a0b0d;
    justify-content: flex-start;
    overflow: hidden;
  }

  .hero-col-left .mentor-identity {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 5;
  }

  .mentor-identity {
    margin-bottom: 0;
  }

  .mentor-name {
    font-size: clamp(1.75rem, 6.5vw, 2.3rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    color: #ffffff;
  }

  .mentor-title {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    color: rgba(255, 255, 255, 0.95);
  }

  .hero-col-right {
    position: relative;
    margin: 10px 16px 24px 16px;
    padding: 18px 16px;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    z-index: 15;
  }

  .right-content-wrapper {
    max-width: 100%;
  }

  .tag-experience {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7);
  }

  .headline-experience {
    font-size: clamp(1.35rem, 4.8vw, 1.7rem);
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .desc-experience {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
  }

  .metrics-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .metric-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .metric-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .metric-value {
    font-size: 1.15rem;
    min-width: auto;
    margin-bottom: 2px;
  }

  .metric-label {
    font-size: 0.72rem;
    text-align: left;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.75);
  }

  main section:not(.hero-viewport):not(.cortina-hero) {
    padding: var(--nav-clear) 20px 40px;
  }

  .projects__shell {
    padding: 40px 20px 50px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--large {
    grid-column: span 1;
  }
}

/* ── 480px: mobile ── */
@media (max-width: 480px) {
  .navbar {
    margin: 4px 8px;
    width: calc(100% - 16px);
    border-radius: 10px;
    padding: 10px 14px;
  }

  .hero-frame {
    inset: 8px;
  }

  .hero-image {
    height: 52vh;
    min-height: 340px;
  }

  .hero-col-left {
    padding: 0;
  }

  .mentor-name {
    font-size: 1.65rem;
  }

  .mentor-title {
    font-size: 0.72rem;
  }

  .hero-col-right {
    margin: 8px 12px 20px 12px;
    padding: 16px 14px;
  }

  .headline-experience {
    font-size: 1.25rem;
  }

  .desc-experience {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .metric-value {
    font-size: 1.05rem;
  }

  .metric-label {
    font-size: 0.7rem;
  }

  main section:not(.hero-viewport):not(.cortina-hero) {
    padding: var(--nav-clear) 16px 36px;
  }

  .projects__shell {
    padding: 36px 16px 44px;
    border-radius: 14px;
  }

  .projects__title {
    font-size: 26px;
  }

  /* Chat widget: em telas pequenas vira bottom sheet (ver bloco
     "RESPONSIVIDADE — correções sistêmicas" no fim do arquivo) */
}

/* ── Cursor magnético ── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #3d8bff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(61, 139, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }

  .cursor-dot.is-hovering {
    width: 4px;
    height: 4px;
    background: #fff;
  }

  .cursor-ring.is-hovering {
    width: 52px;
    height: 52px;
    border-color: rgba(61, 139, 255, 0.8);
    background: rgba(61, 139, 255, 0.08);
  }

  .cursor-dot.is-clicking {
    width: 4px;
    height: 4px;
  }

  .cursor-ring.is-clicking {
    width: 28px;
    height: 28px;
  }

  .cursor-dot.is-hidden,
  .cursor-ring.is-hidden {
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════
   MELHORIAS DE APARÊNCIA — VERSÃO 2
   ═══════════════════════════════════════════════ */

:root {
  --accent: #3d8bff;
  --accent-2: #7b5cff;
  --accent-3: #22d3ee;
  --grad: linear-gradient(120deg, #3d8bff 0%, #7b5cff 55%, #22d3ee 110%);
}

::selection {
  background: rgba(61, 139, 255, 0.22);
  color: #111;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f4f5f7; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d8bff, #7b5cff);
  border-radius: 999px;
  border: 2px solid #f4f5f7;
}

body { background-color: #fbfbfd; }

/* ── Navbar glassmorphism ── */
.navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 34px rgba(20, 30, 60, 0.10);
}

.navbar__logo-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.navbar__links a { position: relative; }

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar__links a:hover { color: #111; text-decoration: none; }
.navbar__links a:hover::after { transform: scaleX(1); }

/* ── Hero: sem overrides extras (design self-contained) ── */

/* ── Ticker ── */
.ticker { box-shadow: 0 12px 34px rgba(20, 30, 60, 0.07); }
.ticker__track span::after { background: var(--accent-2); }

/* ── Títulos de seção com gradiente ── */
.services__title em,
.about__title em {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════
   SEÇÕES NOVAS + RODAPÉ
   ═══════════════════════════════════════════════ */

/* ── Como funciona ── */
.process {
  display: block;
  min-height: auto;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid #eee;
  background: #f6f7fb;
}

/* Respiro no fim: o parallax entre seções congela a seção quando o fundo dela
   encosta no fundo da tela — sem este espaço o passo 05 ficava colado na borda
   inferior e o FAQ subia por cima antes de dar para vê-lo. Com ~28vh de folga
   o último card está no meio da tela (linha completa, ponto aceso) na hora em
   que o congelamento começa. O `main` na frente empata com os media queries
   de `main section:not(.hero-viewport):not(.cortina-hero)` e, por vir depois,
   vence — sem ele o celular ficava com 36px e a linha não completava. */
main .page-body > section.process {
  padding-bottom: clamp(180px, 28vh, 320px);
}

.process__shell { width: 96%; max-width: 1100px; margin: 0 auto; }
.process__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }

.process__label,
.faq__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
  margin-bottom: 18px;
}

.process__title,
.faq__title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
}

.process__title em,
.faq__title em {
  font-weight: 200;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.process__subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  max-width: 520px;
}

/* ── Timeline (Como funciona) ── */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

.timeline__track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #e6e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}

.timeline__item {
  position: relative;
  display: flex;
  width: 100%;
  padding: 26px 0;
}

.timeline__item--left { justify-content: flex-start; }
.timeline__item--right { justify-content: flex-end; }

.timeline__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #d9dce7;
  color: #8a8f9e;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.timeline__dot.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(61, 139, 255, 0.14), 0 12px 26px -8px rgba(61, 139, 255, 0.55);
}

.timeline__card {
  position: relative;
  width: calc(50% - 48px);
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 12px 34px -22px rgba(20, 30, 60, 0.28);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.timeline__card:hover {
  border-color: rgba(61, 139, 255, 0.30);
  box-shadow: 0 28px 56px -26px rgba(61, 139, 255, 0.40);
}

.timeline__step {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
  margin-bottom: 10px;
}

.timeline__card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.timeline__card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* Conectores (stubs) dos cards até a linha central */
.timeline__item--left .timeline__card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -48px;
  width: 48px;
  height: 2px;
  background: #e6e8f0;
  transform: translateY(-50%);
}

.timeline__item--right .timeline__card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -48px;
  width: 48px;
  height: 2px;
  background: #e6e8f0;
  transform: translateY(-50%);
}

/* ── Responsivo: linha à esquerda, cards à direita ── */
@media (max-width: 720px) {
  .timeline__track { left: 24px; transform: none; }

  .timeline__item--left,
  .timeline__item--right {
    justify-content: flex-end;
  }

  .timeline__dot {
    left: 24px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .timeline__card { width: calc(100% - 64px); }

  .timeline__item--left .timeline__card::after,
  .timeline__item--right .timeline__card::after {
    left: -40px;
    right: auto;
    width: 40px;
  }
}

/* ── FAQ ── */
.faq {
  display: block;
  min-height: auto;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid #eee;
}

.faq__shell { width: 96%; max-width: 820px; margin: 0 auto; }
.faq__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 40px); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(20, 30, 60, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq__item.is-expanded {
  border-color: rgba(61, 139, 255, 0.35);
  box-shadow: 0 18px 42px -20px rgba(61, 139, 255, 0.40);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 58px 20px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  position: relative;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Expansão pela classe (o JS a coloca), não pelo [open]: ver o script do FAQ */
.faq__item.is-expanded summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: #3d8bff; }

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.faq__item.is-expanded .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer > p {
  overflow: hidden;
  padding: 0 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  transition: padding 0.45s ease;
}

.faq__item.is-expanded .faq__answer > p {
  padding: 0 22px 20px;
}

/* ── CTA Final ── */
.cta-final {
  padding: 100px 0;
  background: #0a0a0a;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(61, 139, 255, 0.08), transparent);
  pointer-events: none;
}

.cta-final__shell {
  width: 92%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.cta-final__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d8bff;
  margin-bottom: 18px;
}

.cta-final__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

.cta-final__title em {
  font-weight: 200;
  font-style: italic;
  color: #3d8bff;
}

.cta-final__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-final__btn--primary {
  background: #25d366;
  color: #fff;
}

.cta-final__btn--primary:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .cta-final { padding: 72px 0; }
  .cta-final__actions { flex-direction: column; align-items: center; }
  .cta-final__btn { width: 100%; justify-content: center; }
}

/* ── Rodapé ── */
.footer {
  display: block;
  background: #08080c;
  color: #fff;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer__shell { width: 96%; max-width: 1100px; margin: 0 auto; }

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer__brand { max-width: 320px; }

.footer__logo {
  display: inline-block;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 16px;
}

.footer__logo-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer__tagline { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }

.footer__nav { display: flex; flex-direction: column; gap: 10px; }

.footer__nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer__nav a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Responsivo (novas seções) ── */
@media (max-width: 560px) {
  .footer__top { flex-direction: column; gap: 32px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVIDADE — correções sistêmicas (auditoria 2026-09-22)
   ═══════════════════════════════════════════════ */

:root {
  /* Respiro que o topo das seções precisa para limpar a navbar fixa.
     Valor de fallback; o JS (syncTopbarOffset) sincroniza com a altura real. */
  --nav-clear: 92px;
}

/* Links de âncora (#faq, #servicos…) param abaixo da navbar fixa */
html {
  scroll-padding-top: var(--nav-clear);
}

/* ── Empilhamento de seções: guarda contra "vazamento" ──
   O efeito congela a seção anterior (transform no desktop, sticky no celular).
   Se a seção seguinte for mais baixa que a tela, a anterior aparecia por
   baixo dela (no mobile o FAQ aparecia atrás do rodapé). Duas defesas:
   1) tudo que sair do .page-body é cortado;
   2) o último card (CTA) ocupa a tela inteira, como no desktop. */
.page-body {
  overflow: clip;
}

/* REGRA DO EMPILHAMENTO: toda seção do .page-body precisa encher a tela.
   O efeito congela a seção enquanto a próxima sobe por cima; se ela for mais
   baixa que a viewport, sobra uma faixa sem nada cobrindo (era a "película"
   cinza/branca no celular).

   Especificidade: o seletor repete a forma do reset mobile
   (`main section:not(.hero-viewport):not(.cortina-hero) { min-height: auto }`,
   dentro de @media (max-width: 900px)) e acrescenta o escopo `.page-body`.
   O `main .page-body > section` de antes tinha especificidade MENOR que esse
   reset: no celular a regra simplesmente não valia — as seções só eram altas
   por acaso e a `.cta-final` ficava com 428px, menor que a tela.

   Unidade: `svh` (barra de endereço à mostra) é pequeno demais — quando a
   barra some a tela cresce e a seção congelada deixa de cobri-la. `lvh` é a
   maior altura possível e, ao contrário de `dvh`, é um valor fixo: não muda o
   layout no meio do scroll (o que envelheceria as posições do ScrollTrigger).
   No desktop `lvh` == `vh`. */
main .page-body > section:not(.hero-viewport):not(.cortina-hero),
main .page-body > section.hero-viewport {
  min-height: 100vh;
  min-height: 100lvh;
}

main .page-body > section.cta-final {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Rodapé acima do hero fixo ──
   O hero é position:fixed com z-index:0; o rodapé não era posicionado, então
   o hero (desfocado) pintava POR CIMA dele — em qualquer largura de tela. */
.footer {
  position: relative;
  z-index: 2;
}

/* ── "Quem sou eu": métricas não podem terminar colada na borda inferior
   (é onde a próxima seção começa a cobrir) ── */
@media (max-width: 900px) {
  .hero-col-right {
    margin-bottom: 56px;
  }
}

/* ── Timeline: palavras longas nunca estouram o card em telas estreitas ── */
.timeline__card h3,
.timeline__card p {
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .timeline__card h3 {
    font-size: 1.15rem;
  }
}

/* ── Serviços (palco): a descrição não pode ficar sob o botão do WhatsApp
   (56px no canto inferior direito) ── */
@media (max-width: 767px) {
  .team-description {
    bottom: clamp(84px, 13vh, 104px);
    padding-right: 0;
  }

  .page-body > section.services {
    --height: min(calc(var(--width) * 1.09), 40vh);
  }
}

/* ── Alvos de toque ≥ 40px ── */
.navbar__logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  margin-left: -6px;
}

.footer__logo {
  padding: 5px 6px;
  margin-left: -6px;
}

.chat-widget__back {
  min-width: 44px;
  min-height: 44px;
}

/* ── Chat widget no celular: bottom sheet em vez de "iPhone dentro do iPhone"
   (o mockup escalado a 0.52 deixava o texto com ~8px) ── */
@media (max-width: 600px) {
  .chat-widget {
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    transform-origin: bottom center;
  }

  .chat-widget .device.device-iphone-x {
    width: 100%;
    height: auto;
  }

  .chat-widget .device-iphone-x .device-frame {
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.35);
  }

  .chat-widget .device-iphone-x .device-screen {
    width: 100%;
    height: min(78svh, 640px);
    border-radius: 22px 22px 0 0;
  }

  .chat-widget .device-stripe,
  .chat-widget .device-header,
  .chat-widget .device-sensors,
  .chat-widget .device-btns,
  .chat-widget .device-power,
  .chat-widget .chat-status-bar {
    display: none;
  }

  .chat-widget__header {
    padding-top: 16px;
  }

  .chat-widget__close {
    top: -22px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }
}

/* ═══════════════════════════════════════════════
   QUEM SOU EU — continuação (.bio, em sobre.html): história, engenharia e stack
   Mesma linguagem do painel escuro do hero-viewport: fundo #0c0d0e,
   rótulos em Space Grotesk, títulos em Plus Jakarta Sans, linhas finas.
   ═══════════════════════════════════════════════ */
main .page-body > section.bio {
  display: block;
  min-height: auto;
  border-bottom: none;
  color: #fff;
  background: #0c0d0e;
  overflow: clip;
}

/* Foto de fundo bem clarinha (a mesma do "Quem sou eu") — só sugere que este
   bloco é a continuação dele. Máscara dissolve para a esquerda
   e para baixo, então o texto nunca fica sobre a imagem. */
main .page-body > section.bio::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(62vw, 900px);
  height: min(120vh, 1100px);
  background: url('assets/imagem-hero.png') center top / cover no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(1.25);
  opacity: 0.14;
  pointer-events: none;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 45%),
    linear-gradient(180deg, #000 45%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 45%),
    linear-gradient(180deg, #000 45%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

@media (max-width: 900px) {
  main .page-body > section.bio::before {
    width: 100%;
    height: min(90vh, 760px);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 30%),
      linear-gradient(180deg, #000 35%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 30%),
      linear-gradient(180deg, #000 35%, transparent 100%);
  }
}

.bio__shell {
  position: relative;
  z-index: 1;
}

.bio__shell {
  width: 96%;
  max-width: 1100px;
  margin: 0 auto;
}

.bio__block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(32px, 6vw, 88px);
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0;
}

.bio__block + .bio__block {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bio__block--story { padding-top: 0; }
/* respiro no fim: a próxima seção sobe por cima a partir da borda inferior */
.bio__block--stack { padding-bottom: clamp(72px, 16vh, 160px); }

.bio__label {
  display: block;
  margin-bottom: 14px;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.bio .bio__title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.bio .bio__title--sm {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.bio__title em {
  font-style: italic;
  font-weight: 300;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.bio__text p,
.bio__desc,
.bio__why p {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.bio__text p + p { margin-top: 18px; }

.bio__desc {
  max-width: 44ch;
  margin-top: 16px;
}

/* credenciais (formação) */
.bio__credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
}

.bio__credentials > div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bio__credentials dt {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.bio__credentials dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* por que um engenheiro — 4 diferenciais, 2×2, separados por linhas */
.bio__why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio__why li {
  padding: 20px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bio__why h3 {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.bio__why p { font-size: 0.95rem; line-height: 1.6; }

/* stack — linhas rotuladas com chips */
.bio__stack {
  margin: 0;
}

.bio__stack > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 10px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bio__stack > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bio__stack dt {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.bio__stack dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.bio__stack dd span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bio__block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bio__why {
    grid-template-columns: 1fr;
  }

  .bio__stack > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .bio__credentials {
    grid-template-columns: 1fr;
  }

  .bio__why li { padding: 16px 0 18px; }
}

/* ═══════════════════════════════════════════════
   "Como funciona" e "FAQ" — mesma linguagem do painel "Experiência" do
   Quem sou eu: fundo #0c0d0e, caixas com fundo levemente claro e borda fina,
   rótulos em Space Grotesk, títulos e textos em Plus Jakarta Sans.
   Sem backdrop-filter e sem texturas com mask-image: o blur refazia o fundo
   de cada cartão a cada frame da rolagem, e era isso que pesava no celular
   a partir destas seções.
   ═══════════════════════════════════════════════ */
.page-body > section.process,
.page-body > section.faq {
  position: relative;
  overflow: clip;
  background: #0c0d0e;
  border-bottom: none;
}

.process__shell,
.faq__shell { position: relative; }

/* "03 / Como funciona", "04 / FAQ" → como o rótulo "Experiência" */
.process__label,
.faq__label {
  margin-bottom: 14px;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

.process__title,
.faq__title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

.process__title em,
.faq__title em { font-weight: 300; }

.process__subtitle,
.timeline__card p,
.faq__answer > p {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.74);
}

/* ── Timeline ── */
.timeline__track { background: rgba(255, 255, 255, 0.12); }

/* cartões e perguntas = as caixas de métrica do painel "Experiência" */
.timeline__card,
.faq__item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.timeline__card:hover,
.faq__item.is-expanded {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* "Passo 01" → rótulo como "Experiência" */
.timeline__step {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
}

/* título do passo → como o número da métrica ("5+", "100%") */
.timeline__card h3 {
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-weight: 600;
  color: #fff;
}

.timeline__item--left .timeline__card::after,
.timeline__item--right .timeline__card::after {
  background: rgba(255, 255, 255, 0.14);
}

.timeline__dot {
  background: #0c0d0e;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Space Grotesk', monospace, sans-serif;
}

/* ── FAQ ── */
.faq__item summary {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
}

/* "+" como uma caixinha de métrica, sem o degradê */
.faq__item summary::after {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.faq__item.is-expanded {
  background: rgba(255, 255, 255, 0.07);
}

/* ── Linha da timeline enchendo com o scroll no celular ──
   O JS liga com .is-scroll-linked. Começa como no desktop (topo da timeline a
   78% da tela) e termina com o fundo dela a 78% — 48px antes de a seção
   congelar, com folga para a barra de endereço mudar a altura da tela.
   O fim é em px (`exit 22vh`), não em %: a seção é sticky, e o navegador
   estica a faixa `exit` com o tempo em que ela fica grudada — `exit 28%`
   terminava bem depois do congelamento e a linha parava no meio.
   A timeline é nomeada no .timeline porque a linha fica dentro de
   .timeline__track { overflow: hidden }, que viraria a referência do view(). */
@supports (animation-timeline: view()) {
  .timeline.is-scroll-linked {
    view-timeline-name: --timeline;
    view-timeline-inset: 0;
  }

  .timeline.is-scroll-linked .timeline__progress {
    animation: timeline-fill linear both;
    animation-duration: 1ms;
    animation-timeline: --timeline;
    animation-range: entry 22% exit 22vh;
  }
}

@keyframes timeline-fill {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
