.site-scene__word--services { opacity: 0; }

.is-services-visible .site-header__item--services { background: #212121; color: #fff; }

.services {
  position: relative;
  width: 100vw;
  min-height: 720px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff79e;
  color: #212121;
}

.services__backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.services__backdrop img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--scene-word-span) * 1.06909);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}
.has-scene-animation .services { background: transparent; }
.has-scene-animation .services__backdrop { display: none; }

.services__title {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 60px;
  margin: 0;
  padding: 0 32.857px;
  font: 500 60px/1 "ABC Diatype", Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.services__stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 720px;
  transform: translate(-50%, -50%);
}

.service-note {
  position: absolute;
  display: grid;
  place-items: center;
}

.service-note__paper {
  display: flex;
  flex-direction: column;
  width: 240px;
  height: 320px;
  padding: 16px;
  background: #fff;
  box-shadow: 4px 8px 8px rgba(0, 0, 0, .1);
  transform: rotate(var(--note-angle));
}

@media (hover: hover) and (pointer: fine) {
  .service-note { touch-action: none; }
  .service-note__paper { transition: transform 180ms ease, box-shadow 180ms ease; }
  .service-note:hover .service-note__paper,
  .service-note.is-dragging .service-note__paper {
    transform: rotate(var(--note-angle)) scale(1.035);
    box-shadow: 8px 16px 18px rgba(0, 0, 0, .16);
  }
}

.service-note__icon {
  display: block;
  flex: none;
  width: 42px;
  height: 42px;
}

.service-note__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  font-family: "ABC Diatype", Arial, sans-serif;
  font-weight: 500;
}

.service-note h3,
.service-note p { margin: 0; }
.service-note h3 { color: #212121; font-size: 24px; font-weight: 500; line-height: 1.1; text-transform: uppercase; }
.service-note p { font-size: 16px; line-height: 1.1; }

.service-note--product { z-index: 4; top: 234px; left: calc(8.33% + 7px); width: 259.164px; height: 334.11px; --note-angle: -3.51deg; }
.service-note--web { z-index: 3; top: 242px; left: calc(25% - 1px); width: 276.451px; height: 346.339px; --note-angle: 6.85deg; }
.service-note--audit { z-index: 5; top: 235px; left: calc(41.67% - 3px); width: 249.935px; height: 327.382px; --note-angle: -1.8deg; }
.service-note--branding { z-index: 4; top: 271.8px; left: calc(58.33% - 1.75px); width: 252.251px; height: 329.083px; --note-angle: 2.23deg; }
.service-note--ux { z-index: 1; top: 234px; left: calc(66.67% + 102px); width: 261.37px; height: 335.698px; --note-angle: -3.93deg; }

@media (max-width: 1100px) {
  .services { height: auto; min-height: 100vh; padding: 124px var(--site-gutter) 40px; }
  .services__stage {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, 240px);
    justify-content: center;
    gap: 42px 52px;
    width: 100%;
    height: auto;
    transform: none;
  }
  .service-note { position: relative; top: auto; right: auto; left: auto; width: 240px; height: 320px; }
}

@media (max-width: 620px) {
  .services { height: 100svh; min-height: 0; padding: 0; }
  .site-scene__word--services img,
  .services__backdrop img { width: auto; height: 650px; }
  .services__title { top: 74px; width: auto; height: 36px; padding: 0 20px; overflow: visible; clip-path: none; font-size: 36px; white-space: nowrap; }
  .services__stage {
    position: absolute;
    top: calc(50% - 26px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 400px;
    padding: 0 calc(50% - 120px);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-50%);
  }
  .services__stage::-webkit-scrollbar { display: none; }
  .services__stage:focus-visible { outline: 2px solid #212121; outline-offset: -2px; }
  .service-note { position: relative; top: auto; right: auto; left: auto; flex: 0 0 240px; width: 240px; height: 340px; scroll-snap-align: center; scroll-snap-stop: always; }
  .service-note.is-active { z-index: 10; }
}
