/* ──────────────────────────────────────────────────────────────
   SINGLE CASE STUDY (single-case.php)
   Only enqueued when is_singular('case').
   All selectors namespaced under .case-* (reuses .cs-tag from case-studies.css
   so dot colors stay consistent).
   ────────────────────────────────────────────────────────────── */

body.single-case {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── SHARED .cs-tag re-import (case-studies.css isn't loaded on single) ── */
.cs-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.cs-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* Service dot colours — exact palette from liondigital.com.au/case-studies/. */
.cs-tag[data-svc="seo"]            .cs-tag-dot { background: #00f0ff; }
.cs-tag[data-svc="sem"]            .cs-tag-dot { background: #ffc000; }
.cs-tag[data-svc="email"]          .cs-tag-dot { background: #ff8e3e; }
.cs-tag[data-svc="social"]         .cs-tag-dot { background: #a100ff; }
.cs-tag[data-svc="dev"]            .cs-tag-dot { background: #0800b2; }
.cs-tag[data-svc="seo-migration"]  .cs-tag-dot { background: #25f4ee; }
.cs-tag[data-svc="blended-search"] .cs-tag-dot { background: #8fec3d; }
.cs-tag[data-svc="cro"]            .cs-tag-dot { background: #ff2c55; }

.cs-tags--card {
  margin: 14px 0 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 6px 12px;
}
.cs-tags--card .cs-tag { font-size: 9.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); }
.cs-tags--card .cs-tag-dot { width: 6px; height: 6px; }

/* ── HERO ───────────────────────────────────────────── */
.case-hero {
  position: relative;
  padding: 64px 48px 56px;
  background: #0A0A0A;
  color: var(--white);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,44,85,0.22) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.case-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.case-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.18s, gap 0.18s;
}

.case-hero-back svg { width: 14px; height: 14px; transition: transform 0.18s; }
.case-hero-back:hover { color: var(--red); gap: 12px; }
.case-hero-back:hover svg { transform: translateX(-3px); }

.case-hero-tags { margin-bottom: 22px; }

.case-hero-logo {
  margin-bottom: 22px;
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1;
  background: var(--white);
  padding: 22px;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-hero-h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 22px;
  max-width: 880px;
  color: var(--white);
}

.case-hero-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 36px;
  transition: color 0.18s, gap 0.18s;
}

.case-hero-url svg { width: 14px; height: 14px; }
.case-hero-url:hover { color: var(--red); gap: 12px; }

.case-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.case-hero-stat {
  padding: 4px 32px 4px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-hero-stat:last-child { border-right: none; }
.case-hero-stat:not(:first-child) { padding-left: 32px; }

.case-hero-stat-num {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--red);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.case-hero-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.35;
}

/* ── HERO ROW (logo + content side-by-side) ─────────── */
.case-hero-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 4px;
}

.case-hero-content { min-width: 0; }

/* ── BODY WRAPPER ───────────────────────────────────── */
.case-body { background: var(--white); }

/* ── QUOTE / TESTIMONIAL ────────────────────────────── */
.case-quote {
  padding: 80px 48px 16px;
  background: var(--white);
}

.case-quote-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding: 44px 48px;
  background: var(--bg);
  border-left: 3px solid var(--red);
}

.case-quote-mark {
  position: absolute;
  top: 22px;
  left: 24px;
  width: 36px;
  height: 36px;
  color: var(--red);
  opacity: 0.6;
}

.case-quote-text {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
  margin: 0 0 22px;
  padding-left: 36px;
}

.case-quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 36px;
}

.case-quote-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--black);
}

.case-quote-position {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── CONTENT SECTIONS ───────────────────────────────── */
.case-section {
  padding: 56px 48px;
  background: var(--white);
}

.case-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.case-section--full .case-section-inner {
  max-width: 1200px;
}

/* Body text spans the full 1200px column so it matches the RESULTS section
   and the "Other case studies" grid width. */
.case-section--full .case-section-text {
  max-width: none;
  margin: 0;
}

.case-section--split .case-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.case-section--split-reverse .case-section-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.case-section--split-reverse .case-section-text { order: 2; }
.case-section--split-reverse .case-section-image { order: 1; }

.case-section-text {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.case-section-image {
  min-width: 0;
  overflow: hidden;
}

.case-section-heading {
  position: relative;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 16px;
  margin: 0 0 22px;
}

.case-section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--red);
}

.case-section-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--black);
}

