/* ============================================================
   VH STUDIO — estilos globais
   ============================================================ */

:root {
  --bg: #000000;
  --bg-alt: #0f0a1c;
  --surface: rgba(26, 26, 26, 0.7);
  --surface-border: #ffffff14;
  --text: #f2f0f7;
  --text-dim: #a99fc0;
  --text-dimmer: #8d81a3;

  --accent: #8f36ee;
  --accent-2: #460b95;
  --accent-light: #c4a0ff;
  --accent-deep: #460b95;

  --font-heading: "Bricolage Grotesque", "Sora", sans-serif;
  --font-body: "Bricolage Grotesque", "Sora", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;

  --container: 1180px;

  --halo-matiz: 270;
  --halo-nucleo: hsl(var(--halo-matiz) 95% 55%);
  --halo-quente: hsl(var(--halo-matiz) 100% 72%);
  --halo-claro: hsl(var(--halo-matiz) 100% 88%);
  --halo-branco: hsl(var(--halo-matiz) 100% 96%);
  --halo-fundo: hsl(var(--halo-matiz) 90% 26%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent-light);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px -8px rgba(143, 54, 238, 0.55);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(143, 54, 238, 0.7);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1rem;
}

.hero__cta-btn {
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: linear-gradient(120deg, var(--accent-deep), var(--accent), var(--accent-2), var(--accent-deep));
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 14px;
}

.nav-glow {
  display: none;
}

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

.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 10px 10px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

/* fio de gradiente girando bem devagar na borda da pílula */
.nav__pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--nav-angle, 0deg), transparent 0%, var(--accent-light) 12%, transparent 28%, transparent 72%, var(--accent) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  animation: navBorderSpin 7s linear infinite;
}

@keyframes navBorderSpin {
  to { --nav-angle: 360deg; }
}

@property --nav-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@media (prefers-reduced-motion: reduce) {
  .nav__pill::before { animation: none; }
}

.nav__menu {
  display: contents;
}

.brand__logo {
  height: 20px;
  width: auto;
}

.brand__logo--sm {
  height: 16px;
}

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--text);
}

.nav__links a:hover {
  color: var(--accent-light);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 104px);
  max-width: 1600px;
  margin: 0 auto;
}

/* Stage carries the photo's position/size; the scene is the shared 3D space
   so ring cards sort by depth — passing in front of and behind the photo. */
.hero__stage {
  position: relative;
  width: calc(100% - max(24px, 23%));
  max-width: 1060px;
  margin: 6px auto 0;
  perspective: 2200px;
  transform: translateX(-40px);
}

.hero__scene {
  position: relative;
  transform-style: preserve-3d;
}

.halo {
  --halo-largura: 620px;
  --halo-achatamento: 2.4;
  --halo-forca: 1.15;
  --halo-desfoque: 0.3;
  --halo-arco: 0deg;

  position: absolute;
  top: 72%;
  left: 53%;
  width: var(--halo-largura);
  height: calc(var(--halo-largura) / var(--halo-achatamento));
  transform: translate(-50%, -50%) rotate(var(--halo-arco));
  clip-path: inset(0 0 50% 0);
  background: radial-gradient(
    ellipse closest-side at center,
    var(--halo-branco) 0%,
    var(--halo-branco) 6%,
    var(--halo-claro) 18%,
    var(--halo-quente) 36%,
    var(--halo-nucleo) 56%,
    var(--halo-fundo) 78%,
    transparent 100%
  );
  filter: blur(calc(var(--halo-largura) * var(--halo-desfoque) * 0.05));
  opacity: var(--halo-forca);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 5s ease-in-out infinite;
}

.halo::after {
  content: "";
  position: absolute;
  inset: -14% -4%;
  border-radius: 50%;
  border: 1px solid hsl(var(--halo-matiz) 90% 78% / 0.4);
  clip-path: inset(0 0 50% 0);
}

.halo-front {
  position: absolute;
  top: 40%;
  left: 44%;
  width: 210px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse closest-side at center,
    var(--halo-branco) 0%,
    var(--halo-claro) 22%,
    var(--halo-quente) 42%,
    var(--halo-nucleo) 64%,
    transparent 100%
  );
  filter: blur(20px);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  animation: haloPulse 5s ease-in-out infinite;
}

@keyframes haloPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--halo-arco)) scale(1);
    opacity: var(--halo-forca);
  }
  50% {
    transform: translate(-50%, -50%) rotate(var(--halo-arco)) scale(1.12);
    opacity: calc(var(--halo-forca) * 0.8);
  }
}

