/* AVI STUDIO V14 — mobile service phone + stronger mobile scroll reveals */

.mobile-service-showcase {
  display: none;
}

@media (max-width: 768px) {
  /* The accordion keeps the explanation; the visual now lives in one phone below it. */
  .service-panel-media {
    display: none !important;
  }

  .mobile-service-showcase {
    display: grid;
    justify-items: center;
    width: 100%;
    margin: 38px auto 4px;
    padding: 0 8px;
  }

  .mobile-phone-frame {
    position: relative;
    width: min(72vw, 286px);
    aspect-ratio: 9 / 18.7;
    padding: 9px;
    border: 2px solid var(--ink);
    border-radius: 42px;
    background: var(--ink);
    box-shadow: 0 24px 45px rgba(30,29,26,.17);
    transform: rotate(-1.2deg);
  }

  .mobile-phone-frame::after {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 33px;
    z-index: 4;
  }

  .mobile-phone-speaker {
    position: absolute;
    z-index: 6;
    top: 13px;
    left: 50%;
    width: 29%;
    height: 20px;
    border-radius: 0 0 14px 14px;
    background: var(--ink);
    transform: translateX(-50%);
  }

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

  .mobile-phone-screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1.001);
    transition: opacity .32s ease, transform .65s cubic-bezier(.2,.7,.2,1);
  }

  .mobile-phone-screen.is-changing img {
    opacity: .18;
    transform: scale(1.045);
  }

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

  .mobile-phone-caption {
    position: absolute;
    z-index: 3;
    right: 17px;
    bottom: 18px;
    left: 17px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    color: var(--paper);
  }

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

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

  .mobile-service-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }

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

  .mobile-service-dots button.active {
    width: 24px;
    border-radius: 999px;
    background: var(--ink);
  }

  .mobile-service-showcase-note {
    margin-top: 11px;
    color: var(--ink-soft);
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
  }

  /* More visible, staggered scroll reveal on phones. */
  .fade-in,
  .mobile-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity .72s cubic-bezier(.22,.61,.36,1),
      transform .72s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .fade-in.visible,
  .mobile-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
