/* ════════════════════════════════════════════════════════════════
   CREATIVE CORE · CASES STACK — dossiês que empilham no scroll
   Cada case = painel sticky de missão com telemetria ANTES → DEPOIS
   (contadores + barras comparativas animadas via .in).
   ════════════════════════════════════════════════════════════════ */

.cstack {
  display: flex; flex-direction: column;
  gap: 28px; margin-bottom: 64px;
}

/* ── PAINEL ── */
.cs-panel {
  position: sticky;
  top: calc(86px + var(--i, 0) * 16px);
  background:
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(255,61,20,.05), transparent 60%),
    #070b14;
  border: 1px solid rgba(255,255,255,.12);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 -18px 44px rgba(0,0,0,.5);
}
/* grid técnico de fundo */
.cs-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

/* ── HUD topo ── */
.cs-hud {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 13px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.cs-hud__file { color: #FF3D14; }
.cs-hud__status { display: flex; align-items: center; gap: 8px; }
.cs-hud__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2BD576; box-shadow: 0 0 8px rgba(43,213,118,.8); font-style: normal;
}
.cs-hud__right { margin-left: auto; color: rgba(255,255,255,.3); }

/* ── CORPO ── */
.cs-body {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4vw, 56px) clamp(20px, 3vw, 40px) clamp(34px, 4vw, 56px);
}

/* esquerda */
.cs-kicker {
  display: block;
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: #FF3D14; margin-bottom: 18px;
}
.cs-kicker::before { content: '▸ '; }
.cs-name {
  font-family: var(--fonte-corpo);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: .96; letter-spacing: -.015em;
  text-transform: none;
  color: #fff; margin: 0 0 20px;
}
.cs-desc {
  font-family: var(--fonte-corpo);
  font-size: clamp(14px, 1.15vw, 16.5px); line-height: 1.7;
  color: rgba(255,255,255,.58); max-width: 46ch; margin: 0 0 30px;
}
/* .cs-cta → visual unificado em style.css §POLISH-CTA */

/* direita: telemetria */
.cs-tele {
  border-left: 1px solid rgba(255,255,255,.1);
  padding-left: clamp(22px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 24px;
  justify-content: center;
}
.cs-tele__label {
  font-family: 'DM Mono', monospace; font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.cs-tele__label::before { content: '▸ '; color: #FF3D14; }

.cs-metric { display: flex; flex-direction: column; gap: 10px; }
.cs-metric__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.cs-metric__head span {
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.cs-metric__head b {
  font-family: var(--fonte-numero);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1;
  color: #2BD576; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(43,213,118,.35);
  white-space: nowrap;
}

/* barras antes/depois */
.cs-bars { display: flex; flex-direction: column; gap: 7px; }
.cs-bar {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 12px;
}
.cs-bar i {
  display: block; height: 8px; font-style: normal;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.cs-panel.in .cs-bar i { transform: scaleX(var(--w, 1)); }
.cs-bar--before i { background: rgba(255,61,20,.45); box-shadow: 0 0 10px rgba(255,61,20,.2); }
.cs-bar--after i  { background: #2BD576; box-shadow: 0 0 14px rgba(43,213,118,.5); transition-delay: .25s; }
.cs-bar span {
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42); white-space: nowrap;
}
.cs-bar--before span { color: rgba(255,100,80,.7); }
.cs-bar--after span  { color: rgba(43,213,118,.9); }

.cs-foot {
  font-family: 'DM Mono', monospace; font-size: 9.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top: 14px;
}
.cs-foot::before { content: '▸ '; color: #FF3D14; }

/* ghost number */
.cs-ghost {
  position: absolute; right: -8px; bottom: -34px; z-index: 1;
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: clamp(140px, 17vw, 280px); line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.008) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}

/* brackets de canto */
.cs-bk { position: absolute; width: 16px; height: 16px; z-index: 3; pointer-events: none; }
.cs-bk--tl { top: -1px; left: -1px; border-top: 2px solid #FF3D14; border-left: 2px solid #FF3D14; }
.cs-bk--tr { top: -1px; right: -1px; border-top: 2px solid #FF3D14; border-right: 2px solid #FF3D14; }
.cs-bk--bl { bottom: -1px; left: -1px; border-bottom: 2px solid #FF3D14; border-left: 2px solid #FF3D14; }
.cs-bk--br { bottom: -1px; right: -1px; border-bottom: 2px solid #FF3D14; border-right: 2px solid #FF3D14; }

/* ── responsivo ── */
@media (max-width: 920px) {
  .cs-panel { position: relative; top: auto; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-tele { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
  .cs-ghost { font-size: 120px; bottom: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-bar i { transition: none; transform: scaleX(var(--w, 1)); }
  .cs-cta { transition: none; }
}
