@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  .nav {
    height: 66px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    line-height: 1;
  }

  .menu-toggle[aria-expanded="true"] {
    background: #16425a;
  }

  .mobile-menu {
    position: fixed;
    inset: 67px 0 auto;
    z-index: 79;
    display: none;
    max-height: calc(100vh - 67px);
    max-height: calc(100dvh - 67px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px clamp(14px, 4vw, 32px) max(14px, env(safe-area-inset-bottom));
    background: #042a41;
    box-shadow: 0 20px 44px rgb(0 0 0 / 22%);
    transform: none;
    gap: 3px;
  }

  .mobile-menu.open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #e4eff4;
    font-size: 15px;
    font-weight: 750;
  }

  .mobile-menu a[aria-current="page"],
  .mobile-menu a:hover {
    color: #fff;
    background: #16425a;
  }

  .mobile-menu a:focus-visible {
    outline-offset: -3px;
  }

  .btn {
    min-height: 44px;
    max-width: 100%;
    text-align: center;
  }

  .live-visual {
    min-height: 0;
  }

  .live-visual .portal-shell {
    position: relative;
    inset: auto;
    transform: none;
  }

  .portal-body {
    height: auto;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .live-visual .float-card {
    display: none;
  }

  .report-stack {
    display: grid;
    height: auto;
    padding: 10px 14px 0 0;
  }

  .report-page {
    position: relative;
    inset: auto;
    height: auto;
    transform: none;
  }

  .report-page.back1,
  .report-page.back2 {
    position: absolute;
    inset: 10px 14px 0 0;
    transform: translate(7px, -5px);
  }

  .report-page.back2 {
    transform: translate(3px, -2px);
  }

  .footer-grid a {
    overflow-wrap: anywhere;
  }

  .footer-grid a:not(.logo),
  .home-email,
  .home-process-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-grid a:not(.logo) {
    display: flex;
    margin: 0;
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .page-hero {
    padding-block: clamp(32px, 10vw, 52px) 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(35px, 11vw, 48px);
  }

  .section {
    padding-block: 42px;
  }

  .section h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .portal-body {
    display: block;
  }

  .mini-side {
    display: none;
  }

  .mini-main {
    padding: clamp(12px, 4vw, 18px);
  }

  .mini-title .demo,
  .kpi small,
  .count-row small,
  .event,
  .event b {
    font-size: 11px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .count-row,
  .lower-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scan-box {
    display: none;
  }

  .report-kpi {
    padding: 8px;
  }

  .report-kpi small {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .report-sub,
  .report-note {
    font-size: 12px;
  }

  .footer {
    padding-block: 34px max(24px, env(safe-area-inset-bottom));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}
