/* ==========================================================================
   RARI. — Estilos globais
   Identidade: offwhite dominante, preto para texto, azul-roxo como assinatura.
   Escala contida: clean, legível, sem gritar.
   ========================================================================== */

@font-face {
  font-family: "PP Monument";
  src: url("../fonts/PPMonumentNormal-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Object Sans";
  src: url("../fonts/PPObjectSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F5F1;
  --bg-2: #EFEBE4;
  --ink: #0D0D0D;
  --accent: #4B4EFC;
  --muted: #6B6B6B;
  --line: #E3E0DA;
  --line-strong: #CFCAC2;
  --error: #C8412E;
  --text: #54524E;

  --display: "PP Monument", "Helvetica Neue", Arial, sans-serif;
  --sans: "PP Object Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(64px, 7vw, 104px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 23px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 15px; line-height: 25px; }
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--bg-2); }
.section--white { background: #FFFFFF; }
.section--flush-top { padding-top: 0; }

/* Tipografia
   ========================================================================== */

.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -.005em;
  color: var(--ink);
}

.h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.h2 { font-size: clamp(21px, 2vw, 28px); line-height: 1.2; }
.h3 { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.35; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

.caption { font-size: 12.5px; line-height: 18px; color: var(--muted); }

.prose { max-width: 58ch; }
.prose > * + * { margin-top: 1em; }

.num {
  font-family: var(--display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stack { display: grid; gap: 20px; justify-items: start; align-content: start; }

.todo {
  padding: 0 .2em;
  background: rgba(75, 78, 252, .1);
  color: var(--accent);
}

/* Botões
   ========================================================================== */

/* CTA: somente texto + seta discreta, sem caixa */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  border: 0;
  transition: color .3s var(--ease);
}
.btn svg { flex: none; transition: transform .45s var(--ease); }
.btn .i-arrow { width: 12px; height: 12px; }
.btn .i-wa { width: 15px; height: 15px; }
.btn:hover { color: var(--accent); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--sm { font-size: 13px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Header
   ========================================================================== */

/* Header no topo da página, não acompanha o scroll.
   Fica fixo apenas enquanto o menu mobile / modal de soluções está aberto. */
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(247, 245, 241, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header.is-solid { position: fixed; background: var(--bg); border-color: var(--line); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__logo { width: 68px; }
.header__brand { display: flex; align-items: center; gap: 16px; }
.header__slogan {
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  white-space: nowrap;
  color: var(--muted);
}
@media (max-width: 380px) { .header__slogan { display: none; } }
.header__logo svg, .footer__logo svg { width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(32px, 3.4vw, 52px); }

.nav__link {
  position: relative;
  padding-block: 5px;
  font-size: 13.5px;
  line-height: 18px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current]::after,
.nav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav__link--toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav__link--toggle .chev { width: 11px; height: 11px; transition: transform .4s var(--ease); }
.nav__link--toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* Modal — Nossas soluções */

.solutions {
  position: fixed;
  inset: 0;
  z-index: 45;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .6s;
}
.solutions.is-open { visibility: visible; pointer-events: auto; transition: none; }

.solutions__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, .28);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.solutions.is-open .solutions__backdrop { opacity: 1; }

.solutions__panel {
  position: relative;
  max-height: 100%;
  overflow-y: auto;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  transform: translateY(-100%);
  transition: transform .6s var(--ease);
}
.solutions.is-open .solutions__panel { transform: none; }

.solutions__inner { padding-block: 28px clamp(40px, 4.5vw, 64px); }

.solutions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.solutions__close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -10px; }
.solutions__close svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.solutions__close:hover svg { transform: rotate(90deg); }

.solutions__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 96px); }

.solutions__title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  transition: color .3s var(--ease);
}
.solutions__title svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.solutions__title:hover { color: var(--accent); }
.solutions__title:hover svg { transform: translateX(5px); }

.solutions__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.solutions__list a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: color .3s var(--ease), padding .45s var(--ease);
}
.solutions__list a svg { width: 14px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .45s var(--ease); }
.solutions__list a:hover { color: var(--accent); padding-left: 6px; }
.solutions__list a:hover svg { opacity: 1; transform: none; }

.solutions__desc { max-width: 36ch; font-size: 14px; line-height: 22px; color: var(--muted); }

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

/* Menu mobile */

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-mobile.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }

