/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #2a1422;
  --fg: #ffffff;

  --pad-x: clamp(20px, 6.5vw, 112px);
  --pad-top: clamp(20px, 3.55vw, 32px);
  --pad-bottom: clamp(28px, 4.5vw, 64px);

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cabinet Grotesk", "Inter", Helvetica, Arial, sans-serif;

  /* Tons da paleta para mobile / fallback */
  --rose-1: #f0a8b6;
  --rose-2: #d96a86;
  --rose-3: #6e1f3a;
  --cyan-1: #7ed3d8;
  --cyan-2: #2a7d8f;
  --ink:    #1a0e16;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0e0a0d;
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}
ul { list-style: none; margin: 0; padding: 0; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Quebra de linha responsiva — só aparece no mobile */
.brk-mobile { display: none; }
@media (max-width: 720px) {
  .brk-mobile { display: inline; }
}

/* ── Page shell (legado — agora absorvido por .hero) ─ */
/* .page é mantido apenas como classe de container caso outras
   páginas usem; o hero abaixo já é uma section completa. */

/* ── Hero shell (section #topo) ─────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(56px, 9vh, 120px);
}

/* ── Background (desktop / tablet) ──────────────────── */
.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* fallback rosa que casa com a borda esquerda da foto,
     evitando qualquer canto preto se o transform expor a borda */
  background:
    linear-gradient(
      180deg,
      #e6708e 0%,
      #d96a86 55%,
      #b85575 100%
    );
}
.bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
  filter: saturate(1.32) contrast(1.04) brightness(1.06);
  /* scale + translateX moderados — figura visível à direita
     e borda esquerda coberta pelo gradiente rosa do .bg */
  transform: scale(1.22) translateX(8%) translateY(var(--parallax-y, 0));
  transform-origin: center center;
  will-change: transform;
}
.bg__overlay {
  position: absolute;
  inset: 0;
  /* halos coloridos em SCREEN — enriquecem as cores sem escurecer */
  background:
    radial-gradient(
      80% 80% at 18% 45%,
      rgba(255, 145, 180, 0.22) 0%,
      rgba(255, 145, 180, 0)    62%
    ),
    radial-gradient(
      70% 70% at 92% 80%,
      rgba(120, 215, 230, 0.18) 0%,
      rgba(120, 215, 230, 0)    58%
    );
  mix-blend-mode: screen;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* segue rosa do começo ao fim — sem escurecidos pretos */
  background: linear-gradient(
    105deg,
    rgba(220, 80, 130, 0.18) 0%,
    rgba(220, 80, 130, 0.08) 28%,
    rgba(220, 80, 130, 0)    55%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--pad-top) var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: background 220ms ease, padding 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 8, 14, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  padding-top: clamp(14px, 2vw, 20px);
  padding-bottom: clamp(14px, 2vw, 20px);
}
.nav__primary,
.nav__lang {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.3;
}
.nav__primary { gap: clamp(20px, 3.3vw, 48px); }
.nav__lang    { gap: clamp(20px, 3.3vw, 48px); }

.nav a {
  position: relative;
  padding: 4px 0;
  transition: opacity 160ms ease;
}
.nav a:hover { opacity: 0.7; }
.nav__lang a { opacity: 0.75; }
.nav__lang a.is-active { opacity: 1; }
.nav__lang a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
}

/* hamburger button — só aparece no mobile */
.nav__toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--fg);
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 40;
}
.nav__toggle-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 240ms ease, opacity 160ms ease, top 240ms ease;
}
.nav__toggle-bar:nth-child(1) { top: 11px; }
.nav__toggle-bar:nth-child(2) { top: 17px; }
.nav__toggle-bar:nth-child(3) { top: 23px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  top: 17px; transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  top: 17px; transform: rotate(-45deg);
}

/* ── Hero (inner content layout) ────────────────────── */
.hero__inner-flex-marker { /* placeholder no-op */ }

.hero__avatar { display: none; } /* só mobile */

.hero__title,
.hero__about {
  max-width: min(640px, 50%);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
  /* respiro entre as 3 linhas — sutil sombra para profundidade */
  text-shadow: 0 1px 24px rgba(0,0,0,0.18);
}

.hero__about {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.32em;
}

.hero__role {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.45;
  margin: 0;
}

.hero__desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
  opacity: 0.94;
}

