/* Home-only project-entry enhancement. Loaded after /sto.css. */
.sto-home-focus {
  padding: 78px 0 74px;
  border-top: 1px solid #d9dfdc;
  border-bottom: 1px solid #d9dfdc;
  background: #f7f4ec;
}

.sto-home-focus__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  align-items: end;
  gap: clamp(34px, 7vw, 118px);
  margin-bottom: 33px;
}

.sto-home-focus__heading .sto-kicker {
  grid-column: 1 / -1;
  margin-bottom: -15px;
}

.sto-home-focus__heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--sto-navy);
  font-size: clamp(32px, 3vw, 49px);
  line-height: 1.34;
}

.sto-home-focus__heading > p {
  max-width: 535px;
  margin: 0;
  color: var(--sto-muted);
  font-size: 16px;
  line-height: 1.85;
}

.sto-home-focus__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #c7d3d0;
  background: #c7d3d0;
  gap: 1px;
}

.sto-home-focus__card {
  display: flex;
  min-height: 244px;
  flex-direction: column;
  padding: 25px 27px 23px;
  background: var(--sto-paper);
}

.sto-home-focus__index,
.sto-home-focus__label {
  color: #815521;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.sto-home-focus__card h3,
.sto-home-focus__reading h3 {
  color: var(--sto-navy);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}

.sto-home-focus__card h3 {
  margin: 17px 0 11px;
}

.sto-home-focus__card p {
  flex: 1;
  margin: 0 0 20px;
  color: #47626a;
  font-size: 17px;
  line-height: 1.75;
}

.sto-home-focus__card a,
.sto-home-focus__links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--sto-navy);
  font-size: 14px;
  font-weight: 800;
}

.sto-home-focus__card a {
  padding-top: 14px;
  border-top: 1px solid #d9e1df;
}

.sto-home-focus__card a:hover,
.sto-home-focus__links a:hover {
  color: var(--sto-copper);
}

.sto-home-focus__reading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(205px, 0.55fr) minmax(
      220px,
      0.47fr
    );
  align-items: center;
  gap: clamp(25px, 4vw, 64px);
  margin-top: 19px;
  padding: 24px 27px;
  border-left: 3px solid var(--sto-copper);
  background: #e9eeeb;
}

.sto-home-focus__reading h3 {
  margin: 7px 0 5px;
  font-size: 22px;
}

.sto-home-focus__reading p {
  max-width: 650px;
  margin: 0;
  color: #4b656c;
  font-size: 14px;
  line-height: 1.72;
}

.sto-home-focus__links {
  display: grid;
  gap: 11px;
  padding-left: 23px;
  border-left: 1px solid #c4d0cd;
}

.sto-home-focus__consult {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  background: var(--sto-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.sto-home-focus__consult:hover {
  background: var(--sto-navy-2);
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .sto-home-focus__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sto-home-focus__reading {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
  }

  .sto-home-focus__consult {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .sto-home-focus {
    padding: 61px 0;
  }

  .sto-home-focus__heading {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 27px;
  }

  .sto-home-focus__heading .sto-kicker {
    margin-bottom: 0;
  }

  .sto-home-focus__heading h2 {
    font-size: 34px;
  }

  .sto-home-focus__heading > p {
    font-size: 16px;
  }

  .sto-home-focus__cards,
  .sto-home-focus__reading {
    grid-template-columns: 1fr;
  }

  .sto-home-focus__card {
    min-height: 0;
    padding: 23px;
  }

  .sto-home-focus__reading {
    gap: 20px;
    padding: 22px;
  }

  .sto-home-focus__links {
    padding-top: 17px;
    padding-left: 0;
    border-top: 1px solid #c4d0cd;
    border-left: 0;
  }
}

@media (max-width: 510px) {
  .sto-home-focus {
    padding: 52px 0;
  }

  .sto-home-focus__heading h2 {
    font-size: 31px;
  }

  .sto-home-focus__card h3 {
    font-size: 23px;
  }

  .sto-home-focus__consult {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sto-home-focus__consult {
    transition: none;
  }
}
