/* ========================================
   SERVICES PAGE
======================================== */

.services-page {
  background: #080808;
}

.services-hero,
.service-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.services-hero {
  min-height: 72vh;
  min-height: 72svh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-height) + var(--progress-height));
  background: #080808;
}

.services-hero__image,
.service-section__background {
  position: absolute;
  top: -10%;
  right: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

.services-hero__overlay,
.service-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.services-hero__overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .78)),
    linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .08));
}

.services-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  padding: clamp(7rem, 14vw, 12rem) clamp(1.5rem, 7vw, 7rem) 6rem;
  text-align: center;
}

.services-eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.services-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 11vw, 9.5rem);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.services-hero__intro {
  max-width: 740px;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

/* In-page service navigation */

.services-jump {
  position: sticky;
  top: calc(var(--header-height) + var(--progress-height));
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: clamp(.5rem, 2vw, 2rem);
  padding: .85rem clamp(.75rem, 4vw, 3rem);
  overflow-x: auto;
  background: rgba(8, 8, 8, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
}

.services-jump a {
  flex: 0 0 auto;
  padding: .7rem .9rem;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(1rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.services-jump__link {
  flex: 0 0 auto;

  padding: .7rem .9rem;

  color: rgba(255, 255, 255, .68);

  font-size: clamp(1rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    color 180ms ease;
}

/*
  Current section.
*/
.services-jump__link.active {
  color: var(--accent);
}

/*
  Keyboard accessibility.
*/
.services-jump__link:focus-visible {
  color: var(--accent);

  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/*
  Only apply hover styling on devices that have
  an actual mouse or trackpad.
*/
@media (hover: hover) and (pointer: fine) {
  .services-jump__link:hover {
    color: var(--accent);
  }
}

.services-jump__link.active::after{
    transform:scaleX(1);
}

/* Individual service sections */

.service-section {
  min-height: 90vh;
  padding:
    clamp(6rem, 10vw, 10rem)
    clamp(1.25rem, 5vw, 5rem)
    clamp(7rem, 12vw, 12rem);
  scroll-margin-top: calc(var(--header-height) + var(--progress-height) + 3.5rem);
  background: #0b0b0b;
}

.service-section__overlay {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .78), rgba(8, 8, 8, .93)),
    linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .28));
}

.service-section--reverse .service-section__overlay {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .78), rgba(8, 8, 8, .93)),
    linear-gradient(270deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .28));
}

.service-section__inner {
  position: relative;
  z-index: 2;
  width: min(1400px, 100%);
  margin: 0 auto;
}

.service-section__header {
  width: min(1050px, 100%);
  margin: 0 auto clamp(3.5rem, 7vw, 6.5rem);
  text-align: center;
}

.service-section__header h2,
.services-final-cta h2 {
  margin: 0;
  margin-top: 30px;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.service-section__lead {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.service-section__body {
  display: grid;
  grid-template-columns: minmax(350px, 3fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(2.5rem, 4vw, 7rem);
}

.service-section--reverse .service-section__body {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .82fr);
}

.service-section--reverse .service-copy {
  grid-column: 2;
  grid-row: 1;
}

.service-section--reverse .service-examples {
  grid-column: 1;
  grid-row: 1;
}

.service-copy {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: rgba(12, 12, 12, .76);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
	grid-column: 1;
}

.service-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.service-copy > p {
  margin: 2.4rem 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.75;
}

.service-points {
  display: grid;
  gap: .8rem;
  margin: 0;
	margin-left: 15px;
  padding: 0;
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.service-points li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.addon li::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: 7px;
  height: 2px;
  border-radius: 0%;
  background: var(--accent);
}

.service-points__subheading {
  margin: 0.2rem 0 0.2rem 0.8rem;

  color: rgba(255,255,255,.72);

  font-size: 1em;
  font-weight: 700;
}

.service-points__sublist {
  margin: 0;
  padding: 0 0 0 1.8rem;
  list-style: none;

  display: grid;
  gap: 0.2rem;
}

.service-points__sublist li {
  position: relative;
  padding-left: 0.9rem;
}

.service-points .service-points__sublist li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0.2em;

  width: 7px;
  height: 10px;

  background: none;
  border-radius: 0;

  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.button-link--filled {
  background: var(--accent);
  color: #000;
}

.button-link--filled:hover,
.button-link--filled:focus-visible {
  background: transparent;
  color: #fff;
}

/* ========================================
   SERVICE EXAMPLES
======================================== */

.service-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;

  width: 100%;
  min-width: 0;
  margin: 0;
}

/*
  Three equal-width tiles stacked vertically.
*/
.service-example {
  position: relative;

  width: 100%;
  min-height: clamp(220px, 18vw, 320px);
  aspect-ratio: 16 / 9;

  margin: 0;
  overflow: hidden;
  isolation: isolate;

  border: 0;
  border-radius: 15px;
  padding: 0;

  background: #151515;
  color: #fff;
  text-align: left;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .34);

  transition:
    transform 450ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 350ms ease;
}

/*
  Remove all previous diagonal positioning.
*/
.service-example:nth-child(1),
.service-example:nth-child(2),
.service-example:nth-child(3) {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
}

/*
  Keep the previously "large" example the same
  width and height as the others.
*/
.service-example--large {
  grid-column: auto;
  width: 100%;
  min-height: clamp(220px, 18vw, 320px);
}

/* Images */

