.feed {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  font-family: system-ui, sans-serif;
  color: #17181a;
  background: #f7f6f4;
  overflow: hidden;
}

.feed__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.feed__eyebrow {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.7);
}

.feed__title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feed__subtitle {
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.6);
}

/* Split stage: left messy / right clean, synced rails */
.feed__stage {
  position: relative;
  height: 5.5rem;
  overflow: hidden;
}

.feed__layer {
  position: absolute;
  inset: 0;
}

.feed__layer--messy {
  clip-path: inset(0 50% 0 0);
}

.feed__layer--clean {
  clip-path: inset(0 0 0 50%);
}

.feed__rail {
  display: flex;
  gap: 1rem;
  width: max-content;
  height: 100%;
  align-items: center;
  padding-inline: 1rem;
  animation: feed-scroll-right 45s linear infinite;
}

.feed__card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17.5rem;
  height: 3.25rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 400;
  color: #17181a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: none;
  box-shadow: none;
}

/* Same type as clean — only the words stay messy */
.feed__card--messy {
  background: #fff3f0;
  color: #9a3412;
}

/* Center seam — only place with shadow */
.feed__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.feed__divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #17181a;
  transform: translateX(-50%);
  box-shadow:
    -20px 0 32px rgba(0, 0, 0, 0.18),
    -8px 0 14px rgba(0, 0, 0, 0.12),
    20px 0 32px rgba(0, 0, 0, 0.08),
    8px 0 14px rgba(0, 0, 0, 0.06);
}

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

@media (max-width: 720px) {
  .feed__stage {
    height: 4.75rem;
  }

  .feed__card {
    width: 14.5rem;
    height: 2.9rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed__rail {
    animation: none;
    transform: translateX(-25%);
  }
}
