.specialization-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #0d0d0d 0%, #1a1a1a 55%, #241c12 100%);
  padding: 44px 0 48px;
}

/* top & bottom glowing gradient dividers */
.specialization-strip__divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 146, 91, 0.9), transparent);
  animation: specDividerGlow 3.6s ease-in-out infinite;
}
.specialization-strip__divider--top { top: 0; }
.specialization-strip__divider--bottom { bottom: 0; }

@keyframes specDividerGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* subtle twinkling sparkle dots in the background */
.specialization-strip__sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #bf925b;
  box-shadow: 0 0 6px 1px rgba(191, 146, 91, 0.8);
  opacity: 0.25;
  animation: specSparkleTwinkle 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.specialization-strip__sparkle:nth-child(1) { top: 22%; left: 8%; animation-delay: 0s; }
.specialization-strip__sparkle:nth-child(2) { top: 65%; left: 22%; animation-delay: 0.7s; }
.specialization-strip__sparkle:nth-child(3) { top: 30%; left: 46%; animation-delay: 1.4s; }
.specialization-strip__sparkle:nth-child(4) { top: 72%; left: 63%; animation-delay: 0.4s; }
.specialization-strip__sparkle:nth-child(5) { top: 18%; left: 80%; animation-delay: 1.9s; }
.specialization-strip__sparkle:nth-child(6) { top: 60%; left: 92%; animation-delay: 1.1s; }

@keyframes specSparkleTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.6); }
}

/* diagonal shine sweep passing over the whole strip every few seconds */
.specialization-strip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 22%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(244, 236, 226, 0.08), transparent);
  transform: skewX(-20deg);
  animation: specShineSweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes specShineSweep {
  0% { left: -30%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

.specialization-strip__eyebrow {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #bf925b;
  margin: 0 0 24px;
  opacity: 0.9;
}

/* fades text at both edges so it never looks cut off */
.specialization-strip__marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* JS applies a scroll-linked nudge to this wrapper (no CSS animation here) */
.specialization-strip__marquee-wrap {
  display: inline-block;
  width: 100%;
}

/* CSS keyframe drives the actual continuous infinite scroll */
.specialization-strip__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: specMarqueeScroll 30s linear infinite;
  will-change: transform;
}

.specialization-strip__marquee:hover .specialization-strip__track {
  animation-play-state: paused;
}

@keyframes specMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.specialization-strip__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: clamp(12.5px, 1.6vw, 16px);
  color: #f4ece2;
}

.specialization-strip__item--brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 2px;
  background: linear-gradient(90deg, #bf925b 0%, #f3d9ab 50%, #bf925b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: specTextShimmer 3.2s linear infinite;
}

@keyframes specTextShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.specialization-strip__icon {
  color: #bf925b;
  font-size: 1em;
  line-height: 1;
  opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
  .specialization-strip { padding: 34px 0 38px; }
  .specialization-strip__eyebrow { font-size: 10.5px; letter-spacing: 0.26em; margin-bottom: 18px; }
  .specialization-strip__track { gap: 22px; animation-duration: 22s; }
  .specialization-strip__sparkle:nth-child(4),
  .specialization-strip__sparkle:nth-child(5),
  .specialization-strip__sparkle:nth-child(6) { display: none; }
}

@media (max-width: 420px) {
  .specialization-strip__track { animation-duration: 18s; }
}

@media (prefers-reduced-motion: reduce) {
  .specialization-strip__divider,
  .specialization-strip__sparkle,
  .specialization-strip::after,
  .specialization-strip__item--brand,
  .specialization-strip__track {
    animation: none;
  }
  .specialization-strip__track {
    transform: none;
  }
}