.case-section-body--lead {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.case-section-body > * + * { margin-top: 1em; }
.case-section-body p { margin: 0 0 1.2em; }
.case-section-body p:last-child { margin-bottom: 0; }

.case-section-body h2,
.case-section-body h3,
.case-section-body h4 {
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: var(--black);
}

.case-section-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.case-section-body h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.case-section-body h4 { font-size: 1.05rem; }

.case-section-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.case-section-body a:hover { color: var(--black); }

.case-section-body strong { font-weight: 700; }

.case-section-body ul,
.case-section-body ol {
  padding-left: 0;
  margin: 0 0 1.2em;
  list-style: none;
}

.case-section-body li {
  margin: 0.5em 0;
  line-height: 1.65;
}

/* Custom red bullets for any plain <ul> (not the legacy icon-list variant). */
.case-section-body ul:not(:has(.list-img)) li {
  position: relative;
  padding-left: 28px;
}

.case-section-body ul:not(:has(.list-img)) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* Numbered list — red numbers via counter. */
.case-section-body ol {
  counter-reset: case-ol;
}

.case-section-body ol li {
  position: relative;
  padding-left: 36px;
  counter-increment: case-ol;
}

.case-section-body ol li::before {
  content: counter(case-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  line-height: 1.75;
}

.case-section-body blockquote {
  margin: 1.6em 0;
  padding: 22px 28px;
  background: var(--bg);
  border-left: 3px solid var(--red);
  font-style: italic;
  line-height: 1.55;
}

/* Editor-authored data tables — full width, padded cells, hairline row
   borders. The Titley case study uses these for Search Console performance
   breakdowns; without these rules tables collapse to ~440px with no padding. */
.case-section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.95em;
  table-layout: fixed;
}
.case-section-body th,
.case-section-body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #EAEAEA;
  word-break: break-word;
}
.case-section-body th {
  font-weight: 800;
  background: var(--bg);
  letter-spacing: 0.02em;
}
.case-section-body tr:last-child td { border-bottom: none; }
/* This template uses <td colspan="N"><strong>Label</strong></td> as group
   headers — give those rows a stronger visual weight. */
.case-section-body tr:has(td > strong:only-child) td,
.case-section-body td:has(> strong:only-child) {
  background: var(--bg);
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* Tighten paragraph stacks inside cells — the editor wraps each metric in
   its own <p>, which would otherwise inherit the .case-section-body p
   bottom margin (1.2em) and bloat the rows. */
.case-section-body td p { margin: 0 0 0.4em; }
.case-section-body td p:last-child { margin-bottom: 0; }
.case-section-body td p:empty { display: none; }

.case-section-body img {
  max-width: 100%;
  height: auto;
}

/* Standalone images: block, centered, with breathing room. */
.case-section-body img:not(.alignleft):not(.alignright):not(.alignnone):not(.aligncenter) {
  display: block;
  margin: 1.6em auto;
}

/* Aligned images — float and let text wrap around. */
.case-section-body img.alignright,
.case-section-body .alignright img,
.case-section-body .alignright {
  float: right;
  margin: 4px 0 12px 20px;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.case-section-body img.alignleft,
.case-section-body .alignleft img,
.case-section-body .alignleft {
  float: left;
  margin: 4px 20px 12px 0;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.case-section-body img.aligncenter,
.case-section-body .aligncenter img {
  display: block;
  margin: 1.6em auto;
}

.case-section-body img.alignnone,
.case-section-body .alignnone img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
  max-height: 1.2em;
  width: auto;
}

.case-section-body p { margin-bottom: 1em; }

/* Only paragraphs containing small aligned ICONS create a BFC (so the icon
   stays trapped in its paragraph). Without this exception, the generic
   p { overflow: hidden } prevents text from wrapping around a magazine-style
   floated wrap image. */
.case-section-body p:has(img.alignleft),
.case-section-body p:has(img.alignright),
.case-section-body p:has(img.alignnone) {
  overflow: hidden;
}

/* Clearfix after each section-body so floats don't bleed across sections. */
.case-section-body::after {
  content: "";
  display: table;
  clear: both;
}

.case-section-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #EAEAEA;
}

/* ──────────────────────────────────────────────────────
   Magazine-style image wrap inside the body text.
   Image floats left or right, paragraphs flow around it.
   ────────────────────────────────────────────────────── */
.case-wrap-img {
  display: block;
  width: 40%;
  max-width: 480px;
  height: auto;
  border: 1px solid #EAEAEA;
}

.case-wrap-img--right {
  float: right;
  margin: 6px 0 24px 48px !important;
  shape-margin: 24px;
}

.case-wrap-img--left {
  float: left;
  margin: 6px 48px 24px 0 !important;
  shape-margin: 24px;
}

/* Ensure the body wraps long words and stays inside the section. */
.case-section-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* When wrap image is in play, give the body a clearfix and reset overflow
   so the floats can interact with text properly. */
.case-section-body:has(.case-wrap-img) { overflow: visible; }
.case-section-body:has(.case-wrap-img)::after {
  content: "";
  display: table;
  clear: both;
}

/* ──────────────────────────────────────────────────────
   Legacy `<li><span class="list-img"><img></span>TEXT</li>`
   stat-list markup. Vertical black rule on the left, icons
   inline with text, no row dividers — matches the live design.
   ────────────────────────────────────────────────────── */
.case-section-body ul:has(.list-img),
.case-body ul:has(.list-img) {
  list-style: none;
  padding: 6px 0 6px 36px;
  margin: 1.4em 0;
  border-left: 4px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 6+ items → switch to a 2-column grid so the list isn't a long single line. */
.case-section-body ul:has(.list-img):has(li:nth-of-type(6)),
.case-body ul:has(.list-img):has(li:nth-of-type(6)) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 48px;
}

.case-section-body li:has(.list-img),
.case-body li:has(.list-img) {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  border: none;
  font-size: 17px;
  line-height: 1.4;
  color: var(--black);
}

.case-section-body li:has(.list-img)::marker,
.case-body li:has(.list-img)::marker { content: none; }

.case-section-body .list-img,
.case-body .list-img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.case-section-body .list-img img,
.case-body .list-img img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  display: block !important;
  float: none !important;
  object-fit: contain;
  border: none !important;
}

