/* A cena 3D dos autos — landing e Entrar.
 * Doutrina: design system §00p; plano: planos/2026-11-17-entrada-3d.md.
 * 17/11/2026: a pilha, a folha citada e as três saídas. 20/11/2026: o fundo (o
 * gabinete) e a história inteira — o problema (a pilha), a conexão em tempo
 * real (o fio do MCP), o assessor lendo (o robô do chat) e as saídas chegando
 * à mesa de quem decide. O roteiro dos segundos está no fim da folha.
 *
 * ⚠️ O ESTADO DE BASE é o quadro FINAL. Todo movimento mora sob `.p3d.is-vivo`,
 *    que um script em linha põe ANTES da primeira pintura (`_palco3d.html`), e
 *    dentro de `prefers-reduced-motion: no-preference`. Sem JS, com movimento
 *    reduzido ou pausada, a cena mostra a composição completa. `is-espera`
 *    segura a cena no PRIMEIRO quadro até as fontes e a vista.
 * ⚠️ TRÊS PLANOS: o fundo (`.p3d-fundo`, plano, com o desfoque), a pilha num
 *    espaço 3D SÓ DELA (`.p3d-cena` tem a `perspective` e é plana; `.p3d-giro`
 *    e `.p3d-pilha` preservam o 3D) e a camada 2D da frente (`.p3d-frente`):
 *    o PJe, o fio, o assessor, a folha e as saídas. No mesmo espaço 3D, as
 *    folhas empurradas em profundidade ATRAVESSAVAM a folha da frente (foto de
 *    produção, 17/11/2026). A inclinação gira a pilha, desliza a frente e
 *    desliza o fundo ao contrário (paralaxe).
 * ⚠️ Nenhum `opacity`, `filter`, `overflow` nem `mask` em `.p3d-giro`,
 *    `.p3d-pilha` ou `.p3d-bloco`: qualquer um deles achata o 3D sem erro
 *    nenhum. Ficam só nas FOLHAS (elementos finais). Filho da pilha leva nome
 *    SEM o prefixo `p3d-pilha` (o teste casa o prefixo).
 * ⚠️ Só `transform` e `opacity` se animam. O brilho é uma camada que acende
 *    (nunca `box-shadow` animado), o marca-texto é uma barra em `scaleX` por
 *    linha, o fio se revela com duas translações opostas e os pulsos correm
 *    num trilho reto. Pseudo-elemento não se anima: a pausa (`* {}`) não o
 *    alcança.
 * ⚠️ UMA luz: a janela no alto à esquerda. Toda sombra cai para a direita e
 *    para baixo (`--p3d-sombra*`).
 * ⚠️ `--t` é o gancho de congelar: com `.is-parado`, mostra a cena naquele
 *    segundo (a conferência por foto usa). Todo atraso é `calc(X - var(--t))`.
 * Tokens da `.lv4` (entrada-v4.css); os da cena ficam aqui, com prefixo. */

.p3d-caixa { --k: 1; position: relative; width: 100%; max-width: 720px; aspect-ratio: 720 / 560; overflow: hidden; }
.p3d-caixa.is-compacto { aspect-ratio: 480 / 620; max-width: 480px; }
.p3d-escala { position: absolute; left: 0; top: 0; width: 720px; height: 560px; transform-origin: 0 0; transform: scale(var(--k)); }
.p3d-caixa.is-compacto .p3d-escala, .p3d-caixa.is-compacto .p3d { width: 480px; height: 620px; }

.p3d {
  --p3d-marcatexto: #FCE58A;
  --p3d-t-inicial: #4B72D6; --p3d-t-procuracao: #8A94A6; --p3d-t-contestacao: #0E8595;
  --p3d-t-documento: #7B4FD1; --p3d-t-decisao: #B4542D; --p3d-t-certidao: #6B7A90;
  --p3d-sombra: 7px 16px 30px -16px rgba(12, 50, 111, .34);
  --p3d-sombra-alta: 12px 30px 54px -26px rgba(12, 50, 111, .46);
  --p3d-mcp-l: 120px;
  --t: 0s;
  position: relative; width: 720px; height: 560px;
  font-family: var(--f-ui); color: var(--tinta);
}

/* ================= o fundo: o gabinete ================= */
/* Plano e fora do caminho 3D: aqui pode haver desfoque e máscara. As bordas se
   dissolvem na mesa da página (a landing e o painel do Entrar são `--mesa`). */
/* ⚠️ Duas faixas que se CRUZAM (vertical × horizontal), e não uma elipse: a
   elipse ainda deixava ~90% de opacidade no topo, e a parede começava numa
   linha reta sobre a página (foto de 20/11/2026). Assim toda borda chega a zero. */
.p3d-fundo { position: absolute; inset: 0; pointer-events: none; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%),
                      linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%),
              linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
