.featured-work {
  position: relative;
  padding: 1.5rem 1.25rem 0;
}

.featured-work__shell {
  position: relative;
  margin: 0 auto;
  max-width: 72rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top, rgba(123, 92, 255, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.18);
  backdrop-filter: blur(18px);
}

.featured-work__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.08), transparent 50%),
    linear-gradient(315deg, rgba(34, 211, 238, 0.08), transparent 55%);
  pointer-events: none;
}

.featured-work__inner {
  position: relative;
  padding: 2rem 1rem 1.75rem;
}

.featured-work__eyebrow {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(224, 231, 255, 0.72);
}

.featured-work__title {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}

.featured-work__copy {
  max-width: 38rem;
  margin: 0.85rem auto 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.8);
}

.featured-work__frame {
  --gap: 1rem;
  position: relative;
  margin-top: 1.75rem;
}

.featured-work__viewport {
  overflow: hidden;
}

.featured-work__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * 2)) / 3);
  gap: var(--gap);
  transition: transform 0.55s ease;
  will-change: transform;
}

.featured-work__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.18);
}

.featured-work__card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.featured-work__image-wrap {
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background: rgba(8, 8, 24, 0.55);
}

.featured-work__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-work__card:hover .featured-work__image,
.featured-work__card-button:focus-visible .featured-work__image {
  transform: scale(1.04);
}

.featured-work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
}

.featured-work__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.featured-work__hint {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.88);
}

.featured-work__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-top: -1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 5, 34, 0.78);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.featured-work__nav:hover,
.featured-work__nav:focus-visible {
  transform: translateY(-1px);
  background: rgba(39, 20, 95, 0.92);
  box-shadow: 0 0 26px rgba(129, 140, 248, 0.35);
  outline: none;
}

.featured-work__nav--prev {
  left: 0.2rem;
}

.featured-work__nav--next {
  right: 0.2rem;
}

.featured-work__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.featured-work__dot {
  width: 0.62rem;
  height: 0.62rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.featured-work__dot[aria-current="true"] {
  background: #c4b5fd;
  box-shadow: 0 0 12px rgba(196, 181, 253, 0.8);
  transform: scale(1.15);
}

.featured-work__cta-row {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.featured-work__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-work__cta:hover,
.featured-work__cta:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.featured-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 2, 15, 0.82);
  backdrop-filter: blur(14px);
}

.featured-lightbox.is-open {
  display: flex;
}

.featured-lightbox__panel {
  position: relative;
  width: min(100%, 72rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  background: rgba(10, 7, 28, 0.95);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
  overflow: hidden;
}

.featured-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: #fff;
}

.featured-lightbox__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
}

.featured-lightbox__close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.48rem 0.85rem;
  cursor: pointer;
}

.featured-lightbox__stage {
  position: relative;
  padding: 0 3.5rem 1.5rem;
}

.featured-lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.featured-lightbox__nav {
  position: absolute;
  top: 50%;
  width: 2.85rem;
  height: 2.85rem;
  margin-top: -1.425rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 5, 34, 0.84);
  color: #fff;
  cursor: pointer;
}

.featured-lightbox__nav--prev {
  left: 0.4rem;
}

.featured-lightbox__nav--next {
  right: 0.4rem;
}

body.featured-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .featured-work__track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  }
}

@media (max-width: 767px) {
  .featured-work {
    padding: 1rem 1rem 0;
  }

  .featured-work__inner {
    padding: 1.5rem 0.9rem 1.4rem;
  }

  .featured-work__track {
    grid-auto-columns: 100%;
  }

  .featured-work__nav {
    display: none;
  }

  .featured-lightbox__stage {
    padding: 0 0.75rem 1rem;
  }

  .featured-lightbox__nav {
    display: none;
  }
}
