/* ============================================================
   BMG case stories — static article pages (case-studies/*.html).
   Same look as the black media side: pure black, white type,
   one blue glow. Built by build-case-studies.py.
   ============================================================ */
:root {
  --bg: #000; --card: #0b0b0d; --card-2: #111114;
  --line: rgba(255,255,255,0.09); --line-2: rgba(255,255,255,0.16);
  --text: #fff; --dim: rgba(255,255,255,0.66); --faint: rgba(255,255,255,0.42);
  --blue: 90,130,255;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
body::before { content: ""; position: fixed; left: 50%; top: -40vh; width: 120vw; height: 80vh; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(40,80,255,0.22) 0%, rgba(0,0,0,0) 70%); pointer-events: none; z-index: 0; }
body > * { position: relative; z-index: 1; }
::selection { background: #fff; color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.cs-wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* header */
.cs-top { position: sticky; top: 0; z-index: 10; background: rgba(0,0,0,0.72); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.cs-top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.cs-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cs-logo svg { width: 20px; height: 20px; color: #fff; }
.cs-logo span { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.cs-logo b { font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: -0.04em; line-height: 0.8; }
.cs-logo b i { color: #5a82ff; font-style: italic; }
.cs-logo small { font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.5); white-space: nowrap; }
.cs-nav { display: flex; align-items: center; gap: 18px; }
.cs-nav > a:not(.cs-btn) { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; color: rgba(255,255,255,0.82); }
.cs-nav > a:not(.cs-btn):hover { color: #fff; }

/* buttons */
.cs-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 999px; transition: transform .18s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.cs-btn span { transition: transform .2s var(--ease); }
.cs-btn:hover { transform: translateY(-1px); }
.cs-btn:hover span { transform: translateX(3px); }
.cs-btn-w { background: linear-gradient(180deg, #fff 0%, #e9e9ee 100%); color: #000; box-shadow: inset 0 1px 0 #fff, 0 10px 40px -10px rgba(255,255,255,0.35); }
.cs-nav .cs-btn { padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid rgba(var(--blue),0.9); outline-offset: 3px; border-radius: 6px; }

/* breadcrumbs + kicker */
.cs-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; font-size: 13px; color: var(--faint); }
.cs-crumbs a { text-decoration: none; color: var(--dim); }
.cs-crumbs a:hover { color: #fff; }
.cs-crumbs i { font-style: normal; opacity: 0.5; }
.cs-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.cs-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--blue)); box-shadow: 0 0 10px 1px rgba(var(--blue),0.8); }

/* article head */
.cs-head { max-width: 860px; margin-top: 28px; }
.cs-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-cats a { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: rgba(255,255,255,0.8); text-decoration: none; background: rgba(255,255,255,0.03); }
.cs-head h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.04em; margin: 20px 0 0; text-wrap: balance; }
.cs-summary { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--dim); margin: 20px 0 0; font-weight: 500; text-wrap: pretty; }
.cs-meta { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cs-meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.cs-meta b { display: block; font-size: 15px; }
.cs-meta span { font-size: 13px; color: var(--faint); }
.cs-share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); }
.cs-share svg { width: 16px; height: 16px; }
.cs-share:hover { background: rgba(255,255,255,0.08); }

.cs-hero { margin: 36px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 0 90px -30px rgba(255,255,255,0.25), 0 50px 100px -50px rgba(0,0,0,0.9); aspect-ratio: 16 / 8; background: #0d0d10; }
.cs-hero img { width: 100%; height: 100%; object-fit: cover; }

/* body: sticky table of contents + prose */
.cs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.cs-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.cs-toc b { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.cs-toc a { text-decoration: none; color: var(--dim); padding: 6px 0 6px 12px; border-left: 1px solid var(--line); transition: color .15s, border-color .15s; }
.cs-toc a:hover { color: #fff; border-left-color: rgba(var(--blue),0.8); }
.cs-prose { max-width: 740px; }
.cs-prose section { scroll-margin-top: 96px; }
.cs-prose section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.cs-prose h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 18px; }
.cs-prose h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 18px; color: rgba(255,255,255,0.9); }
.cs-prose p { font-size: 17px; line-height: 1.75; color: rgba(255,255,255,0.78); margin: 0 0 16px; text-wrap: pretty; }
.cs-prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cs-prose ul li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.82); }
.cs-prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--blue)); box-shadow: 0 0 8px rgba(var(--blue),0.9); }

