/* Transformation Slider */
.transformation-section {
  background: var(--white);
}
.ba-slider-container {
  max-width: 1000px;
  margin:0 auto;
  padding:0 var(--space-sm);
}

.ba-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (max-width: 768px) {
  .ba-card-grid {
    grid-template-columns: 1fr;
  }
}
.ba-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.ba-card figure {
  margin: 0;
  position: relative;
}
.ba-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ba-card-body {
  padding: var(--space-md) var(--space-lg);
}
.ba-card-body h3 {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.ba-card-body p {
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}
.ba-card figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2xs) var(--space-xs);
  background: rgba(11,37,69,.78);
  color: #F5EFE6;
  letter-spacing: 0;
}
.ba-card.after figcaption {
  background: rgba(180,88,39,.78);
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(11, 37, 69, 0.12);
  border: 1px solid var(--line);
}
.ba-slider:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}
.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  display: block;
}
.ba-before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}
.ba-after {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 0 0 50%); /* initial split */
  background-size: cover;
  background-position: center;
}
.ba-label-tag {
  position: absolute;
  top: 24px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding:var(--space-xs) var(--space-sm);
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.tag-before {
  left: 24px;
  border-left: 2px solid var(--copper-hot);
}
.tag-after {
  right: 24px;
  border-right: 2px solid var(--copper-hot);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  z-index: 4;
  cursor: ew-resize;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50%;
  z-index: 5;
  cursor: ew-resize;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(6, 26, 51, 0.3);
  transition: background-color 0.2s, transform 0.2s;
  pointer-events: none;
}
.ba-slider:hover .ba-knob {
  background: var(--copper);
  transform: translate(-50%, -50%) scale(1.08);
}
@media (max-width: 480px) {
  .ba-slider {
    aspect-ratio: 4/3;
  }
  .ba-label-tag {
    top: 16px;
    padding:var(--space-2xs) var(--space-xs);
    font-size: 10px;
  }
  .tag-before { left: 16px; }
  .tag-after { right: 16px; }
}