.service-example img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 750ms cubic-bezier(.22, 1, .36, 1),
    filter 350ms ease;
}

/* Dark image overlay */

.service-example::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .04),
      rgba(0, 0, 0, .66)
    );

  pointer-events: none;
}

/* Captions */

.service-example figcaption,
.service-example__caption {
  position: absolute;

  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;

  z-index: 3;

  color: rgba(255, 255, 255, .84);

  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(7px);

  transition:
    transform 350ms cubic-bezier(.22, 1, .36, 1);
}

/* Card hover */

.service-example:hover,
.service-example:focus-visible {
  transform: translateY(-4px);

  box-shadow:
    0 24px 58px rgba(0, 0, 0, .46);
}

.service-example:hover img,
.service-example:focus-visible img {
  transform: scale(1.04);
  filter: brightness(.78);
}

.service-example:hover figcaption,
.service-example:focus-visible figcaption,
.service-example:hover .service-example__caption,
.service-example:focus-visible .service-example__caption {
  transform: translateY(0);
}

/* Video examples */

.service-example--video {
  cursor: pointer;
}

.service-example__play {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 3;

  display: grid;
  place-items: center;

  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);

  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;

  background: rgba(0, 0, 0, .34);

  transform: translate(-50%, -50%);

  transition:
    transform 350ms cubic-bezier(.22, 1, .36, 1),
    background 250ms ease,
    border-color 250ms ease;
}

.service-example__play svg {
  width: 36%;
  height: 36%;
  margin-left: 5%;
}

.service-example--video:hover .service-example__play,
.service-example--video:focus-visible .service-example__play {
  border-color: var(--accent);

  background: rgba(255, 153, 51, .2);

  transform:
    translate(-50%, -50%)
    scale(1.08);
}

/* ========================================
   VIDEO LIGHTBOX
======================================== */

.video-lightbox {
  position: fixed;
  inset: 0;

  z-index: 10000;

  display: grid;
  place-items: center;

  padding: clamp(1rem, 4vw, 3rem);

  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 300ms ease,
    visibility 300ms ease;
}

.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-lightbox__frame {
  display: block;

  width: min(1200px, 92vw);
  aspect-ratio: 16 / 9;

  border: 0;
  background: #000;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.72);

  transform: translateY(20px) scale(0.98);

  transition:
    transform 400ms cubic-bezier(.22, 1, .36, 1);
}

.video-lightbox.is-open .video-lightbox__frame {
  transform: translateY(0) scale(1);
}

.video-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  color: var(--accent);
  transform: scale(1.08);
}

body.lightbox-open {
  overflow: hidden;
}

/* Final CTA */

.services-final-cta {
  padding:
    clamp(6rem, 11vw, 11rem)
    clamp(1.25rem, 5vw, 5rem)
    clamp(7rem, 12vw, 12rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 153, 51, .14), transparent 45%),
    #080808;
}

/*.services-final-cta > p:last-of-type {
  max-width: 680px;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}*/

.service-actions--centered {
  justify-content: center;
}

/* Keep the Services nav state visible on this page. */

.nav-item--current > .nav-item__topline .nav-link,
.nav-item--current > .nav-item__topline .submenu-toggle {
  color: var(--accent);
}

.nav-item--current > .nav-item__topline .nav-link::after {
  transform: scaleX(1);
}

.nav-item--current > .nav-item__topline .nav-link__label::before {
  color: var(--accent);
}

@media (max-width: 950px) {
  .service-section__body,
  .service-section--reverse .service-section__body {
    grid-template-columns: 1fr;
  }

  .service-copy,
  .service-examples,
  .service-section--reverse .service-copy,
  .service-section--reverse .service-examples {
    grid-column: auto;
    grid-row: auto;
  }

  .service-copy,
  .service-section--reverse .service-copy {
    order: 1;
  }

  .service-examples,
  .service-section--reverse .service-examples {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .service-example,
  .service-example--large {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 700px) {
  .services-hero {
    min-height: 62svh;
  }

  .services-jump {
    justify-content: flex-start;
  }

  .service-section {
    min-height: auto;
    padding-inline: .9rem;
  }

	.service-examples {
	  gap: 10px;
	}

	.service-example,
	.service-example--large {
	  min-height: clamp(100px, 20vw, 420px);
	  aspect-ratio: 16 / 9;
	}

  .service-actions {
    flex-direction: column;
  }

  .service-actions .button-link {
    width: 100%;
  }

  .video-lightbox {
    padding: 0.75rem;
  }
	
  .video-lightbox__frame {
    width: 100%;
  }

  .video-lightbox__close {
    top: calc(
      var(--header-height) +
      var(--progress-height) +
      0.75rem
    );
    right: 0.75rem;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 700px) {
	.services-jump a {
		font-size: clamp(.7rem, 1vw, 1rem);
	}
}

@media (max-width: 420px) {
  .services-jump {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 50vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .services-jump::-webkit-scrollbar {
    display: none;
  }

  .services-jump__link {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: center;
  }
	.services-jump a {
		font-size: clamp(.9rem, 1vw, 1rem);
	}
	.services-jump__link:not(.active) {
	  color: rgba(255, 255, 255, .68);
	}

	.services-jump__link:not(.active):hover {
	  color: rgba(255, 255, 255, .68);
	}
}

@media (prefers-reduced-motion: reduce) {
  .services-hero__image,
  .service-section__background,
  .service-example img {
    transform: none !important;
  }
}
