/* Peace Studio — versão 3 (final, a partir da versão 2)
   Uma família só: Bricolage Grotesque, explorando o eixo de largura.
   Cores da marca: grafite, violeta, lavanda, branco. */
:root {
  --graphite: #141418;
  --carbon: #0d0d10;
  --raise: #1e1e26;
  --violet: #5e00ff;
  --lav: #9b6bff;
  --paper: #f2f1f6;
  --white: #ffffff;
  --mist: #8c8a99;
  --line-d: rgba(255, 255, 255, 0.12);
  --line-l: rgba(20, 20, 24, 0.14);
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 3.4vw, 52px);
  --px: 8px; /* unidade de pixel do sistema, herdada da logo */
  --ease: cubic-bezier(0.65, 0, 0.15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--graphite); color: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5;
  font-variation-settings: "opsz" 14, "wdth" 100; overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: var(--white); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.skip { position: fixed; left: var(--gutter); top: -100px; z-index: 200; padding: 10px 14px; background: var(--violet); color: #fff; }
.skip:focus { top: 12px; }

/* Rótulos: Bricolage estreita, caixa-alta */
.label {
  margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-variation-settings: "opsz" 12, "wdth" 80;
  color: var(--mist);
}
.label .px, .px {
  display: inline-block; width: var(--px); height: var(--px);
  margin-right: 10px; vertical-align: 1px; background: var(--violet);
}

/* Botões */
.btn {
  --bg: transparent; --fg: currentColor;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: 0;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--font); font-variation-settings: "opsz" 14, "wdth" 90;
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: color 0.45s var(--ease);
}
.btn span { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover, var(--white));
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.5s var(--ease); will-change: transform;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn--violet { --bg: var(--violet); --fg: var(--white); }
.btn--violet:hover { color: var(--graphite); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line-d); }
.btn--ghost:hover { color: var(--graphite); }
.btn--paper { --bg: var(--white); --fg: var(--graphite); --hover: var(--graphite); }
.btn--paper:hover { color: var(--white); }
.btn--line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); --hover: var(--white); }
.btn--line:hover { color: var(--violet); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  transition: background 0.4s, box-shadow 0.4s, translate 0.5s var(--ease);
}
.nav.is-solid { background: rgba(20, 20, 24, 0.92); box-shadow: 0 1px 0 var(--line-d); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.is-away { translate: 0 -100%; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.nav__brand img { width: 22px; height: auto; image-rendering: pixelated; }
.nav__brand em { font-style: normal; color: var(--lav); font-weight: 400; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; text-decoration: none; font-size: 15px;
  font-variation-settings: "opsz" 14, "wdth" 92; color: rgba(255, 255, 255, 0.78); transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; bottom: 4px; width: 6px; height: 6px;
  background: var(--violet); opacity: 0; transform: scale(0); transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--white); }
.nav__links a.is-current::after { opacity: 1; transform: none; }
.nav__cta { padding: 11px 16px; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: var(--violet); color: #fff; cursor: pointer; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet {
  position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column; justify-content: space-between;
  padding: 100px var(--gutter) 32px; background: var(--violet);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s steps(8, end);
}
.sheet.is-open { clip-path: inset(0 0 0 0); }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a {
  text-decoration: none; font-weight: 800; font-size: clamp(44px, 13vw, 96px); line-height: 1;
  letter-spacing: -0.03em; text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 75;
}
.sheet .label { color: rgba(255, 255, 255, 0.8); }
html.sheet-open { overflow: hidden; }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .sheet { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 clamp(24px, 4vw, 64px);
  min-height: 100svh; padding: 104px var(--gutter) 0;
}
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.hero__label { margin-bottom: clamp(20px, 3vh, 36px); }
.hero__title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(54px, 8.4vw, 150px); line-height: 0.86; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line > span { display: block; width: max-content; max-width: none; white-space: nowrap; }
.hero__move {
  display: inline-block; color: var(--lav); font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" var(--w, 75);
  transition: font-variation-settings 0.7s var(--ease);
}
.hero__line--calm {
  margin-top: 0.12em; text-transform: none; font-weight: 300; letter-spacing: -0.035em;
  font-size: 0.56em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 100; color: rgba(255, 255, 255, 0.92);
}
.hero__lede { max-width: 46ch; margin: clamp(22px, 3.4vh, 40px) 0 0; font-size: clamp(16px, 1.25vw, 19px); color: rgba(255, 255, 255, 0.72); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__panel {
  position: relative; align-self: center; margin: 0;
  aspect-ratio: 4 / 5; max-height: calc(100svh - 190px); width: 100%;
  justify-self: end; overflow: hidden; touch-action: pan-y;
  background:
    radial-gradient(58% 44% at 50% 56%, rgba(94, 0, 255, 0.34), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-d);
}
/* cantoneiras em pixel: o painel como um visor */
.hero__panel::before, .hero__panel::after {
  content: ""; position: absolute; z-index: 1; width: 16px; height: 16px; pointer-events: none;
  border: 0 solid var(--lav);
}
.hero__panel::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.hero__panel::after { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.hero__logo { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; outline: none; }
.hero__logo.is-dragging { cursor: grabbing; }
.hero__logo:focus-visible { box-shadow: inset 0 0 0 2px var(--lav); }
.hero__logo canvas { display: block; width: 100%; height: 100%; }
.hero__logo.is-fallback { display: grid; place-items: center; cursor: default; }
.hero__logo.is-fallback img { width: 46%; image-rendering: pixelated; }
.hero__services {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 0;
  margin: 0; padding: 18px 0 22px; list-style: none; border-top: 1px solid var(--line-d);
}
.hero__services li { color: rgba(255, 255, 255, 0.62); }
.hero__services li + li::before { content: "/"; margin: 0 12px; color: var(--violet); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 92px; }
  .hero__copy { padding-bottom: 28px; }
  .hero__panel { aspect-ratio: 1 / 1; max-height: none; justify-self: stretch; }
  .hero__services { margin-top: 28px; }
}

/* Borda em pixels entre seções */
.edge { position: absolute; left: 0; top: 0; width: 100%; height: 96px; pointer-events: none; z-index: 2; }

/* ---------- Caos → ordem ---------- */
.order { position: relative; background: var(--paper); color: var(--graphite); }
.order__pin {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px);
  height: 100svh; padding: 110px var(--gutter) 48px; align-items: center;
}
.order__count { color: var(--graphite); }
.order__count b {
  display: inline-block; min-width: 2ch; padding: 2px 6px; margin-right: 6px;
  background: var(--graphite); color: #fff; font-variant-numeric: tabular-nums;
}
.order__title {
  position: relative; display: grid; margin: 22px 0 0;
  font-weight: 800; font-size: clamp(38px, 4.6vw, 80px); line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; font-variation-settings: "opsz" 96, "wdth" 75;
}
.order__say { grid-area: 1 / 1; }
.order__say--after { color: var(--violet); }
.order__note { max-width: 40ch; margin: 24px 0 0; color: #55535f; }
.order__stage { position: relative; height: min(68svh, 620px); }
.order__board {
  position: absolute; inset: 0; background: var(--white);
  box-shadow: 0 0 0 1px var(--line-l); opacity: var(--board, 0);
  transform: scale(calc(0.94 + var(--board, 0) * 0.06));
}
.order__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line-l); }
.order__bar i { width: 8px; height: 8px; background: var(--line-l); }
.order__bar span { margin-left: 8px; font-size: 12px; color: var(--mist); font-variation-settings: "opsz" 12, "wdth" 85; }
.chip {
  position: absolute; left: 0; top: 0; display: flex; align-items: center;
  padding: 10px 12px; white-space: nowrap; will-change: transform;
  font-size: 14px; font-weight: 600; font-variation-settings: "opsz" 14, "wdth" 88;
  background: var(--white); color: var(--graphite); box-shadow: 0 0 0 1px var(--line-l), 0 10px 24px -14px rgba(20, 20, 24, 0.4);
}
.chip__head { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.chip__head i { width: 8px; height: 8px; flex: none; background: var(--c, var(--mist)); }
.chip__head span { overflow: hidden; text-overflow: ellipsis; }
.chip__viz { display: none; }
.chip.is-tidy {
  flex-direction: column; align-items: stretch; justify-content: space-between;
  padding: 10px 12px 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(94, 0, 255, 0.22);
}
.chip.is-tidy .chip__viz {
  display: flex; flex: 1; min-height: 0; width: 100%; margin-top: 8px;
  animation: cv-in 0.38s var(--ease) both;
}
@keyframes cv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Micro-animações temáticas dos 12 cards (Caos → Ordem) */
.cv { position: relative; display: flex; align-items: center; width: 100%; height: 100%; min-height: 0; }
.cv__tag {
  flex: none; padding: 2px 5px; font-size: 10px; font-weight: 700; line-height: 1.1;
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  background: rgba(94, 0, 255, 0.1); color: var(--violet);
}

/* 1. Financeiro — gráfico de barras animado */
.cv--finance { align-items: flex-end; gap: 8px; }
.cv__bars {
  display: flex; align-items: flex-end; gap: 4px; flex: 1; height: 100%; min-height: 24px;
  padding-bottom: 2px; border-bottom: 1px solid var(--line-l);
}
.cv__bars i {
  flex: 1; height: var(--h); background: rgba(94, 0, 255, 0.28);
  transform-origin: bottom center;
  animation: cv-bar 2.2s ease-in-out var(--d) infinite alternate;
}
.cv__bars i.is-hi { background: var(--violet); }
@keyframes cv-bar { 0% { transform: scaleY(0.45); } 100% { transform: scaleY(1); } }

/* 2. Atendimento — bolhas de chat + digitando */
.cv--support { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.cv__msg { display: flex; flex-direction: column; gap: 3px; padding: 5px 7px; max-width: 72%; }
.cv__msg i { display: block; height: 3px; background: currentColor; opacity: 0.55; }
.cv__msg i + i { width: 65%; opacity: 0.35; }
.cv__msg--in { align-self: flex-start; background: var(--paper); color: var(--graphite); animation: cv-msg 3.4s ease-in-out infinite; }
.cv__msg--out { align-self: flex-end; width: 52%; background: var(--violet); color: #fff; animation: cv-msg 3.4s ease-in-out 0.8s infinite; }
.cv__typing { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; padding: 4px 6px; background: var(--paper); }
.cv__typing i { width: 4px; height: 4px; background: var(--violet); animation: cv-dot 1.2s ease-in-out infinite; }
.cv__typing i:nth-child(2) { animation-delay: 0.18s; }
.cv__typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes cv-msg { 0%, 100% { opacity: 0.72; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-1.5px); } }
@keyframes cv-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2.5px); } }