.p3d-fundo__camera { position: absolute; inset: 0; transform-origin: 46% 34%; }
/* a parede e o tampo da mesa, com a quina em 196 px */
.p3d-parede { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 195px, rgba(255, 255, 255, .95) 196px, rgba(12, 50, 111, .10) 197px, rgba(12, 50, 111, 0) 222px),
    linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #D3DDEB 0, #DFE7F2 195px, #EEF2F8 196px, #F7F9FC 100%); }
/* a janela, no alto à esquerda: a única fonte de luz da cena. Desfocada como a
   estante (está longe), com o caixilho à vista e a luz derramando na parede. */
.p3d-janela { position: absolute; left: -150px; top: -190px; width: 600px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, 0)); }
/* os raios da janela, inclinados para a direita e para baixo: a direção de toda sombra */
.p3d-raios { position: absolute; left: 60px; top: 60px; width: 560px; height: 420px; filter: blur(8px); opacity: .75;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .55) 25%, rgba(255, 255, 255, 0) 33%,
              rgba(255, 255, 255, 0) 39%, rgba(255, 255, 255, .4) 45%, rgba(255, 255, 255, 0) 52%); }
/* a estante de autos ao fundo, desfocada (a profundidade de campo) */
.p3d-estante { position: absolute; left: 330px; top: 0; width: 420px; height: 196px; filter: blur(1.9px); opacity: .85; }
.p3d-estante__fila { position: absolute; left: 0; right: 0; top: var(--y); height: 64px; display: flex; align-items: flex-end; gap: 2px; }
.p3d-estante__fila i { display: block; flex: none; border-radius: 2px 2px 0 0; transform-origin: 50% 100%;
  background: linear-gradient(180deg, transparent 16%, rgba(255, 255, 255, .6) 16%, rgba(255, 255, 255, .6) 25%, transparent 25%), var(--c); }
.p3d-estante__tabua { position: absolute; left: -12px; right: 0; top: var(--y); height: 6px; border-radius: 1px; background: #C3CEDD;
  box-shadow: 4px 5px 8px rgba(12, 50, 111, .16); }
/* o tampo em perspectiva, com as linhas finas */
.p3d-mesa { position: absolute; left: -360px; top: 196px; width: 1440px; height: 560px; transform-origin: 50% 0; transform: perspective(420px) rotateX(62deg);
  background-image: linear-gradient(rgba(19, 81, 180, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 81, 180, .11) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 64%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 64%, transparent 100%); }
/* o halo do assessor: a luz do visor, não um enfeite solto */
.p3d-halo { position: absolute; left: 182px; top: -128px; width: 388px; height: 388px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(19, 81, 180, .26), rgba(19, 81, 180, .09) 56%, rgba(19, 81, 180, 0)); }

/* ================= a pilha dos autos, em 3D ================= */
.p3d-cena { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 36% 30%; }
.p3d-giro { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.p3d-frente { position: absolute; inset: 0; will-change: transform; }

.p3d-pilha { position: absolute; left: 58px; top: 236px; width: 176px; height: 230px; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-34deg); }
.p3d-sombra { position: absolute; inset: -30px -44px -52px -24px; border-radius: 40%; transform: translateZ(-27px);
  background: radial-gradient(ellipse at 60% 66%, rgba(12, 50, 111, .26), rgba(12, 50, 111, 0) 66%); filter: blur(6px); }
/* o resto dos autos: um bloco de papel com as bordas das folhas à vista */
.p3d-bloco { position: absolute; inset: 0; transform-style: preserve-3d; }
.p3d-bloco__frente, .p3d-bloco__lado { position: absolute; backface-visibility: hidden; border: 1px solid var(--linha-forte); }
.p3d-bloco__frente { left: 0; top: 100%; width: 100%; height: 26px; transform-origin: 50% 0; transform: rotateX(-90deg);
  background: repeating-linear-gradient(180deg, #FDFDFE 0, #FDFDFE 2px, #CDD6E3 2px, #CDD6E3 3px); }
.p3d-bloco__lado { left: 100%; top: 0; width: 26px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #F4F6FA 0, #F4F6FA 2px, #C3CDDB 2px, #C3CDDB 3px); }
.p3d-folha { position: absolute; inset: 0; border-radius: 5px; background: #FBFCFE; border: 1px solid var(--linha-forte);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transform: translateZ(var(--z));
  box-shadow: 4px 18px 26px -20px rgba(12, 50, 111, .5); backface-visibility: hidden; }
.p3d-folha i { display: block; height: 5px; border-radius: 3px; background: var(--linha); }
.p3d-selo { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px/1 var(--f-ui); color: var(--tinta-2); }
.p3d-selo em { margin-left: auto; font: 500 11.5px/1 var(--f-mono); font-style: normal; color: var(--tenue); }
.p3d-ponto { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); }
/* o cabeçalho e o carimbo da assinatura, em esqueleto (folha inclinada não leva texto corrido) */
.p3d-cab { display: block; height: 12px; width: 54%; margin: 2px auto 4px;
  background: linear-gradient(var(--linha-forte), var(--linha-forte)) 50% 0 / 62% 3px no-repeat,
              linear-gradient(var(--linha), var(--linha)) 50% 8px / 100% 3px no-repeat; }
.p3d-assin { display: block; margin-top: auto; height: 18px; width: 62%;
  background: linear-gradient(var(--linha-forte), var(--linha-forte)) 0 0 / 18px 18px no-repeat,
              linear-gradient(var(--linha), var(--linha)) 25px 3px / 72% 3px no-repeat,
              linear-gradient(var(--linha), var(--linha)) 25px 11px / 48% 3px no-repeat; }
/* a contestação: acende quando o feixe para nela e esmaece quando a folha sai à frente */
.p3d-brilho { position: absolute; inset: -1px; border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--marca), 4px 22px 40px -18px rgba(19, 81, 180, .55); }
.p3d-veu { position: absolute; inset: 0; border-radius: 5px; background: rgba(247, 249, 252, .6); }
/* o feixe do assessor: um plano de luz que sobe pela pilha e para na folha citada */
.p3d-feixe { position: absolute; inset: -14px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 81, 180, 0) 0%, rgba(19, 81, 180, .07) 55%, rgba(19, 81, 180, .2) 100%);
  border-bottom: 2px solid rgba(19, 81, 180, .85); box-shadow: 0 10px 22px -8px rgba(19, 81, 180, .45);
  transform: translateZ(62px); opacity: .45; }

