:root {
  --wni-orange: #ff5c35;
  --wni-black: #050505;
  --wni-paper: #f4f1ea;
}

.services-page .nav {
  border-top: 4px solid var(--wni-orange);
}

.services-page .chapter-visual {
  position: relative;
  border: 1px solid #181818;
  border-radius: 30px;
  background: var(--wni-black);
  box-shadow: 0 24px 70px rgba(5, 5, 5, .16);
  overflow: hidden;
  perspective: 1200px;
}

.services-page .chapter-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 5, .84));
  content: "";
  pointer-events: none;
}

.services-page .chapter-3d-visual {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  transform: scale(1.02);
  animation: wni-services-3d-drift 14s ease-in-out infinite alternate;
}

.services-page .chapter-copy {
  z-index: 2;
}

.services-page .chapter-copy,
.services-page .chapter-copy h2,
.services-page .chapter-copy p {
  color: #fff;
}

.services-page .chapter-index {
  color: var(--wni-orange);
}

.services-page .services-calendar-copy,
.services-page .services-calendar-copy h2 {
  color: var(--wni-black);
}

.services-page .services-calendar-copy p {
  color: #625f58;
}

.services-page .services-calendar-copy a {
  color: var(--wni-black);
  text-decoration-color: var(--wni-orange);
}

@keyframes wni-services-3d-drift {
  0% { transform: scale(1.02) translate3d(-.65%, 0, 0); }
  100% { transform: scale(1.055) translate3d(.65%, -1%, 0); }
}

@media (max-width: 760px) {
  .services-page .chapter-visual {
    border-radius: 20px;
  }

  .services-page .chapter-3d-visual {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-page .chapter-3d-visual {
    animation: none;
  }
}
