/* Put the call to action in the unlit half of the workstation photograph. */
.prefoot {
  background: #09131e;
}

.prefoot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 16 27 / 48%), rgb(6 16 27 / 12%) 46%, transparent 64%),
    url("/media/closing-studio.webp") right center / cover no-repeat;
}

.prefoot-inner {
  min-height: clamp(28rem, 41.7vw, 49rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 7vw, 8rem);
}

.prefoot-inner > div {
  max-width: 48%;
}

.prefoot h2 {
  font-size: clamp(2.7rem, 5.6vw, 6rem);
}

.prefoot p {
  color: #e2ebf3;
}

@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .prefoot::before {
      transform-origin: right center;
      animation: workstation-settle linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 85%;
    }
    @keyframes workstation-settle {
      from { transform: scale(1.012); }
      to { transform: scale(1); }
    }
  }
}

/* The separate frame keeps both devices visible and leaves the type on solid ink. */
@media (max-width: 900px) {
  .prefoot-inner {
    min-height: 0;
    padding-block: clamp(3.5rem, 8vw, 5rem) 1.75rem;
  }
  .prefoot-inner > div {
    max-width: 100%;
  }
  .prefoot h2 {
    font-size: clamp(3rem, 8vw, 4.6rem);
  }
  .prefoot::before {
    content: none;
  }
  .prefoot::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 890 / 661;
    max-height: 28rem;
    background:
      linear-gradient(180deg, #09131e, transparent 18%),
      url("/media/closing-studio-mobile.webp") center 62% / cover no-repeat;
  }
}
