/* ============================================================
   CASE STUDY PAGES
   The video player + result card rules are copied from home.css
   (lines "VIDEO TESTIMONY + RESULT CARDS") so a case study does not
   have to load the whole homepage stylesheet.
   ============================================================ */
.vplayer {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/10; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--ink);
  cursor: pointer;
}
.vplayer img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.vplayer:hover img { transform: scale(1.05); filter: brightness(0.92); }
.vplayer .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,29,71,0.05), rgba(10,29,71,0.45)); }
.vplayer .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px -10px rgba(10,29,71,0.5);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.vplayer .play::after {
  content: ""; margin-left: 5px;
  border-left: 22px solid var(--blue); border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.vplayer:hover .play { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.vplayer .play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6); animation: playPulse 2.4s var(--ease) infinite;
}
@keyframes playPulse { 0%{ transform: scale(1); opacity: 1;} 70%,100%{ transform: scale(1.4); opacity: 0;} }
.vplayer .vmedia {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: #0A1D47; object-fit: contain;
}
.vplayer.playing { cursor: default; }
.vplayer .label {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 600;
}
.vplayer .label .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255,95,87,.7); animation: recDot 1.6s ease-in-out infinite; }
@keyframes recDot { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.vplayer video.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ink); transition: filter .4s var(--ease); }
.vplayer:hover video.vposter { filter: brightness(0.92); }
.vplayer.playing video.vposter { z-index: 3; background: #000; }

/* ---------- video-led layout ---------- */
.cs-feature {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px); align-items: center; justify-content: center;
}
/* The testimonial is shot vertical (720x1280): give it a vertical frame so
   Zane fills it instead of sitting in a letterboxed strip. */
.cs-vplayer { aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: var(--shadow-blue); }
.cs-vplayer video.vposter { object-fit: cover; }
.cs-vplayer.playing video.vposter { object-fit: contain; }
.cs-vplayer .play { width: 92px; height: 92px; }

.cs-quote {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35;
  font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.cs-quote cite { display: block; margin-top: 16px; font-family: inherit; font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }

/* ---------- timeline ---------- */
.cs-timeline {
  list-style: none; position: relative; margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
/* the track runs dot to dot, behind the dots */
.cs-timeline::before {
  content: ""; position: absolute; top: 7px; left: 8px; right: calc(33.33% - 8px);
  height: 2px; background: linear-gradient(90deg, var(--line), var(--blue));
}
.cs-timeline li { position: relative; padding-top: 30px; }
.cs-timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-300);
}
.cs-timeline .cs-now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(0,102,255,.15); }
.cs-when { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.cs-num { display: block; font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; margin-top: 8px; color: #9aa7bd; }
.cs-timeline li:nth-child(2) .cs-num { color: var(--blue-400); }
.cs-now .cs-num { color: var(--blue); }
.cs-unit { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 4px; }

/* ---------- lead sources + website link ---------- */
.cs-sources { margin-top: clamp(32px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--line); }
.cs-sources ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-sources li { padding: 7px 14px; border-radius: 999px; background: var(--sky-100); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.cs-site { display: inline-block; margin-top: 22px; font-size: 16px; font-weight: 700; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--blue-300); padding-bottom: 2px; }
.cs-site:hover { border-color: var(--blue); }

@media (max-width: 860px) {
  .cs-feature { grid-template-columns: 1fr; }
  .cs-vplayer { width: 100%; max-width: 380px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .cs-timeline { gap: 8px; }
  .cs-unit { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .vplayer .play::before, .vplayer .label .dot { animation: none; }
}
