@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    position: relative;
  }
  .mobile-nav summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
  }
  .mobile-nav nav {
    position: absolute;
    top: 38px;
    right: 0;
    display: grid;
    min-width: 180px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }
  .mobile-nav a {
    padding: 11px 13px;
  }
  .hero {
    min-height: 670px;
    align-items: flex-end;
    padding-bottom: 70px;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      var(--paper) 6%,
      rgba(250, 248, 243, 0.98) 46%,
      rgba(250, 248, 243, 0.32) 77%,
      rgba(250, 248, 243, 0) 100%
    );
  }
  .hero-art {
    top: 10px;
    right: -20%;
    width: 120vw;
    transform: none;
    opacity: 0.82;
  }
  .hero-copy {
    width: 100%;
  }
  .systems-section {
    grid-template-columns: 1fr;
  }
  .systems-section img {
    max-width: 720px;
    justify-self: center;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-grid article:nth-child(2) {
    border-right: 0;
  }
  .service-grid article:nth-child(3),
  .service-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .product-section {
    gap: 7vw;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .hero {
    min-height: 680px;
    padding-top: 250px;
  }
  .hero-art {
    top: -8px;
    right: -50%;
    width: 165vw;
  }
  h1 {
    font-size: 2.45rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .lead {
    font-size: 1.02rem;
  }
  .actions .button {
    width: 100%;
  }
  .capabilities {
    grid-template-columns: 1fr 1fr;
  }
  .capabilities span:nth-child(2) {
    border-right: 0;
  }
  .capabilities span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }
  .section-heading {
    margin-bottom: 38px;
  }
  .service-grid,
  .systems-section,
  .about,
  .process-grid,
  .product-section,
  footer {
    grid-template-columns: 1fr;
  }
  .service-grid article,
  .service-grid article + article {
    padding: 26px 0 20px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .service-grid {
    border-top: 0;
  }
  article b,
  .process-grid article b {
    margin-bottom: 24px;
  }
  .product-section {
    gap: 48px;
  }
  .product-section img {
    justify-self: center;
  }
  .about {
    gap: 18px;
  }
  .process-grid {
    gap: 32px;
  }
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  footer {
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