.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
  transform: translateZ(0);
}

/* ---------- 3D ring carousel around the team photo ---------- */
.hero__ring-inner {
  position: absolute;
  top: 46.5%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: heroRingSpin 48s linear infinite;
}

.hero__ring-card {
  position: absolute;
  width: 236px;
  height: 158px;
  margin: -79px 0 0 -118px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px -14px rgba(0, 0, 0, 0.95);
  opacity: 1;
  backface-visibility: hidden;
}

.hero__ring-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__ring-card:nth-child(1)  { transform: rotateY(0deg)      translateZ(740px); }
.hero__ring-card:nth-child(2)  { transform: rotateY(32.73deg)  translateZ(740px); }
.hero__ring-card:nth-child(3)  { transform: rotateY(65.45deg)  translateZ(740px); }
.hero__ring-card:nth-child(4)  { transform: rotateY(98.18deg)  translateZ(740px); }
.hero__ring-card:nth-child(5)  { transform: rotateY(130.91deg) translateZ(740px); }
.hero__ring-card:nth-child(6)  { transform: rotateY(163.64deg) translateZ(740px); }
.hero__ring-card:nth-child(7)  { transform: rotateY(196.36deg) translateZ(740px); }
.hero__ring-card:nth-child(8)  { transform: rotateY(229.09deg) translateZ(740px); }
.hero__ring-card:nth-child(9)  { transform: rotateY(261.82deg) translateZ(740px); }
.hero__ring-card:nth-child(10) { transform: rotateY(294.55deg) translateZ(740px); }
.hero__ring-card:nth-child(11) { transform: rotateY(327.27deg) translateZ(740px); }

