/* Portfolio additions layered over the existing visual system. */
.caseStudies {
  color: #f4f1ea;
  background: linear-gradient(180deg, #0d1116 0%, #121821 100%);
  border-top: 1px solid #d6b45e26;
  border-bottom: 1px solid #d6b45e26;
  padding: clamp(5rem, 9vw, 9rem) 1.25rem;
}

.landingRole {
  color: #d6b45e;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.6;
  margin: 1.25rem 0 0;
  max-width: 42rem;
  text-transform: uppercase;
}

.caseStudiesInner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.caseStudiesHeader {
  max-width: 760px;
  margin-bottom: 3rem;
}

.caseStudiesLabel {
  color: #d6b45e;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 900;
  margin: 0 0 1rem;
}

.caseStudiesHeader h2 {
  color: #fffdf7;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.caseStudiesHeader > p:last-child {
  color: #aeb6c2;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.caseStudyGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.caseStudyCard {
  background: #171d26;
  border: 1px solid #d6b45e2e;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
}

.caseStudyTopline {
  color: #d6b45e;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

.caseStudyTopline span:last-child {
  color: #9da7b5;
  text-align: right;
}

.caseStudyCard h3 {
  color: #fffdf7;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.caseStudyDescription,
.caseStudyCard li,
.caseStudyResult p {
  color: #b8c0ca;
  font-size: .94rem;
  line-height: 1.65;
}

.caseStudyDescription {
  margin: 0 0 1.25rem;
}

.caseStudyCard ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

.caseStudyCard li + li {
  margin-top: .55rem;
}

.caseStudyResult {
  border-top: 1px solid #d6b45e38;
  margin-top: auto;
  padding-top: 1rem;
}

.caseStudyResult strong {
  color: #d6b45e;
  display: block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  margin-bottom: .4rem;
}

.caseStudyResult p {
  color: #f4f1ea;
  margin: 0;
}

.caseStudyScope {
  color: #8e99a8;
  border-top: 1px solid #ffffff12;
  font-size: .76rem;
  letter-spacing: .04em;
  line-height: 1.5;
  margin: 1rem 0 0;
  padding-top: .9rem;
}

@media (max-width: 900px) {
  .siteNav {
    display: flex !important;
    align-items: center;
    border-radius: 14px;
    gap: .75rem;
    height: auto;
    min-height: 56px;
    padding: .5rem .7rem;
  }

  .siteNavBrand {
    font-size: .66rem;
    letter-spacing: .12em;
  }

  .siteNavLinks {
    justify-content: flex-end;
    gap: .85rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .siteNavLinks::-webkit-scrollbar {
    display: none;
  }

  .siteNavLinks a {
    font-size: .6rem;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .siteNavResume {
    display: none;
  }

  .caseStudies {
    padding: 4.5rem 1rem;
  }

  .caseStudyGrid {
    grid-template-columns: 1fr;
  }
}
