/* =========================================================================
   ACP Portfolio Covers v1.0
   Capas de categoria e subcategoria da Agencia Criativo Prime.
   Reaproveita a linguagem do .acp-hero de agencia-catalogo-core:
   gradiente verde escuro, eyebrow lime, h1 gigante, dois CTAs, visual animado.
   16 animacoes distintas, uma por categoria. Sem dependencia externa.
   ========================================================================= */

.acpc {
  --acpc-ink: #0b1820;
  --acpc-paper: #f5f1e8;
  --acpc-lime: #b7ff45;
  --acpc-accent: var(--acpc-lime);
  --acpc-muted: #c9d8d4;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 640px;
  padding: clamp(5rem, 10vw, 10rem) max(6vw, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 4rem;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 72% 25%, color-mix(in srgb, var(--acpc-accent) 45%, #2d8b76) 0 6%, color-mix(in srgb, var(--acpc-accent) 18%, transparent) 24%, transparent 48%),
    linear-gradient(135deg, #071820, #0b302e 62%, #163c2b);
}

/* halo difuso, mesma ideia do :after do hero original */
.acpc::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 70%;
  background: var(--acpc-accent);
  filter: blur(120px);
  opacity: 0.15;
  transform: rotate(-10deg);
  z-index: -1;
  pointer-events: none;
}

.acpc--sub { min-height: 440px; padding-block: clamp(3.5rem, 7vw, 6rem); }

.acpc__content { position: relative; z-index: 2; max-width: 820px; }

.acpc__eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--acpc-accent);
}

.acpc__title {
  font-size: clamp(2.6rem, 6.2vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0.35em 0 0.25em;
  font-weight: 800;
}
.acpc--sub .acpc__title { font-size: clamp(2rem, 4vw, 3.6rem); }

.acpc__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  max-width: 680px;
  color: var(--acpc-muted);
  margin: 0;
}