.menu-mobile__inner { display: flex; flex-direction: column; padding-block: 12px 40px; }
.menu-mobile__link {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
}
.menu-mobile__group { display: flex; flex-direction: column; padding-top: 26px; }
.menu-mobile__group .label { margin-bottom: 2px; }
.menu-mobile__sub { list-style: none; margin: 0; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.menu-mobile__sub a { display: block; padding: 7px 0; font-size: 14px; color: var(--muted); }
.menu-mobile .btn { margin-top: 28px; }

@media (min-width: 861px) { .menu-mobile { display: none; } }

/* WhatsApp fixo
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 13px 9px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(247, 245, 241, .14);
  transform: translateY(-50%);
  transition: background-color .35s var(--ease), padding .35s var(--ease);
}
.wa-float .i-wa { width: 18px; height: 18px; }
.wa-float__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.wa-float:hover { background: var(--accent); padding-right: 12px; }

@media (max-width: 640px) {
  .wa-float { padding: 10px 8px; }
  .wa-float__text { display: none; }
}

/* Hero (Home)
   ========================================================================== */

.hero {
  display: flex;
  min-height: min(80svh, 680px);
  padding-top: calc(var(--header-h) + clamp(56px, 10vh, 112px));
  padding-bottom: clamp(48px, 7vh, 80px);
}

.hero__inner { display: flex; flex-direction: column; gap: 24px; flex: 1; }

.hero__bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: auto;
  padding-top: clamp(40px, 8vh, 88px);
}
.hero__text { grid-column: 1 / 7; }
.hero__text > .hero__subtitle { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; }
.hero__text > .hero__subtitle + p { margin-top: clamp(28px, 3.5vh, 40px); }
.hero { min-height: 0; padding-bottom: clamp(72px, 10vh, 112px); }
.hero .hero__bottom { margin-top: 0; padding-top: clamp(40px, 5.5vh, 60px); }

@media (max-width: 860px) {
  .hero__text { grid-column: 1 / -1; }
}

/* Carrossel de logos
   ========================================================================== */

.logos {
  padding-block: clamp(36px, 4vw, 52px);
  overflow: hidden;
  /* brilho discreto ao fundo */
  background:
    radial-gradient(38% 120% at 50% 50%, rgba(75, 78, 252, .06), transparent 70%),
    radial-gradient(60% 160% at 50% 50%, rgba(255, 255, 255, .95), transparent 72%),
    var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__list {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  margin: 0;
  padding: 0 clamp(48px, 6vw, 88px) 0 0;
  list-style: none;
}
.logos__list img { width: auto; height: clamp(26px, 2.4vw, 32px); opacity: .5; transition: opacity .4s var(--ease); }
.logos__list img:hover { opacity: .85; }

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

/* Placeholders e mídia
   ========================================================================== */

.ph { position: relative; overflow: hidden; background: var(--line); }
.ph__tag { position: absolute; left: 16px; top: 16px; }
.ph--video { aspect-ratio: 16 / 9; width: 100%; }

.portrait { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 280px; margin: 0; overflow: hidden; background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.play svg { width: 16px; height: 16px; margin-left: 2px; }
.play:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Layouts utilitários
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
  align-items: center;
}
.split__text { grid-column: 1 / 7; }
.split__media { grid-column: 8 / 13; display: flex; justify-content: flex-end; }

.section-head { display: grid; gap: 16px; justify-items: start; max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }

@media (max-width: 860px) {
  .split__text, .split__media { grid-column: 1 / -1; }
  .split__media { justify-content: flex-start; }
}

/* Cards de serviços (Home)
   ========================================================================== */

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card p { font-size: 13.5px; line-height: 21px; }
.card .h3 { min-height: 2.6em; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card p + .btn { margin-top: auto; }
.card p { margin-bottom: 8px; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card .h3 { min-height: 0; }
}

/* Galeria
   ========================================================================== */

.gallery {
  position: relative;
  height: clamp(260px, 32vw, 440px);
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  touch-action: pan-y;
}
.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(13, 13, 13, .3);
}

.gallery__track { display: flex; height: 100%; transition: transform 1s var(--ease); }
.gallery__slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.gallery__slide > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.gallery__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding-inline: calc(var(--gutter) + 64px);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid rgba(247, 245, 241, .45);
  border-radius: 50%;
  color: var(--bg);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.gallery__nav svg { width: 14px; height: 14px; }
.gallery__nav:hover { background: var(--accent); border-color: var(--accent); }
.gallery__nav--prev { left: var(--gutter); }
.gallery__nav--next { right: var(--gutter); }

.gallery__count {
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: .16em;
}

@media (max-width: 700px) {
  .gallery__overlay { padding-inline: var(--gutter); }
  .gallery__nav { top: auto; bottom: 14px; margin-top: 0; width: 40px; height: 40px; }
  .gallery__nav--next { left: calc(var(--gutter) + 52px); right: auto; }
  .gallery__count { left: auto; right: calc(var(--gutter) + 40px); bottom: 26px; }
}

/* Visão de entrega
   ========================================================================== */

.vision {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  align-items: center;
}
.vision__head { grid-column: 1 / 6; }
.vision__text { grid-column: 7 / 13; max-width: none; }
.vision__text p:first-child { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; }
.vision__text .sign {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  color: var(--ink);
}

@media (max-width: 860px) {
  .vision__head, .vision__text { grid-column: 1 / -1; }
}

/* Boxes (Pilares / Consultoria)
   ========================================================================== */

.boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: clamp(200px, 17vw, 240px);
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color .5s var(--ease);
}
.box:hover { background: var(--bg); }