/* ── Tablet ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__title,
  .hero__about { max-width: min(520px, 58%); }
  .bg__img { transform: scale(1.32) translateX(10%) translateY(var(--parallax-y, 0)); }
}

/* ── Mobile (≤720px) ────────────────────────────────── */
@media (max-width: 720px) {
  /* nav: hambúrguer + idioma */
  .nav {
    gap: 12px;
    align-items: center;
  }
  .nav__toggle { display: block; }

  /* esconde o menu principal — vira drawer */
  .nav__primary {
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 80px clamp(24px, 8vw, 48px);
    background: rgba(14, 8, 14, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.005em;
    font-family: var(--font-display);
    font-weight: 900;
    /* fechado por padrão */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }
  body.is-menu-open .nav__primary {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s;
  }
  .nav__primary li { white-space: nowrap; }
  .nav__primary a { padding: 6px 0; }

  /* idioma fica visível sempre, mesmo com drawer aberto */
  .nav__lang {
    font-size: 12px;
    gap: 14px;
    margin-left: auto;
    position: relative;
    z-index: 40;
  }

  /* trava scroll quando o drawer está aberto */
  body.is-menu-open { overflow: hidden; }

  /* fundo mais escuro para contrastar com o anel RGB */
  .bg__img { display: none; }
  .bg::after { display: none; }
  .bg__overlay {
    mix-blend-mode: normal;
    background:
      radial-gradient(
        100% 60% at 50% 38%,
        rgba(217, 106, 134, 0.18) 0%,
        rgba(217, 106, 134, 0)    65%
      ),
      radial-gradient(
        90% 55% at 20% 95%,
        rgba(42, 125, 143, 0.25) 0%,
        rgba(42, 125, 143, 0)    65%
      ),
      linear-gradient(
        165deg,
        #170b13 0%,
        #0c0608 55%,
        #050a12 100%
      );
  }

  /* hero stack — foto mais acima, espaçamento equilibrado */
  .hero {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: clamp(40px, 7vh, 64px);
    padding-top: clamp(90px, 15vh, 130px);
    padding-bottom: clamp(40px, 8vh, 64px);
  }
  .hero__title,
  .hero__about { max-width: 100%; }

  /* avatar circular — anel RGB neon vibrante girando suave */
  .hero__avatar {
    display: block;
    position: relative;
    align-self: center;
    width: clamp(260px, 72vw, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
    perspective: 900px;
  }
  .hero__avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(
      from 0deg,
      #ff2d95,
      #ff8a3d,
      #ffe066,
      #6bff8a,
      #00e5ff,
      #4d8aff,
      #b04dff,
      #ff2d95
    );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
            mask-composite: exclude;
    /* gira mais rápido (visivelmente fluido), começa após o coin-flip */
    animation: avatar-spin 6s linear 3.2s infinite;
  }
  .hero__avatar-photo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Ciclo de 25s: aparece (fade) → 2s parado → flip 360° → fica parado o resto */
    animation: avatar-coin-cycle 25s ease-in-out 2.6s infinite both;
  }
  .hero__avatar-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 32%;
    filter: saturate(1.18) contrast(1.06);
  }

  .hero__title { display: none; }
  .hero__about { align-items: center; }

  /* nome com gradiente animado — destaque mobile */
  .hero__name {
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.32em;
  }
  .hero__name-text {
    background: linear-gradient(
      100deg,
      #d96a86 0%,
      #f0a8b6 22%,
      #b285c4 45%,
      #7ed3d8 68%,
      #d96a86 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: name-shimmer 6s ease-in-out infinite;
  }
  .hero__role,
  .hero__desc {
    font-size: clamp(13px, 3.8vw, 15px);
  }
  .hero__desc {
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes name-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Very small ─────────────────────────────────────── */
@media (max-width: 380px) {
  .hero__title { font-size: 36px; }
  .hero__avatar { width: 240px; }
}


/* ═══════════════════════════════════════════════════════
   PARTE 2 — SEÇÕES (Sobre, IA, Como trabalho, Cases)
   ═══════════════════════════════════════════════════════ */

/* ── Section base ──────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  scroll-margin-top: 80px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.container--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-2);
  margin: 0 0 clamp(20px, 3vh, 32px);
}
.eyebrow--small {
  color: var(--rose-2);
  margin-top: clamp(48px, 7vh, 80px);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(24px, 4vh, 56px);
  color: var(--fg);
  text-wrap: balance;
}
.section__title--pink { color: var(--rose-2); }

/* Número/destaque rosa dentro de títulos */
.num-accent {
  color: var(--rose-2);
  font-style: normal;
}

/* Diamante animado (Sobre) */
.diamond {
  display: inline-block;
  vertical-align: -0.14em;
  width: 0.92em;
  height: 0.92em;
  margin-left: 0.14em;
  color: var(--rose-2);
}
.diamond svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  animation: diamond-spin 7s ease-in-out infinite;
  transform-origin: center;
}
/* Recorte triangular superior (a "coroa") */
.diamond__crown {
  fill: url(#diamond-grad);
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}
/* Pavilhão (parte de baixo) */
.diamond__pavilion {
  fill: url(#diamond-grad-dark);
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}
/* Linhas internas de facetas */
.diamond__facet {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.diamond__highlight {
  fill: rgba(255, 255, 255, 0.85);
}
.diamond__spark {
  fill: currentColor;
  stroke: none;
  animation: diamond-sparkle 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.diamond__spark--2 { animation-delay: 0.6s; }
.diamond__spark--3 { animation-delay: 1.2s; }

@keyframes diamond-spin {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(4deg)  scale(1.05); }
}
@keyframes diamond-sparkle {
  0%, 100% { transform: scale(0.5); opacity: 0.25; }
  50%      { transform: scale(1.6); opacity: 1; }
}

.section__lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 clamp(40px, 6vh, 72px);
  opacity: 0.9;
}

.prose p {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  max-width: 960px;
  margin: 0 0 18px;
  opacity: 0.92;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose--large p {
  font-size: clamp(18px, 1.4vw, 22px);
  max-width: 720px;
}

/* breakpoint helper desktop-only */
.brk-desktop { display: inline; }
@media (max-width: 720px) { .brk-desktop { display: none; } }

/* ── SOBRE ─────────────────────────────────────────── */
.section--sobre {
  background:
    /* halo rosa quente sutil no meio */
    radial-gradient(50% 60% at 70% 50%, rgba(217, 106, 134, 0.10), transparent 70%),
    /* cyan sutil no canto oposto */
    radial-gradient(40% 50% at 10% 30%, rgba(80, 195, 220, 0.06), transparent 70%),
    /* base unificada (mesma cor base de todas as seções) */
    #0e0a0d;
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  margin-top: 24px;
}
.skill__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--rose-2);
}
.skill ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill li {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
  padding-left: 16px;
  position: relative;
}
.skill li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rose-2);
}