.acpc__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.acpc__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease;
}
.acpc__btn--primary { background: var(--acpc-accent); color: #102018; }
.acpc__btn--primary:hover,
.acpc__btn--primary:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--acpc-accent) 45%, transparent);
  outline: none;
}
.acpc__btn--ghost { background: transparent; border: 1px solid #ffffff55; color: #fff; }
.acpc__btn--ghost:hover,
.acpc__btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.1); transform: scale(1.04); outline: none; }
.acpc__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* trilha de subcategorias sob o titulo */
.acpc__crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.acpc__crumb {
  border: 1px solid #ffffff33;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6f0ec;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.acpc__crumb:hover,
.acpc__crumb:focus-visible { background: rgba(255, 255, 255, 0.12); border-color: var(--acpc-accent); outline: none; }

/* ---- palco do visual animado -------------------------------------------- */
.acpc__viz {
  position: relative;
  z-index: 1;
  width: min(380px, 82vw);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.acpc__viz svg { width: 100%; height: 100%; overflow: visible; }

/* =========================================================================
   1. KPI  —  Data Science
   ========================================================================= */
.acpc__viz[data-cover="kpi"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; }
.acpc__viz[data-cover="kpi"] i {
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acpc-accent) 85%, #fff), color-mix(in srgb, var(--acpc-accent) 35%, transparent));
  transform-origin: bottom;
  animation: acpc-kpi 3.2s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
  min-height: 40px;
}
.acpc__viz[data-cover="kpi"] i:nth-child(1) { height: 90px;  animation-delay: 0s; }
.acpc__viz[data-cover="kpi"] i:nth-child(2) { height: 140px; animation-delay: 0.18s; }
.acpc__viz[data-cover="kpi"] i:nth-child(3) { height: 70px;  animation-delay: 0.36s; }
.acpc__viz[data-cover="kpi"] i:nth-child(4) { height: 120px; animation-delay: 0.54s; opacity: 0.75; }
.acpc__viz[data-cover="kpi"] i:nth-child(5) { height: 60px;  animation-delay: 0.72s; opacity: 0.75; }
.acpc__viz[data-cover="kpi"] i:nth-child(6) { height: 160px; animation-delay: 0.9s;  opacity: 0.75; }
@keyframes acpc-kpi {
  0%, 100% { transform: scaleY(0.32); }
  45%, 65% { transform: scaleY(1); }
}

/* =========================================================================
   2. NEURAL  —  AI & Machine Learning
   ========================================================================= */
.acpc__viz[data-cover="neural"] .acpc-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--acpc-accent) 70%, transparent) 78%, transparent 92%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: acpc-spin 9s linear infinite;
}
.acpc__viz[data-cover="neural"] .acpc-ring:nth-child(2) { inset: 24%; animation-duration: 6s; animation-direction: reverse; }
.acpc__viz[data-cover="neural"] b {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--acpc-accent) 70%, transparent);
  animation: acpc-ping 2.4s ease-out infinite;
}
.acpc__viz[data-cover="neural"] b:nth-of-type(1) { top: 6%;  left: 47%; animation-delay: 0s; }
.acpc__viz[data-cover="neural"] b:nth-of-type(2) { top: 40%; left: 4%;  animation-delay: 0.4s; }
.acpc__viz[data-cover="neural"] b:nth-of-type(3) { top: 40%; right: 4%; animation-delay: 0.8s; }
.acpc__viz[data-cover="neural"] b:nth-of-type(4) { bottom: 8%; left: 24%; animation-delay: 1.2s; }
.acpc__viz[data-cover="neural"] b:nth-of-type(5) { bottom: 8%; right: 24%; animation-delay: 1.6s; }
.acpc__viz[data-cover="neural"] b:nth-of-type(6) { top: 46%; left: 46%; animation-delay: 2s; background: var(--acpc-accent); }
@keyframes acpc-ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acpc-accent) 65%, transparent); }
  70%  { box-shadow: 0 0 0 22px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes acpc-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   3. LINECHART  —  Data Analysis
   ========================================================================= */
.acpc__viz[data-cover="linechart"] .acpc-line {
  fill: none;
  stroke: var(--acpc-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: acpc-draw 4.5s ease-in-out infinite;
}
.acpc__viz[data-cover="linechart"] .acpc-area { fill: color-mix(in srgb, var(--acpc-accent) 16%, transparent); opacity: 0; animation: acpc-fade 4.5s ease-in-out infinite; }
.acpc__viz[data-cover="linechart"] .acpc-axis { stroke: #ffffff2e; stroke-width: 1; }
@keyframes acpc-draw {
  0%   { stroke-dashoffset: 640; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 640; }
}
@keyframes acpc-fade { 0%, 30% { opacity: 0; } 60%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* =========================================================================
   4. PIPELINE  —  ETL
   ========================================================================= */
.acpc__viz[data-cover="pipeline"] { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.acpc__viz[data-cover="pipeline"] .acpc-stage {
  position: relative;
  height: 52px;
  border: 1px solid #ffffff33;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.acpc__viz[data-cover="pipeline"] .acpc-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acpc-accent) 55%, transparent), transparent);
  animation: acpc-flow 2.6s ease-in-out infinite;
}
.acpc__viz[data-cover="pipeline"] .acpc-stage:nth-child(2)::before { animation-delay: 0.3s; }
.acpc__viz[data-cover="pipeline"] .acpc-stage:nth-child(3)::before { animation-delay: 0.6s; }
.acpc__viz[data-cover="pipeline"] .acpc-stage:nth-child(4)::before { animation-delay: 0.9s; }
.acpc__viz[data-cover="pipeline"] .acpc-stage span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  color: #dff0e8;
}
@keyframes acpc-flow { 0% { left: -40%; } 60%, 100% { left: 100%; } }

/* =========================================================================
   5. BROWSER  —  Web Development
   ========================================================================= */
.acpc__viz[data-cover="browser"] { perspective: 900px; }
.acpc__viz[data-cover="browser"] .acpc-win {
  position: absolute;
  width: 74%; height: 56%;
  border-radius: 14px;
  border: 1px solid #ffffff2e;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: acpc-float 6s ease-in-out infinite;
}
.acpc__viz[data-cover="browser"] .acpc-win::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 22px;
  border-bottom: 1px solid #ffffff22;
  background: repeating-linear-gradient(90deg, #ffffff55 10px, #ffffff55 16px, transparent 16px, transparent 28px) no-repeat 12px center / 60px 6px;
}
.acpc__viz[data-cover="browser"] .acpc-win:nth-child(1) { transform: translate(-16%, -18%) rotateY(12deg); animation-delay: 0s; }
.acpc__viz[data-cover="browser"] .acpc-win:nth-child(2) { transform: translate(0, 0) rotateY(6deg); animation-delay: 0.5s; border-color: color-mix(in srgb, var(--acpc-accent) 45%, transparent); }
.acpc__viz[data-cover="browser"] .acpc-win:nth-child(3) { transform: translate(16%, 18%) rotateY(0deg); animation-delay: 1s; }
@keyframes acpc-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* =========================================================================
   6. WORKFLOW  —  Automation
   ========================================================================= */
.acpc__viz[data-cover="workflow"] .acpc-node {
  position: absolute;
  width: 74px; height: 40px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--acpc-accent) 55%, transparent);
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
  animation: acpc-blink 3s ease-in-out infinite;
}
.acpc__viz[data-cover="workflow"] .acpc-node:nth-of-type(1) { top: 6%;  left: 4%;  animation-delay: 0s; }
.acpc__viz[data-cover="workflow"] .acpc-node:nth-of-type(2) { top: 34%; left: 38%; animation-delay: 0.5s; }
.acpc__viz[data-cover="workflow"] .acpc-node:nth-of-type(3) { top: 8%;  right: 2%; animation-delay: 1s; }
.acpc__viz[data-cover="workflow"] .acpc-node:nth-of-type(4) { bottom: 20%; left: 8%; animation-delay: 1.5s; }
.acpc__viz[data-cover="workflow"] .acpc-node:nth-of-type(5) { bottom: 4%; right: 8%; animation-delay: 2s; }
.acpc__viz[data-cover="workflow"] .acpc-wire { stroke: #ffffff33; stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: acpc-dash 1.6s linear infinite; }
@keyframes acpc-dash { to { stroke-dashoffset: -28; } }
@keyframes acpc-blink { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--acpc-accent) 40%, transparent); } }