.box__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1;
  color: var(--accent);
}

.box__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.box__icon .ico { width: 20px; height: 20px; }
.box:hover .box__icon { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.box__body { display: grid; gap: 10px; justify-items: start; margin-top: auto; }
.box__body p { max-width: 46ch; font-size: 14px; line-height: 22px; }
.box__body .btn { margin-top: 10px; }

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

/* Pilares — cards centrais, sem divisórias */

.section-head--center { justify-items: center; margin-inline: auto; text-align: center; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 800px;
  margin-inline: auto;
}

.pillar {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 3vw, 40px);
  text-align: center;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(75, 78, 252, .08);
  color: var(--accent);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.pillar__icon .ico { width: 19px; height: 19px; }
.pillar:hover .pillar__icon { background: var(--accent); color: var(--bg); }

.pillar__body { display: grid; gap: 8px; justify-items: center; }
.pillar__body p { color: var(--text); max-width: 34ch; font-size: 14px; line-height: 22px; }

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

/* Founder
   ========================================================================== */

.founder__name { margin-top: 4px; }
.i-in { width: 13px; height: 13px; }

/* Depoimentos
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 24px;
  align-items: center;
}
.testimonials-grid .testimonials { grid-column: 1 / 8; }

.client-grid { grid-column: 9 / 13; }
.client-grid ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 52px) clamp(28px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.client-grid li { display: grid; place-items: center; }
.client-grid img { width: auto; height: clamp(28px, 2.4vw, 32px); opacity: .5; transition: opacity .4s var(--ease); }
.client-grid li:hover img { opacity: .85; }

@media (max-width: 900px) {
  .testimonials-grid .testimonials,
  .client-grid { grid-column: 1 / -1; }
}

.testimonials { display: grid; gap: 32px; touch-action: pan-y; }
.testimonials__viewport { overflow: hidden; }
.testimonials__track { display: flex; transition: transform .8s var(--ease); }

.testimonial {
  display: grid;
  gap: 22px;
  flex: 0 0 100%;
  margin: 0;
  padding-right: 24px;
  opacity: .25;
  transition: opacity .8s var(--ease);
}
.testimonial.is-active { opacity: 1; }

.testimonial__mark {
  height: 22px;
  font-family: var(--display);
  font-size: 56px;
  line-height: .8;
  color: var(--accent);
}

.testimonial__quote {
  max-width: 40ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--ink);
}

.testimonial__author { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.testimonial__author strong { display: block; font-weight: 400; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.carousel-count { font-size: 11px; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.carousel-bar { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.carousel-bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: var(--p, 0%);
  background: var(--accent);
  transition: width .8s var(--ease);
}
.carousel-btns { display: flex; gap: 10px; }

/* Contato
   ========================================================================== */

.contact { padding-block: clamp(104px, 12vw, 168px); }
.contact__inner { display: grid; justify-items: center; text-align: center; }
.contact__inner .label { color: var(--accent); letter-spacing: .22em; }
.contact__title {
  margin-top: 26px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.contact__lead { margin-top: 16px; font-size: clamp(14px, 1.1vw, 16px); color: var(--muted); }

/* CTA em caixa — exceção deliberada, seguindo a referência da seção */
.contact__cta {
  margin-top: 40px;
  padding: 17px 30px;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.contact__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Rodapé
   ========================================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 7vw, 100px);
  padding-bottom: 32px;
  background: #0B0B0B;
  color: #E8E6E1;
}

.footer__inner { position: relative; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.footer__logo { width: 92px; color: #F7F5F1; }
.footer__tagline { margin-top: 28px; font-size: 14px; line-height: 20px; letter-spacing: .2em; color: #CFCCC6; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
  margin-top: 34px;
  font-size: 15px;
  line-height: 22px;
}
.footer__nav a { position: relative; color: #D6D3CD; transition: color .3s var(--ease); }
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.footer__nav a:hover { color: #FFF; }
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__social { width: 22px; margin-top: 36px; transition: color .3s var(--ease); }
.footer__social:hover { color: #8F91FF; }

.footer__place { margin-top: 36px; font-size: 15px; line-height: 22px; }

.footer__bottom {
  align-self: stretch;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 245, 241, .12);
}
.footer__bottom p { font-size: 13px; line-height: 18px; color: #7C7A76; }

/* Páginas internas
   ========================================================================== */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(56px, 6vw, 88px);
}
.page-hero__top { display: grid; gap: 18px; justify-items: start; max-width: 860px; }
.page-hero__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.page-hero__body > .prose { grid-column: 1 / 8; grid-row: 1; }
.page-hero__aside { grid-column: 9 / 13; grid-row: 1; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .page-hero__aside,
  .page-hero__body > .prose { grid-column: 1 / -1; grid-row: auto; }
}

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.facts strong { color: var(--ink); font-family: var(--display); font-weight: 300; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; }

.statement {
  max-width: 760px;
  margin-top: clamp(48px, 6vw, 80px);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
}

/* O que entregamos */

.deliver {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 24px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ink);
}
.deliver__head { grid-column: 1 / -1; }
.deliver__list { grid-column: 1 / 9; margin: 0; padding: 0; list-style: none; counter-reset: d; }
.deliver__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
  counter-increment: d;
}
.deliver__list li:first-child { padding-top: 2px; }
.deliver__list li::before {
  content: counter(d, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 300;
  font-size: 13px;
  color: var(--accent);
}

@media (max-width: 860px) {
  .deliver__head, .deliver__list { grid-column: 1 / -1; }
}

/* CTA de fim de página */

.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.page-cta--end { justify-content: flex-end; }
.link-back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; transition: color .3s var(--ease); }
.link-back svg { width: 14px; height: 14px; transition: transform .45s var(--ease); }
.link-back:hover { color: var(--accent); }
.link-back:hover svg { transform: translateX(-3px); }

/* Ícones de linha */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Diagrama — Linha do tempo (Planejamento)
   ========================================================================== */

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin: 0; padding: 0; list-style: none; align-items: start; }

.tl-step { position: relative; }
.tl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 70px;
  right: -6px;
  height: 1px;
  background: var(--ink);
}
.tl-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 25px;
  right: -5px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.tl-step__btn { display: grid; gap: 8px; justify-items: start; width: 100%; text-align: left; }
.tl-step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.tl-step__icon .ico { width: 22px; height: 22px; }
.tl-step__title { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 300; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.3; }
.tl-step__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.tl-step__more i { position: relative; width: 9px; height: 9px; }
.tl-step__more i::before,
.tl-step__more i::after { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.tl-step__more i::after { transform: rotate(90deg); }

.tl-step__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tl-step__detail > div { overflow: hidden; }
.tl-step__detail p { max-width: 30ch; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-strong); font-size: 14px; line-height: 21px; }

.tl-step.is-open .tl-step__detail { grid-template-rows: 1fr; }
.tl-step.is-open .tl-step__more i::after { transform: none; }
.tl-step.is-open .tl-step__icon,
.tl-step:hover .tl-step__icon { background: var(--accent); border-color: var(--accent); color: var(--bg); }

@media (hover: hover) {
  .tl-step:hover .tl-step__detail { grid-template-rows: 1fr; }
  .tl-step:hover .tl-step__more i::after { transform: none; }
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-step { padding: 0 0 40px 80px; min-height: 56px; }
  .tl-step__icon { position: absolute; left: 0; top: 0; margin: 0; }
  .tl-step__btn { padding-top: 4px; }
  .tl-step:not(:last-child)::after { top: 66px; left: 28px; right: auto; bottom: 8px; width: 1px; height: auto; }
  .tl-step:not(:last-child)::before { top: auto; right: auto; left: 25px; bottom: 8px; transform: rotate(135deg); }
}

/* Diagrama — Diagnóstico → Prescrição (Blueprint)
   ========================================================================== */

.blueprint { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: stretch; }

.bp-col { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 2.6vw, 34px); }
.bp-col--now { border: 1px dashed #B9B3A9; color: var(--muted); }
.bp-col--now .h3 { color: var(--muted); }
.bp-col--next { border: 1px solid var(--ink); background: var(--bg); }

.bp-list { margin: 0; padding: 0; list-style: none; }
.bp-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px dashed var(--line-strong); font-size: 15px; line-height: 1.4; }
.bp-col--next .bp-list li { border-top: 1px solid var(--line); color: var(--text); }
.bp-list .ico { width: 18px; height: 18px; flex: none; }
.bp-col--next .ico { color: var(--accent); }