/* ── IA ────────────────────────────────────────────── */
.section--ia {
  background:
    radial-gradient(55% 45% at 85% 30%, rgba(217, 106, 134, 0.16), transparent 70%),
    radial-gradient(45% 40% at 15% 80%, rgba(42, 125, 143, 0.14), transparent 72%),
    #0e0a0d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
  margin-top: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(217, 106, 134, 0.5);
  transform: translateY(-2px);
}
.card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--rose-2);
  opacity: 0.85;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.2;
  margin: 0;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

/* ── COMO TRABALHO ─────────────────────────────────── */
.section--trabalho {
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(217, 106, 134, 0.05), transparent 70%),
    #0e0a0d;
}

/* Timeline com track gradiente animado */
.timeline {
  list-style: none;
  padding: 0;
  margin: clamp(24px, 4vh, 40px) 0 0;
  position: relative;
}
.timeline__track {
  position: absolute;
  left: 27px;     /* coincide com centro do dot (24px / 2 + offset) */
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  pointer-events: none;
}
.timeline__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(
    180deg,
    #7ed3d8 0%,
    #8eb3d8 25%,
    #b285c4 55%,
    #d07aaa 80%,
    #d96a86 100%
  );
  border-radius: 2px;
  transition: height 140ms linear;
  box-shadow: 0 0 16px rgba(217, 106, 134, 0.45);
}