@keyframes heroRingSpin {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to   { transform: rotateX(-12deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ring-inner {
    animation: none;
    transform: rotateX(-12deg);
  }
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: radial-gradient(115% 105% at 50% 30%, #000 62%, transparent 100%);
  mask-image: radial-gradient(115% 105% at 50% 30%, #000 62%, transparent 100%);
}

.hero__photo-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  z-index: 3;
  background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 25%, transparent 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero__tag {
  position: absolute;
  top: 34%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.96rem;
  white-space: nowrap;
}

.hero__tag--left {
  left: 13%;
  top: 40%;
}

.hero__tag--right {
  right: -0.5%;
  top: 38%;
  align-items: flex-end;
}

.hero__tag-name {
  padding: 8px 17px;
  border-radius: 6px;
  background: #8f36ee;
  color: #14061f;
  font-weight: 600;
}

.hero__tag-name strong {
  font-weight: 800;
}

.hero__tag-role {
  padding: 8px 17px;
  border-radius: 6px;
  background: rgba(242, 240, 247, 0.92);
  color: #201a2e;
  font-weight: 500;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1560px;
  width: 100%;
  margin: 12px auto 0;
  padding-bottom: 10px;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 6px;
}

.hero__title-light {
  font-weight: 300;
}

.hero__title .accent {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 1280px;
  margin: 0 auto 2px;
}

.hero__lead strong {
  color: var(--text);
}

.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__cta-note {
  font-size: 0.78rem;
  color: var(--text-dimmer);
}

.hero__clients {
  display: flex;
}

.hero__client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--accent);
  margin-left: -22px;
  overflow: hidden;
  padding: 10px;
}

.hero__client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__client-logo:first-child {
  margin-left: 0;
}

.hero__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

.hero__rating strong {
  font-weight: 700;
}

.hero__stars {
  color: #f5b644;
  letter-spacing: 3px;
  font-size: 1.3rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 140px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  max-width: 620px;
  margin-bottom: 56px;
}

/* ---------- Portfolio (filtro por categoria) ---------- */
.section--portfolio {
  padding-top: 40px;
}

.pf-kicker {
  text-align: center;
  margin-bottom: 6px;
}

.pf-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.pf-head {
  padding-block: 6px 10px;
}

.pf-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pf-filter {
  position: relative;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}


.pf-filter:hover {
  color: var(--text);
  border-color: var(--accent-light);
}

.pf-filter.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

.pf-cases {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.pf-case-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.pf-case-info {
  text-align: center;
  margin-bottom: 24px;
}

.pf-case-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
}

.pf-case-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pf-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.pf-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-item:hover img {
  transform: scale(1.04);
}

.pf-item--banner {
  grid-column: span 3;
  aspect-ratio: 2.6 / 1;
}

.pf-item--sq,
.pf-item--wide {
  height: clamp(280px, 30vw, 440px);
}

.pf-item--sq {
  grid-column: span 1;
}

.pf-item--wide {
  grid-column: span 2;
}

/* faixa com o logo do próprio case passando várias vezes (entre o banner e as imagens de baixo) */
.pf-brand-strip {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.pf-brand-track {
  display: flex;
  width: max-content;
  animation: logosScroll 18s linear infinite;
}

.pf-brand-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pf-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 130px;
  height: 34px;
  margin: 0 28px;
}

.pf-brand-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* logo da Brush Box é quase quadrado (badge), fica pequeno no box padrão — escala só ele, sem mexer na largura do item (mantém a velocidade sincronizada) */
.pf-brand-item img[src*="brushbox-logo"] {
  transform: scale(1.7);
}

/* par de imagens meio-a-meio (ex.: duas aplicações lado a lado numa mesma linha) */
.pf-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pf-pair .pf-item {
  height: clamp(280px, 30vw, 440px);
}

.pf-more-btn {
  grid-column: 1 / -1;
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.pf-more-btn:hover {
  color: var(--text);
  border-color: var(--accent-light);
  box-shadow: 0 8px 24px -12px rgba(143, 54, 238, 0.55);
}

.pf-more-btn-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-more-btn.is-open .pf-more-btn-icon {
  transform: rotate(180deg);
}

.pf-more-btn-count {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-border);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.pf-more-btn.is-open .pf-more-btn-count {
  opacity: 0;
  width: 0;
  padding: 0;
  overflow: hidden;
}

.pf-media-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-media-more.is-open {
  grid-template-rows: 1fr;
}

.pf-media-more-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pf-media-more-inner .pf-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pf-media-more.is-open .pf-media-more-inner .pf-item {
  opacity: 1;
  transform: none;
}

.pf-media-more-inner .pf-item:nth-child(1) { transition-delay: 0.05s; }
.pf-media-more-inner .pf-item:nth-child(2) { transition-delay: 0.12s; }
.pf-media-more-inner .pf-item:nth-child(3) { transition-delay: 0.19s; }
.pf-media-more-inner .pf-item:nth-child(4) { transition-delay: 0.26s; }

.pf-empty {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-align: center;
  padding: 40px 0;
}

@keyframes pfProgressFill {
  from { width: 0%; }
  to { width: 100%; }
}

.pf-carousel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 80vw;
  position: relative;
  left: 50%;
  margin-left: -40vw;
}

.pf-carousel .pf-cases {
  flex: 1;
}

/* alinhada ao centro do banner do case — cálculo fixo, não à altura total (que cresce com o "Mostrar mais") */
.pf-arrow {
  margin-top: calc(15.4vw + 21px);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pf-arrow svg {
  width: 24px;
  height: 24px;
}

@media (hover: hover) {
  .pf-arrow:hover {
    color: var(--text);
    border-color: var(--accent-light);
    background: rgba(196, 160, 255, 0.1);
  }
}

@media (max-width: 720px) {
  /* imagem usa a tela quase inteira; as setas ficam em cima, do lado do título, ancoradas numa altura fixa (o bloco de título não muda de tamanho por caso) */
  .pf-carousel {
    width: 100vw;
    margin-left: -50vw;
  }

  .pf-case-info {
    margin-bottom: 38px;
  }

  .pf-arrow {
    position: absolute;
    top: -6px;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(143, 54, 238, 0.85);
  }

  .pf-arrow--prev { left: 12px; }
  .pf-arrow--next { right: 12px; }

  .pf-arrow svg {
    width: 14px;
    height: 14px;
  }
}

.pf-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
}

/* sempre depois da base .pf-timeline acima, pra vencer a cascata (mesma especificidade) */
.pf-timeline--top {
  margin-top: 0;
  margin-bottom: 36px;
  padding-top: 0;
  border-top: none;
}

.pf-timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: none;
  background: none;
  color: var(--text-dimmer);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pf-timeline-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.pf-timeline-item:hover {
  color: var(--text);
}

.pf-timeline-item.is-active {
  color: var(--text);
}

.pf-timeline-item.is-active::before {
  background: var(--accent-light);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(196, 160, 255, 0.18);
}

.pf-timeline-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface-border);
}

.pf-timeline-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent-light);
  animation: pfProgressFill var(--pf-duration, 6000ms) linear forwards;
}

