/* Project category taxonomy archive — shared with portfolio page hero */

body.tax-project_category .background-img {
  overflow: visible;
}

.pf-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pf-hero::before,
.pf-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  animation: pfFloat 14s ease-in-out infinite;
}

.pf-hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #dcdcff 0%, transparent 70%);
  top: -160px;
  left: -120px;
}

.pf-hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #e8f0ff 0%, transparent 70%);
  top: -60px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes pfFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

.pf-hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image: radial-gradient(rgba(10, 15, 31, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at top left, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top left, black 20%, transparent 70%);
}

.pf-headline {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0a0f1f;
}

.pf-accent {
  background: linear-gradient(120deg, #0000ff, #4d4dff, #a5a5ff, #0000ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pfGrad 8s linear infinite;
}

@keyframes pfGrad {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.pf-swoosh {
  position: relative;
  display: inline-block;
}

.pf-swoosh::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -6px;
  height: 10px;
  background: linear-gradient(90deg, transparent, #0000ff33, transparent);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  animation: pfUnderline 1.1s 0.6s ease-out forwards;
}

@keyframes pfUnderline {
  to {
    transform: scaleX(1);
  }
}

.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 255, 0.06);
  color: #0000ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 255, 0.12);
}

.pf-eyebrow .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pfPulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
}

@keyframes pfPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pf-search {
  position: relative;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #0000ff, #9a9aff, #0000ff) border-box;
  border: 1.5px solid transparent;
  border-radius: 18px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pf-search:focus-within {
  box-shadow: 0 18px 40px -20px rgba(0, 0, 255, 0.4);
  transform: translateY(-1px);
}

.pf-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid #e5e7ef;
}

.pf-stat:last-child {
  border-right: 0;
}

.pf-stat .num {
  font-size: 22px;
  font-weight: 900;
  color: #0a0f1f;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pf-stat .lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-chipbar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.portfolio-chipscroll {
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.portfolio-chipscroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.portfolio-chipbar.is-scrolled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2.5rem;
  background: linear-gradient(to right, #fbfbfc, transparent);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero::before,
  .pf-hero::after,
  .pf-accent,
  .pf-swoosh::after {
    animation: none !important;
  }
}