/* ================= a frente ================= */
.p3d-num { font: 500 10.6px/1.3 var(--f-mono); color: var(--tinta-2); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- o PJe ---------- */
.p3d-pje { position: absolute; left: 16px; top: 26px; width: 194px; padding: 11px 13px 12px; border-radius: 12px; background: var(--sup);
  border: 1px solid var(--linha); box-shadow: var(--p3d-sombra); display: flex; flex-direction: column; gap: 6px; }
.p3d-pje__rot { display: flex; align-items: center; gap: 7px; font: 650 12.5px/1 var(--f-ui); color: var(--titulo); }
.p3d-pje__rot svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--marca); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p3d-pje__conta { display: flex; align-items: center; gap: 6px; font: 12px/1 var(--f-ui); color: var(--tenue); }
/* o contador: um odômetro de verdade (as dezenas andam junto com as unidades) */
.p3d-odo { display: inline-flex; font: 650 12.5px/14px var(--f-mono); color: var(--tinta); }
.p3d-odo__col { display: block; height: 14px; overflow: hidden; }
.p3d-odo__fita { display: flex; flex-direction: column; }
.p3d-odo__fita span { display: block; height: 14px; }
.p3d-odo__fita--dez { transform: translateY(-56px); }
.p3d-odo__fita--uni { transform: translateY(-658px); }

/* ---------- o fio do MCP ---------- */
.p3d-mcp { position: absolute; left: 210px; top: 62px; width: 126px; height: 8px; }
.p3d-mcp__trilho { position: absolute; inset: 0; border-radius: 4px; background: var(--marca-tint); }
.p3d-mcp__linha { position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: var(--marca); transform-origin: 0 50%; }
.p3d-pulso { position: absolute; left: 0; top: 1px; width: 14px; height: 6px; border-radius: 3px; background: var(--marca-forte);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); opacity: 0; }
.p3d-mcp__porta { position: absolute; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--sup); border: 2px solid var(--marca); }
.p3d-mcp__porta--pje { left: -6px; }
.p3d-mcp__porta--assessor { right: -6px; }
.p3d-mcp__selo { position: absolute; left: 10px; top: 16px; width: 108px; height: 22px; border-radius: var(--pilula); background: var(--sup);
  border: 1px solid var(--linha); display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 11px/1 var(--f-ui); color: var(--tinta-2); white-space: nowrap; }
.p3d-mcp__tempo { font-weight: 500; color: var(--tenue); margin-left: -3px; }
.p3d-vivo { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px var(--ok-fundo); }