/* =========================================================================
   7. CONTOUR  —  GIS
   ========================================================================= */
.acpc__viz[data-cover="contour"] i {
  position: absolute;
  inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--acpc-accent) 40%, transparent);
  border-radius: 46% 54% 38% 62% / 58% 42% 58% 42%;
  animation: acpc-contour 8s ease-in-out infinite;
}
.acpc__viz[data-cover="contour"] i:nth-child(1) { inset: 2%;  animation-delay: 0s; }
.acpc__viz[data-cover="contour"] i:nth-child(2) { inset: 14%; animation-delay: 0.6s; }
.acpc__viz[data-cover="contour"] i:nth-child(3) { inset: 26%; animation-delay: 1.2s; }
.acpc__viz[data-cover="contour"] i:nth-child(4) { inset: 38%; animation-delay: 1.8s; }
.acpc__viz[data-cover="contour"] i:nth-child(5) { inset: 50%; animation-delay: 2.4s; background: color-mix(in srgb, var(--acpc-accent) 22%, transparent); }
@keyframes acpc-contour {
  0%, 100% { border-radius: 46% 54% 38% 62% / 58% 42% 58% 42%; transform: rotate(0deg); }
  50%      { border-radius: 62% 38% 55% 45% / 42% 58% 42% 58%; transform: rotate(9deg); }
}

/* =========================================================================
   8. BLUEPRINT  —  Engineering
   ========================================================================= */