.bp-arrow { align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.bp-arrow svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .blueprint { grid-template-columns: 1fr; }
  .bp-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Diagrama — Ciclo (Máquina de Vendas)
   ========================================================================== */

.cycle { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 56px auto 72px; }
.cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--ink); }

.cycle__center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  width: 44%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.cycle__nodes { margin: 0; padding: 0; list-style: none; }
.cycle__node { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }

.cycle__icon {
  position: absolute;
  left: -28px;
  top: -28px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.cycle__icon .ico { width: 22px; height: 22px; }
.cycle__node:hover .cycle__icon { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.cycle__text { position: absolute; display: grid; gap: 2px; width: 150px; }
.cycle__label { font-size: 14px; line-height: 1.3; }
.cycle__node--t .cycle__text { left: -75px; bottom: 40px; text-align: center; }
.cycle__node--r .cycle__text { left: 40px; top: -18px; }
.cycle__node--l .cycle__text { right: 40px; top: -18px; text-align: right; }
.cycle__node--b .cycle__text { left: -75px; top: 40px; text-align: center; }
.cycle__text .caption { font-size: 12px; line-height: 16px; }

.cycle__loop { display: none; }

@media (max-width: 960px) {
  .cycle { width: 100%; aspect-ratio: auto; margin: 0; }
  .cycle__ring { display: none; }
  .cycle__center { position: static; width: auto; margin-bottom: 32px; justify-items: start; text-align: left; transform: none; }
  .cycle .cycle__node { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 56px; padding: 0 0 32px 76px; }
  .cycle .cycle__icon { left: 0; top: 0; }
  .cycle .cycle__text { position: static; width: auto; padding-top: 8px; text-align: left; }
  .cycle .cycle__text .caption { display: none; }
  .cycle__node:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 62px; bottom: 6px; width: 1px; background: var(--ink); }
  .cycle__loop { display: flex; align-items: center; gap: 10px; padding-left: 76px; }
  .cycle__loop svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
}

/* Diagrama — Degraus (Escala para Softwares)
   ========================================================================== */

.stairs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stair { display: flex; flex-direction: column; gap: 14px; }
.stair__head { display: grid; gap: 6px; justify-items: start; padding-right: 10px; }
.stair__title { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 300; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.3; }

.stair__bar {
  height: calc(var(--h) * clamp(36px, 3.4vw, 50px));
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-top: 1px solid var(--ink);
}
.stair--start .stair__bar { background: var(--line); }
.stair--end .stair__bar { background: var(--accent); border-color: var(--accent); }

.tag {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid currentColor;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stair--end .tag { color: var(--accent); }

@media (max-width: 900px) {
  .stairs { grid-template-columns: 1fr; gap: 24px; }
  .stair__bar { width: calc(var(--h) * 20%); height: 8px; border-top: 1px solid var(--line-strong); }
}

/* Mentoria — Para quem é
   ========================================================================== */

.audience {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(16px, 3vw, 40px);
  text-align: center;
}
.audience__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(75, 78, 252, .08);
  color: var(--accent);
}
.audience__icon .ico { width: 21px; height: 21px; }
.audience__text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}

