/* ============================================================
   Related case studies carousel
   Additive. Load AFTER style.css. All classes prefixed rel-.
   ============================================================ */

.rel {
  border-top: 1px solid var(--rule);
  padding: 64px 0 72px;
}

.rel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.rel-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.rel-nav { display: flex; gap: 8px; }

.rel-btn {
  width: 38px;
  height: 38px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.rel-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.rel-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.rel-btn:disabled { opacity: .3; cursor: default; }

/* track */
.rel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .rel-track { scroll-behavior: auto; } }

.rel-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rel-card:hover,
.rel-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,16,158,.13); }
.rel-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.rel-thumb {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  background: var(--tint);
  border-radius: 0;
  display: block;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.rel-card:hover .rel-thumb { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .rel-card, .rel-thumb { transition: none; }
  .rel-card:hover { transform: none; }
  .rel-card:hover .rel-thumb { transform: none; }
}

.rel-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rel-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rel-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--tint);
  border-radius: 100px;
  padding: 4px 10px;
}
.rel-card h3 {
  font-family: var(--disp);
  font-weight: 750;
  font-size: 17.5px;
  line-height: 1.24;
  letter-spacing: -.01em;
}
.rel-go { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--blue); padding-top: 4px; }

@media (max-width: 760px) {
  .rel { padding: 48px 0 56px; }
  .rel-track { grid-auto-columns: minmax(250px, 78%); gap: 16px; }
  .rel-nav { display: none; }
}

/* ============================================================
   Pending note — for results not yet available.
   Visually obvious so it never ships unnoticed. Delete the
   element (and this rule, eventually) once the data is in.
   ============================================================ */
.cs-pending {
  border: 2px dashed var(--mid);
  border-radius: 12px;
  background: var(--tint);
  padding: 16px 20px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--blue-deep);
}
.cs-pending b { font-family: var(--body); font-weight: 600; }
