/* Chunk G: secțiunea Echipă — intrare „explozivă”, glitch digital, tilt 3D. Fără conținut nou. */
#echipa { overflow: hidden; }
#echipa::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(0,166,224,.22), transparent 70%),
    radial-gradient(50% 45% at 90% 85%, rgba(241,116,26,.18), transparent 70%),
    linear-gradient(rgba(0,166,224,.08) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(0,166,224,.08) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  animation: pmd-grid-drift 18s linear infinite;
}
@keyframes pmd-grid-drift { to { background-position: 0 0, 0 0, 0 44px, 44px 0; } }
#echipa h2.pmd-glitch { position: relative; }
#echipa h2.pmd-glitch.is-in { animation: pmd-glitch .9s steps(2, end) 1; }
#echipa h2.pmd-glitch:hover { animation: pmd-glitch .6s steps(2, end) 1; }
@keyframes pmd-glitch {
  0% { text-shadow: 4px 0 #00A6E0, -4px 0 #F1741A; clip-path: inset(0 0 60% 0); }
  20% { text-shadow: -5px 0 #00A6E0, 5px 0 #FF5A4E; clip-path: inset(40% 0 20% 0); translate: 3px 0; }
  40% { text-shadow: 3px 2px #FFC61E, -3px -2px #00A6E0; clip-path: inset(10% 0 50% 0); translate: -3px 0; }
  60% { text-shadow: -2px 0 #00A6E0, 2px 0 #F1741A; clip-path: inset(0); translate: 1px 0; }
  100% { text-shadow: none; clip-path: inset(0); translate: 0; }
}
.pmd-team-prompt { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: .08em; color: #7FD8F5; }
.pmd-team-prompt::after { content: ""; width: .6em; height: 1.1em; background: #7FD8F5; animation: pmd-caret 1s steps(1) infinite; }
@keyframes pmd-caret { 50% { opacity: 0; } }

/* Intrare: carduri care „explodează” din adâncime, în cascadă. */
#echipa .pmd-team-grid > [data-reveal] { position: relative; }
#echipa .pmd-team-grid.pmd-fx > [data-reveal]:not(.is-in) { opacity: 0 !important; scale: .78; rotate: var(--fx-rot, -4deg); filter: blur(10px) saturate(2); }
#echipa .pmd-team-grid.pmd-fx > [data-reveal].is-in { animation: pmd-team-burst .9s cubic-bezier(.16,1.3,.3,1) var(--fx-delay, 0s) both; }
@keyframes pmd-team-burst {
  0% { opacity: 0; scale: .78; rotate: var(--fx-rot, -4deg); filter: blur(10px) saturate(2); }
  55% { opacity: 1; scale: 1.04; rotate: 0deg; filter: blur(0) saturate(1.4); }
  100% { opacity: 1; scale: 1; rotate: 0deg; filter: none; }
}
/* Undă de șoc la intrare. */
#echipa .pmd-team-grid > [data-reveal]::after {
  content: ""; position: absolute; left: 50%; top: 40%; width: 140%; aspect-ratio: 1; z-index: 3; pointer-events: none;
  border-radius: 50%; translate: -50% -50%; scale: 0; opacity: 0;
  background: radial-gradient(circle, transparent 52%, rgba(127,216,245,.65) 58%, rgba(255,198,30,.35) 62%, transparent 68%);
}
#echipa .pmd-team-grid.pmd-fx > [data-reveal].is-in::after { animation: pmd-shock .95s ease-out calc(var(--fx-delay, 0s) + .12s) 1 both; }
@keyframes pmd-shock { 0% { scale: 0; opacity: 1; } 100% { scale: 1.3; opacity: 0; } }

/* Foto: tilt 3D, linii de scanare, separare RGB la hover. */
#echipa .pmd-team-card > div:first-child { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .25s ease-out; overflow: hidden; }
#echipa .pmd-team-card > div:first-child img { transition: transform .6s cubic-bezier(.2,.8,.3,1), filter .4s; }
#echipa .pmd-team-card:hover > div:first-child img { transform: scale(1.07); filter: contrast(1.08) saturate(1.15); }
#echipa .pmd-team-card > div:first-child::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: repeating-linear-gradient(180deg, rgba(127,216,245,.10) 0 1px, transparent 1px 4px),
    radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 30%), rgba(255,255,255,.28), transparent 45%);
  mix-blend-mode: screen;
}
#echipa .pmd-team-card > div:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0,166,224,.35), transparent);
}
#echipa .pmd-team-card:hover > div:first-child::before { opacity: 1; }
#echipa .pmd-team-card:hover > div:first-child::after { opacity: 1; animation: pmd-scan 1.4s linear infinite; }
@keyframes pmd-scan { to { top: 100%; } }
#echipa .pmd-team-card:hover h3 { animation: pmd-glitch .5s steps(2, end) 1; }

@media (prefers-reduced-motion: reduce) {
  #echipa::before, .pmd-team-prompt::after { animation: none !important; }
  #echipa h2.pmd-glitch, #echipa h2.pmd-glitch:hover, #echipa .pmd-team-card:hover h3 { animation: none !important; }
  #echipa .pmd-team-grid.pmd-fx > [data-reveal] { opacity: 1 !important; scale: 1 !important; rotate: 0deg !important; filter: none !important; animation: none !important; }
  #echipa .pmd-team-grid > [data-reveal]::after { display: none; }
  #echipa .pmd-team-card > div:first-child { transform: none !important; transition: none; }
  #echipa .pmd-team-card > div:first-child img { transition: none; transform: none !important; }
  #echipa .pmd-team-card:hover > div:first-child::after { animation: none; opacity: 0; }
}