.acpc__viz[data-cover="blueprint"] {
  background:
    linear-gradient(#ffffff14 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, #ffffff14 1px, transparent 1px) 0 0 / 26px 100%;
  border: 1px solid #ffffff2e;
  border-radius: 12px;
}
.acpc__viz[data-cover="blueprint"] .acpc-tech { stroke: var(--acpc-accent); stroke-width: 2; fill: none; stroke-dasharray: 900; stroke-dashoffset: 900; animation: acpc-draw 5s ease-in-out infinite; }
.acpc__viz[data-cover="blueprint"] .acpc-dim { stroke: #ffffff66; stroke-width: 1; }
.acpc__viz[data-cover="blueprint"] .acpc-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acpc-accent), transparent);
  animation: acpc-scan 4s ease-in-out infinite;
}
@keyframes acpc-scan { 0%, 100% { top: 4%; opacity: 0.2; } 50% { top: 94%; opacity: 0.9; } }

/* =========================================================================
   9. BENTO  —  Design
   ========================================================================= */
.acpc__viz[data-cover="bento"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}
.acpc__viz[data-cover="bento"] i {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid #ffffff26;
  animation: acpc-bento 4.4s cubic-bezier(0.34, 1.4, 0.64, 1) infinite;
}
.acpc__viz[data-cover="bento"] i:nth-child(1) { grid-column: span 2; grid-row: span 2; background: color-mix(in srgb, var(--acpc-accent) 22%, transparent); animation-delay: 0s; }
.acpc__viz[data-cover="bento"] i:nth-child(2) { animation-delay: 0.2s; }
.acpc__viz[data-cover="bento"] i:nth-child(3) { animation-delay: 0.4s; }
.acpc__viz[data-cover="bento"] i:nth-child(4) { grid-column: span 2; animation-delay: 0.6s; }
.acpc__viz[data-cover="bento"] i:nth-child(5) { animation-delay: 0.8s; background: color-mix(in srgb, var(--acpc-accent) 40%, transparent); }
@keyframes acpc-bento { 0%, 100% { transform: scale(0.92); opacity: 0.55; } 50% { transform: scale(1); opacity: 1; } }

/* =========================================================================
   10. MARKS  —  Branding
   ========================================================================= */
.acpc__viz[data-cover="marks"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; place-items: center; }
.acpc__viz[data-cover="marks"] i {
  width: 100px; height: 100px;
  border: 3px solid var(--acpc-accent);
  animation: acpc-morph 6s ease-in-out infinite;
}
.acpc__viz[data-cover="marks"] i:nth-child(2) { animation-delay: 0.7s; background: color-mix(in srgb, var(--acpc-accent) 18%, transparent); }
.acpc__viz[data-cover="marks"] i:nth-child(3) { animation-delay: 1.4s; }
.acpc__viz[data-cover="marks"] i:nth-child(4) { animation-delay: 2.1s; background: color-mix(in srgb, var(--acpc-accent) 30%, transparent); }
@keyframes acpc-morph {
  0%, 100% { border-radius: 6px; transform: rotate(0deg); }
  33%      { border-radius: 50%; transform: rotate(45deg); }
  66%      { border-radius: 50% 6px 50% 6px; transform: rotate(-20deg); }
}

/* =========================================================================
   11. APERTURE  —  Photography
   ========================================================================= */
.acpc__viz[data-cover="aperture"] { border-radius: 50%; border: 2px solid #ffffff33; }
.acpc__viz[data-cover="aperture"] i {
  position: absolute;
  width: 50%; height: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acpc-accent) 70%, transparent), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--acpc-accent) 45%, transparent);
  transform-origin: 100% 100%;
  clip-path: polygon(0 0, 100% 62%, 100% 100%);
  animation: acpc-iris 5s ease-in-out infinite;
}
.acpc__viz[data-cover="aperture"] i:nth-child(1) { transform: rotate(0deg); }
.acpc__viz[data-cover="aperture"] i:nth-child(2) { transform: rotate(60deg); }
.acpc__viz[data-cover="aperture"] i:nth-child(3) { transform: rotate(120deg); }
.acpc__viz[data-cover="aperture"] i:nth-child(4) { transform: rotate(180deg); }
.acpc__viz[data-cover="aperture"] i:nth-child(5) { transform: rotate(240deg); }
.acpc__viz[data-cover="aperture"] i:nth-child(6) { transform: rotate(300deg); }
@keyframes acpc-iris { 0%, 100% { scale: 1; } 50% { scale: 0.55; } }

