/* =====================================================================
   Case Study Page Styles
   ===================================================================== */

/* Page wrapper */
.cs-page {
  padding-top: 120px;
  min-height: 100vh;
  align-self: stretch;
  width: 100%;
}

.cs-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Back link ─────────────────────────────────────────────────────── */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8d9bad;
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 32px 0;
}
.cs-back:hover { color: #fff; }
.cs-back svg { flex-shrink: 0; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.cs-hero {
  margin-bottom: 80px;
}

.cs-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #137fec;
  margin-bottom: 20px;
}

.cs-title {
  font-family: 'Figtree', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 70px;
  color: #ffffff;
  margin-bottom: 20px;
}

.cs-title em {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  color: #137fec;
}

.cs-tagline {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #94a3b8;
  margin-bottom: 48px;
  max-width: 620px;
}

/* ── Metrics strip ─────────────────────────────────────────────────── */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #94a3b8;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid #94a3b8;
}

.cs-metric {
  background: #1c1c1c;
  padding: 28px 32px;
}

.cs-metric-value {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 48px;
  color: #137fec;
  margin-bottom: 4px;
}

.cs-metric-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #94a3b8;
}

/* ── Meta row ──────────────────────────────────────────────────────── */
.cs-meta {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid #334155;
  flex-wrap: wrap;
}

.cs-meta-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #8d9bad;
  margin-bottom: 4px;
}

.cs-meta-value {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
}

/* ── Sections ──────────────────────────────────────────────────────── */
.cs-section {
  margin-bottom: 72px;
}

.cs-section-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #137fec;
  margin-bottom: 16px;
}

.cs-section-title {
  font-family: 'Figtree', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 24px;
}

.cs-text {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #c0cbda;
  margin-bottom: 16px;
}
.cs-text:last-child { margin-bottom: 0; }
.cs-text strong { color: #ffffff; font-weight: 600; }

/* ── Bullet list ───────────────────────────────────────────────────── */
.cs-list {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-list li {
  display: flex;
  gap: 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #c0cbda;
}
.cs-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #137fec;
  flex-shrink: 0;
  margin-top: 11px;
}
.cs-list li strong { color: #fff; font-weight: 600; }

/* ── Steps ─────────────────────────────────────────────────────────── */
.cs-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.cs-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.cs-step-icon {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
  align-self: stretch;
}

.cs-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1.5px solid #37404c;
  flex-shrink: 0;
  position: relative;
}
.cs-step-dot::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #137fec;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cs-step-line {
  width: 2px;
  background: #312f2c;
  flex: 1;
}
.cs-step:last-child .cs-step-line { display: none; }

.cs-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 24px;
  flex: 1;
}

.cs-step-num {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #64748b;
}

.cs-step-title {
  font-family: 'Figtree', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  color: #ffffff;
}

.cs-step-text {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #c0cbda;
}

/* ── Callout ───────────────────────────────────────────────────────── */
.cs-callout {
  background: #111d2d;
  border-left: 3px solid #137fec;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #c0cbda;
}

/* ── Results grid ──────────────────────────────────────────────────── */
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.cs-result-card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
}

.cs-result-category {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #137fec;
  margin-bottom: 16px;
}

