/* Long-form project case studies */
.ehd-case {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.ehd-case__title {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem) !important;
  line-height: 1.06 !important;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  color: var(--ehd-ink, #0d0d0d) !important;
}

.ehd-case__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ehd-champagne, #c4a574);
  margin-bottom: 0.55rem;
  text-align: center;
}

.ehd-case__lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(13, 13, 13, 0.82);
  max-width: 40rem;
  margin-bottom: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ehd-case__body h2 {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(1.9rem, 4vw, 2.85rem) !important;
  line-height: 1.08 !important;
  max-width: 20ch;
  margin: 2.5rem auto 1rem;
  color: var(--ehd-ink, #0d0d0d) !important;
}

.ehd-case__related h2 {
  font-family: var(--ehd-sans), "Outfit", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  text-align: center !important;
  font-size: clamp(1.6rem, 3vw, 2.15rem) !important;
  margin-bottom: 1rem;
}

.ehd-case__body h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.5rem;
}

.ehd-case__body p,
.ehd-case__body li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(13, 13, 13, 0.82);
}

.ehd-case__body a {
  color: #0d0d0d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ehd-case__body a:hover {
  color: #8a6d3f;
}

.ehd-case__body ul {
  padding-left: 1.15rem;
  margin-bottom: 1.1rem;
}

.ehd-case__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

@media (min-width: 768px) {
  .ehd-case__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ehd-case__gallery figure {
  margin: 0;
  overflow: hidden;
  background: #ebe6df;
  aspect-ratio: 4 / 5;
}

.ehd-case__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ehd-case__gallery figure:hover img {
    transform: scale(1.05);
  }
}

.ehd-case__gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ehd-case__side {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem 1.2rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
}

.ehd-case__side h3 {
  font-family: var(--ehd-display);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.ehd-case__facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.ehd-case__facts li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ehd-case__facts strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.5);
  margin-bottom: 0.15rem;
}

.ehd-case__links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.ehd-case__links a {
  display: block;
  padding: 0.4rem 0;
  color: #0d0d0d;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
  font-size: 0.92rem;
}

.ehd-case__links a:hover {
  color: #8a6d3f;
}

.ehd-case__cta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ehd-case__cta .btn-main {
  text-align: center;
}

.ehd-case__related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.ehd-case__related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ehd-case__related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ehd-case__related a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(13, 13, 13, 0.08);
  background: #fff;
  overflow: hidden;
}

.ehd-case__related img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ehd-case__related span {
  display: block;
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}