.pf-hover-pause .pf-timeline-progress::after {
  animation-play-state: paused;
}

@media (max-width: 720px) {
  /* mobile imita a mesma composição do desktop (banner em cima, os itens de baixo na mesma linha) — só menor */
  .pf-case-media,
  .pf-media-more-inner,
  .pf-pair {
    gap: 6px;
  }

  .pf-item--banner,
  .pf-item--sq,
  .pf-item--wide,
  .pf-pair .pf-item {
    height: auto;
    aspect-ratio: auto;
  }

  /* a caixa acompanha a proporção real da imagem — sem cortar e sem barra escura sobrando */
  .pf-item {
    background: none;
  }

  .pf-item img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* faixa de logo mais lenta no mobile — mesma velocidade em px vira "rápido demais" numa tela estreita */
  .pf-brand-track {
    animation-duration: 32s;
  }

  /* filtros e linha do tempo viram scroll horizontal no mobile, em vez de quebrar em várias linhas */
  .pf-filters,
  .pf-timeline {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .pf-filters::-webkit-scrollbar,
  .pf-timeline::-webkit-scrollbar {
    display: none;
  }

  .pf-filter,
  .pf-timeline-item {
    flex: none;
    white-space: nowrap;
  }
}

/* ---------- Services (bento grid) ---------- */
.section--bento {
  padding-top: 0;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.bento-title .accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

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

.bento-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento-card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  display: flex;
}

.bento-card--xl {
  overflow: visible;
  clip-path: inset(0 0 -160px 0 round 22px);
  z-index: 5;
}

.bento-card--xl .bento-card__media {
  position: absolute;
  top: -164px;
  bottom: -45px;
  right: -66px;
  left: 36%;
}

.bento-card--xl .bento-card__media img {
  padding: 0;
  object-position: bottom right;
}

.bento-card--wide {
  min-height: 300px;
}

.bento-card--xl {
  min-height: 380px;
}

.bento-card--tall {
  min-height: 460px;
}

.bento-card--accent {
  background: linear-gradient(150deg, var(--accent-2), var(--accent-deep));
  border-color: transparent;
}

.bento-card__media {
  position: absolute;
  inset: 0;
}

.bento-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  padding: 24px;
}

.bento-card:has(.bento-card__content--top-right) {
  overflow: visible;
  clip-path: inset(-150px 0 -220px 0 round 22px);
  z-index: 4;
}

.bento-card:has(.bento-card__content--top-right) .bento-card__media {
  top: -50px;
  bottom: -220px;
  right: 42%;
  transform: scale(0.79) translateY(-100px);
}

.bento-card:has(.bento-card__content--top-right) .bento-card__media img {
  object-position: left center;
  padding: 0;
}

.bento-card:has(.bento-card__content--bottom-left) .bento-card__media {
  left: -6%;
  right: -10px;
  top: 70px;
  bottom: 0;
  transform: translateX(240px);
}

.bento-card:has(.bento-card__content--bottom-left) .bento-card__media img {
  object-fit: contain;
  object-position: top center;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.bento-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 420px;
}

.bento-card__content--top-left {
  align-self: center;
  margin-right: auto;
}

.bento-card__content--top-right {
  align-self: center;
  align-items: flex-start;
  margin-left: auto;
}

.bento-card__content--bottom-left {
  align-self: center;
  margin-right: auto;
}

.bento-card h3 {
  font-size: 1.9rem;
  font-weight: 700;
}

.bento-card--accent h3 {
  color: #fff;
}