/* 3. Compras — aprovação de pedidos de compra */
.cv--purchases { flex-direction: column; justify-content: center; gap: 5px; }
.cv__row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 4px 6px; background: var(--paper);
  animation: cv-approve 3.3s ease-in-out var(--d) infinite;
}
.cv__row i { flex: 1; height: 4px; background: rgba(20, 20, 24, 0.2); }
.cv__row b { width: 10px; height: 10px; flex: none; background: rgba(94, 0, 255, 0.18); position: relative; }
.cv__row b::after {
  content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px;
  border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(40deg);
  opacity: 0; animation: cv-check 3.3s ease-in-out var(--d) infinite;
}
@keyframes cv-approve {
  0%, 15%, 100% { box-shadow: inset 2px 0 0 transparent; }
  30%, 60% { box-shadow: inset 3px 0 0 var(--violet); background: rgba(94, 0, 255, 0.08); }
}
@keyframes cv-check {
  0%, 20%, 100% { opacity: 0; }
  32%, 62% { opacity: 1; }
}
.cv__row b { animation: cv-badge 3.3s ease-in-out var(--d) infinite; }
@keyframes cv-badge {
  0%, 20%, 100% { background: rgba(94, 0, 255, 0.18); }
  32%, 62% { background: var(--violet); }
}

/* 4. Pedidos — trilha de acompanhamento em fluxo */
.cv--orders { position: relative; align-items: center; justify-content: center; }
.cv__track {
  position: absolute; left: 6px; right: 6px; height: 3px;
  background: var(--paper); overflow: hidden;
}
.cv__pulse {
  display: block; height: 100%; width: 42%; background: var(--violet);
  animation: cv-flow 2.7s linear infinite;
}
.cv__nodes { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; }
.cv__nodes i {
  width: 11px; height: 11px; background: var(--white);
  box-shadow: inset 0 0 0 2px rgba(94, 0, 255, 0.35);
  animation: cv-node-on 2.7s ease-in-out var(--d) infinite;
}
@keyframes cv-flow { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes cv-node-on {
  0%, 65%, 100% { background: var(--white); transform: scale(1); }
  20%, 40% { background: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); transform: scale(1.2); }
}

