/* =============================================
   TICKER & FILTER BANNER
   ============================================= */

.ticker-strip {
  position: relative;
  z-index: 1;
  background: var(--slate);
  overflow: hidden;
  padding: var(--sp-3) 0;
  border: none;
}

/* ── Top Dhaka Weave Trim (Antique-Gold Geometric Pattern) ── */
.ticker-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='5' viewBox='0 0 16 5'%3E%3Cpath d='M0 2.5 L4 0.5 L8 2.5 L4 4.5 Z M8 2.5 L12 0.5 L16 2.5 L12 4.5 Z' fill='none' stroke='%23C08A2E' stroke-width='0.75' opacity='0.65'/%3E%3Ccircle cx='4' cy='2.5' r='0.6' fill='%23C08A2E' opacity='0.8'/%3E%3Ccircle cx='12' cy='2.5' r='0.6' fill='%23C08A2E' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 16px 5px;
  pointer-events: none;
  z-index: 3;
}

/* ── Bottom Dhaka Weave Trim (Antique-Gold Geometric Pattern) ── */
.ticker-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='5' viewBox='0 0 16 5'%3E%3Cpath d='M0 2.5 L4 0.5 L8 2.5 L4 4.5 Z M8 2.5 L12 0.5 L16 2.5 L12 4.5 Z' fill='none' stroke='%23C08A2E' stroke-width='0.75' opacity='0.65'/%3E%3Ccircle cx='4' cy='2.5' r='0.6' fill='%23C08A2E' opacity='0.8'/%3E%3Ccircle cx='12' cy='2.5' r='0.6' fill='%23C08A2E' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 16px 5px;
  pointer-events: none;
  z-index: 3;
}

.ticker-hint {
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xs);
  color: var(--ash);
  opacity: 0.75;
  display: none;
  align-items: center;
  gap: 4px;
  background: linear-gradient(to right, transparent, var(--slate) 30%);
  padding-left: var(--sp-8);
  pointer-events: none;
  z-index: 2;
}

.ticker-hint .icon {
  color: var(--gold);
}

@media (min-width: 640px) {
  .ticker-hint {
    display: flex;
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 70px,
    black calc(100% - 70px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 70px,
    black calc(100% - 70px),
    transparent 100%
  );
}

.ticker-strip:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-strip.boosted .ticker-track {
  animation-duration: 6s;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0 var(--sp-6);
  border-right: 1px solid var(--ash-10);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: var(--r-sm);
}

.ticker-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.ticker-item:hover {
  color: var(--chalk);
  background: var(--ash-10);
}

.ticker-item.active {
  color: var(--gold);
  background: var(--signal-15);
  box-shadow: inset 0 0 0 1px rgba(192, 138, 46, 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* Filter status banner shown above projects when a ticker filter is active */
.filter-banner {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--chalk);
  background: var(--signal-10);
  border: 1px solid rgba(192, 138, 46, 0.3);
  border-radius: var(--r-md);
  padding: 8px 14px;
  margin-bottom: var(--sp-6);
  width: fit-content;
}

.filter-banner .icon {
  color: var(--gold);
}

.filter-banner.visible {
  display: flex;
}

.filter-banner strong {
  color: var(--gold);
  font-weight: 600;
}

.filter-banner button {
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: var(--sp-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.filter-banner button:hover {
  color: var(--gold-hover);
}
