/* ------------------------------------------------------------------
   Case studies — shared CSS for case-studies.html and every
   case-studies/<slug>.html detail page. Same design tokens as
   career.css (pg-h1/h2/h3, Section tones, CtaBand) so the whole v4
   conversion stays visually consistent.
------------------------------------------------------------------- */

:root {
  --utl-paper: #ffffff;
  --utl-ink: #0f172a;
  --utl-mist: #f8fafc;
  --utl-slate: #64748b;
  --utl-purple: #0099fe;
  --utl-purple-deep: #0f172a;
  --utl-green: #7fbb01;
  --utl-border: #e5f2ff;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.case-page {
  background: var(--utl-paper);
  color: var(--utl-ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.case-page h1, .case-page h2, .case-page h3 {
  font-family: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

.pg-shell { max-width: 1440px; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 992px) { .pg-shell { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* ---------------- typography ---------------- */

.pg-h1 { font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em; font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
.pg-h2 { font-weight: 600; line-height: 1.05; font-size: clamp(1.9rem, 3.6vw, 3.25rem); }
.pg-h2-statement { font-weight: 600; line-height: 1.04; font-size: clamp(1.9rem, 4vw, 3.5rem); }
.pg-h3 { font-weight: 600; line-height: 1.25; font-size: 1.5rem; }
.pg-lead { color: var(--utl-slate); line-height: 1.625; font-size: 1rem; }
.pg-hero-lead { font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; font-size: clamp(1.125rem, 1.5vw, 1.5rem); }
.pg-body { color: var(--utl-slate); line-height: 1.6; font-size: 0.9375rem; }
.pg-eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; display: block; }
.pg-eyebrow.tone-purple { color: var(--utl-purple); }
.pg-eyebrow.tone-green { color: var(--utl-green); }
.pg-eyebrow.tone-slate { color: var(--utl-slate); }
.pg-eyebrow.tone-paper { color: rgba(255, 255, 255, 0.6); }

/* ---------------- sections ---------------- */

.pg-section { border-top: 1px solid var(--utl-border); background: var(--utl-paper); padding-top: 5rem; padding-bottom: 5rem; }
.pg-section.tone-mist { background: var(--utl-mist); }
.pg-section.tone-navy { border-top: none; background: var(--utl-purple-deep); color: var(--utl-paper); }
.pg-section.size-compact { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (max-width: 991.98px) { .pg-section { padding-top: 3.5rem; padding-bottom: 3.5rem; } .pg-section.size-compact { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

/* ---------------- hero / breadcrumb ---------------- */

.dot-field { position: absolute; inset: 0; opacity: 0.25; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px); background-size: 22px 22px; }

.pg-breadcrumb { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
.pg-breadcrumb a { color: inherit; text-decoration: none; }
.pg-breadcrumb a:hover { color: var(--utl-paper); }
.pg-breadcrumb .sep { padding-left: 0.5rem; padding-right: 0.5rem; }
.pg-breadcrumb .current { color: rgba(255, 255, 255, 0.8); }

/* ---------------- buttons ---------------- */

.pg-cta-btn { display: inline-flex; align-items: center; gap: 0.75rem; background: var(--utl-green); color: var(--utl-ink); padding: 1rem 1.75rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; border: none; transition: transform 0.15s ease; }
.pg-cta-btn:hover { transform: translateY(-2px); color: var(--utl-ink); }
.pg-cta-btn .chev { display: inline-block; transition: transform 0.15s ease; }
.pg-cta-btn:hover .chev { transform: translateX(3px); }

.pg-cta-btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--utl-ink); color: var(--utl-ink); padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.pg-cta-btn-outline:hover { background: var(--utl-ink); color: var(--utl-paper); }
.pg-cta-btn-outline .chev { display: inline-block; transition: transform 0.15s ease; }
.pg-cta-btn-outline:hover .chev { transform: translateX(3px); }

/* ---------------- CTA band ---------------- */

.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--utl-border); background: var(--utl-purple-deep); color: var(--utl-paper); padding-top: 5rem; padding-bottom: 5rem; }
.cta-band-inner { position: relative; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 992px) { .cta-band-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.cta-band h2 { max-width: 42rem; }
.cta-band p { margin-top: 1.25rem; max-width: 32rem; color: rgba(255, 255, 255, 0.75); }

/* Quiet inline CTA (left green rule, paper bg) */
.inline-cta-quiet { border-top: 1px solid var(--utl-border); border-bottom: 1px solid var(--utl-border); background: var(--utl-paper); }
.inline-cta-quiet .inner { border-left: 2px solid var(--utl-green); padding-left: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 768px) { .inline-cta-quiet .inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; } }
.inline-cta-quiet p.title { max-width: 42rem; font-size: 1.125rem; font-weight: 500; line-height: 1.4; color: var(--utl-ink); margin: 0.75rem 0 0; }
.inline-cta-quiet p.lead { max-width: 42rem; margin: 0.5rem 0 0; }

/* Navy inline CTA */
.inline-cta-navy { background: var(--utl-purple-deep); color: var(--utl-paper); }
.inline-cta-navy .inner { display: flex; flex-direction: column; gap: 1.75rem; }
@media (min-width: 768px) { .inline-cta-navy .inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 3rem; } }
.inline-cta-navy p.title { max-width: 48rem; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.2; margin: 1rem 0 0; }
.inline-cta-navy p.lead { max-width: 42rem; margin: 0.75rem 0 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }
.inline-cta-navy .pg-cta-btn:hover { transform: translateY(-2px); }

/* ---------------- filter chips (track) ---------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-btn { border: 1px solid var(--utl-border); background: var(--utl-paper); color: var(--utl-slate); padding: 0.5rem 1rem; font-size: 13px; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.chip-btn:hover { border-color: var(--utl-ink); color: var(--utl-ink); }
.chip-btn.active { border-color: var(--utl-ink); background: var(--utl-ink); color: var(--utl-paper); }

/* ---------------- bordered grids ---------------- */

.line-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--utl-border); }
.line-grid.bordered { border: 1px solid var(--utl-border); }
.line-grid > * { background: var(--utl-paper); }
@media (min-width: 768px) { .line-grid.cols-2, .line-grid.cols-3, .line-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .line-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .line-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* Deep-dive card */
.deepdive-card { position: relative; display: flex; flex-direction: column; min-height: 300px; overflow: hidden; padding: 2rem; text-decoration: none; color: inherit; transition: background-color 0.4s ease; }
.deepdive-card:hover { background: var(--utl-mist); color: inherit; }
.deepdive-card .top-bar { position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--utl-green); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.deepdive-card:hover .top-bar { transform: scaleX(1); }
.deepdive-card .client-mark { position: relative; z-index: 1; margin-bottom: 1.5rem; }
.deepdive-card .client-mark .name { font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--utl-ink); }
.deepdive-card .art { position: absolute; right: -1rem; bottom: -1rem; width: 14rem; height: 10rem; color: var(--utl-purple); opacity: 0.14; transition: opacity 0.5s ease; pointer-events: none; }
.deepdive-card:hover .art { opacity: 0.35; }
.deepdive-card h3 { position: relative; max-width: 20ch; font-size: 1.5rem; font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; transition: color 0.3s ease; }
.deepdive-card:hover h3 { color: var(--utl-purple); }
.deepdive-card p { position: relative; margin-top: 0.75rem; max-width: 34ch; }
.deepdive-card .read { position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--utl-ink); }

/* Client mark */
.client-mark { display: flex; min-width: 0; align-items: center; gap: 1rem; }
.client-mark .badge { display: flex; flex-shrink: 0; align-items: center; justify-content: center; height: 3.5rem; width: 5rem; border: 1px solid var(--utl-border); background: var(--utl-paper); font-size: 0.875rem; font-weight: 600; color: var(--utl-ink); }
.client-mark.compact .badge { height: 3.5rem; width: 5rem; padding: 0 0.75rem; }
.client-mark .client-logo { height: 3.5rem; width: 5rem; border: 1px solid var(--utl-border); background: var(--utl-paper); object-fit: contain; padding: 0.5rem; }
.client-mark .name { min-width: 0; }
.client-mark .name .n { display: block; overflow-wrap: break-word; font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--utl-ink); }
.client-mark .name .cb { display: block; margin-top: 0.25rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--utl-slate); }