/* 5. Relatórios — documento escaneado + anel de progresso */
.cv--reports { gap: 10px; align-items: center; }
.cv__doc {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 5px;
  padding: 7px 8px; background: var(--paper); overflow: hidden;
}
.cv__doc i { display: block; height: 4px; width: 88%; background: rgba(20, 20, 24, 0.22); }
.cv__doc i.w2 { width: 62%; }
.cv__doc i.w3 { width: 76%; }
.cv__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--violet);
  box-shadow: 0 0 8px rgba(94, 0, 255, 0.7);
  animation: cv-scan 2.4s ease-in-out infinite;
}
.cv__ring { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.cv__ring circle { fill: none; stroke-width: 4; }
.cv__ring .bg { stroke: var(--paper); }
.cv__ring .fg {
  stroke: var(--violet); stroke-dasharray: 82; stroke-dashoffset: 82;
  animation: cv-ring 2.6s ease-in-out infinite alternate;
}
@keyframes cv-scan { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(30px); } }
@keyframes cv-ring { 0% { stroke-dashoffset: 62; } 100% { stroke-dashoffset: 14; } }

/* 6. Tarefas — checklist marcando em sequência */
.cv--tasks { flex-direction: column; justify-content: center; gap: 5px; }
.cv__task { display: flex; align-items: center; gap: 7px; width: 100%; }
.cv__task b {
  width: 10px; height: 10px; flex: none; box-shadow: inset 0 0 0 1.5px var(--violet);
  background: transparent; animation: cv-task-box 3.3s ease-in-out var(--d) infinite;
}
.cv__task i {
  height: 4px; width: 78%; background: rgba(20, 20, 24, 0.24);
  animation: cv-task-line 3.3s ease-in-out var(--d) infinite;
}
.cv__task i.w2 { width: 58%; }
.cv__task i.w3 { width: 68%; }
@keyframes cv-task-box {
  0%, 18%, 100% { background: transparent; }
  30%, 72% { background: var(--violet); }
}
@keyframes cv-task-line {
  0%, 18%, 100% { opacity: 1; }
  30%, 72% { opacity: 0.35; }
}

/* 7. Estoque — níveis de reposição em tempo real */
.cv--inventory { gap: 6px; align-items: flex-end; }
.cv__bin {
  flex: 1; height: 100%; min-height: 24px; max-height: 44px;
  display: flex; align-items: flex-end; padding: 2px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-l);
}
.cv__bin span {
  display: block; width: 100%; height: var(--h); background: var(--violet);
  transform-origin: bottom center;
  animation: cv-stock 2.6s ease-in-out var(--d) infinite alternate;
}
.cv__bin:nth-child(2) span { background: var(--lav); }
@keyframes cv-stock { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }

/* 8. Metas — velocímetro / gauge radial */
.cv--goals { justify-content: center; gap: 10px; align-items: center; }
.cv__gauge { width: 68px; height: 38px; overflow: visible; }
.cv__gauge path { fill: none; stroke-width: 6; stroke-linecap: butt; }
.cv__gauge .bg { stroke: var(--paper); }
.cv__gauge .fg {
  stroke: var(--violet); stroke-dasharray: 101; stroke-dashoffset: 101;
  animation: cv-gauge 2.8s ease-in-out infinite alternate;
}
@keyframes cv-gauge { 0% { stroke-dashoffset: 68; } 100% { stroke-dashoffset: 8; } }

/* 9. Briefings — onda de áudio virando documento organizado */
.cv--briefings { gap: 8px; align-items: center; }
.cv__wave { display: flex; align-items: center; gap: 2.5px; height: 26px; }
.cv__wave i {
  width: 3px; height: 100%; background: var(--violet);
  animation: cv-wave 1.1s ease-in-out var(--d) infinite alternate;
}
.cv__arrow { font-size: 12px; font-weight: 700; color: var(--lav); flex: none; }
.cv__lines { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cv__lines i { display: block; height: 4px; width: 92%; background: rgba(20, 20, 24, 0.22); }
.cv__lines i.w2 { width: 68%; }
.cv__lines i.w3 { width: 80%; }
@keyframes cv-wave { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }

/* 10. Integrações — nós conectados com pacotes de dados */
.cv--integrations { align-items: center; gap: 0; }
.cv__node {
  width: 12px; height: 12px; flex: none; background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--violet);
}
.cv__node.is-hub { width: 16px; height: 16px; background: var(--violet); }
.cv__wire { position: relative; flex: 1; height: 2px; background: rgba(94, 0, 255, 0.22); overflow: hidden; }
.cv__wire i {
  position: absolute; top: -1px; left: 0; width: 10px; height: 4px; background: var(--violet);
  animation: cv-packet 1.6s linear var(--d, 0s) infinite;
}
@keyframes cv-packet { 0% { transform: translateX(-100%); } 100% { transform: translateX(520%); } }

/* 11. Painel de KPIs — linha de tendência em tempo real */
.cv--kpis { align-items: stretch; }
.cv__spark { width: 100%; height: 100%; min-height: 28px; overflow: visible; }
.cv__spark .area { fill: rgba(94, 0, 255, 0.12); }
.cv__spark .line {
  fill: none; stroke: var(--violet); stroke-width: 2.2;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: cv-spark 3s ease-in-out infinite;
}
.cv__spark .dot {
  fill: var(--violet); transform-box: fill-box; transform-origin: center;
  animation: cv-spark-dot 3s ease-in-out infinite;
}
@keyframes cv-spark {
  0% { stroke-dashoffset: 160; }
  65%, 100% { stroke-dashoffset: 0; }
}
@keyframes cv-spark-dot {
  0%, 58% { opacity: 0; transform: scale(0.4); }
  75% { opacity: 1; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1); }
}

/* 12. Acessos — permissões e switches animados */
.cv--access { flex-direction: column; justify-content: center; gap: 6px; }
.cv__perm { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.cv__perm i { height: 4px; width: 58%; background: rgba(20, 20, 24, 0.22); }
.cv__perm i.w2 { width: 44%; }
.cv__sw {
  position: relative; width: 24px; height: 12px; flex: none;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-l);
  animation: cv-sw-bg 2.8s ease-in-out var(--d) infinite;
}
.cv__sw::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px;
  background: var(--mist); animation: cv-sw-knob 2.8s ease-in-out var(--d) infinite;
}
@keyframes cv-sw-bg {
  0%, 25%, 100% { background: var(--paper); }
  45%, 80% { background: rgba(94, 0, 255, 0.16); }
}
@keyframes cv-sw-knob {
  0%, 25%, 100% { transform: translateX(0); background: var(--mist); }
  45%, 80% { transform: translateX(12px); background: var(--violet); }
}