/* =========================================================================
   12. WAVEFORM  —  Video & Motion
   ========================================================================= */
.acpc__viz[data-cover="waveform"] { display: flex; align-items: center; justify-content: center; gap: 6px; }
.acpc__viz[data-cover="waveform"] i {
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--acpc-accent), color-mix(in srgb, var(--acpc-accent) 25%, transparent));
  animation: acpc-wave 1.4s ease-in-out infinite;
}
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 1) { height: 30%; animation-delay: 0s; }
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 2) { height: 62%; animation-delay: 0.1s; }
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 3) { height: 88%; animation-delay: 0.2s; }
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 4) { height: 48%; animation-delay: 0.3s; }
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 5) { height: 74%; animation-delay: 0.4s; }
.acpc__viz[data-cover="waveform"] i:nth-child(6n + 6) { height: 38%; animation-delay: 0.5s; }
@keyframes acpc-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* =========================================================================
   13. WIREFRAME  —  3D
   ========================================================================= */
.acpc__viz[data-cover="wireframe"] { perspective: 800px; }
.acpc__viz[data-cover="wireframe"] .acpc-cube {
  position: relative;
  width: 180px; height: 180px;
  transform-style: preserve-3d;
  animation: acpc-tumble 14s linear infinite;
}
.acpc__viz[data-cover="wireframe"] .acpc-cube i {
  position: absolute; inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--acpc-accent) 60%, transparent);
  background: color-mix(in srgb, var(--acpc-accent) 6%, transparent);
}
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(1) { transform: translateZ(90px); }
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(90px); }
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(3) { transform: rotateY(90deg)  translateZ(90px); }
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(90px); }
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(5) { transform: rotateX(90deg)  translateZ(90px); }
.acpc__viz[data-cover="wireframe"] .acpc-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(90px); }
@keyframes acpc-tumble { to { transform: rotateX(360deg) rotateY(360deg); } }

/* =========================================================================
   14. LEADERBOARD  —  E-sports
   ========================================================================= */
.acpc__viz[data-cover="leaderboard"] { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.acpc__viz[data-cover="leaderboard"] .acpc-row {
  position: relative;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex; align-items: center; padding-inline: 12px;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em;
}
.acpc__viz[data-cover="leaderboard"] .acpc-row::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acpc-accent) 65%, transparent), transparent);
  animation: acpc-race 4s cubic-bezier(0.34, 1.2, 0.64, 1) infinite;
}
.acpc__viz[data-cover="leaderboard"] .acpc-row:nth-child(1)::before { --w: 92%; animation-delay: 0s; }
.acpc__viz[data-cover="leaderboard"] .acpc-row:nth-child(2)::before { --w: 74%; animation-delay: 0.15s; }
.acpc__viz[data-cover="leaderboard"] .acpc-row:nth-child(3)::before { --w: 61%; animation-delay: 0.3s; }
.acpc__viz[data-cover="leaderboard"] .acpc-row:nth-child(4)::before { --w: 45%; animation-delay: 0.45s; }
.acpc__viz[data-cover="leaderboard"] .acpc-row:nth-child(5)::before { --w: 30%; animation-delay: 0.6s; }
.acpc__viz[data-cover="leaderboard"] .acpc-row span { position: relative; z-index: 1; }
@keyframes acpc-race { 0%, 100% { width: 8%; } 45%, 70% { width: var(--w, 60%); } }

/* =========================================================================
   15. CANDLES  —  Crypto
   ========================================================================= */
