/* ── CASE PAGE SHARED STYLES ──────────────────────────────────────────────── */
/* Include alongside site.css for any case study detail page.                 */

/* ── HERO — white two-column layout ── */
.case-hero {
  background: #fff;
  position: relative; overflow: hidden;
}
.case-hero::before, .case-hero::after { display: none; }

/* Main row: [art col | text col] */
.case-hero-main {
  display: flex; align-items: stretch;
  padding-top: 70px; /* clear fixed nav */
}

/* Art column (left) */
.case-hero-art {
  flex: 0 0 44%; max-width: 520px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 3rem;
  min-height: 380px;
  position: relative; overflow: hidden;
  border-right: 1px solid var(--border);
}
.case-hero-art svg { width: 100%; height: auto; display: block; }

/* Text column (right) */
.case-hero-text {
  flex: 1; display: flex; align-items: center;
}
.case-hero-text .wrap {
  padding: 3.5rem 4rem; max-width: none; margin: 0;
}

/* Dark band below */
.case-hero-band {
  background: var(--ink);
  padding: 2.25rem 0;
  position: relative; overflow: hidden;
}
.case-hero-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36,121,197,.10) 0%, transparent 55%);
  pointer-events: none;
}
.case-hero-band .wrap { position: relative; z-index: 1; }

/* Text colours — white section */
.case-back {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--muted); font-size: .82rem; font-weight: 500;
  text-decoration: none; margin-bottom: 1.5rem; transition: color .2s;
}
.case-back:hover { color: var(--blue); }

.case-hero .lbl { color: var(--blue); }

.ch-client {
  font-size: .78rem; font-weight: 700; color: var(--blue);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem;
}
.ch-title {
  font-family: 'Sansation', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 900;
  color: var(--ink); letter-spacing: -.04em; line-height: 1.1;
  margin-bottom: 0; max-width: 640px;
  text-shadow: none;
}

/* Summary — lives in dark band */
.ch-summary {
  font-size: 1.02rem; color: rgba(255,255,255,.68);
  line-height: 1.72; max-width: 820px;
}

/* ── KEY POINTS ── */
.kpi-section {
  background: var(--bg-alt);
  padding: 5rem 3.5rem;
  position: relative; overflow: hidden;
}
/* Amber ambient glow — bottom left */
.kpi-section::before {
  content: '';
  position: absolute; bottom: -80px; left: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,192,52,.08) 0%, transparent 65%);
  pointer-events: none;
}
/* Red ambient glow — top right */
.kpi-section::after {
  content: '';
  position: absolute; top: -60px; right: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(215,55,55,.07) 0%, transparent 65%);
  pointer-events: none;
}
.kpi-section .lbl { position: relative; z-index: 1; }
.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.25rem;
  position: relative; z-index: 1;
}
.kpi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 20px; padding: 2rem;
  transition: box-shadow .25s, transform .25s;
  position: relative; overflow: hidden;
}
.kpi-card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,.07),
              0 0 0 1px rgba(0,185,195,.12),
              -4px -2px 18px rgba(0,185,195,.06),
              4px 2px 18px rgba(215,55,55,.05);
  transform: translateY(-2px);
}
/* Tiny focus-mesh in card corner */
.kpi-card::after {
  content: '';
  position: absolute; top: 3px; right: 0;
  width: 80px; height: 80px;
  pointer-events: none;
  background:
    radial-gradient(circle 2px at 62px 14px, rgba(36,121,197,.38) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 48px 34px, rgba(0,185,195,.3) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 70px 40px, rgba(215,55,55,.22) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 55px 60px, rgba(248,192,52,.28) 0%, transparent 100%),
    radial-gradient(ellipse 60px 50px at 80px 0px, rgba(36,121,197,.04) 0%, transparent 70%);
  opacity: .65; transition: opacity .25s;
}
.kpi-card:hover::after { opacity: 1; }

