/* Responsive tweaks for tablet and mobile breakpoints. */

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.4rem 1.4rem;
    margin-top: 0.9rem;
    transition: background-color var(--dur-med) ease,
      border-color var(--dur-med) ease;
  }

  .site-header .nav-link {
    color: var(--clr-text-soft);
    padding: 0.7rem 0.2rem;
    font-size: 1.02rem;
  }

  .site-header .nav-link:hover,
  .site-header .nav-link.active {
    color: var(--clr-accent);
  }

  .site-header .nav-link::after {
    left: 0.2rem;
    right: auto;
    width: 2.2rem;
    bottom: 0.4rem;
    background: var(--clr-accent);
  }

  .nav-actions {
    width: 100%;
    border-top: 1px solid var(--clr-border);
    margin-top: 0.9rem;
    padding-top: 1.1rem;
    justify-content: space-between;
  }

  .nav-socials {
    border-inline-end: 0;
    padding-inline-end: 0;
  }

  .nav-socials .social-btn {
    color: var(--clr-text-soft);
  }

  .nav-socials .social-btn:hover {
    color: var(--clr-on-accent);
  }

  .hero-figure {
    margin-block: 2.25rem;
  }

  .hero-steps {
    margin-top: 1rem;
  }

  .step p {
    max-width: none;
  }

  .now-panel.overlap {
    position: static;
    transform: none;
    margin: 1.5rem clamp(1.5rem, 4vw, 3.25rem) 0 auto;
  }
}

@media (max-width: 767.98px) {
  .hero-line {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .section-head.split {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 16 / 10;
  }

  .timeline {
    padding-left: 1.7rem;
  }

  .timeline-item::before {
    left: calc(-1.7rem + 0.32rem - 6px);
  }

  .back-top {
    right: 1rem;
    bottom: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .col-6 {
    flex: 0 0 auto;
    width: 100%;
  }

  .back-top {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .hero-socials .social-btn {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 0.95rem;
  }

  .hero-socials .socials-label {
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .btn {
    padding: 0.66rem 1.3rem;
    font-size: 0.92rem;
  }

  .btn-circle {
    width: 2.8rem;
    height: 2.8rem;
  }

  .feature-row {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1.25rem 1.25rem;
  }

  .row-arrow {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
  }

  .card-x {
    padding: 1.4rem;
  }

  .project-body {
    padding: 1.15rem 1.2rem 1.3rem;
  }

  .band-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .now-key {
    flex-basis: 4.6rem;
    font-size: 0.7rem;
  }

  .footer-giant {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .toast-container {
    left: 1rem !important;
    right: 1rem;
  }

  .modal-dialog {
    margin: 0.75rem;
  }
}
