.spotlight {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.spotlight-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1rem solid var(--base-500);
  border-radius: 3rem;
  z-index: 2;
}

.spotlight-outline::after {
  content: "";
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border: 1rem solid var(--base-500);
  z-index: 1;
}

.spotlight-inner {
  position: relative;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  overflow: hidden;
  border-radius: 2rem;
  background-color: var(--base-450);
}

.spotlight-intro-text-wrapper {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}

.spotlight-intro-text {
  flex: 1;
  position: relative;
  will-change: transform;
  color: var(--base-300);
}

.spotlight-intro-text p {
  font-size: 2.5rem;
}

.spotlight-intro-text:nth-child(1) {
  display: flex;
  justify-content: flex-end;
}

.spotlight-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: scale(0);
  will-change: transform;
  border-radius: 2rem;
  opacity: 0.65;
}

.spotlight-bg-img img {
  transform: scale(1.5);
  will-change: transform;
}

.spotlight-titles-container {
  position: absolute;
  top: 0;
  left: 15vw;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(
    50svh 0px,
    0px 50%,
    50svh 100%,
    100% calc(100% + 100svh),
    100% -100svh
  );
  --before-opacity: 0;
  --after-opacity: 0;
}

.spotlight-titles-container::before,
.spotlight-titles-container::after {
  content: "";
  position: absolute;
  width: 100svh;
  height: 2px;
  background: var(--base-100);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.spotlight-titles-container::before {
  top: 0;
  left: 0;
  transform: rotate(-45deg) translate(-7rem);
  opacity: var(--before-opacity);
}

.spotlight-titles-container::after {
  bottom: 0;
  left: 0;
  transform: rotate(45deg) translate(-7rem);
  opacity: var(--after-opacity);
}

.spotlight-titles {
  position: relative;
  left: 15%;
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  transform: translateY(100%);
  z-index: 2;
}

.spotlight-titles h1 {
  color: var(--base-100);
  opacity: 0.35;
  transition: opacity 0.3s ease;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
}

.spotlight-images {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  min-width: 300px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.spotlight-img {
  position: absolute;
  width: 200px;
  height: 150px;
  will-change: transform;
  border-radius: 1rem;
  overflow: hidden;
}

.spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-header {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: var(--base-100);
  transition: opacity 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.spotlight-header p {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--base-100);
}

@media (max-width: 1000px) {
  .spotlight-titles,
  .spotlight-titles-container::before,
  .spotlight-titles-container::after {
    display: none;
  }

  .spotlight-images {
    right: -4rem;
  }
}