/* Case card (index grid) */
.case-card { display: flex; height: 100%; flex-direction: column; padding: 1.75rem; text-decoration: none; color: inherit; transition: background-color 0.3s ease; }
.case-card:hover { background: var(--utl-mist); color: inherit; }
.case-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.case-card h3 { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; transition: color 0.3s ease; }
.case-card:hover h3 { color: var(--utl-purple); }
.case-card .line { margin-top: 0.75rem; }
.case-card .outcome { margin-top: 1.5rem; display: flex; align-items: flex-start; gap: 0.5rem; border-top: 1px solid var(--utl-border); padding-top: 1rem; font-size: 13px; font-weight: 600; color: var(--utl-ink); }
.case-card .outcome .dash { margin-top: 2px; height: 0.75rem; width: 3px; flex-shrink: 0; background: var(--utl-green); }
.case-card .read { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--utl-purple); }
.case-card .read .chev { display: inline-block; transition: transform 0.15s ease; }
.case-card:hover .read .chev { transform: translateX(3px); }

/* ---------------- logo wall (navy band) ---------------- */

.logo-wall-band { border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.2); background: var(--utl-purple-deep); color: var(--utl-paper); }
.logo-wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.15); }
@media (min-width: 576px) { .logo-wall-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .logo-wall-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-wall-cell { display: flex; min-height: 9rem; flex-direction: column; justify-content: space-between; background: var(--utl-paper); padding: 1.25rem; transition: background-color 0.5s ease; }
.logo-wall-cell:hover { background: var(--utl-mist); }
.logo-wall-cell .badge-row { display: flex; height: 4rem; align-items: center; }
.logo-wall-cell .badge { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 0.75rem; border: 1px solid var(--utl-border); font-size: 0.8125rem; font-weight: 700; color: var(--utl-ink); }
.logo-wall-cell .client-logo { height: 3rem; max-width: 100%; object-fit: contain; }
.logo-wall-cell .foot { border-top: 1px solid var(--utl-border); padding-top: 1rem; }
.logo-wall-cell .foot .nm { font-size: 1.125rem; font-weight: 600; line-height: 1.25; color: var(--utl-ink); overflow-wrap: break-word; }
.logo-wall-cell .foot .sc { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.35; color: var(--utl-slate); }
.logo-wall-cell .foot .tr { margin-top: 0.5rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--utl-purple); }