.cs-result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-result-list li {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #c0cbda;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}
.cs-result-list li:first-child { padding-top: 0; }
.cs-result-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cs-result-list strong { color: #ffffff; font-weight: 600; }

/* ── Learnings ─────────────────────────────────────────────────────── */
.cs-learnings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.cs-learning {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px 24px;
}

.cs-learning-title {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
  margin-bottom: 6px;
}

.cs-learning-desc {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #c0cbda;
}

/* ── Case study navigation ─────────────────────────────────────────── */
.cs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid #37404c;
}

.cs-nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.cs-nav-link:hover {
  border-color: #137fec;
  background: #111d2d;
}

.cs-nav-direction {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #8d9bad;
}

.cs-nav-title {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #ffffff;
}

.cs-nav-link.cs-nav-next { text-align: right; }

/* ── Closing CTA ───────────────────────────────────────────────────── */
.cs-closing {
  text-align: center;
  margin-top: 80px;
  padding: 48px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 20px;
}

.cs-closing-text {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: #c0cbda;
  margin-bottom: 24px;
}

.cs-closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #137fec;
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.cs-closing-cta:hover { background-color: #0f6dd0; }

/* ── Case study footer (inside 860px container) ────────────────────── */
.cs-footer {
  margin-top: 48px;
  padding-top: 49px;
  padding-bottom: 48px;
  border-top: 1px solid #37404c;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cs-footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── Screens / mockups ─────────────────────────────────────────────── */
.cs-slider {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #333;
  background: #1c1c1c;
  aspect-ratio: 1200 / 651;
  user-select: none;
  touch-action: pan-y;
}

.cs-slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cs-slider-after {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.cs-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
}

.cs-slider-handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  pointer-events: none;
}

.cs-slider-label {
  position: absolute;
  top: 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(23, 23, 23, 0.65);
  padding: 6px 12px;
  border-radius: 100px;
  pointer-events: none;
}
.cs-slider-label-before { left: 16px; }
.cs-slider-label-after { right: 16px; }
.cs-slider-label-accent { color: #4fa3ff; }

.cs-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.cs-frame {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
}
.cs-frame img { display: block; width: 100%; height: auto; }

.cs-frame-scroll {
  max-height: 560px;
  overflow-y: auto;
}

.cs-embed {
  position: relative;
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid #333;
  background: #1c1c1c;
  aspect-ratio: 1200 / 651;
  overflow: hidden;
}

.cs-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cs-proto-card {
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid #333;
  background: #1c1c1c;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cs-proto-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
}

.cs-proto-card-desc {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #8d9bad;
  max-width: 520px;
}

.cs-proto-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #137fec;
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.cs-proto-card-btn:hover {
  background-color: #0f6dd0;
}

.cs-caption {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #64748b;
  margin-top: 12px;
}

.cs-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.cs-screen-block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* The System (Dashboards): chart kit 2/3 + documentation tile 1/3, same height */
.cs-screens-grid--system { grid-template-columns: 2fr 1fr; }
.cs-screens-grid--system .cs-screen-block .cs-frame { height: 360px; }

/* Badge inviting to open a frame in the lightbox */
.cs-frame--badge { position: relative; }
.cs-frame-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.cs-frame--badge:hover .cs-frame-badge,
.cs-frame--badge:focus-visible .cs-frame-badge {
  background: #137fec;
  border-color: #137fec;
}

.cs-screen-block .cs-frame {
  height: 260px;
}

.cs-screen-block .cs-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cs-screen-caption {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #ffffff;
}

.cs-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 8px;
}

.cs-filmstrip-header { margin-top: 56px; margin-bottom: 24px; }

.cs-filmstrip {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 8px;
  scrollbar-width: thin;
  scrollbar-color: #37404c transparent;
}
.cs-filmstrip-track {
  display: flex;
  gap: 16px;
  scroll-snap-type: x proximity;
}
.cs-filmstrip-frame {
  flex-shrink: 0;
  width: 440px;
  scroll-snap-align: start;
  margin: 0;
}
.cs-filmstrip-frame img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid #333;
  background: #1c1c1c;
  cursor: zoom-in;
  transition: border-color 0.2s;
}
.cs-filmstrip-frame img:hover {
  border-color: #137fec;
}
.cs-filmstrip-frame figcaption {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #94a3b8;
  margin-top: 10px;
}
.cs-filmstrip-step {
  color: #137fec;
  font-weight: 600;
  margin-right: 4px;
}

/* ── Videos (inside learning cards) ──────────────────────────────── */
.cs-learning--media { display: flex; flex-direction: column; }
.cs-learning--media .cs-learning-desc { margin-bottom: 16px; }
.cs-learning--media .cs-screen-caption { margin-top: 12px; }
.cs-video {
  border-radius: 12px;
  border: 1px solid #333;
  overflow: hidden;
  background: #121212;
}
.cs-video video {
  display: block;
  width: 100%;
  height: auto; /* ratio comes from the width/height attributes */
}

/* ── Workshop photos ──────────────────────────────────────────────── */
.cs-photos { margin: 40px 0 0; display: flex; flex-direction: column; gap: 12px; }
/* 16:9:9 columns = equal heights for one 4:3 landscape + two 3:4 portraits */
.cs-photo-grid {
  display: grid;
  grid-template-columns: 16fr 9fr 9fr;
  gap: 12px;
}
.cs-photo {
  border-radius: 16px;
  border: 1px solid #333;
  overflow: hidden;
  background: #1c1c1c;
}
.cs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .cs-photo-grid { grid-template-columns: 1fr 1fr; }
  .cs-photo:first-child { grid-column: 1 / -1; }
}

/* ── Lightbox (screen gallery, built by script.js) ─────────────────── */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible {
  outline: 2px solid #137fec;
  outline-offset: 2px;
}
.cs-frame.is-zoomable,
.cs-photo.is-zoomable { transition: border-color 0.2s; }
.cs-frame.is-zoomable:hover,
.cs-photo.is-zoomable:hover { border-color: #555; }

.cs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 72px 88px 48px;
  z-index: 200;
}
.cs-lightbox.is-open { display: block; }