.kpi-icon { width: 44px; height: 44px; margin-bottom: 1.25rem; display: block; position: relative; z-index: 1; }
.kpi-icon svg { width: 100%; height: 100%; }
.kpi-t {
  font-size: 1.05rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.015em; margin-bottom: .5rem;
  text-shadow: -1px -.5px 0 rgba(0,210,210,.15), 1px .5px 0 rgba(255,55,55,.15), 0 1px 0 rgba(248,192,52,.12);
  position: relative; z-index: 1;
}
.kpi-d { font-size: .88rem; color: var(--muted); line-height: 1.65; position: relative; z-index: 1; }

/* ── CASE BODY ── */
.cas-section { background: var(--bg); }
.cas-inner { max-width: 820px; }

.cas-block { margin-bottom: 2.75rem; padding-bottom: 2.75rem; border-bottom: 1px solid var(--border); }
.cas-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.cas-heading {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.1rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: 1.25rem;
  text-shadow: -1px -.5px 0 rgba(0,210,210,.14), 1px .5px 0 rgba(255,55,55,.14), 0 1px 0 rgba(248,192,52,.1);
}
.cas-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.cas-dot-red  { background: rgba(215,55,55,.8);  box-shadow: 0 0 7px rgba(215,55,55,.3); }
.cas-dot-blue { background: rgba(36,121,197,.8); box-shadow: 0 0 7px rgba(36,121,197,.3); }
.cas-dot-cyan { background: rgba(0,185,195,.8);  box-shadow: 0 0 7px rgba(0,185,195,.3); }

.cas-block p { font-size: .96rem; color: var(--muted); line-height: 1.78; margin-bottom: .8rem; }
.cas-block p:last-child { margin-bottom: 0; }

/* Default list style */
.cas-block ul { list-style: none; padding: 0; margin-top: .25rem; }
.cas-block ul li {
  font-size: .96rem; color: var(--muted); line-height: 1.72;
  padding-left: 1.35rem; position: relative; margin-bottom: .55rem;
}
.cas-block ul li:last-child { margin-bottom: 0; }
.cas-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-size: .88rem; }

/* Case image */
.cas-img {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  max-width: 560px;
  box-shadow: 0 4px 24px rgba(15,23,42,.09);
}
.cas-img img {
  width: 100%; height: auto; display: block;
}

/* Results block — achievement card style (targets block containing cyan dot) */
.cas-block:has(.cas-dot-cyan) ul li {
  padding: .65rem 1rem .65rem 2.25rem;
  background: linear-gradient(135deg, rgba(0,185,195,.04) 0%, transparent 80%);
  border: 1px solid rgba(0,185,195,.15);
  border-radius: 10px;
  margin-bottom: .5rem;
  line-height: 1.6;
}
.cas-block:has(.cas-dot-cyan) ul li::before {
  content: '';
  position: absolute; left: .75rem; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0,185,195,.7);
  box-shadow: 0 0 5px rgba(0,185,195,.35);
  font-size: 0; line-height: 0;
}

/* ── CTA ── */
.case-cta {
  background: var(--blue); padding: 5rem 3.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.case-cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 620px; height: 280px;
  background: radial-gradient(ellipse, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.case-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900;
  color: #fff; letter-spacing: -.035em; margin-bottom: .75rem;
  position: relative; z-index: 1;
}
.case-cta p {
  font-size: 1rem; color: rgba(255,255,255,.68); line-height: 1.7;
  margin-bottom: 2.25rem; max-width: 520px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .case-hero-main { flex-direction: column; }
  .case-hero-art  { max-width: 100%; flex: none; min-height: 240px; border-right: none; border-bottom: 1px solid var(--border); padding: 2.5rem 2rem; }
  .case-hero-text .wrap { padding: 2.5rem 1.75rem; }
  .case-hero-band .wrap { padding: 0 1.75rem; }
  .kpi-section { padding: 3.5rem 1.75rem; }
}
@media (max-width: 640px) {
  .case-hero-art  { min-height: 200px; padding: 2rem 1.25rem; }
  .case-hero-text .wrap { padding: 2rem 1.25rem; }
  .case-hero-band { padding: 1.75rem 0; }
  .case-hero-band .wrap { padding: 0 1.25rem; }
  .kpi-section { padding: 3rem 1.25rem; }
  .kpi-row { grid-template-columns: 1fr; }
  .case-cta { padding: 4rem 1.25rem; }
}