/* ---------- o assessor ---------- */
.p3d-assessor { position: absolute; left: 330px; top: 16px; width: 92px; height: 92px; filter: drop-shadow(6px 10px 9px rgba(12, 50, 111, .2)); }
.p3d-robo { display: block; width: 100%; height: 100%; overflow: visible; }
.p3d-robo g, .p3d-robo__luz { transform-box: fill-box; transform-origin: center; }
.p3d-robo__cabeca { stroke: var(--tinta); stroke-width: .9; }
.p3d-robo__antena { stroke: var(--tinta); stroke-width: .9; stroke-linecap: round; }
.p3d-robo__orelha { fill: var(--ok); stroke: var(--tinta); stroke-width: .7; }
.p3d-robo__olho { fill: #FFFFFF; }
.p3d-robo__reflexo { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: .9; stroke-linecap: round; }
.p3d-robo__luz { fill: var(--amarelo); stroke: var(--tinta); stroke-width: .6; }
/* parado, ele olha para a mesa, onde chegaram as saídas */
.p3d-robo__olhar { transform: translate(1.2px, .7px); }

/* ---------- o que o assessor está fazendo ---------- */
.p3d-estado { position: absolute; left: 438px; top: 30px; padding: 10px 14px 11px; border-radius: 14px; background: var(--sup);
  border: 1px solid var(--linha); box-shadow: var(--p3d-sombra); display: flex; flex-direction: column; gap: 7px; }
.p3d-estado__quem { display: flex; align-items: center; gap: 7px; font: 650 13px/1 var(--f-ui); color: var(--titulo); white-space: nowrap; }
.p3d-mono-p { width: 18px; height: 18px; border-radius: 5px; flex: none; background: linear-gradient(135deg, #1351B4 0%, #0C326F 100%); }
.p3d-mono-p svg { display: block; width: 100%; height: 100%; }
.p3d-estado__linha { position: relative; display: flex; align-items: center; gap: 8px; height: 18px; }
.p3d-estado__ponto { position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; }
.p3d-estado__ponto--vivo { background: var(--marca); box-shadow: 0 0 0 3px var(--marca-tint); opacity: 0; }
.p3d-estado__ponto--ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-fundo); }
.p3d-falas { position: relative; display: block; margin-left: 17px; width: 140px; height: 18px; }
.p3d-fala { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 12.5px/18px var(--f-ui); color: var(--tinta-2); opacity: 0; }
.p3d-fala--fim { opacity: 1; color: var(--ok); font-weight: 600; }

/* ---------- a luz da leitura, do visor à folha ---------- */
.p3d-cone { position: absolute; left: 222px; top: 96px; width: 262px; height: 55px; opacity: .55;
  clip-path: polygon(54% 0, 63.5% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(19, 81, 180, .24), rgba(19, 81, 180, .05)); }

/* ---------- a folha citada, de pé e legível ---------- */
.p3d-foco-pos { position: absolute; left: 222px; top: 150px; width: 262px; height: 392px; transform-origin: 0 0; }
.p3d-foco { position: absolute; inset: 0; border-radius: 6px; background: var(--sup); border: 1px solid var(--linha-forte);
  box-shadow: var(--p3d-sombra-alta); padding: 14px 20px 0; font: 11px/1.55 "Tinos", "Times New Roman", serif; color: var(--tinta);
  transform-origin: 20% 90%;
  /* de onde a folha sai no voo (`p3d-vir`): a contestação na pilha, calculado pela
     projeção (origem 20% 90%, `perspective(1400px)`) e conferido por foto em 20/11/2026 */
  --p3d-voo-x: -132px; --p3d-voo-y: -159px; }
.p3d-foco__topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 9.5px/1 var(--f-mono); color: var(--tenue); }
.p3d-folio { position: relative; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--linha-forte); }
.p3d-folio__luz { position: absolute; inset: -1px; border-radius: 4px; background: var(--marca-tint); box-shadow: 0 0 0 1.5px var(--marca); }
.p3d-folio__txt { position: relative; font: 600 10px/1 var(--f-mono); color: var(--marca-forte); }
.p3d-foco__orgao { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; text-align: center; }
.p3d-foco__orgao b { font: 700 8.6px/1.2 "Tinos", "Times New Roman", serif; letter-spacing: .07em; }
.p3d-foco__orgao span { font: 8.4px/1.2 "Tinos", "Times New Roman", serif; color: var(--tinta-2); }
.p3d-foco__selo { width: 18px; height: 18px; margin-bottom: 2px; fill: none; stroke: var(--tinta-2); stroke-width: 1; stroke-linejoin: round; }
.p3d-foco__ao { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--linha); font: 700 9px/1.2 "Tinos", "Times New Roman", serif; letter-spacing: .03em; }
.p3d-foco__titulo { margin: 11px 0 8px; text-align: center; font: 700 12.5px/1 "Tinos", "Times New Roman", serif; letter-spacing: .14em; }
.p3d-foco__texto { position: relative; }
.p3d-foco p { margin: 0; text-align: justify; text-align-last: justify; text-indent: 22px; }
.p3d-marcada { position: relative; display: block; z-index: 0; white-space: nowrap; letter-spacing: -0.012em; text-align: justify; text-align-last: justify; }
.p3d-realce { position: absolute; left: -2px; right: -2px; top: 2px; bottom: 1px; z-index: -1; border-radius: 2px; background: var(--p3d-marcatexto); transform-origin: 0 50%; }
.p3d-foco__secao { display: block; margin-top: 9px; font: 700 10px/1.4 "Tinos", "Times New Roman", serif; letter-spacing: .03em; }
.p3d-foco__linhas { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.p3d-foco__linhas i { display: block; height: 4px; border-radius: 2px; background: var(--linha); }
/* o leitor: a faixa de luz que varre as linhas até a citação */
.p3d-leitor { position: absolute; left: -8px; right: -8px; top: -4px; height: 20px; border-radius: 3px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(19, 81, 180, 0), rgba(19, 81, 180, .12)); border-bottom: 1.5px solid rgba(19, 81, 180, .7); }
/* o carimbo da assinatura eletrônica, discreto: o cargo, nunca um nome */
.p3d-foco__assin { position: absolute; left: 20px; right: 20px; bottom: 12px; display: flex; align-items: center; gap: 7px; padding-top: 8px;
  border-top: 1px solid var(--linha); font: 7.8px/1.35 var(--f-ui); color: var(--tenue); }
