@media (max-width: 1179px) {
  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 2rem;
    background: var(--navy);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.4rem);
  }

  html.js .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  html.js .nav__links,
  html.js .nav__tools {
    flex-direction: column;
    align-items: flex-start;
  }

  html.js .nav__links a,
  html.js .btn {
    width: min(100%, 24rem);
  }
}

@media (min-width: 768px) {
  .promise__grid,
  .journey__steps,
  .home__split,
  .concepts,
  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise__grid,
  .journey__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
  }

  .arch__board {
    grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 0.8fr) 2.5rem minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 767px) {
  .hero__routes {
    display: none;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, #061b46 0%, rgba(6, 27, 70, 0.88) 42%, rgba(6, 27, 70, 0.45) 70%, rgba(6, 27, 70, 0.72) 100%);
  }

  .hero__visual img {
    object-position: 80% center;
  }

  .arch__line-svg {
    width: 1.5rem;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  .hero__routes {
    left: 46%;
    width: 54%;
  }

  .home__intro {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
  }

  .home__figure img {
    height: 100%;
    max-height: 38rem;
    object-fit: cover;
  }

  .access__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }

  .community__grid {
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
  }

  .community article:first-child {
    grid-row: span 2;
  }

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

  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1180px) {
  .header {
    background: transparent;
  }

  .header.is-stuck,
  .header.is-open {
    background: #061b46;
  }

  .nav {
    margin-left: auto;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1440px) {
  .hero__copy {
    margin-bottom: 4rem;
  }
}

.legal .header {
  background: rgba(6, 27, 70, 0.98);
}

.legal main {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
}

@media (forced-colors: active) {
  .btn,
  .arch__node {
    border: 1px solid ButtonText;
  }
}