/* Step layout: dot + corpo (sem numerais) */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  padding: clamp(24px, 3.4vh, 36px) 0;
  align-items: start;
}
.step:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.step__dot {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 6px 0 0 19px; /* alinha ao track */
  border-radius: 50%;
  background: var(--dot, var(--rose-2));
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 0 20px rgba(217, 106, 134, 0.0);
  transition: box-shadow 360ms ease, transform 360ms cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.step.is-visible .step__dot {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.03),
    0 0 22px var(--dot-glow, rgba(217, 106, 134, 0.55));
  transform: scale(1.1);
}
/* cor de cada dot ao longo da paleta cyan→rose */
.step:nth-child(2) { --dot: #7ed3d8; --dot-glow: rgba(126, 211, 216, 0.55); }
.step:nth-child(3) { --dot: #8eb3d8; --dot-glow: rgba(142, 179, 216, 0.55); }
.step:nth-child(4) { --dot: #b285c4; --dot-glow: rgba(178, 133, 196, 0.55); }
.step:nth-child(5) { --dot: #d07aaa; --dot-glow: rgba(208, 122, 170, 0.55); }
.step:nth-child(6) { --dot: #d96a86; --dot-glow: rgba(217, 106, 134, 0.55); }
/* nth-child começa em 2 porque o <span class="timeline__track"> é o 1º filho */

.step__num { display: none; }
.step__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--dot, var(--rose-2));
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.step:hover .step__title { transform: translateX(4px); }
.step p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
  max-width: 640px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chips li {
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.chips li:hover {
  border-color: var(--rose-2);
  color: var(--rose-2);
  background: rgba(217, 106, 134, 0.08);
}

/* ── Trajetória — carrossel ────────────────────────── */
.brands {
  margin-top: clamp(80px, 10vh, 120px);
}
.brands__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-transform: uppercase;
  color: var(--rose-2);
  margin: 0 auto 0.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.brands__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0 auto 2rem;
  text-align: center;
}

/* ── Ícone de Estrada (Trajetória) ──────────────────── */
.road-icon {
  display: inline-block;
  vertical-align: middle;
  width: 0.95em;
  height: 0.95em;
  color: #7ed3d8; /* azul/ciano do robozinho */
  animation: road-wobble 4.5s ease-in-out infinite;
  transform-origin: center;
}
.road-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes road-wobble {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-3px) rotate(-2deg); }
  50%      { transform: translateY(0) rotate(0); }
  75%      { transform: translateY(-2px) rotate(2deg); }
}

.carousel {
  position: relative;
  width: calc(100% + (2 * var(--pad-x)));
  margin-left: calc(-1 * var(--pad-x));
  overflow: visible;
}
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px var(--pad-x) 12px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

/* Setas centralizadas — escondidas como overlay (movidas para hint) */
.carousel__btn { display: none; }

/* Hint visual: 2 setas centralizadas abaixo do carrossel */
.carousel-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: clamp(20px, 3vh, 32px) auto 0;
}
.carousel-hint__btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease,
              color 200ms ease, transform 200ms ease, opacity 200ms ease;
}
.carousel-hint__btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.carousel-hint__btn:hover {
  background: var(--rose-2);
  border-color: var(--rose-2);
  color: white;
  transform: translateY(-1px);
}
.carousel-hint__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.carousel-hint__btn:disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.brand-card {
  flex: 0 0 clamp(220px, 22vw, 280px);
  scroll-snap-align: start;
  aspect-ratio: 5 / 4;
  position: relative;
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  background: #f6f3ef;
  color: #14080e;
  border: 0;
  box-shadow:
    0 1px 0 hsla(var(--hue, 340), 70%, 65%, 0.0),
    0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1),
              box-shadow 320ms ease;
}
.brand-card[data-bg="dark"] {
  background: #14080e;
  color: #ffffff;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1.5px hsla(var(--hue, 340), 75%, 65%, 0.55),
    0 20px 50px hsla(var(--hue, 340), 65%, 35%, 0.42);
}
.brand-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.brand-card__role {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.75;
}

/* ── CASES ─────────────────────────────────────────── */
.section--cases {
  position: relative;
  overflow: hidden;
  background:
    /* aurora rosa quente */
    radial-gradient(55% 50% at 30% 35%, rgba(217, 106, 134, 0.18), transparent 70%),
    /* halo ciano frio */
    radial-gradient(45% 50% at 75% 80%, rgba(80, 195, 220, 0.12), transparent 72%),
    /* base unificada */
    #0e0a0d;
  text-align: center;
}
.section--cases > * { position: relative; z-index: 2; }

/* Cases: layout em grid (phone à esquerda, texto à direita) */
.cases__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  text-align: left;
}
.cases__copy { min-width: 0; }
.cases__copy .cta-row { justify-content: flex-start; }
.section--cases .section__title { font-size: clamp(56px, 8vw, 120px); }

/* ── Phone mockup (iPhone 16 — 19.5:9) ─────────────── */
.phone {
  position: relative;
  width: clamp(220px, 22vw, 280px);
  /* mesma proporção do iPhone 16 (19.5:9 → 9:19.5) */
  aspect-ratio: 9 / 19.5;
  flex-shrink: 0;
}
.phone__bezel {
  position: absolute;
  inset: 0;
  border-radius: 13% / 6%;
  background: linear-gradient(160deg, #1a1a1f 0%, #0a0a0d 100%);
  padding: 9px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #050507;
  border-radius: 14px;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  z-index: 4;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10.5% / 5%;
  overflow: hidden;
  background: #000;
}

.reel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.reel__slide.is-active {
  opacity: 1;
}
.reel__slide video {
  width: 100%;
  height: 100%;
  /* contain = não corta o vídeo do iPhone, deixa o frame inteiro visível */
  object-fit: contain;
  display: block;
  background: #000;
}
.reel__slide--label {
  background: #000;
}
.reel__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.005em;
  text-align: center;
  text-wrap: balance;
  padding: 20px;
  position: relative;
  background: #000;
}
.reel__slide--label .reel__placeholder::before {
  /* sutil halo azul por trás do texto */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(126, 211, 216, 0.18), transparent 70%);
  pointer-events: none;
}
.reel__hint {
  display: block;
  max-width: 80%;
  position: relative;
  z-index: 1;
  color: #7ed3d8;
  text-shadow: 0 0 18px rgba(126, 211, 216, 0.35);
}

