/* Scoped portfolio refinements. Existing service and blog typography is unchanged. */
.work-page #work-overview-heading {
  font-size: clamp(1.875rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 34ch;
}
.work-page section[aria-labelledby="work-overview-heading"] > .container > .section-head {
  max-width: 860px;
  margin-bottom: 32px;
}

/* The self-initiated case study uses the site's existing editorial language. */
.experiment-case-study {
  --case-space: clamp(24px, 4vw, 48px);
  --case-heading: clamp(1.875rem, 3.2vw, 2.75rem);
}
.experiment-case-study .section-head h2,
.experiment-case-study .experiment-intro h2,
.experiment-case-study .experiment-story h2 {
  font-size: var(--case-heading);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 34ch;
}
.experiment-case-study .section-head { max-width: 820px; margin-bottom: 32px; }
.experiment-case-study .experiment-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
  gap: var(--case-space);
  align-items: start;
}
.experiment-case-study .experiment-intro > * { min-width: 0; }
.experiment-case-study .experiment-intro p,
.experiment-case-study .experiment-story p { max-width: 66ch; }
.experiment-case-study .experiment-intro p .text-link,
.experiment-case-study .experiment-story p .text-link {
  display: inline;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.experiment-case-study .experiment-screen {
  width: min(100%, 280px);
  margin: 0 auto;
}
.experiment-case-study .experiment-screen img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.experiment-case-study .experiment-screen figcaption {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 12px;
}
.experiment-case-study .experiment-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.experiment-case-study .experiment-facts dt {
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.experiment-case-study .experiment-facts dd { margin: 0; font-size: .95rem; }
.experiment-case-study .experiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.experiment-case-study .experiment-grid > * { min-width: 0; }
.experiment-case-study .experiment-grid h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
}
.experiment-case-study .experiment-grid .card { padding: 28px; }
.experiment-case-study .experiment-grid .card p:last-child { margin-bottom: 0; }
.experiment-case-study .experiment-story {
  max-width: 820px;
  margin-inline: auto;
}
.experiment-case-study .experiment-status {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  background: var(--bg-card);
  margin: 28px 0;
}
.experiment-case-study .experiment-status p:last-child { margin-bottom: 0; }
.experiment-case-study .project-byline { font-size: .875rem; margin-top: 28px; }
.experiment-case-study .experiment-links { display: grid; gap: 18px; }
.experiment-case-study .experiment-links a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
@media (max-width: 800px) {
  .experiment-case-study .experiment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .experiment-case-study .experiment-intro,
  .experiment-case-study .experiment-grid { grid-template-columns: minmax(0, 1fr); }
  .experiment-case-study .experiment-screen { width: min(100%, 260px); }
  .experiment-case-study .experiment-facts { grid-template-columns: minmax(0, 1fr); }
}