.p3d-foco__assin svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--tenue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- o fio da citação: da linha marcada ao "fl. 88" ---------- */
.p3d-fio { position: absolute; left: 464px; top: 319px; width: 52px; height: 44px; overflow: hidden; pointer-events: none; }
.p3d-fio__svg { display: block; width: 52px; height: 44px; overflow: visible; }
.p3d-fio__svg path { fill: none; stroke: var(--marca); stroke-width: 1.7; stroke-linecap: round; }
.p3d-fio__ponta { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--marca); }
.p3d-fio__ponta--ini { left: 462.5px; top: 355.5px; }
.p3d-fio__ponta--fim { left: 509.5px; top: 319.5px; }

/* ---------- as saídas, na mesa de quem decide ---------- */
/* ⚠️ O único rótulo que cairia direto sobre o fundo (a estante desfocada): leva superfície
   própria, como o selo do MCP — `--tenue` sobre uma lombada escura ficava abaixo do AA. */
.p3d-mesa-rot { position: absolute; left: 500px; top: 118px; width: 212px; height: 28px; padding: 0 3px 0 12px; border-radius: var(--pilula);
  background: var(--sup); border: 1px solid var(--linha); display: flex; align-items: center; justify-content: space-between;
  font: 600 12.5px/1 var(--f-ui); color: var(--tinta-2); }
.p3d-mesa-conta { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--pilula); background: var(--marca-tint);
  color: var(--marca-forte); font: 600 11.5px/1 var(--f-ui); }
.p3d-saida { position: absolute; left: 500px; width: 212px; padding: 12px 14px 13px; border-radius: 12px; background: var(--sup);
  border: 1px solid var(--linha); box-shadow: var(--p3d-sombra); display: flex; flex-direction: column; gap: 7px;
  font: 12.5px/1.42 var(--f-ui); color: var(--tinta); }
.p3d-saida--triagem { top: 152px; }
.p3d-saida--analise { top: 276px; }
.p3d-saida--minuta { top: 418px; }
.p3d-saida__rot { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--f-ui); color: var(--tenue); }
.p3d-saida__rot svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--marca); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p3d-saida__corpo { display: flex; flex-direction: column; gap: 5px; }
.p3d-saida__ato { font-weight: 650; }
.p3d-saida__vez { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--tenue); font-size: 12px; }
.p3d-saida__curto { display: none; }
.p3d-atencao { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--pilula); background: var(--atencao-fundo);
  color: var(--atencao); font: 600 11px/1 var(--f-ui); white-space: nowrap; }
.p3d-cita { position: relative; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--marca-tint);
  color: var(--marca-forte); font: 500 12px/1 var(--f-mono); white-space: nowrap; }
.p3d-cita__luz { position: absolute; inset: -4px; border-radius: 9px; box-shadow: 0 0 0 4px rgba(19, 81, 180, .16); opacity: 0; }
.p3d-saida__corpo--minuta { flex-direction: row; align-items: center; gap: 12px; }
.p3d-mini { flex: none; width: 40px; height: 52px; padding: 6px 5px; border-radius: 3px; background: var(--sup); border: 1px solid var(--linha-forte);
  box-shadow: 3px 6px 10px -6px rgba(12, 50, 111, .35); display: flex; flex-direction: column; gap: 4px; }
.p3d-mini b { display: block; font: 700 5px/1 "Tinos", "Times New Roman", serif; letter-spacing: .08em; text-align: center; margin-bottom: 2px; color: var(--tinta); }
.p3d-mini i { display: block; height: 3px; border-radius: 2px; background: var(--linha-forte); transform-origin: 0 50%; }
.p3d-saida__minuta { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.p3d-pronta { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--pilula); background: var(--ok-fundo);
  color: var(--ok); font: 600 11.5px/1 var(--f-ui); white-space: nowrap; }

/* ================= compacto (caixa estreita, o celular) ================= */
/* A mesma história em 480 × 620: o PJe, o fio e o assessor em cima; a pilha e a
   folha no meio; as três saídas em linhas embaixo, com o texto curto. */
