/* -- SHOWCASE (scene rail + video lightbox) ---------------- */
#products {
  position: relative;
  z-index: 8;
  margin-top: 0;
  padding: 0 40px 96px;
  background:
    linear-gradient(180deg, rgba(5,5,5,0) 0%, #050505 112px, #050505 100%);
}
#products .site-wrap { max-width: 1200px; }
.sc-sr {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.sc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.sc-intro {
  max-width: 760px;
  padding: 28px 0 4px;
}
.sc-intro h2 {
  font-family: var(--fd);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--fg);
  margin: 18px 0 14px;
  text-wrap: balance;
}
.sc-intro p {
  color: rgba(255,255,255,.62);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
}

.sc-btn {
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,12,14,.62);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .15s, border-color .15s, transform .15s;
  padding: 0;
}
.sc-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}
.sc-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.sc-bigplay {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(7,11,15,.54);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 16px 70px rgba(0,0,0,.36), 0 0 0 8px rgba(255,255,255,.045);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  pointer-events: auto;
  transition: transform .18s, background .15s, border-color .15s;
}
.sc-bigplay svg {
  width: 32px; height: 32px;
  fill: #fff;
  display: block;
  margin-left: 5px;
}
.sc-bigplay:hover {
  background: rgba(37,71,245,.7);
  border-color: rgba(255,255,255,.52);
  transform: translate(-50%, -50%) scale(1.045);
}
.hero-play.sc-bigplay {
  z-index: 5;
  left: min(70vw, calc(100% - 250px));
  top: 52%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: none;
  animation: hero-play-breathe 2.8s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-play.sc-bigplay svg {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.48));
}
.hero-play.sc-bigplay:hover {
  animation: none;
  background: transparent;
  border-color: rgba(255,255,255,.66);
  box-shadow: none;
  transform: translate(-50%, -50%) scale(1.08);
}

@keyframes hero-play-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .88;
  }
  46% {
    transform: translate(-50%, -50%) scale(1.075);
    opacity: 1;
  }
  62% {
    transform: translate(-50%, -50%) scale(1.035);
    opacity: .94;
  }
}

.sc-gallery {
  position: relative;
  min-width: 0;
}
.sc-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 26px 0 34px;
  overflow: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sc-track::-webkit-scrollbar { display: none; }

.sc-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.13);
  color: inherit;
  font: inherit;
  text-align: left;
  scroll-snap-align: center;
  cursor: pointer;
  opacity: .58;
  filter: saturate(.76) brightness(.62);
  transform: scale(1);
  transform-origin: center;
  transition: opacity .28s, filter .28s, transform .28s, border-color .28s, box-shadow .28s;
}
.sc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.72) 100%);
  z-index: 1;
}
.sc-card:hover {
  opacity: .86;
  filter: saturate(.95) brightness(.86);
}
.sc-card:focus-visible {
  outline: 2px solid rgba(255,255,255,.88);
  outline-offset: 4px;
}
.sc-card.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  transform: scale(1.065);
  border-color: rgba(87,216,210,.78);
  box-shadow: 0 18px 58px rgba(0,0,0,.5), 0 0 0 1px rgba(87,216,210,.22);
}
.sc-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.sc-card video[controls] {
  pointer-events: auto;
}
.sc-card-title {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}

.sc-nav {
  position: absolute;
  top: -54px;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  z-index: 4;
}
.sc-nav:hover { transform: scale(1.04); }
.sc-nav svg { width: 15px; height: 15px; }
.sc-nav-prev { left: auto; right: 50px; }
.sc-nav-next { right: 0; }

/* Lightbox */
.sc-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: #000;
  max-width: none;
  max-height: none;
  overflow: hidden;
  outline: none;
}
.sc-lightbox[open] {
  display: grid;
  place-items: center;
}
.sc-lightbox::backdrop {
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(12px);
}
.sc-lightbox video {
  display: block;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  border-radius: 0;
  background: #000;
  border: 0;
  box-shadow: none;
}
.sc-close {
  position: fixed; top: 20px; right: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  z-index: 5;
}

@media (max-width: 900px) {
  #products {
    margin-top: 0;
    padding: 0 24px 76px;
  }
  .sc-layout {
    display: block;
  }
  .sc-intro {
    padding: 0 0 20px;
  }
  .sc-intro p {
    max-width: 620px;
  }
  .sc-track {
    display: flex;
    overflow-x: auto;
    padding-left: 54px;
    padding-right: 54px;
  }
  .sc-card {
    flex: 0 0 auto;
    width: min(31vw, 180px);
  }
  .sc-nav {
    top: 50%;
    transform: translateY(-50%);
  }
  .sc-nav:hover { transform: translateY(-50%) scale(1.04); }
  .sc-nav-prev { left: 0; right: auto; }
}

@media (max-width: 640px) {
  #products {
    margin-top: 0;
    padding: 0 14px 64px;
  }
  .sc-intro h2 {
    font-size: 29px;
  }
  .sc-track {
    gap: 10px;
    padding: 18px 48px 28px;
  }
  .sc-card {
    width: min(42vw, 176px);
  }
  .sc-bigplay {
    width: 76px;
    height: 76px;
  }
  .hero-play.sc-bigplay {
    left: 50%;
    top: 25vh;
  }
  .sc-bigplay svg {
    width: 27px;
    height: 27px;
  }
  .sc-nav {
    width: 38px;
    height: 38px;
  }
  .sc-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-card,
  .sc-bigplay,
  .sc-btn {
    transition: none;
  }
  .hero-play.sc-bigplay {
    animation: none;
  }
  .sc-card.is-active {
    transform: scale(1);
  }
}
