/* Homepage */

.home .site-header { color: var(--cream); }

.home-hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 128px 0 32px;
  background: var(--ink);
  color: var(--cream);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero h1 {
  width: calc((100% - 32px) * .75);
  margin-left: 32px;
  font-size: 48px;
  line-height: 64px;
  font-weight: 300;
}

.hero-intro {
  align-self: end;
  width: 588px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
}

.hero-intro p {
  width: 91.6667%;
  padding-right: 32px;
}

.home-solutions { padding-top: 96px; }

.home-solutions > h2 { max-width: 70%; }

.solution-summary {
  width: 75%;
  margin: 48px 0 0 auto;
}

.lead {
  max-width: 70%;
  font-size: 20px;
}

.solution-grid, .area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 31.5%));
  justify-content: space-between;
  row-gap: 32px;
}

.solution-grid { margin-top: 144px; }

.solution-grid article {
  border-top: 1px solid #b8bcc7;
  padding-top: 32px;
}

.solution-grid h3 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 300;
}

.solution-grid p { margin-top: 48px; }

.home-areas { margin-top: 128px; }

.area-grid {
  margin-top: 48px;
  grid-template-columns: repeat(3, minmax(0, 32%));
  row-gap: 16px;
}

.area-card {
  border-radius: var(--round);
  background: #262626;
  color: var(--cream);
  padding: 32px 24px;
  min-height: 505px;
  font-weight: 300;
}

.area-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.area-card h3 {
  font-size: var(--subhead);
  font-weight: 300;
  margin: 72px 0 16px;
}

.area-card p { opacity: .8; }

.area-card :is(h3, p) { transition: transform .5s; }

@media (hover: hover) {
  .area-card:hover :is(h3, p) { transform: translateY(-12px); }
}

.home-photo { margin: 128px var(--gutter) 144px; }

.home-photo img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  border-radius: var(--round);
}

@media (min-width: 1536px) {
  .home-hero h1 {
    font-size: 80px;
    line-height: 88px;
  }

  .solution-grid { margin-top: 160px; }

  .solution-grid h3 { min-height: 72px; }

  .solution-summary { margin-top: 64px; }

  .home-areas { margin-top: 144px; }

  .area-grid { grid-template-columns: repeat(3, 32.5%); }

  .home-photo { margin-top: 176px; }
}

@media (min-width: 2560px) {
  .solution-grid h3 { min-height: 0; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .solution-grid { margin-top: 128px; }

  .solution-grid p { margin-top: 36px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .area-grid { grid-template-columns: repeat(2, 48%); }

  .home-hero h1 { width: calc((100% - 32px) * .916667); }

  .hero-intro {
    width: 564px;
    font-size: 16px;
    line-height: 24px;
  }

  .home-solutions { padding-top: 48px; }

  .solution-summary {
    width: 80%;
    margin-top: 40px;
  }

  .lead { font-size: 16px; }

  .solution-grid { margin-top: 112px; }

  .solution-grid p, .area-card p { font-size: 14px; }

  .home-areas { margin-top: 120px; }

  .home-photo { margin-inline: 0; }

  .home-photo img { border-radius: 0; }

  .area-card h3, .home-areas h2 { line-height: 30px; }
}

@media (max-width: 767px) {
  .home .site-header { color: var(--ink); }

  .home-hero { padding-top: 96px; }

  .home-hero h1 {
    margin-left: 16px;
    width: calc((100% - 16px) * .916667);
    font-size: 32px;
    line-height: 44px;
  }

  .hero-intro {
    width: 91.6667%;
    font-size: 14px;
    line-height: 21px;
  }

  .hero-intro p { margin-left: auto; }

  .home-solutions { padding-top: 48px; }

  .home-solutions > h2, .solution-summary, .lead {
    width: 100%;
    max-width: none;
  }

  .lead, .solution-grid p, .area-card p {
    font-size: 14px;
    line-height: 21px;
  }

  .solution-summary { margin-top: 32px; }

  .solution-grid, .area-grid { grid-template-columns: 1fr; }

  .solution-grid { margin-top: 80px; }

  .solution-grid p { margin-top: 24px; }

  .home-areas { margin-top: 112px; }

  .area-card {
    min-height: 432px;
    padding-bottom: 0;
  }

  .home-photo { margin: 80px 0 144px; }

  .home-photo img { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .area-card :is(h3, p) { transition: none; }
}