.p3d-caixa.is-compacto .p3d-pje { left: 12px; top: 18px; width: 178px; padding: 10px 12px 11px; }
.p3d-caixa.is-compacto .p3d-num { font-size: 10.4px; }
.p3d-caixa.is-compacto .p3d-mcp { --p3d-mcp-l: 64px; left: 190px; top: 54px; width: 72px; }
.p3d-caixa.is-compacto .p3d-mcp__selo { left: 9px; width: 54px; }
.p3d-caixa.is-compacto .p3d-mcp__tempo { display: none; }
.p3d-caixa.is-compacto .p3d-assessor { left: 258px; top: 16px; width: 70px; height: 70px; }
.p3d-caixa.is-compacto .p3d-estado { left: 330px; top: 18px; width: 146px; padding: 9px 9px 10px 10px; gap: 6px; }
.p3d-caixa.is-compacto .p3d-mono-p { display: none; }
.p3d-caixa.is-compacto .p3d-estado__quem { font-size: 12px; }
.p3d-caixa.is-compacto .p3d-falas { margin-left: 14px; width: 112px; }
.p3d-caixa.is-compacto .p3d-fala { font-size: 11px; }
.p3d-caixa.is-compacto .p3d-halo { left: 104px; top: -140px; }
.p3d-caixa.is-compacto .p3d-estante { left: 250px; filter: blur(2.6px); }
.p3d-caixa.is-compacto .p3d-cone { left: 172px; top: 84px; width: 214px; height: 24px; clip-path: polygon(51% 0, 63% 0, 100% 100%, 0 100%); }
.p3d-caixa.is-compacto .p3d-pilha { left: 16px; top: 204px; transform: rotateX(58deg) rotateZ(-34deg) scale(.74); }
.p3d-caixa.is-compacto .p3d-foco-pos { left: 172px; top: 106px; transform: scale(.82); }
.p3d-caixa.is-compacto .p3d-foco { --p3d-voo-x: -141px; --p3d-voo-y: -106px; }
.p3d-caixa.is-compacto :is(.p3d-fio, .p3d-fio__ponta, .p3d-mesa-rot, .p3d-saida__corpo) { display: none; }
.p3d-caixa.is-compacto .p3d-saida { left: 12px; width: 456px; height: 52px; padding: 0 14px; flex-direction: row; align-items: center; gap: 12px; font-size: 13px; }
.p3d-caixa.is-compacto .p3d-saida__rot { flex: none; width: 88px; font-size: 12.5px; }
.p3d-caixa.is-compacto .p3d-saida__curto { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; }
.p3d-caixa.is-compacto .p3d-saida--analise { top: 434px; }
.p3d-caixa.is-compacto .p3d-saida--triagem { top: 494px; }
.p3d-caixa.is-compacto .p3d-saida--minuta { top: 554px; }

/* ================= o movimento (só com `.is-vivo`) =================
 * O roteiro, no hero (toca uma vez, ~8,7 s):
 *   0,0  o gabinete já está lá; a câmera se aproxima devagar (9 s)
 *   0,15 as folhas caem na pilha, uma a uma — o volume é o problema
 *   0,3  o PJe com os autos do processo
 *   0,9  o assessor acorda: surge, a antena acende, os olhos abrem
 *   1,45 o fio do MCP se estende do PJe ao assessor; 2,1 os pulsos correm
 *   2,4  o feixe sobe pela pilha; 2,6 o contador mapeia as 47 peças
 *   3,9  a contestação acende; 4,2 a folha vem à frente; 4,6 a luz da leitura
 *   5,0  o leitor varre as linhas; 5,85 o marca-texto, linha a linha; 5,9 a fl. 88
 *   6,2  o fio liga a linha marcada ao "fl. 88" da análise
 *   6,35 / 6,9 / 7,45  análise, triagem e minuta chegam à mesa, escalonadas
 *   7,6  "Pronto para revisar"; 8,4 "3 para revisar"
 * No Entrar, depois disso, a conexão segue viva devagar (pulsos, feixe, olhos). */
