/* ═══════════════════════════════════════════════════════════════
   Marquee Ribbon — diagonal scrolling text dividers
   Overlaps section edges to hide seams completely.
   ═══════════════════════════════════════════════════════════════ */

.ribbon {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Straight horizontal — no rotation */
  margin: -28px 0;
  z-index: 5;
  box-shadow:
    0 -12px 30px rgba(10, 10, 15, 0.95),
    0 12px 30px rgba(10, 10, 15, 0.95);
}

.ribbon__track {
  display: flex;
  width: max-content;
  animation: ribbonScroll 25s linear infinite;
}

.ribbon--reverse .ribbon__track {
  animation: ribbonScrollReverse 25s linear infinite;
}

.ribbon__text {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  padding: 0 8px;
}

@keyframes ribbonScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ribbonScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon__track {
    animation: none !important;
  }
}