@media (max-width: 980px) {
  .cases__layout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .cases__copy .cta-row { justify-content: center; }
  .phone { width: min(240px, 60vw); }
}
.section--cases .section__title {
  font-size: clamp(56px, 9vw, 140px);
  margin-bottom: clamp(28px, 4vh, 48px);
}
.section--cases .prose--large p {
  margin-left: auto;
  margin-right: auto;
}
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(32px, 5vh, 56px);
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease,
              color 180ms ease, border-color 180ms ease;
}
.btn--primary {
  background: var(--rose-2);
  color: white;
}
.btn--primary:hover {
  background: #c25575;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover {
  border-color: var(--rose-2);
  color: var(--rose-2);
}
.btn--full { width: 100%; justify-content: center; }
.btn__arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 200ms ease;
}
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  margin: clamp(80px, 12vh, 140px) auto 0;
  padding: 32px 0 0;
  width: 100%;
  max-width: 1200px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.7;
  text-align: left;
}
.footer a:hover { color: var(--rose-2); }

/* ── Modal ─────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal__card {
  position: relative;
  background: #1c1018;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.98);
  transition: transform 220ms ease;
}
.modal[aria-hidden="false"] .modal__card { transform: scale(1); }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 180ms ease;
}
.modal__close:hover { opacity: 1; }
.modal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--rose-2);
}
body.is-modal-open { overflow: hidden; }

/* ── Forms ─────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: white;
  resize: vertical;
  transition: border-color 200ms ease, background 200ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-2);
  background: rgba(255, 255, 255, 0.07);
}
.form__status {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.75;
  min-height: 1.2em;
  text-wrap: pretty;
}

/* ── Tablet sections ───────────────────────────────── */
@media (max-width: 1024px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .cards        { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile sections ───────────────────────────────── */
@media (max-width: 720px) {
  .skills__grid { grid-template-columns: 1fr; gap: 32px; }
  .cards        { grid-template-columns: 1fr; }

  /* timeline mobile — colunas mais estreitas */
  .step { grid-template-columns: 36px 1fr; gap: 14px; }
  .step__dot { margin: 8px 0 0 10px; width: 14px; height: 14px; }
  .timeline__track { left: 17px; }

  /* carrossel mobile */
  .brand-card { flex-basis: 240px; }
  .brands__header { align-items: flex-start; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; max-width: 320px; margin: 0 auto; justify-content: center; }

  .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section--cases .footer { align-items: center; text-align: center; }
}


/* ═══════════════════════════════════════════════════════
   PARTE 3 — ANIMAÇÕES
   ═══════════════════════════════════════════════════════ */

/* ── Hero: revelação linha-a-linha do título ───────── */
.hero__title .reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(38px);
  animation: line-in 900ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__title .reveal-line:nth-child(1) { animation-delay: 80ms; }
.hero__title .reveal-line:nth-child(2) { animation-delay: 220ms; }
.hero__title .reveal-line:nth-child(3) { animation-delay: 360ms; }

@keyframes line-in {
  to { opacity: 1; transform: none; }
}

/* ── Scroll reveal genérico ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(.2,.7,.2,1),
    transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Nav: sublinhado animado ───────────────────────── */
.nav__primary a {
  position: relative;
}
.nav__primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.nav__primary a:hover::after { transform: scaleX(1); }

/* lang com leve scale no hover */
.nav__lang a { transition: opacity 200ms ease, color 200ms ease; }
.nav__lang a:hover { color: var(--rose-2); opacity: 1; }

/* ── Botões: brilho deslizante ─────────────────────── */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255,255,255,0.25) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn--primary:hover::before { transform: translateX(110%); }

/* ── Cards: levitação + glow no hover ──────────────── */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    160px 120px at var(--mx, 50%) var(--my, 0%),
    rgba(217, 106, 134, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__num {
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), color 200ms ease;
}
.card:hover .card__num {
  transform: translateY(-2px) scale(1.04);
}

/* ── Steps: linha lateral animada (legado removido — agora usa .timeline) */
.step__num {
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), color 200ms ease;
}

/* ── Chips: marquee infinito ───────────────────────── */
.marquee {
  width: calc(100% + (2 * var(--pad-x)));
  margin-left: calc(-1 * var(--pad-x));
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.chips--marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.chips--marquee li {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.chips--marquee li:hover {
  border-color: var(--rose-2);
  color: var(--rose-2);
  background: rgba(217, 106, 134, 0.08);
}
.chip__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--rose-2);
  transition: color 200ms ease, transform 200ms ease;
}
.chips--marquee li:hover .chip__icon {
  color: inherit;
  transform: rotate(-6deg) scale(1.08);
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 5px)); }
}

