/* Connects feature carousel — compact rail, sharp cards */
.connects-carousel {
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.connects-carousel .section-head {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.fc-carousel__shell {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 36px);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-sm);
}
@media (min-width: 960px) {
  .fc-carousel__shell {
    flex-direction: row;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ---- Rail: compact vertical carousel ---- */
.fc-carousel__rail {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  padding: 16px clamp(16px, 3vw, 28px);
}
@media (min-width: 960px) {
  .fc-carousel__rail {
    width: 32%;
    min-height: 100%;
    padding: 20px clamp(18px, 2.5vw, 28px);
  }
}

.fc-carousel__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 4;
  pointer-events: none;
}
.fc-carousel__fade--top {
  top: 0;
  background: linear-gradient(180deg, var(--navy-900), rgba(15, 23, 42, 0));
}
.fc-carousel__fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--navy-900), rgba(15, 23, 42, 0));
}

.fc-carousel__chips-viewport {
  position: relative;
  z-index: 2;
  height: 210px;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 960px) {
  .fc-carousel__chips-viewport {
    height: 230px;
    max-width: 260px;
  }
}

.fc-carousel__chips {
  position: relative;
  width: 100%;
  height: 46px;
}

.fc-chip-item {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -23px;
  height: 46px;
  display: flex;
  align-items: center;
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.34, 1.08, 0.64, 1), opacity 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fc-chip-item { transition-duration: 0.01ms; }
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 14px 8px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}
.fc-chip:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.fc-chip.is-active {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.fc-chip__ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.28s ease, color 0.28s ease;
}
.fc-chip__ico svg { width: 14px; height: 14px; }
.fc-chip.is-active .fc-chip__ico {
  background: var(--orange-tint);
  color: var(--orange-700);
}
.fc-chip__lbl {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Stage ---- */
.fc-carousel__stage {
  flex: 1;
  position: relative;
  min-height: 360px;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
@media (min-width: 960px) {
  .fc-carousel__stage {
    min-height: 100%;
    border-top: none;
    border-left: 1px solid var(--line);
  }
}

.fc-carousel__cards {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
}

.fc-card {
  position: absolute;
  inset: 0;
  border-radius: clamp(18px, 2.5vw, 26px);
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: var(--sh);
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.06, 0.64, 1),
    opacity 0.4s ease;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}
.fc-card__media img:not([src]) {
  opacity: 0;
}
.fc-card__media {
  position: absolute;
  inset: 0;
  background: var(--cream-2);
}
.fc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.fc-card[data-status="active"] {
  transform: translateX(0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 20;
  pointer-events: auto;
}
.fc-card[data-status="active"]:hover .fc-card__media img {
  transform: scale(1.015);
}
.fc-card[data-status="prev"] {
  transform: translateX(-52px) scale(0.9) rotate(-1.5deg);
  opacity: 0.28;
  z-index: 10;
}
.fc-card[data-status="next"] {
  transform: translateX(52px) scale(0.9) rotate(1.5deg);
  opacity: 0.28;
  z-index: 10;
}
.fc-card[data-status="hidden"] {
  transform: scale(0.8);
  opacity: 0;
  z-index: 0;
}

.fc-card__live {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.78);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.fc-card[data-status="active"] .fc-card__live { opacity: 1; }
.fc-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
}
.fc-card__live span:last-child {
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.fc-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 56px 20px 20px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.55) 50%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.fc-card[data-status="active"] .fc-card__overlay {
  opacity: 1;
  transform: none;
}
.fc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #fff;
  color: var(--navy-900);
  font-family: "Space Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fc-card__num { color: var(--orange-700); }
.fc-card__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 30ch;
}
.fc-card__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 36ch;
}
.fc-card__stat {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
}
.fc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.fc-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.fc-card[data-status="active"]:hover .fc-card__cta { opacity: 1; }
.fc-card[data-status="active"]:hover .fc-card__cta svg { transform: translateX(2px); }

.home-clinical .connects-carousel .fc-carousel__shell {
  box-shadow: none;
}
