/* ==========================================================
   HOME — INTRO
   ========================================================== */

.intro {
  padding-top: 0;
}

.intro-heading {
  grid-column: 1 / 9;
}

.intro-location {
  grid-column: 9 / 13;
}

.intro h1,
.intro h2 {
  margin: 0;
  font-weight: 400;
}


/* ==========================================================
   HOME — TESTIMONIALS
   ========================================================== */

.testimonials {
  padding-top: 60px;
}

.testimonial {
  grid-column: 1 / 9;
  margin: 0 0 40px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote a {
  color: inherit;
  text-decoration: none;
}

.testimonial blockquote a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.testimonial figcaption {
  margin-top: 10px;
}


/* ==========================================================
   HOME — PROJECTS
   ========================================================== */

.projects {
  padding-top: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
}

.project-card {
  grid-column: span 4;

  display: flex;
  flex-direction: column;

  color: inherit;
  text-decoration: none;
}

.project-image {
  position: relative;
  overflow: hidden;

  aspect-ratio: 4 / 5;
  border-top: 1px solid currentColor;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.project-card:hover .project-hover {
  opacity: 1;
}

.project-meta {
  order: -1;

  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-bottom: 5px;

  font-size: var(--type-small);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking);
}

.project-meta span:last-child {
  text-align: left;
}


/* ==========================================================
   HOME — TABLET
   ========================================================== */

@media (max-width: 1199px) {

  .project-card {
    grid-column: span 6;
  }

  .testimonials {
    padding-top: 60px;
  }

  .testimonial {
    grid-column: 1 / 13;
    margin-bottom: 30px;
  }

  .projects {
    padding-top: 20px;
  }

.project-image .project-hover {
  opacity: 1;
}

}


/* ==========================================================
   HOME — MOBILE
   ========================================================== */

@media (max-width: 767px) {

  .intro {
    padding-top: 0;
  }

  .intro-heading {
    grid-column: 1 / 13;
  }

  .intro-location {
    grid-column: 1 / 13;
    margin-top: 10px;
  }

.intro h1,
.intro h2 {
  font-size: var(--type-medium);
  line-height: var(--leading-medium);
  letter-spacing: var(--tracking);
}

  .testimonials {
    padding-top: 40px;
  }

  .testimonial {
    grid-column: 1 / 13;
    margin-bottom: 30px;
  }

.testimonial blockquote {
  font-size: var(--type-medium);
  line-height: var(--leading-medium);
  letter-spacing: var(--tracking);
}

.testimonial figcaption {
  font-size: var(--type-small);
  line-height: var(--leading-small);
  letter-spacing: var(--tracking);
}


  .projects {
    padding-top: 30px;
  }

  .projects-grid {
    row-gap: 60px;
  }

  .project-card {
    grid-column: 1 / 13;
  }

.project-image .project-hover {
  opacity: 1;
}

}