.bento-card__lead {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.bento-card--accent .bento-card__lead {
  color: #fff;
}

.bento-card__text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.bento-card--accent .bento-card__text {
  color: rgba(255, 255, 255, 0.85);
}

.bento-card__tags {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.bento-tag {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
}

.bento-tag--solid {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.bento-card--accent .bento-tag {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.bento-card--accent .bento-tag--solid {
  background: #fff;
  color: var(--accent-2);
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  grid-row: span 1;
  aspect-ratio: 4 / 3;
}

.portfolio-item--tall {
  grid-row: span 2;
  aspect-ratio: 4 / 6.2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(10, 6, 18, 0.95), transparent);
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item figcaption span {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 2px;
}

/* ---------- Process ---------- */
.grid--process {
  grid-template-columns: repeat(4, 1fr);
}

.process-card {
  position: relative;
  padding: 30px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.process-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 16px rgba(143, 54, 238, 0.35));
}

.process-card__num {
  position: absolute;
  top: 26px;
  right: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dimmer);
}

.process-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.process-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- STORY ---------- */
.section--story {
  padding: 60px 0 140px;
}

.story-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 900px;
  text-align: center;
}

.story-title .accent {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-text {
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 880px;
  margin: 0 auto 18px;
  text-align: left;
}

.story-text strong {
  color: var(--text);
  font-weight: 700;
}

.story-cta {
  margin: 32px 0 0;
  text-align: center;
}

.story-photo {
  margin: 40px auto 0;
  max-width: 70%;
  border-radius: 20px;
  overflow: hidden;
}

.story-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- LOGO CAROUSEL ---------- */
.section--logos {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.logos-track {
  position: relative;
  z-index: 1;
  background: none;
  padding-top: 28px;
  padding-bottom: 28px;
}

.logos-title {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 500;
  text-align: center;
  color: var(--text);
  margin-bottom: 44px;
}

.logos-title strong {
  color: var(--accent);
  font-weight: 700;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logosScroll 50s linear infinite;
}

.logos-track__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logos-track__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 40px;
}

.logos-track__item img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logos-track__item img[src$="Group.png"] {
  height: 65%;
}

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

/* ---------- SOCIAL PROOF ---------- */
.section--proof {
  padding: 100px 0 110px;
  text-align: center;
  overflow: hidden;
}

.proof__cta {
  margin-top: 56px;
}

.proof__badge {
  justify-content: center;
  margin: 0 auto 40px;
}

.proof__kicker {
  text-align: center;
}

.proof__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  max-width: 1180px;
  margin: 0 auto 0;
  text-align: center;
}

.proof__title .accent {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof__badge .hero__client-logo {
  margin-left: 12px;
}

.proof__badge .hero__client-logo:first-child {
  margin-left: 0;
}

.proof-track {
  display: flex;
  width: max-content;
  margin-top: 56px;
  animation: proofScroll 40s linear infinite;
}

.proof-track__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.proof-track__item {
  display: block;
  flex-shrink: 0;
  width: 260px;
  margin: 0 14px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}

.proof-track__item img {
  display: block;
  width: 100%;
  height: auto;
}

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

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta__card {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 40px;
  border-radius: 32px;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(196, 160, 255, 0.25), transparent 60%),
    linear-gradient(160deg, var(--accent-2), #1a0a33 55%, var(--bg-alt));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 22px;
}

.cta__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

.cta__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 18px;
}

.cta__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 40px;
}

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

.cta__fineprint {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--text-dimmer);
}

.cta__fineprint span {
  margin: 0 6px;
  color: var(--accent-light);
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--surface-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  z-index: 40;
  transition: transform 0.25s ease;
}

.float-whatsapp:hover {
  transform: scale(1.08);
}

.float-whatsapp img {
  width: 28px;
  height: 28px;
}

