/* ================================
   SECTORS 3D SCROLL — chained multi-sector canvas carousel
   One pinned viewport; scrolling scrubs each sector's 300-frame
   sequence in place, then slides the next sector in from the right.
   Pinning is handled by GSAP ScrollTrigger's `pin:true` (JS), not CSS
   sticky, since this page runs several other independent ScrollTrigger
   animations that made plain `position:sticky` unreliable here.
================================ */
.sectors-3d-scroll {
  position: relative;
  width: 100%;
}

.sectors-3d-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0b0c10;
}

.sectors-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.sectors-3d-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
}

.sectors-3d-slide:first-child {
  transform: translateX(0%);
}

.sectors-3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .5s ease;
}

.sectors-3d-scroll.is-ready .sectors-3d-canvas {
  opacity: 1;
}

.sectors-3d-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.14) 28%, transparent 50%);
}

.sectors-3d-caption {
  position: absolute;
  left: 5%;
  bottom: 15%;
  z-index: 3;
  color: #fff;
  font-weight: bold;
  text-align: left;
  padding: 10px 28px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.sectors-3d-caption-label {
  font-size: 30px;
  line-height: 1;
  display: block;
}

.sectors-3d-dots {
  position: absolute;
  right: 5%;
  bottom: 15%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sectors-3d-dotgroup {
  display: flex;
  gap: 10px;
}

.sectors-3d-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background .3s ease, transform .3s ease;
}

.sectors-3d-dots .dot.is-active {
  background: #ed2f39;
  transform: scale(1.35);
}

.sectors-3d-next {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease;
}

.sectors-3d-next:hover {
  background: rgba(237, 47, 57, 0.85);
  border-color: #ed2f39;
}

.sectors-3d-next svg {
  width: 14px;
  height: 14px;
}

.sectors-3d-loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 4;
  overflow: hidden;
}

.sectors-3d-loader .bar {
  height: 100%;
  width: 0%;
  background: #ed2f39;
  transition: width .15s linear;
}

@media (max-width: 991px) {
  .sectors-3d-caption-label { font-size: 22px; }
}

@media (max-width: 767px) {
  .sectors-3d-pin { height: 62vh; }
  .sectors-3d-caption { padding: 6px 16px; bottom: 9%; }
  .sectors-3d-caption-label { font-size: 15px; }
  .sectors-3d-dots { bottom: 9%; right: 4%; gap: 8px; }
  .sectors-3d-dotgroup { gap: 6px; }
  .sectors-3d-dots .dot { width: 6px; height: 6px; }
  .sectors-3d-next { padding: 6px 10px; font-size: 11px; }
  .sectors-3d-next span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sectors-3d-pin { height: 62vh; }
}