/* ── Brands: hover (legado — carrossel agora usa .brand-card) */
.brand-card { cursor: default; }

/* ── Modal: entrada suave do card ──────────────────── */
.modal__card {
  transform: scale(0.96) translateY(8px);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.modal[aria-hidden="false"] .modal__card {
  transform: scale(1) translateY(0);
}

.hero__role .pipe {
  opacity: 0.7;
  margin: 0 0.18em;
}
@media (max-width: 720px) {
  .hero__role .pipe--hide-mobile { display: none; }
}

/* ── Scroll hint (mobile hero) ─────────────────────── */
.hero__scroll {
  display: none; /* visível só no mobile */
}
@media (max-width: 720px) {
  .hero__scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 6px;
    margin-top: clamp(12px, 4vh, 28px);
    align-self: center;
    transition: color 200ms ease;
  }
  .hero__scroll:hover { color: var(--rose-2); }
  .hero__scroll-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    align-items: center;
    justify-content: center;
    animation: scroll-bounce 1.8s ease-in-out infinite;
  }
  .hero__scroll-icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0);  opacity: 0.8; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ── Avatar mobile: rotação do anel RGB ────────────── */
@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}
/* Coin flip que toca uma vez quando a página abre (só mobile) */
@keyframes coin-flip {
  0%   { transform: rotateY(-90deg) scale(0.9); opacity: 0; }
  35%  { opacity: 1; }
  60%  { transform: rotateY(180deg) scale(1.02); }
  100% { transform: rotateY(360deg) scale(1);    opacity: 1; }
}

/* Ciclo de 25s: entrada + flip periódico (a cada 25s, dura ~1.5s) */
@keyframes avatar-coin-cycle {
  0%   { transform: rotateY(0deg) scale(1); opacity: 0; }
  3%   { transform: rotateY(0deg) scale(1); opacity: 1; }
  /* hold até ~10% */
  10%  { transform: rotateY(0deg) scale(1); }
  /* flip: gira 360° suave de 10% a 18% (~2s do ciclo) */
  14%  { transform: rotateY(180deg) scale(1.02); }
  18%  { transform: rotateY(360deg) scale(1); }
  /* mantém até o fim do ciclo, próximo flip no início da próxima iteração */
  100% { transform: rotateY(360deg) scale(1); opacity: 1; }
}

/* ── Mobile: otimização de espaçamento entre seções ── */
@media (max-width: 720px) {
  .section {
    padding-top:    clamp(56px, 9vh, 96px);
    padding-bottom: clamp(56px, 9vh, 96px);
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  .eyebrow--small {
    margin-top: clamp(36px, 5vh, 56px);
  }
  .section__title {
    margin-bottom: 24px;
  }
  /* Cases: phone vai PRA BAIXO no mobile (após o texto) */
  .cases__phone { order: 2; }
  .cases__copy  { order: 1; }
  .cases__layout { gap: clamp(28px, 6vh, 48px); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Respeita prefers-reduced-motion ───────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__title .reveal-line { opacity: 1 !important; transform: none !important; }
  .hero__avatar-ring { animation: none !important; }
}


/* ═══════════════════════════════════════════════════════
   PARTE 4 — IA: robô animado + título em linha
   ═══════════════════════════════════════════════════════ */

.ia__title-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
  margin-bottom: clamp(24px, 4vh, 56px);
  flex-wrap: wrap;
}
.ia__title {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(36px, 5.4vw, 76px);
}
.ia__lede {
  max-width: none;
}

/* ── IA: linha animada com 3 nós (substitui os 3 cards) ─ */
.ia-flow {
  position: relative;
  margin: clamp(56px, 9vh, 120px) 0 clamp(24px, 4vh, 56px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(8%, 12vw, 18%);
}
.ia-flow::before {
  /* base da linha (sutil, sempre visível) */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-0.5px);
}
.ia-flow::after {
  /* gradiente animado fluindo cyan→roxo→rosa */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(126, 211, 216, 0) 8%,
    #7ed3d8 20%,
    #b285c4 50%,
    #d96a86 80%,
    rgba(217, 106, 134, 0) 92%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 8px rgba(217, 106, 134, 0.4));
  animation: ia-flow-line 7s ease-in-out infinite;
  transform: translateY(-1px);
}
.ia-flow__node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rose-2);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 0 22px var(--node-glow, rgba(217, 106, 134, 0.7));
  animation: ia-flow-pulse 2.6s ease-in-out infinite;
}
.ia-flow__node:nth-child(1) {
  background: #7ed3d8;
  --node-glow: rgba(126, 211, 216, 0.7);
  animation-delay: 0s;
}
.ia-flow__node:nth-child(2) {
  background: #b285c4;
  --node-glow: rgba(178, 133, 196, 0.7);
  animation-delay: 0.9s;
}
.ia-flow__node:nth-child(3) {
  background: #d96a86;
  --node-glow: rgba(217, 106, 134, 0.7);
  animation-delay: 1.8s;
}

