/* =============================================
   WHAT WE DO BEST — Sticky scroll showcase
   ============================================= */

.services-showcase {
  position: relative;
  background: var(--white);
}

.services-showcase.is-passive {
  height: auto;
}

.services-showcase.is-passive .services-showcase-pin {
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 48px;
}

.services-showcase.is-passive .services-showcase-layout {
  min-height: auto;
}

.services-showcase.is-passive .services-showcase-copy {
  min-height: 0;
}

.services-showcase.is-passive .service-slide {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  display: none;
  padding-bottom: 8px;
}

.services-showcase.is-passive .service-slide.is-active {
  display: flex;
}

.services-showcase.is-passive .service-media:not(.is-active) {
  display: none;
}

.services-showcase.is-passive .services-showcase-nav {
  margin-top: 20px;
  margin-bottom: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  justify-content: flex-start;
}

.services-showcase.is-passive .services-showcase-nav::-webkit-scrollbar {
  display: none;
}

.services-showcase.is-passive .services-nav-tag {
  flex-shrink: 0;
}

.services-showcase.is-passive .service-slide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.services-showcase.is-passive .service-slide-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.services-showcase.is-passive .service-title,
.services-showcase.is-passive .service-lead,
.services-showcase.is-passive .service-desc {
  max-width: 100%;
}

.services-showcase.is-passive .service-tags {
  flex-wrap: wrap;
  max-width: 100%;
}

.services-showcase.is-passive .service-cta {
  box-sizing: border-box;
  max-width: 100%;
}

.services-showcase.is-passive .services-showcase-copy {
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.services-showcase-pin {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.services-showcase-inner {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}

.services-showcase-heading {
  margin-bottom: 36px;
}

.services-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 180px);
  min-height: calc(100dvh - 180px);
}

/* ---- Copy slides ---- */
.services-showcase-copy {
  position: relative;
  min-height: 420px;
}

.service-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.service-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.service-slide-inner {
  max-width: 520px;
}

.service-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  list-style: none;
}

.service-tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  padding: 8px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  white-space: nowrap;
}

.service-lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 28px;
  max-width: 460px;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.service-cta:hover {
  background: var(--black);
  color: var(--white);
}

/* ---- Visual slides ---- */
.services-showcase-visual {
  position: relative;
  width: 100%;
  min-height: 420px;
  max-height: 520px;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
}

.service-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.service-media.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.service-media-card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.service-media-card img,
.service-media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- Nav tags ---- */
.services-showcase-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.services-showcase-nav::-webkit-scrollbar {
  display: none;
}

.services-nav-tag {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  padding: 5px 10px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.services-nav-tag.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.services-nav-tag:hover:not(.is-active) {
  border-color: var(--grey-400);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-showcase-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .services-showcase-copy {
    min-height: 360px;
    order: 2;
  }

  .services-showcase-visual {
    order: 1;
    min-height: 280px;
    max-height: 340px;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 640px) {
  .services-showcase-pin {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-start;
    padding-top: 24px;
  }

  .services-showcase-heading {
    margin-bottom: 24px;
    font-size: 1.75rem;
  }

  .services-showcase-copy {
    min-height: 320px;
  }

  .service-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .service-tags {
    margin-bottom: 20px;
  }

  .service-tags li {
    font-size: 11px;
    padding: 6px 12px;
  }

  .services-showcase-visual {
    min-height: 220px;
    max-height: 260px;
  }

  .service-media-card {
    border-radius: 18px;
  }
}