/* ---------- Hero entrance ----------
   Plain CSS, plays once on load — no JS/scroll dependency,
   so content is never hidden waiting on an event that may not fire. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__cta {
  animation: fadeUp 0.7s ease both;
}

.hero__title { animation-delay: 0.08s; }
.hero__lead { animation-delay: 0.16s; }
.hero__cta { animation-delay: 0.24s; }

/* ---------- Short viewports: shrink hero so it always fits ---------- */
@media (max-height: 940px) and (min-width: 761px) {
  .nav {
    padding-top: 6px;
  }

  .hero__stage {
    max-width: 740px;
  }

  .hero__photo {
    aspect-ratio: 1.8 / 1;
  }

  .hero__ring-card {
    width: 158px;
    height: 106px;
    margin: -53px 0 0 -79px;
  }

  .hero__ring-card:nth-child(1)  { transform: rotateY(0deg)      translateZ(564px); }
  .hero__ring-card:nth-child(2)  { transform: rotateY(32.73deg)  translateZ(564px); }
  .hero__ring-card:nth-child(3)  { transform: rotateY(65.45deg)  translateZ(564px); }
  .hero__ring-card:nth-child(4)  { transform: rotateY(98.18deg)  translateZ(564px); }
  .hero__ring-card:nth-child(5)  { transform: rotateY(130.91deg) translateZ(564px); }
  .hero__ring-card:nth-child(6)  { transform: rotateY(163.64deg) translateZ(564px); }
  .hero__ring-card:nth-child(7)  { transform: rotateY(196.36deg) translateZ(564px); }
  .hero__ring-card:nth-child(8)  { transform: rotateY(229.09deg) translateZ(564px); }
  .hero__ring-card:nth-child(9)  { transform: rotateY(261.82deg) translateZ(564px); }
  .hero__ring-card:nth-child(10) { transform: rotateY(294.55deg) translateZ(564px); }
  .hero__ring-card:nth-child(11) { transform: rotateY(327.27deg) translateZ(564px); }

  .hero__photo img {
    object-position: center top;
  }

  .hero__inner {
    margin-top: 4px;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    margin-bottom: 4px;
  }

  .hero__lead {
    font-size: 0.88rem;
    max-width: 1100px;
    margin-bottom: 8px;
  }

  .hero__tag {
    font-size: 0.7rem;
  }

  .hero__tag-name,
  .hero__tag-role {
    padding: 4px 10px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero__stage {
    max-width: 600px;
  }

  .hero__photo {
    aspect-ratio: 1.75 / 1;
  }

  .hero__ring-card {
    width: 146px;
    height: 98px;
    margin: -49px 0 0 -73px;
  }

  .hero__ring-card:nth-child(1)  { transform: rotateY(0deg)      translateZ(456px); }
  .hero__ring-card:nth-child(2)  { transform: rotateY(32.73deg)  translateZ(456px); }
  .hero__ring-card:nth-child(3)  { transform: rotateY(65.45deg)  translateZ(456px); }
  .hero__ring-card:nth-child(4)  { transform: rotateY(98.18deg)  translateZ(456px); }
  .hero__ring-card:nth-child(5)  { transform: rotateY(130.91deg) translateZ(456px); }
  .hero__ring-card:nth-child(6)  { transform: rotateY(163.64deg) translateZ(456px); }
  .hero__ring-card:nth-child(7)  { transform: rotateY(196.36deg) translateZ(456px); }
  .hero__ring-card:nth-child(8)  { transform: rotateY(229.09deg) translateZ(456px); }
  .hero__ring-card:nth-child(9)  { transform: rotateY(261.82deg) translateZ(456px); }
  .hero__ring-card:nth-child(10) { transform: rotateY(294.55deg) translateZ(456px); }
  .hero__ring-card:nth-child(11) { transform: rotateY(327.27deg) translateZ(456px); }

  .hero__title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  }

  .hero__lead {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--process {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-row {
    grid-template-columns: 1fr;
  }

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

  .portfolio-item--tall {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .nav__pill {
    position: relative;
  }

  .nav__menu {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 24px;
  }

  .nav.is-open .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero__photo {
    aspect-ratio: 1.5 / 1;
  }

  .hero__photo img {
    transform: scale(1.25) translateX(-8%);
    transform-origin: center top;
  }

  .hero__title {
    font-size: clamp(1.9rem, 9.2vw, 2.8rem);
  }

  .hero__title-light {
    font-weight: 600;
  }

  .hero__lead {
    font-size: 0.88rem;
  }

  .hero__ring-inner {
    display: none;
  }

  .hero__tag {
    font-size: 0.65rem;
  }

  .hero__tag--left {
    top: 66%;
    left: 3.5%;
  }

  .hero__tag--right {
    top: 66%;
    right: 3.5%;
  }

  .halo {
    top: 62%;
    --halo-largura: 340px;
    clip-path: none;
  }

  .halo::after {
    display: none;
  }

  .halo-front {
    top: 68%;
    width: 170px;
    height: 150px;
  }

  .hero__tag-name,
  .hero__tag-role {
    padding: 5px 10px;
  }

  .hero__inner {
    margin-top: 12px;
    padding-bottom: 24px;
  }

  .hero__proof {
    gap: 8px;
  }

  .hero__client-logo {
    width: 46px;
    height: 46px;
    margin-left: -15px;
    padding: 6px;
  }

  .hero__rating {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    max-width: 220px;
    text-align: center;
  }

  .hero__stars {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero__stage {
    width: 100%;
    margin: 12px auto 0;
    overflow: hidden;
    transform: none;
  }

  .grid--process,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .bento-card {
    padding: 26px;
    flex-direction: column;
  }

  .bento-card__content,
  .bento-card__content--top-right,
  .bento-card__content--bottom-left {
    max-width: 100%;
    align-self: flex-start;
    margin: 0;
    order: 1;
  }

  .bento-card--xl,
  .bento-card:has(.bento-card__content--top-right),
  .bento-card:has(.bento-card__content--bottom-left) {
    overflow: hidden;
    clip-path: none;
    z-index: auto;
  }

  .bento-card--xl .bento-card__media,
  .bento-card:has(.bento-card__content--top-right) .bento-card__media,
  .bento-card:has(.bento-card__content--bottom-left) .bento-card__media {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: 180px;
    order: 2;
    margin-top: 16px;
  }

  .bento-card--xl .bento-card__content {
    order: 2;
  }

  .bento-card--xl .bento-card__media {
    order: 1;
    margin: -26px -26px 16px;
    width: calc(100% + 52px);
    height: auto;
    aspect-ratio: 3009 / 1806;
  }

  .bento-card:has(.bento-card__content--bottom-left) {
    position: relative;
    padding-bottom: 224px;
  }

  .bento-card:has(.bento-card__content--bottom-left) .bento-card__media {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    width: auto;
    height: 198px;
    margin: 0;
  }

  .bento-card--xl .bento-card__media img {
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .bento-card--xl .bento-card__media img,
  .bento-card:has(.bento-card__content--top-right) .bento-card__media img,
  .bento-card:has(.bento-card__content--bottom-left) .bento-card__media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
  }

  .story-photo {
    max-width: 100%;
  }

  .section {
    padding: 80px 0;
  }

  .section--logos {
    padding: 40px 0;
  }

  /* sem isso, o espaço abaixo da faixa de logos ficava maior que o de cima (soma com o padding-top fixo do portfólio) */
  .section--portfolio {
    padding-top: 0;
  }

  .story-text {
    text-align: center;
  }

  .section--bento {
    padding-top: 0;
  }

  .bento-title__break {
    display: none;
  }
}

/* ============================================================
   MOTION — reveals, textura e micro-interações
   Tudo aditivo: os estados finais são idênticos ao layout base.
   ============================================================ */

/* ---------- Textura de fundo (aurora + grão animado) ---------- */
html {
  background: var(--bg);
}

body {
  background: transparent;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(var(--aurora-y, 0px));
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
}

.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: -6vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(143, 54, 238, 0.34), transparent 68%);
  animation: auroraA 28s ease-in-out infinite;
}

.aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  right: -4vw;
  top: 46vh;
  background: radial-gradient(circle, rgba(70, 11, 149, 0.42), transparent 70%);
  animation: auroraB 34s ease-in-out infinite;
}

.aurora span:nth-child(3) {
  display: none;
}

@keyframes auroraA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, -4vh, 0) scale(1.15); }
}