/* ── RESULTS SECTION ────────────────────────────────── */
.case-results {
  position: relative;
  padding: 88px 48px;
  background: #0A0A0A;
  color: var(--white);
  overflow: hidden;
}

.case-results-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.case-results-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,44,85,0.20) 0%, transparent 50%),
    linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

.case-results-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.case-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.case-results-heading {
  position: relative;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 16px;
  margin: 0;
}

.case-results-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--red);
}

.case-results-trophy {
  width: 48px;
  height: 48px;
  color: var(--red);
  flex-shrink: 0;
  opacity: 0.85;
}

.case-results-content {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 40px;
  max-width: 820px;
}

/* Ensure every paragraph/list-item inherits the full near-white color
   (some WP content wraps intro/outro in nested elements that shadow the
   base color and end up looking grey on dark backgrounds). */
.case-results-content p,
.case-results-content li,
.case-results-content span {
  color: inherit;
}

.case-results-content p { margin: 0 0 1.2em; }
.case-results-content p:last-child { margin-bottom: 0; }
.case-results-content em { color: var(--red); font-style: italic; }
.case-results-content strong { font-weight: 700; color: var(--white); }

.case-results-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-results-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.96);
}

.case-results-text p {
  margin: 0 0 0.8em;
  color: #fff;
}
.case-results-text p:last-child { margin-bottom: 0; }
.case-results-text h3 { margin: 0 0 0.8em; }
.case-results-text ul {
  list-style: disc;
  padding-left: 15px;
}

/* Legacy two-column "result-sections" markup
   (SEO indicators / SEM indicators side by side) */
.case-results-text .result-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.case-results-text .half-section ul,
.case-results-text .secondhelf-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-results-text .half-section li,
.case-results-text .secondhelf-section li {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,0.9);
}

.case-results-text .first-li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 6px !important;
}