@media (max-width: 860px) {
  .order__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 96px; gap: 20px; }
  .order__title { font-size: clamp(32px, 9vw, 54px); }
  .order__note { display: none; }
  .order__stage { height: 100%; min-height: 300px; }
  .chip { font-size: 12px; padding: 8px 9px; }
  .chip.is-tidy { padding: 7px 8px; }
  .chip.is-tidy .chip__viz { margin-top: 4px; }
  .cv__ring { width: 24px; height: 24px; }
  .cv__gauge { width: 48px; height: 28px; }
  .cv__tag { font-size: 9px; }
}

/* ---------- Cabeçalhos de seção ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px var(--gutter); align-items: end; margin-bottom: clamp(40px, 7vh, 80px); }
.section-head .label { grid-column: 1 / -1; }
.section-title {
  margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em;
  font-size: clamp(44px, 7vw, 124px); line-height: 0.88; font-variation-settings: "opsz" 96, "wdth" 75;
}
.section-lede { max-width: 42ch; margin: 0; justify-self: end; color: rgba(255, 255, 255, 0.68); font-size: clamp(16px, 1.2vw, 19px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-lede { justify-self: start; } }

/* ---------- Serviços ---------- */
.services { padding: clamp(96px, 14vh, 160px) var(--gutter); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gutter); }
.svc-group__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--violet); }
.svc-group__head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-variation-settings: "opsz" 14, "wdth" 82; }
.svc { border-bottom: 1px solid var(--line-d); }
.svc__btn {
  display: flex; width: 100%; align-items: center; gap: 14px; padding: 20px 0;
  border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: 700 clamp(22px, 2vw, 32px)/1.05 var(--font); letter-spacing: -0.03em;
  font-variation-settings: "opsz" 48, "wdth" 92;
}
.svc__btn::before {
  content: ""; flex: none; width: var(--px); height: var(--px); background: var(--violet);
  transform: scale(0); transition: transform 0.3s steps(3, end);
}
.svc__btn:hover::before, .svc.is-open .svc__btn::before { transform: none; }
.svc__btn .plus { margin-left: auto; flex: none; width: 14px; height: 14px; position: relative; }
.svc__btn .plus::before, .svc__btn .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--mist); transition: transform 0.35s var(--ease); }
.svc__btn .plus::after { transform: rotate(90deg); }
.svc.is-open .plus::after { transform: rotate(0); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; }
.svc__inner p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.7); max-width: 38ch; }
.svc__inner ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.svc__inner li { padding: 5px 9px; font-size: 13px; background: var(--raise); color: rgba(255, 255, 255, 0.86); font-variation-settings: "opsz" 12, "wdth" 88; }
@media (max-width: 1000px) { .services__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Cases ---------- */
.cases { padding: clamp(96px, 14vh, 160px) var(--gutter); background: var(--carbon); }
.cases__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-d); }
.case { position: relative; border-bottom: 1px solid var(--line-d); isolation: isolate; }
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--violet);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.55s var(--ease);
}
.case:hover::before, .case:focus-within::before { clip-path: inset(0 0 0 0); }
.case__link {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) repeat(3, minmax(0, 0.5fr)) 28px;
  align-items: center; gap: 20px; padding: 26px 12px; text-decoration: none;
}
.case__client {
  font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 60px); line-height: 0.92; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.case__title { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.35; }
.case__title small { display: block; margin-top: 6px; color: var(--mist); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-variation-settings: "opsz" 12, "wdth" 80; }
.case__metric b { display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "opsz" 36, "wdth" 85; }
.case__metric span { font-size: 12px; color: var(--mist); }
.case__arrow { font-size: 20px; transition: transform 0.4s var(--ease); }
.case:hover .case__title, .case:hover .case__metric span, .case:hover .case__title small { color: rgba(255, 255, 255, 0.86); }
.case:hover .case__arrow { transform: rotate(-45deg); }
@media (max-width: 1000px) {
  .case__link { grid-template-columns: 1fr 1fr 1fr; gap: 12px 16px; }
  .case__client { grid-column: 1 / -1; }
  .case__title { grid-column: 1 / -1; }
  .case__arrow { display: none; }
}

/* ---------- Processo ---------- */
.process { position: relative; padding: clamp(96px, 14vh, 160px) var(--gutter); background: var(--paper); color: var(--graphite); }
.process .section-title { color: var(--graphite); }
.process__track { position: relative; height: 16px; background: repeating-linear-gradient(90deg, var(--line-l) 0 14px, transparent 14px 16px); }
.process__fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--violet) 0 14px, transparent 14px 16px); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter); margin: 0; padding: 0; list-style: none; }
.pstep { padding-top: 28px; opacity: 0.35; transition: opacity 0.5s; }
.pstep.is-on { opacity: 1; }
.pstep__n {
  display: block; font-weight: 800; font-size: clamp(56px, 6vw, 104px); line-height: 0.85;
  font-variation-settings: "opsz" 96, "wdth" 75; color: var(--violet);
}
.pstep h3 { margin: 18px 0 10px; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -0.03em; line-height: 1.05; font-variation-settings: "opsz" 36, "wdth" 92; }
.pstep p { margin: 0 0 14px; color: #55535f; max-width: 30ch; }
.pstep .label { color: var(--graphite); }
@media (max-width: 860px) {
  .process__track { display: none; }
  .process__steps { grid-template-columns: 1fr; }
  .pstep { opacity: 1; border-top: 2px solid var(--violet); padding: 22px 0 28px; }
}

/* ---------- Princípios + FAQ ---------- */
.faq { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--gutter); padding: clamp(96px, 14vh, 160px) var(--gutter); }
.principles { margin: 22px 0 0; padding: 0; list-style: none; }
.principles li { padding: 22px 0; border-top: 1px solid var(--line-d); }
.principles h3 { margin: 0 0 6px; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.03em; font-variation-settings: "opsz" 36, "wdth" 92; }
.principles p { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, 0.66); }
.faq__items { margin-top: 22px; }
.qa { border-top: 1px solid var(--line-d); }
.qa:last-child { border-bottom: 1px solid var(--line-d); }
.qa summary {
  display: flex; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "opsz" 24, "wdth" 95;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; background: var(--violet); transition: transform 0.35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg) scale(0.8); background: var(--lav); }