.page-cta--center { justify-content: center; border-top: 0; padding-top: 0; margin-top: clamp(28px, 3vw, 40px); }

/* Cenas animadas — paralaxe no scroll
   A seção fica fixa enquanto a cena se monta. O JS define na seção --p (0→1),
   --tn (etapa atual / total) e --done (0→1 no fim), e em cada [data-step] --s (0→1),
   .is-on (encaixado) e .is-active (etapa em foco). Cada página tem seu palco.
   ========================================================================== */

.scene { position: relative; }
.js .scene { height: calc(100svh + var(--scene-steps, 5) * 60svh); }
.scene__pin {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 24px) 32px;
  overflow: hidden;
}
.js .scene__pin { position: sticky; top: 0; height: 100svh; }
.scene__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
}
.scene__copy { grid-column: 1 / 6; display: grid; gap: clamp(24px, 3vw, 40px); }
.scene__stage {
  grid-column: 6 / 13;
  justify-self: end;
  position: relative;
  width: min(100%, 74svh);
  aspect-ratio: 1;
  container-type: inline-size;
}
.scene__head { display: grid; gap: 16px; justify-items: start; }

.scene__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.scene__item {
  --s: 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: .38;
  transition: opacity .5s var(--ease);
}
.scene__item.is-on { opacity: .62; }
.scene__item.is-active { opacity: 1; }
.scene__num { font-size: 11px; line-height: 24px; letter-spacing: .16em; color: var(--muted); transition: color .4s var(--ease); }
.scene__item.is-active .scene__num { color: var(--accent); }
.scene__title { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(16px, 1.3vw, 19px); line-height: 24px; color: var(--ink); }
.scene__text {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 20px;
  transition: max-height .6s var(--ease), opacity .6s var(--ease), margin .6s var(--ease);
}
.scene__item.is-active .scene__text { max-height: 60px; margin-top: 4px; opacity: 1; }

