/* ---- Case studies (/case-study/<slug>) ----
   Hero with the customer logo, a stats strip, the headline quote, a
   three-card overview (challenge, solution, result), the partner overview,
   the detailed story (reuses .post-body from post.css), and a contact card
   with the HubSpot form (styled by #hs-contact-form rules in styles.css).
   Body copy keeps its real capitals; headings follow the site's lowercase. */

.cs { padding-bottom: 96px; }
.cs-col { max-width: 1080px; margin: 0 auto; }
.cs .keep-case { text-transform: none; }

/* Hero */
.cs-hero { background: linear-gradient(180deg, #faf5f8 0%, var(--bg) 100%); padding: 48px 0 56px; }
.cs-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; margin-top: 28px; }
.cs-hero h1 { font-size: clamp(32px, 4.2vw, 54px); margin: 14px 0 0; }
.cs-hero .post-meta { margin: 0; }
.cs-logo {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 24px;
}
.cs-logo img { width: 100%; height: auto; }

/* Stats strip */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 8px; }
.cs-stat { background: var(--surface); padding: 26px 28px; }
.cs-stat .value { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.cs-stat .value .unit { color: var(--brand); }
.cs-stat .label { margin-top: 10px; font-size: 14px; color: var(--muted); text-transform: none; }

/* Quotes */
.cs-quote { margin: 56px 0 0; padding: 44px clamp(24px, 4vw, 56px); border-radius: 28px; background: #121212; color: #fff; position: relative; overflow: hidden; }
.cs-quote::before { content: ""; position: absolute; top: -140px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(212,26,105,.45), transparent 70%); pointer-events: none; }
.cs-quote blockquote { position: relative; margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -.01em; text-transform: none; }
.cs-quote figcaption { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 3px solid var(--brand); max-width: 420px; }
.cs-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cs-quote .name { font-weight: 600; font-size: 15px; text-transform: none; }
.cs-quote .role { font-size: 13px; color: rgba(255,255,255,.65); text-transform: none; }

.post-body .cs-pull { margin: 32px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--brand); font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--ink); }
.post-body .cs-pull cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--muted); }

/* Section headings */
.cs-section { margin-top: 72px; }
.cs-section > h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; margin: 10px 0 24px; }

/* Overview cards */
.cs-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; text-transform: none; }
.cs-card h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono); color: var(--brand); margin: 0 0 12px; }
.cs-card p, .cs-card li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cs-card p { margin: 0 0 10px; }
.cs-card ul { margin: 0 0 10px; padding-left: 20px; }
.cs-card li { margin-bottom: 6px; }
.cs-card li::marker { color: var(--brand); }
.cs-card > :last-child { margin-bottom: 0; }

/* Partner overview */
.cs-partner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.cs-partner .cs-logo { box-shadow: none; aspect-ratio: auto; padding: 12px; }
.cs-partner .post-body > :last-child { margin-bottom: 0; }

/* Story column */
.cs-story { max-width: 760px; }

/* Contact */
.cs-contact { margin-top: 80px; }
.cs-contact .contact-intro p { max-width: 640px; }

@media (max-width: 900px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cs-hero-grid .cs-logo { max-width: 260px; aspect-ratio: 3 / 2; }
  .cs-overview { grid-template-columns: 1fr; }
  .cs-partner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .cs-partner .cs-logo { max-width: 200px; }
}
@media (max-width: 640px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stat { padding: 20px 22px; }
  .cs-stat .value { font-size: 36px; }
  .cs-section { margin-top: 56px; }
}

/* Case studies name people, places and communities ("Aboriginal", "Northern
   Territory", "Emerge IT"), which the site-wide lowercase would get wrong, so
   headings and the meta line keep their real capitals here. */
.cs h1, .cs h2, .cs .post-meta span:not(.res-type), .cs .contact-intro h2 { text-transform: none; }

/* Hero photo, intro line and the partner highlight cards. */
.cs-lede { margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 620px; text-transform: none; }
.cs-photo { width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; margin-top: 40px; border-radius: var(--radius-lg); }
.cs-hero { padding-bottom: 40px; }
.cs-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cs-highlights .cs-card h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
@media (max-width: 1024px) { .cs-highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cs-highlights { grid-template-columns: 1fr; } .cs-lede { font-size: 17px; } .cs-photo { aspect-ratio: 3 / 2; } }

/* Photo credit line at the end of a story. */
.post-body .cs-credit { margin-top: 32px; font-size: 13px; color: var(--muted); }
