/* ==================================================================
   Case study + strategist showcase — Five by Five
   Dark ink band. Black-background team portraits blend into black cards.
   ================================================================== */

.cs {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #1c1f21 0%, #131516 46%, #0d0f0f 100%);
  padding: 96px 80px 104px;
  color: #fff;
}
/* warm orange glow bleeding from the top edge */
.cs::before {
  content: "";
  position: absolute;
  top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 640px;
  background: var(--glow-orange, radial-gradient(closest-side, rgba(255,166,62,0.20), transparent));
  pointer-events: none; z-index: 0;
}

.cs-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

/* ---- Header ------------------------------------------------------ */
.cs-head { max-width: 760px; }
.cs-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fbf-green, #28dc9a); font-weight: 500;
}
.cs-title {
  margin: 18px 0 0; font-weight: 900; letter-spacing: -0.025em;
  line-height: 1.06; font-size: 46px; text-wrap: balance;
}
.cs-title .cs-grad {
  background: var(--gradient-signature); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.cs-sub {
  margin: 18px 0 0; max-width: 620px;
  font-size: 17px; line-height: 1.6; font-weight: 500; color: rgba(255,255,255,0.66);
}

/* ---- Card row ---------------------------------------------------- */
.cs-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: end; margin-top: 56px;
}

.cs-card {
  position: relative; display: block; min-height: 484px;
  background: #0d0f0f;                     /* true black — matches portrait bg */
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.9);
  transition: transform 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease), border-color 200ms var(--ease-out, ease);
  text-decoration: none; color: inherit;
}
.cs-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -26px rgba(0,0,0,0.95); border-color: rgba(255,255,255,0.16); }

/* Featured centre card — lifted + green keyline */
.cs-card--feature {
  transform: translateY(-28px);
  border-color: rgba(40,220,154,0.55);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.95), 0 0 0 1px rgba(40,220,154,0.18), var(--glow-accent, 0 0 40px rgba(40,220,154,0.10));
}
.cs-card--feature:hover { transform: translateY(-36px); }

/* ---- Portrait fills the right side of the card (behind text) ------ */
/* Transparent-bg portraits: consistent framing across all three cards */
.cs-portrait {
  position: absolute; right: 0; bottom: 0; z-index: 0;
  width: 62%; height: 78%;
  object-fit: contain; object-position: 100% 100%;
  transform: translateX(6%);
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}
/* scrim: black on the left/top/bottom so overlaid copy stays legible,
   portrait dissolves into the card on every edge (no hard rectangle) */
.cs-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, #0d0f0f 40%, rgba(13,15,15,0.82) 60%, rgba(13,15,15,0) 88%),
    linear-gradient(0deg, rgba(13,15,15,0.92) 3%, rgba(13,15,15,0) 32%),
    linear-gradient(180deg, #0d0f0f 0%, rgba(13,15,15,0) 20%),
    linear-gradient(270deg, #0d0f0f 0%, rgba(13,15,15,0) 7%);
}

/* ---- Card text block (sits over the portrait) -------------------- */
.cs-card-top { position: relative; z-index: 2; padding: 30px 28px 0; }
.cs-metric-row { display: flex; align-items: baseline; gap: 8px; }
.cs-metric-row [data-lucide], .cs-metric-row svg {
  color: var(--fbf-green, #28dc9a); align-self: center; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(40,220,154,0.45));
}
.cs-metric {
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  font-size: 52px; color: #fff;
}
.cs-card--feature .cs-metric {
  background: var(--gradient-cool, linear-gradient(90deg,#00b9d7,#28dc9a));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cs-metric-head {
  margin: 10px 0 0; max-width: 80%; font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.2; color: #fff; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.cs-context {
  margin: 14px 0 0; max-width: 72%; font-size: 14.5px; line-height: 1.55;
  font-weight: 500; color: rgba(255,255,255,0.66); text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.cs-client {
  margin: 16px 0 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.46); text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

/* ---- Strategist name tag (bottom-left, over portrait) ------------ */
.cs-person {
  position: absolute; z-index: 2; left: 24px; bottom: 20px; right: 24px;
  display: flex; align-items: center; gap: 10px;
}
.cs-person-seal { flex-shrink: 0; }
/* neon pulsing status dot (matches the metric-list dots above) */
.cs-dot {
  flex-shrink: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--fbf-green, #28dc9a);
  box-shadow: 0 0 0 0 rgba(40,220,154,0.55), 0 0 12px 2px rgba(40,220,154,0.75);
  animation: rb-pulse 2.2s var(--ease-out, ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .cs-dot { animation-duration: 3.2s; } }
.cs-person-name { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.cs-person-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.62); margin-top: 2px; white-space: nowrap;
}

/* ---- Footer CTA -------------------------------------------------- */
.cs-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 64px;
}
.cs-foot-note {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}
