@media (max-width: 1000px) {
  .clients .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  body {
    width: auto;
    padding-inline: 3rem;
  }
  .clients .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    grid-template-areas:
      "aboutme"
      "profile-img"
      "nav";
    grid-template-columns: 1fr;
  }
  .profile-img {
    padding-left: 0;
    width: 88%;
    margin-inline: auto;
    margin-right: auto;
    margin-bottom: 2rem;
  }
  nav {
    padding-right: 0;
  }
  nav ul {
    gap: 2.5rem;
  }
  .page > section {
    margin-top: 6rem;
  }
  .booking-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .featured-video {
    aspect-ratio: 16 / 11;
  }
  .featured-video::after {
    background: linear-gradient(to top,
      rgb(6 8 16 / .95) 0%,
      rgb(6 8 16 / .6) 45%,
      transparent 85%);
  }
  .featured-video .texts {
    inset: auto 0 0 0;
    width: auto;
    padding: 1.5rem;
    justify-content: flex-end;
  }
  .featured-video .title {
    font-size: 1.3rem;
  }
  .awards-card {
    padding: 2rem;
  }
  .awards-card ul {
    columns: 1;
  }
}

@media (max-width: 650px) {
  body {
    padding-inline: 2rem;
  }
  h1 {
    text-align: center;
  }
  .profile-img {
    width: 100%;
  }
  .grid {
    --min-column-size: 10rem;
  }
  .clients .clients-grid,
  .performances .videos-grid {
    --min-column-size: 10rem;
  }
  .performances .videos-grid {
    grid-template-columns: 1fr;
  }
  .performances .videos-grid .card,
  .performances .videos-grid .card.playing {
    aspect-ratio: 16 / 9;
  }
  .certificate img {
    width: max(20vw, 75px);
  }
  .certificate p {
    font-size: 0.818182rem;
    line-height: 1.4rem;
  }
  .certificate p .certificate-title {
    font-size: 1rem;
  }
  .experience .job {
    grid-template-columns: 5.5rem 1fr;
    gap: 1.25rem;
  }
  .experience .job-logo {
    padding: 0.7rem;
  }
  .venues-grid {
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  }
}

@media (max-width: 600px) {
  .certificates {
    gap: 1rem;
    padding-inline: 0;
  }

  header .aboutme .descriptive-text {
    min-height: 11rem;
  }

  .skills-grid {
    --min-column-size: 5rem;
  }

  .skills img {
    width: 40%;
  }

  .contact .contact-links {
    gap: 3rem;
  }
}

@media (max-width: 550px) {
  body {
    padding-inline: 1.5rem;
    padding-bottom: 2.5rem;
  }
  /* side by side leaves the description too narrow, so the logo sits next to the
   * job title and the description runs the full width underneath it */
  .experience .job {
    grid-template-columns: 5rem 1fr;
    column-gap: 1rem;
    row-gap: 0;
  }
  .experience .job-text {
    display: contents;
  }
  .experience .job-logo {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    padding: 0.6rem;
  }
  .experience .title,
  .experience .subtitle,
  .experience .period {
    grid-column: 2;
  }
  .experience .body-text {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
  }
  .experience .job + .job {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hairline-color);
  }

  /* two client cards per row, with room to breathe between rows. stated
   * explicitly, because auto-fit fell to three columns near 550px. */
  .clients .clients-grid {
    column-gap: 0.7rem;
    row-gap: 1.5rem;
  }
  .clients-grid .lil-text-content {
    margin-top: -1.25rem;
    margin-bottom: 2rem;
  }
  .clients-grid img {
    max-height: 3.25rem;
  }
  .clients-grid .text-content {
    padding-inline: 0.5rem;
  }
  .clients-grid .body-text {
    font-size: 0.8rem;
  }
  .clients-grid .subtitle {
    font-size: 0.8rem;
  }
  .clients-grid .title {
    font-size: 0.9rem;
  }
  .clients-grid .chevron {
    bottom: 13px;
  }
  .grid {
    gap: 2rem;
  }

  nav ul {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .page > section {
    margin-top: 4.5rem;
  }

  .booking-card {
    padding: 1.5rem;
  }
}
