.portfolio-category-wrap { position: relative; min-width: 0; }
.portfolio-new-badge {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  box-sizing: border-box;
  padding: 6px 13px;
  border: 1px solid #ffd5ad;
  border-radius: 999px;
  background: #ffad61;
  color: #422006;
  font: 800 13px/1.2 var(--font-body, sans-serif);
  letter-spacing: .035em;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px #43200826;
  pointer-events: none;
  isolation: isolate;
}
.portfolio-new-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}
.portfolio-new-badge::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid #ed8b35;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: portfolio-new-halo 2.4s ease-out 2;
}
.portfolio-category-wrap > .portfolio-new-badge {
  top: -15px;
  right: 50%;
  transform: translateX(50%);
}
.project-card { position: relative; }
@keyframes portfolio-new-halo {
  0%, 12% { opacity: 0; transform: scale(1); }
  24% { opacity: .55; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(1.18, 1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-new-badge::after { animation: none; }
}