@keyframes ia-flow-line {
  0%   { background-position: 200% 0; opacity: 0.7; }
  50%  { opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.7; }
}
@keyframes ia-flow-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 4px rgba(0,0,0,0.35), 0 0 14px var(--node-glow); }
  50%      { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(0,0,0,0.35), 0 0 32px var(--node-glow); }
}

/* ── IA pillars: textos com separadores modernos ───── */
.ia-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.ia-pillar {
  position: relative;
  padding: 8px clamp(16px, 2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ia-pillar:first-child { padding-left: 0; }
.ia-pillar:last-child  { padding-right: 0; }
/* separador vertical degradê — some no item final */
.ia-pillar:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 12%,
    var(--accent, var(--rose-2)) 50%,
    rgba(255, 255, 255, 0.04) 88%,
    transparent 100%
  );
  opacity: 0.7;
}
.ia-pillar__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  margin: 0;
  color: var(--accent, var(--rose-2));
  position: relative;
  padding-left: 18px;
}
.ia-pillar__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--rose-2));
  box-shadow: 0 0 14px var(--accent, var(--rose-2));
}
.ia-pillar p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  opacity: 0.88;
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 880px) {
  .ia-pillars { grid-template-columns: 1fr; gap: 28px; }
  .ia-pillar { padding: 0; }
  .ia-pillar:not(:last-child)::after {
    top: auto;
    bottom: -14px;
    left: 18px;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      var(--accent, var(--rose-2)) 0%,
      rgba(255, 255, 255, 0.04) 60%,
      transparent 100%
    );
  }
}

/* Robô SVG */
.robot {
  display: inline-block;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  flex-shrink: 0;
  animation: robot-bob 4s ease-in-out infinite;
}
/* IA: robô animado em AZUL */
.robot svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: var(--robot-color, #7ed3d8);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.robot__head {
  fill: rgba(126, 211, 216, 0.10);
}
.robot__antenna-tip {
  fill: var(--robot-color, #7ed3d8);
  stroke: none;
  transform-origin: 45px 14px;
  animation: robot-pulse 1.6s ease-in-out infinite;
}
.robot__antenna {
  stroke: var(--robot-color, #7ed3d8);
}
.robot__eye {
  fill: var(--robot-color, #7ed3d8);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: robot-blink 4.5s ease-in-out infinite;
}
.robot__eye--r { animation-delay: 0.08s; }
.robot__ear {
  fill: rgba(126, 211, 216, 0.22);
  stroke: var(--robot-color, #7ed3d8);
  stroke-width: 2;
}
.robot__mouth {
  stroke-width: 3;
}

@keyframes robot-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-3px) rotate(-2deg); }
  50%      { transform: translateY(0) rotate(0); }
  75%      { transform: translateY(-2px) rotate(2deg); }
}
@keyframes robot-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%      { transform: scale(1.35); opacity: 1; }
}
@keyframes robot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.05); }
}


/* ═══════════════════════════════════════════════════════
   PARTE 5 — Cases: smile animado + brand cards com slot
   ═══════════════════════════════════════════════════════ */

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

.smile {
  display: inline-block;
  vertical-align: -0.06em;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.06em;
  color: var(--rose-2);
  animation: smile-wobble 4.2s ease-in-out infinite;
  transform-origin: 50% 65%;
}
.smile svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.smile__eye {
  fill: currentColor;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: smile-blink 5.4s ease-in-out infinite;
}
.smile__eye--r { animation-delay: 0.08s; }
.smile__mouth { stroke-width: 6; }

@keyframes smile-wobble {
  0%, 100% { transform: rotate(0)    translateY(0); }
  20%      { transform: rotate(-7deg) translateY(-2px); }
  50%      { transform: rotate(0)    translateY(0); }
  80%      { transform: rotate(7deg)  translateY(-2px); }
}
@keyframes smile-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%           { transform: scaleY(0.08); }
  96%           { transform: scaleY(1); }
}

