/* Keep mobile artwork within the page and reserve the phone's own row. */
@media (max-width: 940px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .portal-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 0;
    overflow: hidden;
  }

  .portal-copy,
  .portal-visual {
    min-width: 0;
  }

  .portal-visual {
    width: 100%;
    max-width: 430px;
    min-height: 0;
    margin: 0 auto;
  }

  .portal-phone {
    position: relative;
    inset: auto;
    width: min(100%, 360px);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    clip-path: none;
    transform: none;
  }

  .portal-orbit {
    left: 50%;
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }

  .portal-float-status {
    top: 18%;
    left: 0;
  }

  .portal-float-security {
    top: 48%;
    right: 0;
  }

  .portal-float-update {
    left: 0;
    bottom: 14%;
  }
}

@media (max-width: 680px) {
  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-logo {
    min-width: 0;
    padding: 16px;
  }

  .client-logo img {
    max-width: min(100%, 142px);
  }

  .portal-float {
    max-width: 100%;
    gap: 6px;
    padding: 8px;
  }

  .portal-float strong {
    white-space: normal;
  }

  .portal-float .float-icon,
  .portal-float .float-dot {
    flex-shrink: 0;
  }
}