@keyframes auroraB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-5vw, 5vh, 0) scale(0.9); }
}

@keyframes auroraC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vw, -3vh, 0) scale(1.2); }
}

/* Malha tech: grid de blueprint + pontos nas intersecções */
.tech-grid {
  position: fixed;
  inset: -80px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(196, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196, 160, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle, rgba(196, 160, 255, 0.18) 1.1px, transparent 1.1px);
  background-size: 68px 68px, 68px 68px, 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 130% 90% at 50% 12%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 82%);
  mask-image: radial-gradient(ellipse 130% 90% at 50% 12%, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 82%);
  animation: gridDrift 26s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 68px 68px, 68px 68px, 68px 68px; }
}

.grain {
  animation: grainShift 7s steps(6) infinite;
}

/* Malha dentro dos cards */
.bento-card::before,
.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(196, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(196, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.bento-card--accent::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

.cta__card::before {
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Barra de progresso do scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-light));
  box-shadow: 0 0 18px rgba(143, 54, 238, 0.75);
}

/* ---------- Reveal no scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-mask-position 1s cubic-bezier(0.22, 1, 0.36, 1),
    mask-position 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.js [data-reveal="up"] { transform: translateY(30px); }
.js [data-reveal="left"] { transform: translateX(-38px); }
.js [data-reveal="right"] { transform: translateX(38px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal="blur"] { filter: blur(12px); transform: translateY(18px); }

/* Revelação em cortina: usa mask-image (clip-path quebraria o IntersectionObserver) */
.js [data-reveal="mask"] {
  transform: translateY(0.18em);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 100%);
  mask-image: linear-gradient(to bottom, #000 0 50%, transparent 50% 100%);
  -webkit-mask-size: 100% 210%;
  mask-size: 100% 210%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.js [data-reveal="mask"].is-in {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Texto: brilho vivo nos destaques ---------- */
.hero__title .accent,
.bento-title .accent,
.story-title .accent,
.proof__title .accent {
  background-size: 220% 100%;
  animation: accentSweep 7s ease-in-out infinite;
}

@keyframes accentSweep {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 16px rgba(143, 54, 238, 0.25));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 26px rgba(196, 160, 255, 0.45));
  }
}