.brand-card__logo {
  width: 100%;
  flex: 1;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 1.4vw, 22px);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.brand-card__logo img {
  max-width: 92%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Logos com wordmark curto — ocupam ainda mais espaço */
.brand-card[data-large="true"] .brand-card__logo img {
  max-width: 100%;
  max-height: 100%;
}
.brand-card[data-large="true"] .brand-card__logo {
  padding: clamp(10px, 1vw, 14px);
}
.brand-card:hover .brand-card__logo {
  transform: scale(1.04);
}

/* mobile IA: título quebra de novo se não couber */
@media (max-width: 720px) {
  .ia__title { white-space: normal; font-size: clamp(36px, 9vw, 52px); }
  .ia__title-row { gap: 14px; }
  .robot { width: 56px; height: 56px; }
}

/* ── Modal de Rotação ──────────────────────────────── */
@keyframes rotateDevice {
  0%, 15% { transform: rotate(0deg); }
  40%, 60% { transform: rotate(-90deg); }
  85%, 100% { transform: rotate(0deg); }
}
.rotating-phone {
  transform-origin: 50px 50px;
  animation: rotateDevice 2.4s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.rotation-icon-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

/* ── Timeline Horizontal ───────────────────────────── */
.brands__timeline {
  margin-top: 5rem;
  text-align: center;
  position: relative;
  width: 100%;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}

.horizontal-timeline-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.horizontal-timeline-container::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.horizontal-timeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    var(--rose-2) 25%, 
    var(--cyan-1) 75%, 
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: translateY(-50%);
  z-index: 1;
}

.horizontal-timeline-track {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  z-index: 2;
  min-width: 800px; /* Garante que no mobile haja rolagem horizontal suave */
  padding: 0 5%;
}

.timeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-node__date {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: hsla(var(--node-hue, 340), 95%, 65%, 1);
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.timeline-node__dot-wrapper {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.timeline-node__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: hsla(var(--node-hue, 340), 90%, 65%, 1);
  box-shadow: 0 0 0 4px #0e0a0d, 0 0 0 5px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-node:hover .timeline-node__dot {
  transform: scale(1.3);
  box-shadow: 
    0 0 0 4px #0e0a0d, 
    0 0 0 7px hsla(var(--node-hue, 340), 90%, 65%, 0.4),
    0 0 15px hsla(var(--node-hue, 340), 90%, 65%, 0.8);
}

.timeline-node:hover .timeline-node__date {
  transform: translateY(-2px);
  color: #ffffff;
}

.timeline-node:hover {
  transform: translateY(-2px);
}

.timeline-node__content {
  padding: 0 1rem;
}

.timeline-node__company {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.timeline-node__role {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  max-width: 180px;
  margin: 0 auto;
}

/* Responsividade para telas menores */
@media (max-width: 900px) {
  .horizontal-timeline-container {
    overflow-x: auto;
    padding-bottom: 3rem;
  }
  .horizontal-timeline-line {
    width: 800px;
    left: 50px;
  }
}

/* ── Certificações ─────────────────────────────────── */
.section--certifications {
  padding-top: clamp(60px, 8vh, 100px);
  padding-bottom: clamp(60px, 8vh, 100px);
  position: relative;
  overflow: hidden;
}

.cert-card {
  flex: 0 0 clamp(260px, 24vw, 320px);
  scroll-snap-align: start;
  background: #14080e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease, box-shadow 320ms ease;
  aspect-ratio: 4 / 3;
}

.cert-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.cert-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 14, 22, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

.cert-card__zoom-icon {
  width: 32px;
  height: 32px;
  color: var(--rose-1);
  transform: scale(0.8);
  transition: transform 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: 0 12px 30px rgba(255, 107, 157, 0.12);
}

.cert-card:hover img {
  transform: scale(1.05);
}

.cert-card:hover .cert-card__overlay {
  opacity: 1;
}

.cert-card:hover .cert-card__zoom-icon {
  transform: scale(1);
}

/* Lightbox dos Certificados */
.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 10, 13, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

.cert-lightbox.active {
  display: flex;
}

.cert-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-lightbox.active img {
  transform: scale(1);
}

.cert-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 2.8rem;
  cursor: pointer;
  transition: color 200ms ease;
  line-height: 1;
}

.cert-lightbox__close:hover {
  color: var(--rose-2);
}

/* Estilos e Animações da Seção de Certificações */
.certifications__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 auto 0.8rem;
  color: var(--rose-2);
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.certifications__desc {
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.5;
  margin: 0 auto;
  text-align: center;
  font-weight: 400;
}

.cert-icon {
  display: inline-block;
  vertical-align: middle;
  width: 0.95em;
  height: 0.95em;
  color: #7ed3d8; /* azul/ciano do robozinho */
  animation: cert-float 4s ease-in-out infinite;
  transform-origin: center;
}

.cert-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tassel (pingente do chapéu) balançando */
.cert-icon__tassel {
  transform-origin: 17px 9.5px;
  animation: tassel-swing 3s ease-in-out infinite;
}

@keyframes cert-float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}

@keyframes tassel-swing {
  0%, 100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-8deg);
  }
}
