/* About page only. Usable without animation or JavaScript. */
.certifications { margin: 32px 0; scroll-margin-top: 85px; }
.certifications .badge-carousel { overflow-x: auto; padding: 12px 0; }
.certifications .badge-track { display: flex; width: max-content; }
.certifications .badge-group { display: flex; flex-shrink: 0; }
.certifications .badge-item {
  flex: 0 0 150px; box-sizing: border-box; padding: 10px 12px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; color: inherit;
  text-decoration: none !important; line-height: 1.4;
}
.certifications .badge-item img {
  display: block; width: 120px; height: 120px; object-fit: contain;
  margin: 0; border-radius: 0; box-shadow: none;
}
.certifications .badge-item span { font-size: .85rem; }
.certifications .badge-item:hover span { text-decoration: underline; }
.certifications .badge-item:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }

.certifications.is-animated .badge-carousel { overflow: hidden; mask-image: linear-gradient(to right,transparent,black 5%,black 95%,transparent); }
.certifications.is-animated .badge-track { animation: credential-scroll var(--badge-duration,35s) linear infinite; }
.certifications.is-animated .badge-carousel:hover .badge-track,
.certifications.is-animated.is-paused .badge-track { animation-play-state: paused; }
/* Keyboard focus gets the original, non-moving row, with ordinary scrolling. */
.certifications.is-animated .badge-carousel:has(.badge-item:focus-visible) { overflow-x: auto; mask-image: none; }
.certifications.is-animated .badge-carousel:has(.badge-item:focus-visible) .badge-track { animation: none; transform: none; }
.certifications.is-animated .badge-carousel:has(.badge-item:focus-visible) .badge-group[data-copy] { display: none; }
@keyframes credential-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--badge-distance, 600px))); } }
@media (prefers-reduced-motion: reduce) {
  .certifications.is-animated .badge-carousel { overflow-x: auto; mask-image: none; }
  .certifications.is-animated .badge-track { animation: none; transform: none; }
  .certifications .badge-group[data-copy], .certifications .badge-pause { display: none !important; }
}