@media (prefers-reduced-motion: no-preference) {
  .p3d.is-vivo .p3d-fundo__camera { animation: p3d-camera 9s cubic-bezier(.22, .61, .2, 1) both; animation-delay: calc(0s - var(--t)); }
  .p3d.is-vivo .p3d-halo { animation: p3d-surgir 1.6s ease-out both; animation-delay: calc(.9s - var(--t)); }

  .p3d.is-vivo .p3d-folha { animation: p3d-cair .9s cubic-bezier(.25, .8, .25, 1) both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-sombra { animation: p3d-surgir 1s ease-out both; animation-delay: calc(.1s - var(--t)); }
  .p3d.is-vivo .p3d-brilho { animation: p3d-surgir .45s ease-out both; animation-delay: calc(3.9s - var(--t)); }
  .p3d.is-vivo .p3d-veu { animation: p3d-surgir .7s ease-in-out both; animation-delay: calc(4.3s - var(--t)); }
  .p3d.is-vivo .p3d-feixe { animation: p3d-varrer 1.7s cubic-bezier(.45, 0, .2, 1) both; animation-delay: calc(2.4s - var(--t)); }

  .p3d.is-vivo .p3d-pje { animation: p3d-subir .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.3s - var(--t)); }
  .p3d.is-vivo .p3d-odo__fita { animation: p3d-contar 1.5s cubic-bezier(.3, .1, .2, 1) both; animation-delay: calc(2.6s - var(--t)); }

  .p3d.is-vivo .p3d-assessor { animation: p3d-acordar .8s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(.9s - var(--t)); }
  .p3d.is-vivo .p3d-robo__luz { animation: p3d-acender 1.2s ease-out both; animation-delay: calc(1.45s - var(--t)); }
  .p3d.is-vivo .p3d-robo__palpebra { animation: p3d-abrir-olho .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.5s - var(--t)); }
  .p3d.is-vivo .p3d-robo__varre { animation: p3d-robo-varre 1s ease-in-out 3; animation-delay: calc(2.6s - var(--t)); }
  .p3d.is-vivo .p3d-robo__olhar { animation: p3d-olhar-mesa .6s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(7.6s - var(--t)); }

  .p3d.is-vivo .p3d-estado { animation: p3d-subir .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.15s - var(--t)); }
  .p3d.is-vivo .p3d-fala { animation: p3d-fala var(--dur) ease-in-out both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-fala--fim { animation: p3d-subir .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(7.6s - var(--t)); }
  .p3d.is-vivo .p3d-estado__ponto--vivo { animation: p3d-trabalhando 6.4s linear both; animation-delay: calc(1.2s - var(--t)); }
  .p3d.is-vivo .p3d-estado__ponto--ok { animation: p3d-surgir .4s ease-out both; animation-delay: calc(7.6s - var(--t)); }

  .p3d.is-vivo .p3d-mcp__trilho { animation: p3d-surgir .5s ease-out both; animation-delay: calc(1.4s - var(--t)); }
  .p3d.is-vivo .p3d-mcp__linha { animation: p3d-estender .65s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(1.45s - var(--t)); }
  .p3d.is-vivo .p3d-mcp__porta { animation: p3d-pingo .4s cubic-bezier(.2, .8, .2, 1.4) both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-mcp__selo { animation: p3d-subir .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(2s - var(--t)); }
  .p3d.is-vivo .p3d-pulso { animation: p3d-pulso .95s cubic-bezier(.45, 0, .55, 1) 3 both; animation-delay: calc(var(--d) - var(--t)); }

  .p3d.is-vivo .p3d-cone { animation: p3d-cone 3.4s ease-in-out both; animation-delay: calc(4.5s - var(--t)); }
  .p3d.is-vivo .p3d-foco { animation: p3d-vir 1.15s cubic-bezier(.2, .9, .25, 1.02) both; animation-delay: calc(4.2s - var(--t)); }
  .p3d.is-vivo .p3d-leitor { animation: p3d-ler-linhas 1.05s cubic-bezier(.45, 0, .4, 1) both; animation-delay: calc(4.95s - var(--t)); }
  .p3d.is-vivo .p3d-realce { animation: p3d-marcar .38s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-folio__luz { animation: p3d-surgir .5s ease-out both; animation-delay: calc(5.9s - var(--t)); }

  .p3d.is-vivo .p3d-fio { animation: p3d-revelar .6s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(6.2s - var(--t)); }
  .p3d.is-vivo .p3d-fio__svg { animation: p3d-revelar-dentro .6s cubic-bezier(.5, 0, .3, 1) both; animation-delay: calc(6.2s - var(--t)); }
  .p3d.is-vivo .p3d-fio__ponta--ini { animation: p3d-pingo .4s cubic-bezier(.2, .8, .2, 1.4) both; animation-delay: calc(6.15s - var(--t)); }
  .p3d.is-vivo .p3d-fio__ponta--fim { animation: p3d-pingo .4s cubic-bezier(.2, .8, .2, 1.4) both; animation-delay: calc(6.75s - var(--t)); }

  .p3d.is-vivo .p3d-mesa-rot { animation: p3d-surgir .5s ease-out both; animation-delay: calc(6s - var(--t)); }
  .p3d.is-vivo .p3d-mesa-conta { animation: p3d-pingo .45s cubic-bezier(.2, .8, .2, 1.3) both; animation-delay: calc(8.4s - var(--t)); }
  .p3d.is-vivo .p3d-saida { animation: p3d-chegar .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-cita__luz { animation: p3d-pulsar .9s ease-out both; animation-delay: calc(6.8s - var(--t)); }
  .p3d.is-vivo .p3d-mini i { animation: p3d-marcar .3s ease-out both; animation-delay: calc(var(--d) - var(--t)); }
  .p3d.is-vivo .p3d-pronta { animation: p3d-pingo .45s cubic-bezier(.2, .8, .2, 1.3) both; animation-delay: calc(8.2s - var(--t)); }

  /* o Entrar: depois da abertura, a conexão segue viva devagar (com o "Pausar animação") */
  .p3d--laco.is-vivo .p3d-pulso { animation: p3d-pulso .95s cubic-bezier(.45, 0, .55, 1) 3 both, p3d-pulso 2.6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--d) - var(--t)), calc(var(--d) + 7s - var(--t)); }
  .p3d--laco.is-vivo .p3d-feixe { animation: p3d-varrer 1.7s cubic-bezier(.45, 0, .2, 1) both, p3d-ler 7s ease-in-out infinite; animation-delay: calc(2.4s - var(--t)), calc(9.2s - var(--t)); }
  .p3d--laco.is-vivo .p3d-robo__varre { animation: p3d-robo-varre 1s ease-in-out 3, p3d-robo-reler 7s ease-in-out infinite; animation-delay: calc(2.6s - var(--t)), calc(9.6s - var(--t)); }
  .p3d--laco.is-vivo .p3d-robo__piscar { animation: p3d-piscar 5.5s ease-in-out infinite; animation-delay: calc(9s - var(--t)); }
  .p3d--laco.is-vivo .p3d-robo__luz { animation: p3d-acender 1.2s ease-out both, p3d-respirar 3.2s ease-in-out infinite; animation-delay: calc(1.45s - var(--t)), calc(9s - var(--t)); }
  .p3d--laco.is-vivo .p3d-leitor { animation: p3d-ler-linhas 1.05s cubic-bezier(.45, 0, .4, 1) both, p3d-reler 7s ease-in-out infinite; animation-delay: calc(4.95s - var(--t)), calc(10.4s - var(--t)); }
}

@keyframes p3d-camera { from { transform: scale(1.07) translate(-8px, 6px); } }
@keyframes p3d-surgir { from { opacity: 0; } }
@keyframes p3d-cair { from { transform: translateZ(calc(var(--z) + 110px)); opacity: 0; } 55% { opacity: 1; } }
@keyframes p3d-varrer {
  from { transform: translateZ(-30px); opacity: 0; }
  14% { opacity: 1; }
  66% { transform: translateZ(124px); opacity: 1; }
  to { transform: translateZ(62px); opacity: .45; }
}
@keyframes p3d-subir { from { opacity: 0; transform: translateY(10px); } }
@keyframes p3d-contar { from { transform: translateY(0); } }
@keyframes p3d-acordar { from { opacity: 0; transform: translateY(10px) scale(.86); } }
@keyframes p3d-acender { from { opacity: .2; } }
@keyframes p3d-abrir-olho { from { transform: scaleY(.12); } }
@keyframes p3d-robo-varre { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-1.6px); } 72% { transform: translateX(1.6px); } }
@keyframes p3d-olhar-mesa { from { transform: translate(0, 0); } }
@keyframes p3d-fala {
  0% { opacity: 0; transform: translateY(6px); }
  14%, 84% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes p3d-trabalhando { 0% { opacity: 0; } 4%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes p3d-estender { from { transform: scaleX(0); } }
@keyframes p3d-pingo { from { transform: scale(0); } }
@keyframes p3d-pulso {
  0% { transform: translateX(0); opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { transform: translateX(var(--p3d-mcp-l)); opacity: 0; }
}
@keyframes p3d-cone { 0% { opacity: 0; } 16%, 82% { opacity: 1; } 100% { opacity: .5; } }
@keyframes p3d-vir {
  from { transform: perspective(1400px) translate3d(var(--p3d-voo-x), var(--p3d-voo-y), -120px) rotateX(58deg) rotateZ(-34deg) scale(.72); opacity: 0; }
  28% { opacity: 1; }
}
@keyframes p3d-ler-linhas {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  84% { transform: translateY(var(--p3d-leitor-y, 52px)); opacity: 1; }
  100% { transform: translateY(var(--p3d-leitor-y, 52px)); opacity: 0; }
}
@keyframes p3d-marcar { from { transform: scaleX(0); } }
@keyframes p3d-revelar { from { transform: translateX(-52px); } }
@keyframes p3d-revelar-dentro { from { transform: translateX(52px); } }
@keyframes p3d-chegar { from { opacity: 0; transform: translateX(-18px); } }
@keyframes p3d-pulsar { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes p3d-ler {
  0% { transform: translateZ(-30px); opacity: 0; }
  10% { opacity: .9; }
  48% { transform: translateZ(124px); opacity: .9; }
  60%, 100% { transform: translateZ(124px); opacity: 0; }
}
@keyframes p3d-robo-reler { 0%, 62%, 100% { transform: translateX(0); } 72% { transform: translateX(-1.6px); } 86% { transform: translateX(1.6px); } }
@keyframes p3d-piscar { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes p3d-respirar { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes p3d-reler {
  0%, 70% { transform: translateY(0); opacity: 0; }
  74% { opacity: .8; }
  92% { transform: translateY(var(--p3d-leitor-y, 52px)); opacity: .8; }
  100% { transform: translateY(var(--p3d-leitor-y, 52px)); opacity: 0; }
}

/* parada: a espera das fontes (no 1º quadro), a pausa do rodapé, o congelamento */
.p3d.is-espera *, .lv4.is-pausado .p3d *, .p3d.is-parado * { animation-play-state: paused !important; }