/* Screens are shown at reading size (up to 1200px wide); tall ones scroll */
.cs-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(1200px, 100%);
  margin: 0 auto;
}
.cs-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #37404c;
}
.cs-lightbox-caption {
  display: flex;
  gap: 12px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #c0cbda;
}
.cs-lightbox-count { color: #8d9bad; font-variant-numeric: tabular-nums; }

.cs-lightbox-close,
.cs-lightbox-nav {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1c1c1c;
  border: 1px solid #37404c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.cs-lightbox-close:hover,
.cs-lightbox-nav:hover { background: #2a2a2a; border-color: #555; }
.cs-lightbox-close:focus-visible,
.cs-lightbox-nav:focus-visible { outline: 2px solid #137fec; outline-offset: 2px; }
.cs-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
}
.cs-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.cs-lightbox-nav.is-prev { left: 24px; }
.cs-lightbox-nav.is-next { right: 24px; }
.cs-lightbox.is-single .cs-lightbox-nav,
.cs-lightbox.is-single .cs-lightbox-count { display: none; }

@media (max-width: 700px) {
  .cs-lightbox { padding: 72px 12px 96px; background: #0a0a0a; }
  .cs-lightbox-nav { top: auto; bottom: 24px; transform: none; }
  .cs-lightbox-nav.is-prev { left: calc(50% - 56px); }
  .cs-lightbox-nav.is-next { right: calc(50% - 56px); }
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .cs-title { font-size: 36px; line-height: 48px; }
  .cs-tagline { font-size: 16px; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-metric-value { font-size: 36px; line-height: 44px; }
  .cs-meta { gap: 20px; }
  .cs-section-title { font-size: 26px; }
  .cs-results-grid { grid-template-columns: 1fr; }
  .cs-nav { grid-template-columns: 1fr; }
  .cs-step-title { font-size: 20px; line-height: 28px; }
  .cs-closing { padding: 32px 24px; }
  .cs-screens-grid { grid-template-columns: 1fr; }
  .cs-screens-grid--system { grid-template-columns: 1fr; }
  .cs-slider-handle { width: 32px; height: 32px; }
  .cs-slider-label { font-size: 12px; padding: 5px 10px; }
  .cs-frame-scroll { max-height: 420px; }
  .cs-filmstrip-frame { width: 280px; }
  .cs-footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ── Layout wrapper (single column — sidebar is fixed outside) ─────── */
.cs-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 160px;
}

/* ── Vertical sidebar — fixed in left margin ───────────────────────── */
.cs-sidebar {
  position: fixed;
  top: 140px;
  /* Sit just left of the centered content column */
  left: max(16px, calc(50% - 430px - 180px));
  width: 148px;
  display: none; /* shown only when viewport is wide enough */
}

@media (min-width: 1180px) {
  .cs-sidebar { display: block; }
}

.cs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 5px 0;
  cursor: pointer;
  overflow: hidden;
}

/* The animated dash — grows from 0 to 20px when active */
.cs-sidebar-item::before {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  flex-shrink: 0;
  transition: width 0.25s ease, margin-right 0.25s ease;
  margin-right: 0;
}

.cs-sidebar-item.cs-link-active::before {
  width: 20px;
  margin-right: 10px;
}

.cs-sidebar-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #4a5568;
  transition: color 0.2s;
  white-space: nowrap;
}

.cs-sidebar-item:hover .cs-sidebar-label { color: #8d9bad; }
.cs-sidebar-item.cs-link-active .cs-sidebar-label {
  color: #ffffff;
  font-weight: 500;
}

/* ── Card updates (index.html) ─────────────────────────────────────── */
a.case-study-card {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, background-color 0.25s;
}

a.case-study-card:hover {
  border-color: #137fec;
  transform: translateY(-3px);
  background-color: #1e1e1e;
}

/* Cursor spotlight: --mx / --my are set by script.js */
a.case-study-card {
  isolation: isolate;
}

a.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(19, 127, 236, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

a.case-study-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2a2a2a;
  border: 1px solid #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d9bad;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

a.case-study-card:hover .card-arrow {
  background: #137fec;
  border-color: #137fec;
  color: #fff;
}

.card-coming-soon {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
  padding: 4px 10px;
  background: #222;
  border-radius: 6px;
  border: 1px solid #333;
}

.case-study-card .card-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  color: #ffffff;
  margin: 20px 0 6px;
}

.case-study-card .card-subtitle {
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #8d9bad;
}
