/* AVI STUDIO V17 — two phones on desktop and new portfolio images */

/* Homepage only: replace the former right-side service photo with the phone composition. */
@media (min-width: 769px) {
  .home-services-explorer .mobile-service-showcase {
    display: block !important;
    width: 100%;
    min-width: 0;
    align-self: center;
    opacity: 1;
    visibility: visible;
  }

  .home-services-explorer .service-visual {
    display: none !important;
  }

  .home-services-explorer .mobile-phones-stage {
    position: relative;
    display: block;
    width: 100%;
    min-height: 610px;
    overflow: hidden;
    isolation: isolate;
  }

  .home-services-explorer .mobile-phones-stage::before {
    content: "";
    position: absolute;
    z-index: -2;
    left: 50%;
    bottom: -145px;
    width: 126%;
    height: 320px;
    border-radius: 50% 50% 0 0;
    background: rgba(251, 249, 245, .55);
    transform: translateX(-50%);
  }

  .home-services-explorer .mobile-phones-shape {
    position: absolute;
    z-index: -1;
    top: 78px;
    left: 50%;
    width: min(31vw, 410px);
    height: min(38vw, 500px);
    border: 1px solid rgba(117, 95, 79, .25);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-11deg);
  }

  .home-services-explorer .mobile-phone {
    position: absolute;
    z-index: 2;
    width: clamp(190px, 17vw, 248px);
    aspect-ratio: 9 / 19;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 39px;
    background: var(--ink);
    box-shadow:
      0 22px 52px rgba(30, 29, 26, .24),
      inset 0 0 0 1px rgba(255, 255, 255, .10);
    transition:
      transform .75s cubic-bezier(.2,.75,.2,1),
      opacity .28s ease;
  }

  .home-services-explorer .mobile-phone-left {
    top: 24px;
    left: 3%;
    transform: rotate(-4deg);
  }

  .home-services-explorer .mobile-phone-right {
    top: 166px;
    right: 2%;
    transform: rotate(4deg);
  }

  .home-services-explorer .mobile-phone-side {
    position: absolute;
    top: 90px;
    width: 3px;
    height: 68px;
    border-radius: 3px;
    background: var(--ink);
  }

  .home-services-explorer .mobile-phone-side-left {
    left: -4px;
  }

  .home-services-explorer .mobile-phone-side-right {
    right: -4px;
  }

  .home-services-explorer .mobile-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 31px;
    background: var(--paper-2);
  }

  .home-services-explorer .mobile-phone-notch {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 50%;
    width: 36%;
    height: 20px;
    border-radius: 999px;
    background: var(--ink);
    transform: translateX(-50%);
  }

  .home-services-explorer .mobile-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1.01);
    transition:
      opacity .28s ease,
      transform .72s cubic-bezier(.2,.75,.2,1);
  }

  .home-services-explorer .mobile-phone-screen::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 31%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(30,29,26,.66), transparent);
  }

  .home-services-explorer .mobile-phone-caption {
    position: absolute;
    z-index: 4;
    right: 16px;
    bottom: 17px;
    left: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    color: var(--paper);
  }

  .home-services-explorer .mobile-phone-caption span {
    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    line-height: 1;
  }

  .home-services-explorer .mobile-phone-caption strong {
    max-width: 72%;
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: .11em;
    text-align: right;
    text-transform: uppercase;
  }

  .home-services-explorer .mobile-phones-stage.is-changing .mobile-phone-left {
    transform: rotate(-4deg) translateY(6px) scale(.985);
  }

  .home-services-explorer .mobile-phones-stage.is-changing .mobile-phone-right {
    transform: rotate(4deg) translateY(-6px) scale(.985);
  }

  .home-services-explorer .mobile-phones-stage.is-changing img {
    opacity: .24;
    transform: scale(1.055);
  }

  .home-services-explorer .mobile-service-dots {
    position: relative;
    z-index: 6;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 250px;
    margin: -4px auto 0;
  }

  .home-services-explorer .mobile-service-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
  }

  .home-services-explorer .mobile-service-dots button.active {
    width: 22px;
    background: var(--ink);
  }
}

/* The extra dots remain compact on mobile. */
@media (max-width: 768px) {
  .home-services-explorer .mobile-service-dots {
    max-width: 210px;
    margin-right: auto;
    margin-left: auto;
    flex-wrap: wrap;
    row-gap: 7px;
  }
}
