/* Project case study page (Dashingly). Builds on page-hero + portfolio-card. */

/* ---------- Hero ---------- */
.page-hero--case {
  align-items: flex-end;
  padding-bottom: clamp(40px, 5.2vw, 100px);
}
.case-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.case-hero__copy { display: grid; gap: 32px; max-width: 750px; }
.case-hero__lead { font-size: var(--fs-lead); line-height: 1.4; }
.page-hero--case h1 { font-size: var(--fs-h1); }
.page-hero--case [data-hero-step] { animation: rise 800ms var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }

/* "+3 More" gallery thumbnail, bottom-right of the hero */
.case-hero__more {
  position: relative;
  flex: none;
  width: clamp(120px, 10.7vw, 205px);
  aspect-ratio: 205 / 115;
  border: 2px solid var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
}
.case-hero__more img { width: 100%; height: 100%; object-fit: cover; }


@media (max-width: 767px) {
  .case-hero { flex-direction: column; align-items: flex-start; }
  .case-hero__more { width: 160px; }
}

/* ---------- Facts bar ---------- */
.case-facts { background: #f3f2ee; }
.case-facts__list {
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.case-facts__list > div {
  display: flex;
  flex-direction: column;   /* label (dt) above value (dd), as in the design */
  justify-content: center;
  gap: 8px;
  padding: 46px clamp(20px, 3.3vw, 64px);
}
.case-facts__list > div:first-child { padding-left: 0; }
.case-facts__list > div:last-child { padding-right: 0; }
.case-facts__list > div + div { border-left: 1px solid #d8d7d5; }
.case-facts dt {
  font-size: 0.875rem;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

@media (max-width: 1099px) {
  .case-facts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-facts__list > div,
  .case-facts__list > div:first-child,
  .case-facts__list > div:last-child { padding: 28px 24px; border-left: 1px solid #d8d7d5; }
  .case-facts__list > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .case-facts__list > div:nth-child(n + 4) { border-top: 1px solid #d8d7d5; }
}
/* Phones: no vertical dividers. Project Type gets its own row, the other facts pair up two per row. */
@media (max-width: 639px) {
  .case-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts__list > div,
  .case-facts__list > div + div,
  .case-facts__list > div:first-child,
  .case-facts__list > div:last-child,
  .case-facts__list > div:nth-child(3n + 1) { padding: 20px 16px 20px 0; border-left: 0; }
  .case-facts__list > div:first-child { grid-column: 1 / -1; }
  .case-facts__list > div:nth-child(n + 2) { border-top: 1px solid #d8d7d5; }
}

/* ---------- Body ---------- */
.case-body { padding-top: clamp(48px, 5.2vw, 100px); }
.case-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 490px) minmax(0, 750px);
  justify-content: space-between;
  gap: 40px 48px;
  align-items: start;
}
/* The side column spans the full height of the main column so its heading has room to stick */
.case-body__side { align-self: stretch; }
.case-body__sticky {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 20px;
  padding-top: clamp(0px, 2.4vw, 45px);
}
.case-body__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--teal);
}
.case-body__main { display: grid; gap: clamp(36px, 3.125vw, 60px); padding-top: clamp(0px, 2.4vw, 45px); }
.case-block { display: grid; gap: 20px; }
.case-block h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.33; }
.case-block p { font-size: var(--fs-lead); line-height: 1.5; }
/* Figma: 8px paragraph spacing between consecutive paragraphs */
.case-block p + p { margin-top: -12px; }   /* grid gap 20 - 8 = 8px paragraph spacing */
.inline-link { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-link:hover { text-decoration-thickness: 2px; }

.check-list { display: grid; gap: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 16px; font-size: var(--fs-lead); line-height: 1.5; }
.check-list .icon { width: 24px; height: 24px; margin-top: 3px; color: var(--teal); stroke-width: 1.5; }
.check-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 1023px) {
  .case-body__grid { grid-template-columns: minmax(0, 1fr); }
  .case-body__sticky { position: static; padding-top: 0; }
  .case-body__main { padding-top: 0; }
}
@media (max-width: 479px) {
  .check-list--grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- More projects ---------- */
.case-more .section-heading { margin-bottom: var(--space-heading); }