.case-results-text .first-li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.case-results-text .seo-text::before    { background: #00f0ff; }
.case-results-text .sem-text::before    { background: #ffc000; }
.case-results-text .email-text::before  { background: #ff8e3e; }
.case-results-text .social-text::before { background: #a100ff; }
.case-results-text .dev-text::before    { background: #0800b2; }
.case-results-text .cro-text::before    { background: #ff2c55; }

.case-results-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.case-results-stat {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.case-results-stat:first-child { padding-top: 0; }
.case-results-stat:last-child { border-bottom: none; padding-bottom: 0; }

.case-results-stat-num {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.case-results-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ── OTHER CASE STUDIES ─────────────────────────────── */
.case-other {
  padding: 80px 48px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,44,85,0.06) 0%, transparent 50%),
    var(--bg);
  border-top: 1px solid var(--rule);
}

.case-other-header { max-width: 1200px; margin: 0 auto 40px; }

.case-other-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.case-other-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.case-other-h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--black);
}

.case-other-h2 em { font-style: italic; color: var(--red); }

.case-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.case-other-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-other-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15);
  border-color: rgba(255,44,85,0.4);
}

.case-other-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,44,85,0.10) 0%, transparent 60%),
    linear-gradient(155deg, #1a1a1a 0%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.case-other-card:hover .case-other-media { transform: scale(1.02); }

.case-other-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

.case-other-logo {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--white);
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.case-other-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
}

.case-other-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.case-other-stat-num {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 0.9;
}

.case-other-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  max-width: 140px;
}

.case-other-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--white);
}

.case-other-cta {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: auto;
  transition: letter-spacing 0.22s;
}

.case-other-card:hover .case-other-cta { letter-spacing: 0.24em; }

/* ── BOTTOM CTA ─────────────────────────────────────── */
.case-cta {
  position: relative;
  padding: 96px 48px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255,44,85,0.22) 0%, transparent 45%),
    radial-gradient(circle at 0% 0%, rgba(255,44,85,0.08) 0%, transparent 50%),
    var(--black);
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.case-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.5) 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.5) 0%, transparent 65%);
}

.case-cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.case-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  padding: 8px 14px;
  border: 1px solid rgba(255,44,85,0.35);
  background: rgba(255,44,85,0.08);
  margin-bottom: 26px;
}

.case-cta-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: case-pulse 2s ease-in-out infinite;
}

@keyframes case-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.case-cta-h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 18px;
}

.case-cta-h2 em { font-style: italic; color: var(--red); }

.case-cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 36px;
}

.case-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 38px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 8px 24px rgba(255,44,85,0.25);
}

.case-cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.22s; }
.case-cta-btn:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.case-cta-btn:hover svg { transform: translateX(4px); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .case-hero-row { grid-template-columns: 1fr; gap: 28px; }
  .case-hero-logo { max-width: 180px; }
  .case-hero-stat { padding-right: 20px; }
  .case-hero-stat:not(:first-child) { padding-left: 20px; }
  .case-section--split .case-section-inner,
  .case-section--split-reverse .case-section-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-section--split-reverse .case-section-text { order: 1; }
  .case-section--split-reverse .case-section-image { order: 2; }
  .case-results-card { grid-template-columns: 1fr; gap: 32px; }
  .case-results-text .result-sections { gap: 28px; }
  .case-other-grid { grid-template-columns: 1fr; }
  .case-wrap-img { max-width: 60%; }
}

@media (max-width: 720px) {
  .case-wrap-img,
  .case-wrap-img--left,
  .case-wrap-img--right {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 18px 0;
  }
}

@media (max-width: 720px) {
  .case-hero { padding: 48px 24px 40px; min-height: 0; }
  .case-hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .case-hero-stat {
    border-right: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .case-hero-stat:not(:first-child) { padding-left: 0; }
  .case-hero-stat:last-child { border-bottom: none; }
  .case-quote { padding: 48px 24px 8px; }
  .case-quote-inner { padding: 32px 28px; }
  .case-quote-text { padding-left: 24px; font-size: 16px; }
  .case-quote-author { padding-left: 24px; }
  .case-quote-mark { width: 28px; height: 28px; top: 18px; left: 18px; }
  .case-section { padding: 40px 24px; }
  .case-results { padding: 56px 24px; }
  .case-results-card { padding: 24px; }
  .case-results-text .result-sections { grid-template-columns: 1fr; gap: 28px; }
  .case-results-stat { grid-template-columns: 120px 1fr; gap: 16px; }
  .case-section-body ul:has(.list-img):has(li:nth-of-type(6)),
  .case-body ul:has(.list-img):has(li:nth-of-type(6)) {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .case-other { padding: 56px 24px; }
  .case-cta { padding: 64px 24px; }
}