.scene__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.scene__count { font-size: 11px; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.scene__count b { font-weight: 400; color: var(--ink); }
.scene__bar { position: relative; flex: 0 0 96px; height: 1px; background: var(--line-strong); overflow: hidden; }
.scene__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.scene__note { margin: 0; flex-basis: 100%; }

[data-step] { --s: 1; }
.js [data-step] { --s: 0; }

/* Home — esferas encaixadas ------------------------------------------------ */

.spheres { position: absolute; inset: 0; }
.spheres::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -5%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13, 13, 13, .16), transparent);
  opacity: var(--p, 1);
}
.sphere {
  --c1: #FBFAF8; --c2: #F1EEE8; --k: 0cqw; --ink-label: var(--muted);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--d);
  aspect-ratio: 1;
  border: 1px solid rgba(13, 13, 13, .06);
  border-radius: 50%;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 2px rgba(13, 13, 13, .04),
    0 30px 60px -34px rgba(13, 13, 13, .28);
  opacity: var(--s);
  transform-origin: 50% 100%;
  transform:
    translate3d(0, calc((1 - var(--s)) * -22cqw + (1 - var(--p, 1)) * var(--k)), 0)
    scale(calc(1 + (1 - var(--s)) * .38));
  filter: blur(calc((1 - var(--s)) * 12px));
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform, opacity, filter;
}
/* Neutros que escurecem a cada camada (profundidade); só o núcleo leva a cor da marca. */
.sphere:nth-child(2) { --c1: #F6F4F0; --c2: #EAE6DF; --k: 3cqw; }
.sphere:nth-child(3) { --c1: #EFECE6; --c2: #E1DCD3; --k: 6cqw; }
.sphere:nth-child(4) { --c1: #E6E2DA; --c2: #D6D0C5; --k: 9cqw; --ink-label: var(--text); }
.sphere:nth-child(5) { --c1: #DCD7CD; --c2: #C9C2B5; --k: 12cqw; --ink-label: var(--ink); }
.sphere.is-active {
  border-color: rgba(75, 78, 252, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 0 0 4px rgba(75, 78, 252, .06),
    0 30px 60px -34px rgba(13, 13, 13, .28);
}
.sphere__label {
  position: absolute;
  left: 50%;
  top: var(--ly);
  transform: translate(-50%, -50%);
  font-size: clamp(9px, 2cqw, 12.5px);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-label);
  transition: color .4s var(--ease);
}
.sphere.is-active .sphere__label { color: var(--accent); }

/* Planejamento — mapa de decisão -------------------------------------------- */

.map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__grid { stroke: url(#map-fade); stroke-width: 1; transform: translateY(calc((.5 - var(--p, 1)) * 14px)); }
.map__contours { fill: none; stroke: url(#map-fade-accent); stroke-width: 1; transform: translateY(calc((.5 - var(--p, 1)) * 30px)); }
.map__route-bg { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.map__route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.pin__shadow { fill: rgba(13, 13, 13, .2); transform-box: fill-box; transform-origin: center; transform: scale(calc(.2 + var(--s) * .8)); opacity: var(--s); }
.pin__body { opacity: var(--s); transform: translateY(calc((1 - var(--s)) * -110px)); }
.pin__stem { stroke: var(--ink); stroke-width: 1; }
.pin__head { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.pin.is-on .pin__head { fill: var(--ink); }
.pin.is-active .pin__head { fill: var(--accent); stroke: var(--accent); }
.pin__label { font-family: var(--sans); font-size: 14px; letter-spacing: .02em; fill: var(--ink); transition: fill .4s var(--ease); }
.pin.is-active .pin__label { fill: var(--accent); }

/* Máquina de vendas — engrenagens ------------------------------------------- */

.gears { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gear {
  opacity: var(--s);
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(calc((1 - var(--s)) * -90px)) scale(calc(.72 + var(--s) * .28));
}
.gear__body { fill: #EEEAE3; stroke: rgba(13, 13, 13, .38); stroke-width: 1; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.gear__ring { fill: none; stroke: rgba(13, 13, 13, .16); }
.gear__axle { fill: var(--bg); stroke: rgba(13, 13, 13, .38); }
.gear__label { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); text-anchor: middle; transition: fill .5s var(--ease); }
.gear.is-on .gear__body { fill: #E2DDD3; }
.gear.is-active .gear__body { fill: var(--accent); stroke: var(--accent); }
.gear.is-active .gear__ring { stroke: rgba(255, 255, 255, .35); }
.gear.is-active .gear__label { fill: #FFFFFF; }

/* Blueprint — raio-x em camadas --------------------------------------------- */

.xray { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 35%; }
.xray__stack {
  --gap: calc(7cqw + var(--p, 1) * 5cqw);
  position: absolute;
  left: 22%;
  top: 20%;
  width: 56%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg);
}
.xray__plate {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  background-color: rgba(247, 245, 241, .74);
  background-image:
    linear-gradient(rgba(13, 13, 13, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 13, .06) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: calc(var(--s) * .96);
  transform: translateZ(calc((2 - var(--i)) * var(--gap) + (1 - var(--s)) * 30cqw));
  transition: border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.xray__plate.is-active { border-color: var(--accent); background-color: rgba(236, 236, 255, .82); box-shadow: 0 0 44px rgba(75, 78, 252, .28); }
.xray__plate[data-step="4"].is-on { border-color: var(--accent); background-color: rgba(75, 78, 252, .88); }
.xray__plate[data-step="4"].is-on .xray__label { color: #FFFFFF; }
.xray__label { position: absolute; left: 6%; bottom: 5%; font-size: clamp(9px, 1.8cqw, 12px); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.xray__mark {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 4.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--error);
  opacity: 0;
  transform: scale(.3);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.xray__mark::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--error); border-radius: 50%; animation: scene-ping 1.8s var(--ease) infinite; }
.xray__plate.is-on .xray__mark { opacity: 1; transform: scale(1); }
.xray__scan {
  position: absolute;
  inset: -7%;
  border: 1px solid rgba(75, 78, 252, .75);
  background: radial-gradient(closest-side, rgba(75, 78, 252, .24), rgba(75, 78, 252, .04));
  box-shadow: 0 0 36px rgba(75, 78, 252, .35);
  opacity: calc((1 - var(--done, 0)) * min(1, var(--p, 0) * 12));
  transform: translateZ(calc((2.7 - var(--tn, 0) * 5.4) * var(--gap)));
  pointer-events: none;
}
@keyframes scene-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

/* Escala — colunas isométricas ---------------------------------------------- */

.iso { position: absolute; inset: 0; }
.iso__ground {
  position: absolute;
  left: 12%;
  top: 70%;
  width: 84cqw;
  height: 16cqw;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  transform-origin: 0 50%;
}
.iso__ground::before {
  content: "";
  position: absolute;
  inset: -12cqw -8cqw;
  background-image:
    linear-gradient(rgba(13, 13, 13, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 13, .07) 1px, transparent 1px);
  background-size: 5cqw 5cqw;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.bar {
  --w: 11cqw;
  --h: calc((var(--i) + 1) * 9cqw * var(--s));
  --tone: calc(var(--i) * 16%);
  --top: color-mix(in srgb, var(--accent) var(--tone), #FFFFFF);
  --front: color-mix(in srgb, var(--accent) var(--tone), #ECE8E1);
  --side: color-mix(in srgb, var(--accent) var(--tone), #D9D4CA);
  position: absolute;
  left: calc(var(--i) * 16cqw);
  top: 2.5cqw;
  width: var(--w);
  height: var(--w);
  transform-style: preserve-3d;
  opacity: calc(.15 + var(--s) * .85);
}
.bar[data-step="4"] { --top: #7C7EFF; --front: var(--accent); --side: #3538D6; }
.bar__face { position: absolute; overflow: hidden; }
.bar__face--top { inset: 0; background: var(--top); transform: translateZ(var(--h)); box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .06); }
.bar__face--front { left: 0; bottom: 0; width: var(--w); height: var(--h); background: var(--front); transform-origin: bottom; transform: rotateX(-90deg); }
.bar__face--side { left: 0; top: 0; width: var(--h); height: var(--w); background: var(--side); transform-origin: left; transform: rotateY(-90deg); }
.bar.is-active .bar__face--top { background: var(--accent); }
.bar__label {
  position: absolute;
  left: 0;
  top: calc(100% + 1.6cqw);
  font-size: clamp(8px, 1.6cqw, 10.5px);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  opacity: calc(.25 + var(--s) * .75);
  transition: color .4s var(--ease);
}
.bar.is-active .bar__label { color: var(--accent); }

/* Mentoria — do ruído à clareza --------------------------------------------- */

.clarity { position: absolute; inset: 0; }
.clarity__layer {
  --k: 0px;
  position: absolute;
  inset: 0;
  opacity: calc(.16 + var(--s) * .84);
  filter: blur(calc((1 - var(--s)) * 6px));
  transform: translate3d(0, calc((1 - var(--p, 1)) * var(--k)), 0);
}
.clarity__layer:nth-child(1) { --k: 40px; }
.clarity__layer:nth-child(2) { --k: -26px; }
.clarity__layer:nth-child(4) { --k: 26px; }
.clarity__layer:nth-child(5) { --k: -40px; }
.clarity__layer svg { width: 100%; height: 100%; overflow: visible; }
.clarity__line { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: stroke .4s var(--ease); }
.clarity__layer.is-active .clarity__line { stroke: var(--accent); stroke-width: 1.8; }
.clarity__label {
  position: absolute;
  left: 6.7%;
  top: var(--ly);
  transform: translateY(-160%);
  font-size: clamp(9px, 1.8cqw, 11.5px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: calc(.25 + var(--s) * .75);
  transition: color .4s var(--ease);
}
.clarity__label.is-active { color: var(--accent); }
.clarity__focus { position: absolute; left: 90%; top: 55%; width: 13cqw; aspect-ratio: 1; transform: translate(-50%, -50%); }
.clarity__focus svg { width: 100%; height: 100%; overflow: visible; }
.clarity__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 163.4;
  stroke-dashoffset: calc(163.4 * (1 - var(--done, 0)));
  transform: rotate(-90deg);
  transform-origin: 30px 30px;
}
.clarity__dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(calc(.3 + var(--tn, 0) * .7)); }

/* Mobile ------------------------------------------------------------------- */

@media (max-width: 860px) {
  .js .scene { height: calc(100svh + var(--scene-steps, 5) * 50svh); }
  .scene__pin { padding-block: calc(var(--header-h) + 8px) 16px; }
  .scene__inner { grid-template-columns: 1fr; gap: 16px; }
  .scene__copy { display: contents; }
  .scene__head { order: 1; }
  .scene__stage { order: 2; grid-column: 1; justify-self: center; width: min(100%, 40svh); }
  .scene__list { order: 3; border-top: 0; }
  .scene__item { display: none; border-bottom: 0; padding: 0; }
  .scene__item.is-active { display: grid; }
  .scene__foot { order: 4; }
  .scene__note { display: none; }
}

/* Movimento reduzido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .logos__track { animation: none; }
  .logos { overflow-x: auto; }
  .js .scene { height: auto; }
  .js .scene__pin { position: relative; height: auto; }
  .scene__text { max-height: none !important; opacity: 1 !important; }
  .scene__item { opacity: 1; }
}
