/* =========================================================
   LS – Case Showcase (AMPLIFIER)
   Cinematic depth, controlled chaos
========================================================= */

.ls-case-showcase {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px);
}


/* =========================================================
   Header
========================================================= */

.ls-case-showcase__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.ls-case-showcase__header .h2 {
  margin-bottom: 16px;
}

.ls-case-showcase__header .lead {
  opacity: .85;
}

/* =========================================================
   Viewport (NO spacing here)
========================================================= */

.ls-case-showcase__viewport {
  --vp-pad-x: clamp(16px, 4vw, 48px);
  --vp-pad-top: 32px;
  --vp-pad-bottom: 8px;

  position: relative;
  width: 100%;

  overflow-x: hidden;
  overflow-y: visible;

  padding-inline: var(--vp-pad-x);
  padding-top: var(--vp-pad-top);
  padding-bottom: var(--vp-pad-bottom);
}


/* =========================================================
   Track
========================================================= */

.ls-case-showcase__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  will-change: transform;
}


/* =========================================================
   Item
========================================================= */

.ls-case-showcase__item {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    opacity .3s ease,
    filter .3s ease;
}

/* =========================================================
   Frame
========================================================= */

.ls-case-showcase__frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;

  background: #fff;

  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 28px 72px rgba(10,35,66,.22);

  transform-style: preserve-3d;
}

.ls-case-showcase__frame::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.35) 100%
  );

  opacity: .35;
  pointer-events: none;
}

/* Image */
.ls-case-showcase__frame img {
  width: 100%;
  height: auto;
  display: block;

  transform: scale(1.05);
  transition: transform .6s ease;
}

/* =========================================================
   Title
========================================================= */

.ls-case-showcase__title {
  margin-top: 22px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;

  color: var(--color-primary);
  text-align: center;
  max-width: 26ch;
}

/* =========================================================
   CTA
========================================================= */

.ls-case-showcase__cta {
  display: flex;
  justify-content: center;
}
.ls-case-showcase__cta {
  margin-top: clamp(32px, 6vw, 34px);
}
/* =========================================================
   Amplifier variant accents
========================================================= */

.ls-case-showcase--amplifier {
  background:
    radial-gradient(
      600px 300px at 50% 0%,
      rgba(255,107,0,.12),
      transparent 70%
    );
}

/* =========================================================
   Progress rail
========================================================= */

.ls-case-showcase__rail {
  position: relative;
  margin: 16px auto 0;

  width: 240px;
  height: 4px;

  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
}

.ls-case-showcase__rail span {
  display: block;
  height: 100%;
  width: 100%;

  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-primary)
  );

  transform-origin: left center;
  transition: transform .18s ease;
}



/* =========================================================
   Hover refinement (desktop)
========================================================= */

@media (hover:hover) {

  .ls-case-showcase__item:hover
  .ls-case-showcase__frame img {
    transform: scale(1.08);
  }

}

@media (max-width: 900px) {

  .ls-case-showcase {
    padding-block: 32px;
  }

  .ls-case-showcase__viewport {
    --vp-pad-x: 16px;
    --vp-pad-top: 20px;
  }

  .ls-case-showcase__track {
    gap: 24px;
  }

  .ls-case-showcase__item {
    flex: 0 0 260px;
  }

  .ls-case-showcase__frame {
    box-shadow:
      0 1px 0 rgba(255,255,255,.6) inset,
      0 18px 40px rgba(10,35,66,.18);
  }

  .ls-case-showcase__frame img {
    transform: scale(1.02);
  }

  .ls-case-showcase__title {
    font-size: 0.95rem;
    margin-top: 16px;
  }

  .ls-case-showcase__rail {
    width: 180px;
  }

  /* progress direct, geen animatie */
  .ls-case-showcase__rail span {
    transition: none;
  }
}
.ls-case-showcase__frame::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      circle at center,
      rgba(252,106,0,.25),
      transparent 60%
    );
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.ls-case-showcase__item.is-active
.ls-case-showcase__frame::before {
  opacity: 1;
}
/* =========================================================
   LS – Case Showcase Navigation
   Brand-consistent • Editorial • Calm
========================================================= */

.ls-case-showcase__nav {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  pointer-events: none;
  z-index: 5;
}

/* =========================================================
   Buttons
========================================================= */

.ls-case-showcase__btn {
  pointer-events: auto;

  width: 52px;
  height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid var(--color-accent-soft);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.92),
      rgba(255,255,255,.82)
    );

  color: var(--color-secondary);
  font-size: 22px;
  font-weight: 600;

  cursor: pointer;

  backdrop-filter: blur(6px);
  box-shadow:
    0 12px 30px rgba(10,35,66,.18),
    0 0 0 1px rgba(255,255,255,.35) inset;

  opacity: .55;
  transform: scale(.92);

  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    color .25s ease,
    border-color .25s ease;
}

/* Left / right spacing */
.ls-case-showcase__btn--prev {
  margin-left: clamp(12px, 3vw, 32px);
}

.ls-case-showcase__btn--next {
  margin-right: clamp(12px, 3vw, 32px);
}

/* =========================================================
   Hover / Focus (Brand-led)
========================================================= */

@media (hover:hover) {
  .ls-case-showcase__btn:hover {
    opacity: 1;
    transform: scale(1);
    color: var(--color-primary);
    border-color: var(--color-accent);

    box-shadow:
      0 18px 48px rgba(10,35,66,.28),
      0 0 0 1px var(--color-accent-soft) inset;
  }
}

.ls-case-showcase__btn:focus-visible {
  outline: none;
  opacity: 1;
  color: var(--color-primary);

  box-shadow:
    0 0 0 3px var(--color-accent-soft),
    0 18px 48px rgba(10,35,66,.28);
}

/* =========================================================
   Reveal on showcase hover
========================================================= */

.ls-case-showcase:hover
.ls-case-showcase__btn {
  opacity: .85;
}
/* =========================================================
   Case Showcase – Controlled breakout
========================================================= */

.ls-case-showcase__viewport {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
/* =========================================================
   Mobile refinement
========================================================= */

@media (max-width: 900px) {

  .ls-case-showcase__btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    opacity: .9;
    transform: none;
  }

}
