/* Internal-page case-study cards (static: three columns on desktop, two on tablet, one on mobile).
   The homepage uses the separate editorial row component (.cs-sec in site.css); none of these classes appear there. */
.case-studies { background: var(--paper); border-bottom: 1px solid var(--line); }
.case-studies .head { align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.case-studies h2 { font-size: clamp(32px, 3.5vw, 48px); max-width: 16ch; }
.case-studies .case-intro { max-width: 42ch; justify-self: end; }
.case-studies .case-intro p { font-size: 18px; line-height: 1.6; color: #505050; }
.case-studies .case-review-note { display: inline-block; margin-top: 12px; color: #6a6a6a; font-size: 13px; line-height: 1.5; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); list-style: none; }
.case-grid > li { min-width: 0; display: flex; }
.case-card { width: 100%; display: flex; flex-direction: column; min-width: 0; }
.case-media { position: relative; margin: 0 0 24px; overflow: hidden; aspect-ratio: 1.52; border-radius: 18px; background: var(--mist); }
.case-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-body { display: flex; flex: 1; flex-direction: column; }
.case-category { margin-bottom: 10px; font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; color: #b52020; }
.case-card h3 { max-width: 24ch; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.17; letter-spacing: -.03em; text-wrap: pretty; }
.case-excerpt { margin-top: 14px; margin-bottom: 24px; font-size: 15px; line-height: 1.7; color: #5b5b5b; }
.case-foot { margin-top: auto; border-top: 1px solid #dededb; padding-top: 18px; }
.case-outcome { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 12px; line-height: 1.5; }
.case-outcome b { font-size: 12px; font-weight: 800; color: #3d3d3d; }
.case-outcome span { color: #737373; text-align: right; }
.case-read { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); font-size: 14px; line-height: 1.5; font-weight: 800; }
.case-read svg { width: 22px; height: 22px; flex: none; color: var(--red); }
/* news */
.news3 .n3-review-note { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; color: #a52323; font-weight: 700; }
@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 26px; }
}
@media (max-width: 860px) {
  .case-studies .case-intro { justify-self: start; max-width: 48ch; }
}
@media (max-width: 600px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .case-media { margin-bottom: 20px; }
  .case-card h3 { max-width: 28ch; font-size: 24px; }
  .case-excerpt { margin-bottom: 20px; }
  .case-outcome { justify-content: flex-start; }
  .case-studies .case-intro p { font-size: 17px; }
}

/* Rollout additions for the remaining SEO pages (design review).
   cs-mist: grey tone where the section above is white, so the top join is always a tone change.
   cs-two:  two-card selections fill two balanced columns rather than leaving an empty third slot. */
.case-studies.cs-mist { background: var(--mist); border-bottom-color: #e2e2df; }
.case-studies.cs-mist .case-outcome span { color: #666; }
.case-grid.cs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .case-grid.cs-two { grid-template-columns: minmax(0, 1fr); }
}

/* v291: approved projects in the cards. Result, compact title, and one real link per card (its hit area covers the card). */
.case-card { position: relative; }
.case-result { margin: 0 0 14px; }
.case-hl { margin: 0; }
.case-num { display: block; font-size: clamp(30px, 2.6vw, 36px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.case-metric { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; font-weight: 700; color: #3d3d3d; }
.case-qual { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--graphite); }
.case-card h3 { max-width: none; font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: normal; }
.case-excerpt { margin-top: 8px; }
.case-read { text-decoration: none; }
.case-read::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.case-read svg { transition: transform .3s var(--ease); }
.case-read:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.case-media img { transition: transform .35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-read { color: var(--red); }
  .case-card:hover .case-read svg { transform: translateX(4px); }
  .case-card:hover .case-media img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .case-read svg, .case-media img { transition: none; }
  .case-card:hover .case-read svg, .case-card:hover .case-media img { transform: none; }
}
.case-all { margin: 32px 0 0; }
.case-all a { color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.case-all a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) { .case-all a:hover { color: var(--red); } }
.case-media.cs-tone-bright img { filter: brightness(.95) contrast(1.04); }   /* chiropractic photograph: same restrained tone adjustment as on the homepage */