.qa p { margin: 0 0 24px; max-width: 58ch; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 64px; } }

/* ---------- Contato ---------- */
.cta { position: relative; padding: clamp(104px, 13vh, 128px) var(--gutter) clamp(56px, 8vh, 88px); background: var(--violet); }
.cta__label { color: rgba(255, 255, 255, 0.82); }
.cta__title {
  margin: 14px 0 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(64px, 7.6vw, 136px); line-height: 0.84; font-variation-settings: "opsz" 96, "wdth" 75;
}
.cta__row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 5vw, 96px); align-items: stretch; }
.cta__aside { display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 36px); }
.cta__direct { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.cta__direct { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta__direct .label { color: rgba(255, 255, 255, 0.72); }
.cta__mail { font-weight: 700; font-size: clamp(22px, 2vw, 34px); letter-spacing: -0.04em; line-height: 1; text-decoration: none; overflow-wrap: anywhere; }
.cta__mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.cta__text { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
@media (max-width: 960px) { .cta__row { grid-template-columns: 1fr; } }

/* Formulário: um bloco grafite sobre o violeta */
.form-wrap { background: var(--graphite); padding: clamp(20px, 2.2vw, 32px); box-shadow: 10px 10px 0 0 var(--carbon); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label {
  margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-variation-settings: "opsz" 12, "wdth" 80; color: rgba(255, 255, 255, 0.66);
}
.field__label b { color: var(--lav); font-weight: 600; }
.field__input {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff; font: 400 16px/1.4 var(--font); font-variation-settings: "opsz" 14, "wdth" 100;
  transition: box-shadow 0.2s, background 0.2s; appearance: none; -webkit-appearance: none;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.36); }
.field__input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.field__input:focus { outline: none; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 2px var(--lav); }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff8a9a; }
textarea.field__input { resize: vertical; min-height: 104px; }
.field__select { position: relative; }
.field__select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 6px; margin-top: -3px; pointer-events: none;
  background: var(--lav); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.field__select select { padding-right: 40px; cursor: pointer; }
.field__select select:invalid, .field__select select:has(option[value=""]:checked) { color: rgba(255, 255, 255, 0.5); }
.field__select option { background: var(--graphite); color: #fff; }
.field__err { margin: 6px 0 0; min-height: 0; font-size: 13px; color: #ffb3bd; }
.field__err:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__alert { margin: 18px 0 0; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #ffd6dc; background: rgba(255, 90, 110, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 138, 154, 0.35); }
.form__alert a { color: #fff; }
.form__send { width: 100%; justify-content: center; margin-top: 18px; padding: 16px 20px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.form__send em { font-style: normal; }
.form__send:disabled { cursor: progress; opacity: 0.75; }
.form__icon { width: 16px; height: 16px; flex: none; shape-rendering: crispEdges; }
.form.is-sending .form__icon { animation: send-blink 0.5s steps(2) infinite; }
@keyframes send-blink { to { opacity: 0.2; } }
.form__note { margin: 10px 0 0; font-size: 13px; color: var(--mist); }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 340px; justify-content: center; outline: none; }
.form-done .label { color: var(--lav); }
.form-done__title { margin: 0; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 4.4vw, 72px); line-height: 0.9; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 75; }
.form-done__text { margin: 0 0 10px; max-width: 42ch; color: rgba(255, 255, 255, 0.72); }
.form-done__text strong { color: #fff; font-weight: 600; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } .form-wrap { box-shadow: 6px 6px 0 0 var(--carbon); } }

/* ---------- Rodapé (estilo da versão 2, textos do site atual) ---------- */
.foot { position: relative; padding: 56px var(--gutter) 28px; background: var(--carbon); overflow: hidden; isolation: isolate; }
.foot__mark {
  position: absolute; z-index: -1; left: 68%; top: 50%; translate: -50% -50%; rotate: 12deg;
  height: 82%; width: auto; max-width: none;
  opacity: 0.05; image-rendering: pixelated; pointer-events: none; user-select: none;
}
.foot__top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px var(--gutter); padding-bottom: 40px; border-bottom: 1px solid var(--line-d);
}
.foot__desc { max-width: 34ch; margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.foot__domain { margin-top: 20px; color: var(--lav); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot__col .label { margin-bottom: 8px; }
.foot__col a { text-decoration: none; color: rgba(255, 255, 255, 0.8); overflow-wrap: break-word; max-width: 100%; transition: color 0.2s; }
.foot__col a:hover { color: var(--lav); }
.foot__copy { padding-top: 24px; }
@media (max-width: 1023px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__mark { left: 60%; height: 60%; }
}
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Palavra com glitch (mesma animação do site atual) ---------- */
/* Purple glitch transition for rotating hero word */
@keyframes glitch-main {
  0%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    text-shadow: none;
  }
  15% {
    transform: translate(-2px, 1px) skewX(-5deg);
    text-shadow:
      -3px 0 rgba(94, 0, 255, 0.95),
      3px 0 rgba(196, 166, 255, 0.85);
  }
  32% {
    transform: translate(3px, -1px) skewX(6deg);
    text-shadow:
      3px 0 rgba(155, 107, 255, 0.95),
      -2px 0 rgba(94, 0, 255, 0.9);
  }
  50% {
    transform: translate(-2px, 0) skewX(-3deg);
    text-shadow:
      -2px 0 rgba(196, 166, 255, 0.9),
      2px 0 rgba(94, 0, 255, 0.95),
      0 0 18px rgba(155, 107, 255, 0.65);
  }
  70% {
    transform: translate(2px, 1px) skewX(2deg);
    text-shadow:
      2px 0 rgba(94, 0, 255, 0.85),
      -1px 0 rgba(155, 107, 255, 0.75);
  }
  88% {
    transform: translate(-1px, 0) skewX(0deg);
    text-shadow: 0 0 12px rgba(155, 107, 255, 0.45);
  }
}

@keyframes glitch-slice-1 {
  0%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0, 0);
    opacity: 0;
  }
  14% {
    clip-path: inset(8% 0 68% 0);
    transform: translate(-5px, -1px);
    opacity: 0.95;
  }
  32% {
    clip-path: inset(58% 0 16% 0);
    transform: translate(5px, 1px);
    opacity: 0.9;
  }
  52% {
    clip-path: inset(26% 0 46% 0);
    transform: translate(-4px, 0);
    opacity: 0.85;
  }
  74% {
    clip-path: inset(72% 0 8% 0);
    transform: translate(3px, -1px);
    opacity: 0.7;
  }
  92% {
    clip-path: inset(40% 0 54% 0);
    transform: translate(-2px, 0);
    opacity: 0.25;
  }
}

@keyframes glitch-slice-2 {
  0%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0, 0);
    opacity: 0;
  }
  18% {
    clip-path: inset(64% 0 10% 0);
    transform: translate(5px, 1px);
    opacity: 0.9;
  }
  38% {
    clip-path: inset(14% 0 62% 0);
    transform: translate(-5px, -1px);
    opacity: 0.85;
  }
  58% {
    clip-path: inset(44% 0 28% 0);
    transform: translate(4px, 0);
    opacity: 0.8;
  }
  78% {
    clip-path: inset(4% 0 78% 0);
    transform: translate(-3px, 1px);
    opacity: 0.65;
  }
  94% {
    clip-path: inset(80% 0 12% 0);
    transform: translate(2px, 0);
    opacity: 0.2;
  }
}

@keyframes glitch-scanbar {
  0% {
    top: 12%;
    opacity: 0;
    transform: scaleX(0.35);
  }
  20% {
    top: 28%;
    opacity: 0.95;
    transform: scaleX(1.06);
  }
  50% {
    top: 66%;
    opacity: 0.85;
    transform: scaleX(0.92);
  }
  78% {
    top: 42%;
    opacity: 0.65;
    transform: scaleX(1.04);
  }
  100% {
    top: 88%;
    opacity: 0;
    transform: scaleX(0.2);
  }
}

.glitch-word {
  position: relative;
  display: inline-block;
}

.glitch-word--active .glitch-word__main {
  animation: glitch-main 380ms steps(2, end) both;
}

.glitch-word__layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  user-select: none;
}

.glitch-word--active .glitch-word__layer--violet {
  color: #5E00FF;
  text-shadow:
    -2px 0 #9B6BFF,
    0 0 16px rgba(94, 0, 255, 0.9);
  animation: glitch-slice-1 380ms steps(2, end) both;
}

.glitch-word--active .glitch-word__layer--lavender {
  color: #C4A6FF;
  text-shadow:
    2px 0 #5E00FF,
    0 0 12px rgba(155, 107, 255, 0.8);
  animation: glitch-slice-2 380ms steps(2, end) both;
}

.glitch-word__scanbar {
  pointer-events: none;
  position: absolute;
  left: -4%;
  right: -4%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #5E00FF 22%,
    #C4A6FF 52%,
    #9B6BFF 78%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(155, 107, 255, 0.95),
    0 0 24px rgba(94, 0, 255, 0.75);
  opacity: 0;
}

.glitch-word--active .glitch-word__scanbar {
  animation: glitch-scanbar 380ms steps(3, end) both;
}

.glitch-word__main .is-pending { color: var(--lav); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =================================================================== */
/* Página de detalhes do case (case.html)                               */
/* =================================================================== */
.cs-hero { padding: 132px var(--gutter) clamp(48px, 8vh, 88px); }
.cs-back { display: inline-flex; gap: 8px; margin-bottom: clamp(36px, 7vh, 72px); color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s; }
.cs-back:hover { color: var(--lav); }
.cs-back span { transition: transform 0.3s var(--ease); }
.cs-back:hover span { transform: translateX(-4px); }
.cs-hero__meta { margin-bottom: 18px; }
.cs-hero__client {
  margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(56px, 11vw, 200px); line-height: 0.84; font-variation-settings: "opsz" 96, "wdth" 75;
  overflow-wrap: anywhere;
}
.cs-hero__title {
  max-width: 22ch; margin: 0.35em 0 0; font-weight: 300; letter-spacing: -0.035em;
  font-size: clamp(28px, 3.6vw, 60px); line-height: 1.02; color: var(--lav);
}
.cs-hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gutter); align-items: end;
  margin-top: clamp(40px, 7vh, 72px); padding-top: 24px; border-top: 1px solid var(--line-d);
}
.cs-hero__lede { max-width: 46ch; margin: 0; font-size: clamp(17px, 1.3vw, 20px); color: rgba(255, 255, 255, 0.78); }
.cs-hero__services { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.cs-hero__services li { color: rgba(255, 255, 255, 0.7); }
.cs-hero__services li + li::before { content: "/"; margin: 0 12px; color: var(--violet); }
@media (max-width: 760px) { .cs-hero__foot { grid-template-columns: 1fr; } .cs-hero__services { justify-content: flex-start; } }

/* Ilustração da entrega */
.cs-visual { margin: 0; padding: 0 var(--gutter); }
.cs-visual__stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 16 / 8; min-height: 360px; padding: clamp(24px, 5vw, 80px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--violet);
}
.mk-win { width: min(100%, 980px); background: var(--graphite); box-shadow: 14px 14px 0 rgba(13, 13, 16, 0.55); font-size: 12px; }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-d); color: var(--mist); }
.mk-bar i { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.22); }
.mk-bar span { margin-left: 10px; }
.mk-body { padding: clamp(14px, 2vw, 24px); }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-kpis div { padding: 12px 14px; background: var(--raise); }
.mk-kpis small { display: block; color: var(--mist); font-size: 11px; }
.mk-kpis strong { display: block; margin-top: 4px; font-size: clamp(18px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "opsz" 36, "wdth" 80; }
.mk-saas { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.mk-saas aside { display: flex; flex-direction: column; gap: 8px; padding-right: 14px; border-right: 1px solid var(--line-d); }
.mk-saas aside b { height: 14px; width: 60%; margin-bottom: 8px; background: var(--violet); }
.mk-saas aside i { height: 10px; background: rgba(255, 255, 255, 0.1); }
.mk-saas aside i.on { background: var(--lav); }
.mk-saas__main { display: grid; gap: 14px; }
.mk-table p { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 60px; gap: 10px; align-items: center; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-d); }
.mk-table i { height: 8px; background: rgba(255, 255, 255, 0.12); }
.mk-table em { height: 14px; background: rgba(155, 107, 255, 0.85); }
.mk-table em.wait { background: rgba(255, 255, 255, 0.18); }
.mk-bi { display: grid; gap: 16px; }
.mk-chart { display: flex; align-items: flex-end; gap: 8px; height: clamp(120px, 18vw, 220px); padding-top: 10px; border-bottom: 1px solid var(--line-d); }
.mk-chart i { flex: 1; height: var(--h); background: rgba(155, 107, 255, 0.4); }
.mk-chart i.hot { background: var(--violet); }
.mk-ai { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 3vw, 40px); align-items: center; }
.mk-ai p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px 14px; background: var(--raise); color: rgba(255, 255, 255, 0.82); }
.mk-ai__in i { width: 10px; height: 12px; flex: none; background: rgba(255, 255, 255, 0.3); }
.mk-ai__out em { width: 10px; height: 10px; flex: none; background: var(--lav); }
.mk-ai__agent { display: grid; justify-items: center; gap: 10px; color: var(--lav); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.mk-ai__agent b { width: 56px; height: 56px; background: var(--violet); box-shadow: 0 0 0 8px rgba(94, 0, 255, 0.25); animation: mk-pulse 1.6s steps(4) infinite; }
@keyframes mk-pulse { 50% { box-shadow: 0 0 0 16px rgba(94, 0, 255, 0.08); } }
.mk-brand { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 12px; width: min(100%, 980px); }
.mk-brand > div { background: var(--graphite); box-shadow: 10px 10px 0 rgba(13, 13, 16, 0.5); }
.mk-brand__mark { grid-row: span 2; display: grid; place-items: center; min-height: 260px; }
.mk-brand__mark span { font-weight: 800; font-size: clamp(48px, 8vw, 130px); letter-spacing: -0.05em; text-transform: lowercase; font-variation-settings: "opsz" 96, "wdth" 75; }
.mk-brand__mark span::after { content: "."; color: var(--lav); }
.mk-brand__sw { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px; gap: 8px; }
.mk-brand__sw i { aspect-ratio: 1; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mk-brand__type { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.mk-brand__type b { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.mk-brand__type span { color: var(--mist); font-size: 12px; line-height: 1.5; }
.mk-brand__ui { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; }
.mk-brand__ui em { font-style: normal; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-d); }
.mk-brand__ui em.pri { background: var(--violet); box-shadow: none; }
.mk-brand__ui i { flex: 1; min-width: 60px; height: 10px; background: rgba(255, 255, 255, 0.1); }
.mk-phones { display: flex; gap: clamp(16px, 4vw, 56px); align-items: center; }
.mk-phone { width: clamp(150px, 20vw, 230px); aspect-ratio: 9 / 18; padding: 10px; background: var(--carbon); box-shadow: 12px 12px 0 rgba(13, 13, 16, 0.5); }
.mk-phone--b { translate: 0 8%; }
.mk-phone__in { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px 12px; background: var(--graphite); font-size: 12px; }
.mk-phone__in b { width: 30%; height: 6px; margin: 0 auto 10px; background: rgba(255, 255, 255, 0.2); }
.mk-phone__in small { color: var(--mist); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.mk-phone__in p { margin: 0; padding: 10px; min-height: 34px; background: var(--raise); color: rgba(255, 255, 255, 0.8); }
.mk-phone__in p.on { background: var(--violet); color: #fff; }
.mk-phone__in em { margin-top: auto; padding: 10px; text-align: center; font-style: normal; font-weight: 600; background: #fff; color: var(--graphite); }
.mk-phone__in strong { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: var(--lav); line-height: 1; }
.mk-phone__in span { color: var(--mist); }
.mk-lp { display: grid; gap: 14px; }
.mk-lp__hero { display: grid; gap: 10px; padding: clamp(16px, 3vw, 36px); background: var(--raise); }
.mk-lp__hero i { height: clamp(14px, 2vw, 26px); width: 78%; background: rgba(255, 255, 255, 0.85); }
.mk-lp__hero i.s { width: 46%; height: 10px; background: rgba(255, 255, 255, 0.25); }
.mk-lp__hero em { justify-self: start; margin-top: 8px; padding: 10px 16px; font-style: normal; font-weight: 600; background: var(--violet); }
.mk-lp__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-lp__cards p { margin: 0; height: 60px; background: var(--raise); }
.mk-lp__score { display: flex; align-items: baseline; gap: 10px; }
.mk-lp__score strong { font-size: 28px; font-weight: 800; color: var(--lav); }
.mk-lp__score span { color: var(--mist); }
/* Capturas reais do site (visual "shots") */
.cs-visual__stage[data-type="shots"] { aspect-ratio: auto; }
.mk-shots { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(16px, 2.4vw, 36px); width: min(100%, 1240px); }
.mk-shots .mk-win { width: 100%; }
.mk-shots .mk-win:nth-child(2) { margin-top: 12%; }
.mk-shots .mk-body { padding: 0; }
.mk-shots img { display: block; width: 100%; height: auto; }
.cs-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.cs-live span { text-decoration: underline; text-underline-offset: 4px; }
.cs-live i { font-style: normal; transition: transform 0.3s var(--ease); }
.cs-live:hover { color: var(--lav); }
.cs-live:hover i { transform: translate(3px, -3px); }
.cs-live[hidden] { display: none; }
@media (max-width: 700px) {
  .mk-shots { grid-template-columns: 1fr; gap: 14px; }
  .mk-shots .mk-win:nth-child(2) { margin-top: 0; }
}
@media (max-width: 700px) {
  .cs-visual__stage { aspect-ratio: auto; min-height: 0; padding: 20px 14px; }
  .mk-saas { grid-template-columns: 1fr; }
  .mk-saas aside { display: none; }
  .mk-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .mk-kpis div { padding: 8px; }
  .mk-ai { grid-template-columns: 1fr; }
  .mk-ai__agent { grid-auto-flow: column; justify-content: start; align-items: center; }
  .mk-ai__agent b { width: 28px; height: 28px; }
  .mk-brand { grid-template-columns: 1fr; }
  .mk-brand__mark { grid-row: auto; min-height: 160px; }
}

/* Resultados */
.cs-results { padding: clamp(80px, 12vh, 140px) var(--gutter) 0; }
.cs-results h2 { margin-bottom: 28px; }
.cs-results__list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-d); }
.cs-results__list li { padding: 28px 24px 0 0; }
.cs-results__list li + li { padding-left: 24px; border-left: 1px solid var(--line-d); }
.cs-results__list b {
  display: block; font-weight: 800; font-size: clamp(56px, 7.6vw, 136px); line-height: 0.9; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96, "wdth" 75; color: #fff;
}
.cs-results__list li:first-child b { color: var(--lav); }
.cs-results__list span { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.66); }
@media (max-width: 760px) {
  .cs-results__list { grid-template-columns: 1fr; }
  .cs-results__list li, .cs-results__list li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
}

/* Desafio / solução */
.cs-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--gutter); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.cs-story h2 { margin-bottom: 20px; }
.cs-story p:not(.label) { max-width: 30ch; margin: 0; font-size: clamp(22px, 2.2vw, 36px); line-height: 1.2; letter-spacing: -0.02em; }
.cs-story__block + .cs-story__block p:not(.label) { color: var(--lav); }
@media (max-width: 760px) { .cs-story { grid-template-columns: 1fr; } }

/* Próximo case */
.cs-next { border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.cs-next__link {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end;
  padding: clamp(32px, 6vh, 64px) var(--gutter); text-decoration: none; isolation: isolate;
}
.cs-next__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--violet); clip-path: inset(100% 0 0 0); transition: clip-path 0.55s var(--ease); }
.cs-next__link:hover::before, .cs-next__link:focus-visible::before { clip-path: inset(0 0 0 0); }
.cs-next__link .label { grid-column: 1 / -1; }
.cs-next__link:hover .label { color: rgba(255, 255, 255, 0.8); }
.cs-next__client { font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 8vw, 140px); line-height: 0.86; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 75; }
.cs-next__title { grid-column: 1; color: rgba(255, 255, 255, 0.7); }
.cs-next__arrow { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: clamp(40px, 6vw, 96px); line-height: 1; transition: transform 0.4s var(--ease); }
.cs-next__link:hover .cs-next__arrow { transform: translateX(10px); }