/* stat callouts */
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.cs-stat { padding: 20px 20px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(var(--blue),0.12), rgba(var(--blue),0.03)); border: 1px solid rgba(var(--blue),0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.cs-stat b { display: block; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cs-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); font-weight: 500; }

/* about our client: label / value rows */
.cs-prose ul.cs-about { gap: 0; border-top: 1px solid var(--line); }
.cs-prose ul.cs-about li { padding: 14px 0; display: grid; grid-template-columns: 150px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.cs-prose ul.cs-about li::before { display: none; }
.cs-about b { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }

/* faq */
.cs-prose details { border-bottom: 1px solid var(--line); }
.cs-prose details:first-of-type { border-top: 1px solid var(--line); }
.cs-prose summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 600; position: relative; }
.cs-prose summary::-webkit-details-marker { display: none; }
.cs-prose summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--dim); transition: transform .2s var(--ease); }
.cs-prose details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.cs-prose details p { margin: 0 0 18px; font-size: 16px; }

/* cta, author, related */
.cs-cta { margin-top: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--blue),0.22), rgba(0,0,0,0) 60%), linear-gradient(180deg, #0f0f12, #09090b); border: 1px solid rgba(var(--blue),0.3); box-shadow: 0 0 100px -40px rgba(var(--blue),0.6); }
.cs-cta h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; margin: 12px 0 0; }
.cs-cta p { margin: 10px 0 0; color: var(--dim); font-size: 16px; max-width: 560px; }
.cs-author { margin-top: 40px; display: flex; gap: 22px; align-items: flex-start; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.cs-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-2); }
.cs-author b { display: block; font-size: 19px; margin-top: 10px; }
.cs-author small { display: block; color: var(--faint); font-size: 13px; margin-top: 3px; }
.cs-author p { margin: 12px 0 0; color: var(--dim); font-size: 15px; line-height: 1.65; }
.cs-related { margin-top: 96px; }
.cs-related > h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin: 0 0 24px; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cs-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); transition: transform .3s var(--ease), border-color .3s; }
.cs-card:hover { transform: translateY(-3px); border-color: rgba(var(--blue),0.45); }
.cs-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d10; }
.cs-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cs-card:hover .cs-card-img img { transform: scale(1.04); }
.cs-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cs-card-by { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.cs-card-by img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cs-card h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.cs-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-card-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--faint); }
.cs-card-meta span + span::before { content: "·"; margin-right: 12px; }
.cs-back { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--dim); }
.cs-back:hover { color: #fff; }

/* index */
.cs-index-head { max-width: 780px; margin: 40px 0 48px; }
.cs-index-head h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; margin: 18px 0 0; text-wrap: balance; }
.cs-index-head h1 em { font-style: normal; background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.38) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-index-head p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--dim); margin: 20px 0 0; }

.cs-foot { margin-top: 96px; border-top: 1px solid rgba(255,255,255,0.08); }
.cs-foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 36px; font-size: 13px; color: var(--faint); }
.cs-foot a { text-decoration: none; margin-left: 18px; color: var(--dim); }
.cs-foot a:first-child { margin-left: 0; }
.cs-foot a:hover { color: #fff; }

@media (max-width: 900px) {
  .cs-body { grid-template-columns: 1fr; margin-top: 40px; }
  .cs-toc { display: none; }
  .cs-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cs-nav > a:not(.cs-btn) { display: none; }
  .cs-logo small { display: none; }
  .cs-grid, .cs-grid-3 { grid-template-columns: 1fr; }
  .cs-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
  .cs-prose ul.cs-about li { grid-template-columns: 1fr; gap: 4px; }
  .cs-author { flex-direction: column; }
  .cs-share span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cs-card, .cs-card img, .cs-btn { transition: none; } }

/* screenshots inside a section (analytics proof) */
.cs-fig { margin: 24px 0 0; }
.cs-fig img { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 0 60px -24px rgba(255,255,255,0.25); background: #0d0d10; }
.cs-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); }
.cs-index-head h1 em { padding-bottom: 0.14em; margin-bottom: -0.14em; display: inline-block; }