.acpc__viz[data-cover="candles"] { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding-bottom: 12%; }
.acpc__viz[data-cover="candles"] i {
  position: relative;
  width: 12px;
  border-radius: 3px;
  background: var(--acpc-accent);
  transform-origin: bottom;
  animation: acpc-candle 3.6s ease-in-out infinite;
}
.acpc__viz[data-cover="candles"] i::before {
  content: "";
  position: absolute; left: 50%; translate: -50% 0;
  top: -14px; bottom: -10px; width: 2px;
  background: color-mix(in srgb, var(--acpc-accent) 55%, transparent);
}
.acpc__viz[data-cover="candles"] i:nth-child(odd) { background: color-mix(in srgb, var(--acpc-accent) 40%, #fff); }
.acpc__viz[data-cover="candles"] i:nth-child(1) { height: 46px; animation-delay: 0s; }
.acpc__viz[data-cover="candles"] i:nth-child(2) { height: 78px; animation-delay: 0.12s; }
.acpc__viz[data-cover="candles"] i:nth-child(3) { height: 34px; animation-delay: 0.24s; }
.acpc__viz[data-cover="candles"] i:nth-child(4) { height: 96px; animation-delay: 0.36s; }
.acpc__viz[data-cover="candles"] i:nth-child(5) { height: 58px; animation-delay: 0.48s; }
.acpc__viz[data-cover="candles"] i:nth-child(6) { height: 112px; animation-delay: 0.6s; }
.acpc__viz[data-cover="candles"] i:nth-child(7) { height: 70px; animation-delay: 0.72s; }
.acpc__viz[data-cover="candles"] i:nth-child(8) { height: 130px; animation-delay: 0.84s; }
@keyframes acpc-candle { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* =========================================================================
   16. NODES  —  IT, Cloud & Infra
   ========================================================================= */
.acpc__viz[data-cover="nodes"] .acpc-hex {
  position: absolute;
  width: 62px; height: 70px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid color-mix(in srgb, var(--acpc-accent) 50%, transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em;
  animation: acpc-beat 3.4s ease-in-out infinite;
}
.acpc__viz[data-cover="nodes"] .acpc-hex:nth-of-type(1) { top: 4%;  left: 38%; animation-delay: 0s; }
.acpc__viz[data-cover="nodes"] .acpc-hex:nth-of-type(2) { top: 36%; left: 6%;  animation-delay: 0.5s; }
.acpc__viz[data-cover="nodes"] .acpc-hex:nth-of-type(3) { top: 36%; right: 6%; animation-delay: 1s; }
.acpc__viz[data-cover="nodes"] .acpc-hex:nth-of-type(4) { bottom: 6%; left: 38%; animation-delay: 1.5s; }
.acpc__viz[data-cover="nodes"] .acpc-arc { stroke: color-mix(in srgb, var(--acpc-accent) 40%, transparent); stroke-width: 1.5; fill: none; stroke-dasharray: 5 7; animation: acpc-dash 2s linear infinite; }
@keyframes acpc-beat { 0%, 100% { transform: scale(0.94); opacity: 0.7; } 50% { transform: scale(1); opacity: 1; } }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 980px) {
  .acpc { grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; text-align: left; }
  .acpc__viz { width: min(300px, 74vw); order: -1; }
  .acpc--sub .acpc__viz { width: min(220px, 60vw); }
}
@media (max-width: 620px) {
  .acpc { padding-inline: 1.25rem; padding-block: 4rem 3rem; }
  .acpc__viz { width: min(240px, 66vw); }
  .acpc__btn { display: block; width: 100%; text-align: center; }
  .acpc__actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================================
   Acessibilidade — quem pede menos movimento recebe a capa estatica
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .acpc *,
  .acpc *::before,
  .acpc *::after {
    animation: none !important;
    transition: none !important;
  }
  .acpc__viz[data-cover="linechart"] .acpc-line,
  .acpc__viz[data-cover="blueprint"] .acpc-tech { stroke-dashoffset: 0; }
  .acpc__viz[data-cover="linechart"] .acpc-area { opacity: 1; }
  .acpc__viz[data-cover="leaderboard"] .acpc-row::before { width: var(--w, 60%); }
}
