/* Equipe digital: seção compartilhada pela home e pelo Escritório (partials/equipe.html) */
.equipe__head { max-width: 780px; }
.equipe__head .lede { margin-top: 18px; }
.equipe__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vh, 72px);
}
@media (max-width: 960px) { .equipe__grid { grid-template-columns: 1fr; } }

/* órbita */
.orbita { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.orbita__vias { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* espessura em unidades do viewBox (100 = largura da órbita); non-scaling-stroke quebraria o pathLength */
.via {
  fill: none; stroke: var(--line-strong); stroke-width: .25;
  stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .5s, opacity .5s;
}
.via--pulso { stroke: var(--c); stroke-width: .6; stroke-linecap: round; stroke-dasharray: .3 1.4; stroke-dashoffset: .3; opacity: 0; }
.via--pulso.is-on { animation: equipe-pulso .9s var(--ease) forwards; }
@keyframes equipe-pulso {
  0% { stroke-dashoffset: .3; opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}

.ag {
  --s: 84px;
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); margin: 0; width: max-content;
  transform: translate(-50%, calc(-1 * var(--s) / 2)); text-align: center; cursor: pointer; outline: none;
}
.ag img {
  display: block; width: var(--s); height: var(--s); max-width: none; margin: 0 auto; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.ag figcaption { margin-top: 10px; line-height: 1.25; white-space: nowrap; }
.ag strong { display: block; font-size: 14px; font-weight: 700; color: var(--fg); }
.ag span { display: block; font-size: 12px; color: var(--fg-3); }
.ag.is-on img, .ag:hover img, .ag:focus-visible img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--c), 0 0 34px color-mix(in srgb, var(--c) 55%, transparent);
}
.ag--lia { --s: 136px; cursor: default; z-index: 1; }
.ag--lia img { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--blue), 0 0 60px var(--glow); }
.ag--lia.is-ping img { animation: equipe-ping .8s var(--ease); }
@keyframes equipe-ping {
  0% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--blue), 0 0 0 6px rgba(92, 134, 207, .55); }
  100% { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--blue), 0 0 0 26px rgba(92, 134, 207, 0); }
}

/* entrada: só esconde quando o JS assume (sem JS, tudo aparece) */
.orbita.is-armed .ag { opacity: 0; scale: .6; transition: opacity .6s var(--ease), scale .6s var(--ease); }
.orbita.is-armed .ag:not(.ag--lia) { transition-delay: calc(var(--i, 0) * 90ms + 450ms); }
.orbita.is-armed .via:not(.via--pulso) { stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease) calc(var(--i, 0) * 90ms + 250ms), stroke .5s; }
.orbita.is-in .ag { opacity: 1; scale: 1; }
.orbita.is-in .via:not(.via--pulso) { stroke-dashoffset: 0; }
.via.is-on:not(.via--pulso) { stroke: color-mix(in srgb, var(--c) 60%, transparent); }

@media (max-width: 640px) {
  .ag { --s: 56px; }
  .ag--lia { --s: 92px; }
  .ag strong { font-size: 12px; }
  .ag span { display: none; }
  .ag--lia span { display: block; font-size: 11px; }
  .chat { height: 380px; }
}

/* conversa com a Lia */
.chat {
  display: flex; flex-direction: column; height: 470px; max-width: 460px; width: 100%; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__top img { width: 40px; height: 40px; border-radius: 50%; }
.chat__top strong { display: block; font-size: 15px; color: var(--fg); }
.chat__top span { font-size: 12px; color: var(--ok); }
.chat__feed {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px;
  overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%);
}
.msg {
  align-self: flex-start; max-width: 94%; display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 10px 12px; background: var(--surface-2); border-radius: 4px 14px 14px 14px;
  font-size: 14px; line-height: 1.45; color: var(--fg-2); animation: equipe-msg .45s var(--ease) both;
}
.msg img { width: 28px; height: 28px; border-radius: 50%; }
.msg b { display: block; font-size: 12px; font-weight: 700; color: var(--c); margin-bottom: 2px; }
.msg__acts { display: flex; gap: 6px; margin-top: 8px; }
.msg__acts span { padding: 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--fg); }
.msg__acts span:first-child { background: var(--c); border-color: var(--c); color: var(--ink); font-weight: 600; }
.msg--digitando { grid-template-columns: auto; padding: 12px 14px; }
.msg--digitando i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--fg-3); animation: equipe-dot 1s infinite; }
.msg--digitando i:nth-child(2) { animation-delay: .15s; }
.msg--digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes equipe-msg { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes equipe-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .orbita.is-armed .ag, .orbita.is-armed .via, .ag img, .msg { transition: none !important; animation: none !important; }
}