/* ---------------- stat cell ---------------- */

.stat-cell { height: 100%; padding: 2rem; background: var(--utl-paper); }
.stat-cell .num { line-height: 1; font-weight: 600; color: var(--utl-green); font-size: clamp(2.75rem, 5vw, 4rem); }
.stat-cell .lbl { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--utl-slate); }

/* ---------------- detail hero fact band ---------------- */

.fact-band { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.fact-band-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255, 255, 255, 0.15); }
@media (min-width: 576px) { .fact-band-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .fact-band-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-cell { background: var(--utl-purple-deep); padding: 1.5rem; }
.fact-cell .lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--utl-green); }
.fact-cell .val { margin-top: 0.75rem; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--utl-paper); }

.hero-logo-badge { display: flex; flex-shrink: 0; align-items: center; justify-content: center; height: 3.5rem; width: 5rem; border: 1px solid rgba(255, 255, 255, 0.25); background: var(--utl-paper); font-weight: 600; color: var(--utl-ink); font-size: 0.875rem; }
.hero-logo-badge img { height: 100%; width: 100%; object-fit: contain; padding: 0.5rem; }

.case-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.2); background: var(--utl-paper); }
.case-shot-img { width: 100%; object-fit: cover; border: 1px solid var(--utl-border); background: var(--utl-mist); }
.case-shot-img.ratio-43 { aspect-ratio: 4 / 3; }
.case-shot-img.ratio-1610 { aspect-ratio: 16 / 10; }

