/* Case study BEFORE AND AFTER band (2026-12-01, Dan: "before and after case study for each of the clients").
   A drag slider over two first screens of the same size (1440x900), then the two phone screens (390x844).
   Captions sit outside the pictures (NO TEXT OVER TEXT). Without JS the slider shows a fixed half-and-half split. */
.cs2-ba { padding: clamp(44px, 6vw, 104px) 0; background: var(--off-white, #F8F5F0); }
.cs2-ba__inner { padding-inline: var(--cs2-gutter, var(--gutter)); }
.cs2-ba__head { max-width: 780px; margin: 0 0 clamp(22px, 3vw, 40px); }
.cs2-ba__h {
  font-family: var(--font-editorial); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; color: var(--black, #000);
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.cs2-ba__head p { font-family: var(--font-primary); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; color: #2b2b2b; margin: 0; }
.cs2-ba__cmp { margin: 0; }
.cs2-ba__frame {
  position: relative; aspect-ratio: 1440 / 900; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 44px 92px -38px rgba(16, 10, 30, 0.5);
  --ba: 50%;
}
.cs2-ba__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs2-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba)) 0 0); }
.cs2-ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0;
  cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; z-index: 3;
}
.cs2-ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba); width: 3px; margin-left: -1.5px; z-index: 2;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22); pointer-events: none;
}
.cs2-ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--burgundy, #6B214B) no-repeat center / 26px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  border: 3px solid #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.cs2-ba__range:focus-visible ~ .cs2-ba__handle::after { outline: 3px solid var(--copper, #C26A3F); outline-offset: 3px; }
.cs2-ba__caps {
  display: flex; justify-content: space-between; gap: 10px 24px; margin-top: 14px;
  font-family: var(--font-primary); font-size: 14px; line-height: 1.5; color: #3c3c3c;
}
.cs2-ba__caps span:last-child { text-align: right; }
.cs2-ba__caps b {
  color: var(--burgundy, #6B214B); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; margin-right: 6px;
}
.cs2-ba__hint { margin: 10px 0 0; font-family: var(--font-primary); font-size: 13px; color: #5c5c5c; text-align: center; }
.cs2-ba__phones {
  display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: center;
  gap: clamp(20px, 5vw, 88px); margin-top: clamp(40px, 5vw, 76px);
}
.cs2-ba__phone { margin: 0; }
.cs2-ba__scr {
  aspect-ratio: 390 / 844; border-radius: 30px; overflow: hidden; border: 9px solid #151515; background: #151515;
  box-shadow: 0 34px 70px -30px rgba(16, 10, 30, 0.55);
}
.cs2-ba__scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs2-ba__phone figcaption { margin-top: 14px; text-align: center; font-family: var(--font-primary); font-size: 14px; color: #3c3c3c; }
.cs2-ba__phone figcaption b {
  display: block; color: var(--burgundy, #6B214B); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; margin-bottom: 2px;
}
@media (max-width: 700px) {
  .cs2-ba__caps { flex-direction: column; }
  .cs2-ba__caps span:last-child { text-align: left; }
  .cs2-ba__phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cs2-ba__scr { border-width: 5px; border-radius: 18px; }
  .cs2-ba__handle::after { width: 38px; height: 38px; margin: -19px 0 0 -19px; background-size: 22px 22px; }
}
