@media (max-width: 1199.98px) {
  .hero-accent {
    right: 2rem;
    max-width: 240px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.8rem 0 !important;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    width: 42px;
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background-image: linear-gradient(90deg, rgba(8, 21, 37, 0.94), rgba(8, 21, 37, 0.76)), var(--hero-image);
  }

  .hero-accent {
    position: relative;
    right: auto;
    bottom: auto;
    margin-bottom: 3rem;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 6;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 58px 0;
  }

  .page-hero {
    padding: 104px 0 56px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 96px 0 40px;
  }

  .hero-title {
    font-size: 4.2rem;
  }

  .section-title {
    font-size: 2.55rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metric {
    min-width: 42%;
  }

  .gallery-grid {
    gap: 0.75rem;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 12;
    min-height: 240px;
  }

  .card-image {
    height: 210px;
  }
}

@media (max-width: 424.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar {
    min-height: 68px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2.05rem;
  }

  .filter-toolbar {
    padding: 1rem !important;
  }

  .filter-toolbar .btn,
  .filter-toolbar .form-control {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero-title.hero-title-typed {
    font-size: clamp(1.28rem, 5.2vw, 2rem);
    line-height: 1.06;
    min-height: calc(2em + 0.16em);
  }
}

@media (max-width: 424.98px) {
  .hero-title.hero-title-typed {
    font-size: clamp(1.08rem, 5.1vw, 1.28rem);
    line-height: 1.08;
  }
}