/* ---------------- challenge bullets ---------------- */

.challenge-list { display: grid; gap: 1px; border: 1px solid var(--utl-border); background: var(--utl-border); }
.challenge-list li { display: flex; gap: 1rem; background: var(--utl-paper); padding: 1.5rem; list-style: none; }
.challenge-list .dash { margin-top: 7px; height: 0.75rem; width: 3px; flex-shrink: 0; background: var(--utl-purple); }

/* ---------------- solution capability cards ---------------- */

.capability-card { display: flex; height: 100%; flex-direction: column; border: 1px solid var(--utl-border); background: var(--utl-paper); padding: 1.5rem; }
@media (min-width: 992px) { .capability-card { padding: 1.75rem; } }
.capability-card .n { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--utl-purple); }
.capability-card h3 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.capability-card p { margin-top: 0.75rem; }

.stack-tag { border: 1px solid var(--utl-border); background: var(--utl-paper); padding: 0.375rem 0.75rem; font-size: 13px; font-weight: 600; color: var(--utl-ink); }

/* ---------------- outcomes ---------------- */

.outcome-card { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid var(--utl-border); background: var(--utl-paper); padding: 1.5rem; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--utl-ink); }
.outcome-card .dash { margin-top: 6px; height: 1rem; width: 3px; flex-shrink: 0; background: var(--utl-green); }

.impact-box { align-self: flex-start; border-left: 2px solid var(--utl-purple); background: var(--utl-mist); padding: 1.75rem; }
@media (min-width: 992px) { .impact-box { padding: 2rem; } }
.impact-box p.body { margin-top: 1rem; line-height: 1.6; color: var(--utl-ink); }

/* ---------------- quote block ---------------- */

.quote-block { border-top: 1px solid var(--utl-border); background: var(--utl-paper); }
.quote-panel { display: grid; align-items: center; gap: 2.5rem; border: 1px solid var(--utl-border); background: var(--utl-mist); padding: 2rem; }
@media (min-width: 992px) { .quote-panel { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 3.5rem; padding: 3rem; } }
.quote-panel .who { display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 992px) { .quote-panel .who { flex-direction: column; align-items: flex-start; } }
.quote-panel .who img { height: 5rem; width: 5rem; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
@media (min-width: 992px) { .quote-panel .who img { height: 7rem; width: 7rem; } }
.quote-panel .who .nm { font-size: 1rem; font-weight: 600; color: var(--utl-ink); }
.quote-panel .who .rl { margin-top: 0.25rem; font-size: 13px; line-height: 1.35; color: var(--utl-slate); }
.quote-panel blockquote { margin: 1.25rem 0 0; border-left: 2px solid var(--utl-green); padding-left: 1.5rem; font-size: clamp(1.0625rem, 1.6vw, 1.5rem); font-weight: 500; line-height: 1.45; color: var(--utl-ink); }

/* ---------------- why it matters ---------------- */

.why-band { border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.2); background: var(--utl-purple-deep); color: var(--utl-paper); padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 992px) { .why-band { padding-top: 5rem; padding-bottom: 5rem; } }
.why-band p.statement { margin-top: 1.25rem; max-width: 56rem; font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 500; line-height: 1.3; }

/* ---------------- related cases ---------------- */

.related-card { display: flex; height: 100%; flex-direction: column; padding: 1.5rem; text-decoration: none; color: inherit; transition: background-color 0.3s ease; }
@media (min-width: 992px) { .related-card { padding: 1.75rem; } }
.related-card:hover { background: var(--utl-mist); color: inherit; }
.related-card h3 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; transition: color 0.3s ease; }
.related-card:hover h3 { color: var(--utl-purple); }
.related-card p { margin-top: 0.75rem; }
.related-card .read { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--utl-ink); }