/* ---------- Hero: entrada em camadas ---------- */
@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__title-light,
.hero__title .accent {
  display: inline-block;
  animation: lineIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title .accent {
  animation-delay: 0.14s, 0s;
  animation-name: lineIn, accentSweep;
  animation-duration: 0.95s, 7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

@keyframes photoIn {
  from { opacity: 0; transform: translateZ(0) scale(1.06); }
  to { opacity: 1; transform: translateZ(0) scale(1); }
}

.hero__photo {
  animation: photoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tagIn {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__tag {
  animation: tagIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero__tag--left { animation-delay: 0.55s; }
.hero__tag--right { animation-delay: 0.7s; }

.hero__proof {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.3s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero__client-logo {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease;
}


.hero__client-logo:hover {
  transform: translateY(-6px) scale(1.08);
  border-color: var(--accent-light);
  z-index: 2;
}

.hero__stars {
  display: inline-block;
  animation: starsPulse 4s ease-in-out infinite;
}

@keyframes starsPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 182, 68, 0)); }
  50% { filter: drop-shadow(0 0 10px rgba(245, 182, 68, 0.55)); }
}

/* Contador +83 sem pular de largura */
.hero__rating strong {
  display: inline-block;
  min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav: reage ao scroll ---------- */
.nav__pill {
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled .nav__pill {
  background: rgba(10, 6, 18, 0.72);
  border-color: rgba(196, 160, 255, 0.22);
  box-shadow: 0 14px 40px -22px rgba(143, 54, 238, 0.95);
}

/* ---------- Botões: brilho ao passar o mouse ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.32) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::after {
  transform: translateX(130%);
}

/* ---------- Cards de serviço: elevação + luz que segue o mouse ---------- */
.bento-card {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 160, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 160, 255, 0.3);
  box-shadow: 0 30px 70px -34px rgba(143, 54, 238, 0.9);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-tag {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bento-card:hover .bento-tag {
  transform: translateY(-3px);
}

.bento-card:hover .bento-tag--solid {
  box-shadow: 0 10px 24px -10px rgba(143, 54, 238, 0.9);
}

/* ---------- Carrosséis: pausam ao passar o mouse (só em dispositivo com mouse de verdade —
   no touch, :hover pode "travar" ligado depois de um toque e o carrossel para de vez em quando) ---------- */
@media (hover: hover) {
  .proof-track:has(.proof-track__item:hover) {
    animation-play-state: paused;
  }
}

.logos-track__item img {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.logos-track__item:hover img {
  transform: scale(1.12);
  opacity: 1;
}

.proof-track__item {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.proof-track__item:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(196, 160, 255, 0.35);
  box-shadow: 0 34px 66px -30px rgba(143, 54, 238, 0.85);
}

/* ---------- CTA: card vivo ---------- */
.cta__card {
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.cta__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cta__card:hover::after {
  opacity: 1;
}

.cta__badge-dot {
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 160, 255, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(196, 160, 255, 0); }
}

/* ---------- Foto da seção história ---------- */
.story-photo {
  transition: box-shadow 0.6s ease;
}

.story-photo img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-photo:hover img {
  transform: scale(1.03);
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.float-whatsapp {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.float-whatsapp:hover {
  transform: scale(1.12);
}

/* ---------- Respeita quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transition: none !important;
  }

  .aurora span,
  .grain,
  .tech-grid,
  .hero__stars,
  .float-whatsapp img,
  .cta__badge-dot,
  .hero__title-light,
  .hero__title .accent,
  .hero__photo,
  .hero__tag,
  .hero__proof,
  .logos-track,
  .proof-track,
  .hero__cta-btn {
    animation: none !important;
  }
}

/* ---------- Sem palavras viúvas, em qualquer tamanho de tela ---------- */
.hero__title,
.bento-title,
.story-title,
.proof__title,
.cta__title,
.logos-title,
.bento-card h3 {
  text-wrap: balance;
}

.hero__lead,
.hero__cta-note,
.bento-card__lead,
.bento-card__text,
.story-text,
.cta__lead,
.cta__fineprint {
  text-wrap: pretty;
}