/* Chamada final */
.cs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(48px, 8vh, 80px) var(--gutter); background: var(--violet); }
.cs-cta__text { margin: 0; max-width: 20ch; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 72px); line-height: 0.9; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 75; }

.cs-missing { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 132px var(--gutter) 80px; }

/* entrada suave do conteúdo */
.page-case .cs-hero > *, .page-case .cs-visual { animation: cs-in 0.9s var(--ease) both; }
.page-case .cs-hero > :nth-child(2) { animation-delay: 0.05s; }
.page-case .cs-hero > :nth-child(3) { animation-delay: 0.1s; }
.page-case .cs-hero > :nth-child(4) { animation-delay: 0.15s; }
.page-case .cs-hero > :nth-child(5) { animation-delay: 0.2s; }
.page-case .cs-visual { animation-delay: 0.3s; }
@keyframes cs-in { from { opacity: 0; translate: 0 24px; } }

/* =================================================================== */
/* Página 404 (404.html)                                                */
/* =================================================================== */
.err404 {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 clamp(24px, 4vw, 64px);
  min-height: 100svh; padding: 104px var(--gutter) 0;
}
.err404__copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.err404__label { margin-bottom: clamp(20px, 3vh, 32px); }
.err404__title {
  margin: 0; font-weight: 800; text-transform: uppercase;
  font-size: clamp(50px, 7.6vw, 136px); line-height: 0.88; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.err404__line { display: block; }
.err404__accent { color: var(--lav); font-weight: 800; }
.err404__line--calm {
  margin-top: 0.16em; text-transform: none; font-weight: 300; letter-spacing: -0.035em;
  font-size: 0.52em; line-height: 1.05; font-variation-settings: "opsz" 96, "wdth" 100;
  color: rgba(255, 255, 255, 0.92);
}
.err404__lede {
  max-width: 46ch; margin: clamp(22px, 3.4vh, 36px) 0 0;
  font-size: clamp(16px, 1.25vw, 19px); color: rgba(255, 255, 255, 0.72);
}
.err404__path {
  display: inline-block; padding: 2px 8px;
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-d);
  color: var(--lav); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em; overflow-wrap: anywhere;
}
.err404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.err404__panel {
  position: relative; align-self: center; justify-self: end; margin: 0;
  width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 190px);
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 46% at 50% 52%, rgba(94, 0, 255, 0.36), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--raise);
  box-shadow: inset 0 0 0 1px var(--line-d);
}
.err404__panel::before, .err404__panel::after {
  content: ""; position: absolute; z-index: 1; width: 16px; height: 16px; pointer-events: none;
  border: 0 solid var(--lav);
}
.err404__panel::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.err404__panel::after { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.err404__visor { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; text-align: center; }
.err404__icon { width: clamp(56px, 7vw, 88px); height: auto; image-rendering: pixelated; opacity: 0.92; }
.err404__code {
  font-weight: 800; font-size: clamp(96px, 14vw, 220px); line-height: 0.82;
  letter-spacing: -0.04em; font-variation-settings: "opsz" 96, "wdth" 75;
  color: var(--white); font-variant-numeric: tabular-nums;
}
.err404__status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: rgba(20, 20, 24, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-d); color: rgba(255, 255, 255, 0.78);
}
.err404__status span {
  width: 6px; height: 6px; background: var(--lav);
  animation: err404-blink 1.4s steps(2) infinite;
}
@keyframes err404-blink { 50% { opacity: 0.2; } }

.err404__links {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 0;
  padding: 18px 0 22px; border-top: 1px solid var(--line-d);
}
.err404__links a { color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.2s; }
.err404__links a:hover { color: var(--lav); }
.err404__links a + a::before { content: "/"; margin: 0 12px; color: var(--violet); }

.page-404 .err404__copy > *, .page-404 .err404__panel { animation: cs-in 0.85s var(--ease) both; }
.page-404 .err404__copy > :nth-child(2) { animation-delay: 0.06s; }
.page-404 .err404__copy > :nth-child(3) { animation-delay: 0.12s; }
.page-404 .err404__copy > :nth-child(4) { animation-delay: 0.18s; }
.page-404 .err404__panel { animation-delay: 0.2s; }

@media (max-width: 860px) {
  .err404 { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 92px; }
  .err404__copy { padding-bottom: 28px; }
  .err404__panel { aspect-ratio: 16 / 11; max-height: none; justify-self: stretch; }
  .err404__links { margin-top: 28px; }
}
