/* ═══════════════════════════════════════════════════════════════════
   ABUNDANCE · CASE STUDIES · shared stylesheet
   Brand tokens locked to /brand v1.9 (fire-red tiger's blood, dark only).
   Used by /case-studies/ index + every /case-studies/<slug>/ page.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Neo Contact';
  src: url('/assets/fonts/neo-contact/neo-contact-lt-pro.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  --cream:       #F5F0E8;
  --cream-soft:  #FAF6EF;
  --bg:          #0A0A0A;
  --surface-1:   #141414;
  --surface-2:   #1B1B1B;

  --ink:         #F5F0E8;
  --ink-body:    #C9C2B5;
  --ink-muted:   #8E877C;

  --sig-highlight: #FF262E;
  --sig:           #ED1C24;
  --sig-deep:      #B30E14;
  --sig-anchor:    #7A0712;

  --grad-sig-hero: linear-gradient(135deg, #D4181F 0%, #D4181F 7%, #ED1C24 28%, #FF262E 67%, #ED1C24 88%, #D4181F 93%, #D4181F 100%);
  --grad-sig: linear-gradient(135deg, #7A0712 0%, #8F0C14 22%, #B30E14 50%, #C9161D 76%, #ED1C24 100%);
  --grad-sig-tight: linear-gradient(135deg, #ED1C24 0%, #ED1C24 12%, #FF262E 55%, #ED1C24 88%, #ED1C24 100%);

  --hairline:        rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.18);
  --glass-bg-dark:  rgba(20,20,20,0.55);
  --glass-blur:     blur(22px) saturate(140%);

  --font-logo:    "Neo Contact", "DM Serif Display", Georgia, serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans:    "greycliff-cf", system-ui, -apple-system, sans-serif;

  --r-stage:   28px;
  --r-card:    18px;
  --r-pill:    100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; scroll-behavior: smooth;
}
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.028em; line-height: 1.04; }
h1 em, h2 em, h3 em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(237,28,36,0.32));
}
h1 em { background-image: var(--grad-sig-hero) !important; }
h2 em, h3 em { background-image: var(--grad-sig-tight) !important; }

.label, .eyebrow {
  font-family: var(--font-sans); font-size: 13px;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted);
}
.label.on-dark { color: var(--ink-body); }
.dot-period {
  display: inline-block; width: 0.38em; height: 0.38em;
  background: var(--grad-sig); border-radius: 50%;
  vertical-align: 0.05em; margin-left: 0.06em;
  box-shadow: 0 0 18px rgba(179,14,20,0.55);
}
p strong { color: var(--ink); font-weight: 700; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.btn.ghost {
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: 1px solid rgba(255,255,255,0.10);
}
.btn.ghost:hover { background: rgba(255,255,255,0.10); }
.btn.gradient {
  background: var(--grad-sig); background-size: 200% 100%; background-position: 0% 50%;
  color: var(--cream); box-shadow: 0 0 24px rgba(179,14,20,0.4);
  transition: background-position 0.5s ease;
}
.btn.gradient:hover { background-position: 100% 50%; }

/* PAGE STAGE */
.page {
  margin: 14px; border-radius: var(--r-stage); overflow: hidden;
  position: relative; min-height: calc(100vh - 28px); background: var(--bg);
}

/* FLOATING NAV (shared with site) */
.float-nav {
  position: fixed; top: 22px; left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 200;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; border-radius: var(--r-pill);
  background: var(--glass-bg-dark);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.55);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-width: calc(100% - 32px);
}
.float-nav.hidden { transform: translateX(-50%) translateY(calc(-100% - 30px)); opacity: 0; }
.fn-mark { font-family: var(--font-logo); font-size: 19px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.fn-mark em { font-style: normal; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fn-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.10); }
.fn-links { display: flex; gap: 2px; }
.fn-links a {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-body); white-space: nowrap;
}
.fn-links a:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.fn-cta { padding: 8px 16px; font-size: 13px; }
.fn-burger { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--ink); }
.fn-burger svg { width: 18px; height: 18px; }
.fn-mobile { display: none; position: fixed; top: 78px; left: 14px; right: 14px; z-index: 199; background: var(--glass-bg-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-card); padding: 12px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
.fn-mobile.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.fn-mobile a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-body); font-size: 15px; font-weight: 500; }
@media (max-width: 1100px) {
  .fn-links, .fn-sep, .fn-cta { display: none; }
  .fn-burger { display: inline-flex; }
  .fn-mobile { display: block; }
  .float-nav { gap: 10px; padding: 8px 8px 8px 18px; }
}

/* SECTION SCAFFOLD */
.sec { padding: clamp(60px, 7vw, 110px) clamp(22px, 5vw, 80px); position: relative; overflow: hidden; border-top: 1px solid var(--hairline); }
.sec:first-child { border-top: none; }

/* ═══════════════════════════════════════════════════════════════════
   GRID INDEX (/case-studies/)
   ═══════════════════════════════════════════════════════════════════ */
.cs-hero {
  padding: clamp(140px, 14vw, 200px) clamp(22px, 5vw, 80px) clamp(70px, 8vw, 110px);
  text-align: center; position: relative; overflow: hidden;
}
.cs-hero::before { content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 900px; height: 600px; background: radial-gradient(circle, rgba(179,14,20,0.30), transparent 60%); filter: blur(60px); pointer-events: none; }
.cs-hero > * { position: relative; z-index: 1; }
.cs-hero .label { display: block; margin-bottom: 18px; }
.cs-hero h1 { font-size: clamp(42px, 6.5vw, 88px); max-width: 22ch; margin: 0 auto 22px; line-height: 1.03; }
.cs-hero .lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-body); max-width: 56ch; margin: 0 auto 36px; }

/* Stats strip below hero */
.cs-stats {
  padding: 36px clamp(22px, 5vw, 80px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-stats .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1100px; margin: 0 auto; }
.cs-stats .strip > div { padding: 0 16px; border-right: 1px solid var(--hairline); text-align: center; }
.cs-stats .strip > div:last-child { border-right: none; }
.cs-stats .strip .n { font-family: var(--font-sans); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.cs-stats .strip .n em { font-family: var(--font-display); font-style: italic; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-stats .strip .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 8px; font-weight: 700; }
@media (max-width: 720px) { .cs-stats .strip { grid-template-columns: 1fr 1fr; gap: 16px; } .cs-stats .strip > div { border-right: none; padding: 14px; } }

/* Grid of case study cards */
.cs-grid {
  padding: clamp(60px, 7vw, 110px) clamp(22px, 5vw, 80px);
}
.cs-grid .sec-head { text-align: center; margin-bottom: 56px; }
.cs-grid .sec-head .label { display: block; margin-bottom: 14px; }
.cs-grid .sec-head h2 { font-size: clamp(34px, 4.5vw, 56px); margin: 0 auto 18px; max-width: 22ch; }
.cs-grid .sec-head .lead { color: var(--ink-body); font-size: 17px; max-width: 60ch; margin: 0 auto; }
.cs-grid .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1200px; margin: 0 auto; }
.cs-grid .card {
  display: block;
  padding: 36px 32px;
  border-radius: var(--r-card);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative; overflow: hidden;
}
.cs-grid .card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 0%, rgba(179,14,20,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
.cs-grid .card:hover {
  transform: translateY(-3px);
  border-color: rgba(179,14,20,0.30);
  box-shadow: 0 30px 80px -20px rgba(179,14,20,0.30);
}
.cs-grid .card:hover::before { opacity: 1; }
.cs-grid .card > * { position: relative; z-index: 1; }
.cs-grid .card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(179,14,20,0.14); border: 1px solid rgba(179,14,20,0.30);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sig-highlight);
  margin-bottom: 22px;
}
.cs-grid .card .company {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.cs-grid .card .arc {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em;
  margin-bottom: 28px; line-height: 1.2;
}
.cs-grid .card .arc em { font-family: var(--font-display); font-style: italic; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(237,28,36,0.32)); }
.cs-grid .card .stats { display: flex; gap: 24px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.cs-grid .card .stat-l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin-bottom: 4px; }
.cs-grid .card .stat-n { font-family: var(--font-sans); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.cs-grid .card .stat-n em { font-family: var(--font-display); font-style: italic; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-grid .card .blurb { font-size: 14.5px; color: var(--ink-body); line-height: 1.55; margin-bottom: 22px; }
.cs-grid .card .read {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--sig-highlight);
  letter-spacing: 0.04em;
}
.cs-grid .card .read svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.cs-grid .card:hover .read svg { transform: translateX(4px); }
@media (max-width: 820px) { .cs-grid .grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════
   INDIVIDUAL CASE STUDY PAGE (/case-studies/<slug>/)
   ═══════════════════════════════════════════════════════════════════ */
.cs-page-hero {
  padding: clamp(140px, 14vw, 200px) clamp(22px, 5vw, 80px) clamp(60px, 7vw, 90px);
  position: relative; overflow: hidden;
}
.cs-page-hero::before { content: ''; position: absolute; top: -8%; right: -10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(179,14,20,0.28), transparent 60%); filter: blur(80px); pointer-events: none; }
.cs-page-hero > * { position: relative; z-index: 1; }
.cs-page-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700; margin-bottom: 28px;
}
.cs-page-hero .breadcrumb a { color: inherit; transition: color 0.15s ease; }
.cs-page-hero .breadcrumb a:hover { color: var(--sig-highlight); }
.cs-page-hero .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(179,14,20,0.14); border: 1px solid rgba(179,14,20,0.30);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sig-highlight);
  margin-bottom: 22px;
}
.cs-page-hero .company-name {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 16px;
}
.cs-page-hero h1 {
  font-size: clamp(42px, 6vw, 84px); letter-spacing: -0.03em;
  line-height: 1.02; margin-bottom: 28px;
  max-width: 22ch;
}
.cs-page-hero .lead { color: var(--ink-body); font-size: 19px; max-width: 56ch; line-height: 1.55; margin-bottom: 36px; }

/* KPI banner */
.cs-kpi-banner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  max-width: 1100px;
}
.cs-kpi-banner .k {
  padding: 28px 26px;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(179,14,20,0.14), rgba(179,14,20,0.02));
  border: 1px solid rgba(179,14,20,0.30);
}
.cs-kpi-banner .k .l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin-bottom: 10px; }
.cs-kpi-banner .k .n { font-family: var(--font-sans); font-weight: 800; font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.cs-kpi-banner .k .n em { font-family: var(--font-display); font-style: italic; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Narrative sections */
.cs-narrative {
  padding: clamp(60px, 7vw, 100px) clamp(22px, 5vw, 80px);
  border-top: 1px solid var(--hairline);
}
.cs-narrative .row {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  max-width: 1100px; margin: 0 auto;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
}
.cs-narrative .row:first-child { border-top: none; padding-top: 0; }
.cs-narrative .row:last-child { padding-bottom: 0; }
.cs-narrative .row .label-col {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sig-highlight); font-weight: 800;
}
.cs-narrative .row .body-col {}
.cs-narrative .row h2 {
  font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; letter-spacing: -0.02em;
}
.cs-narrative .row p {
  font-size: 17px; line-height: 1.7; color: var(--ink-body); margin-bottom: 16px;
  max-width: 60ch;
}
.cs-narrative .row ul { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 60ch; margin-top: 8px; }
.cs-narrative .row li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-body); }
.cs-narrative .row li::before { content: '✓'; position: absolute; left: 0; background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
@media (max-width: 820px) { .cs-narrative .row { grid-template-columns: 1fr; gap: 14px; } }

/* Pull-quote section */
.cs-quote {
  padding: clamp(60px, 7vw, 100px) clamp(22px, 5vw, 80px);
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(179,14,20,0.20), transparent 70%);
  border-top: 1px solid var(--hairline);
}
.cs-quote .q {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.025em;
  line-height: 1.15; max-width: 28ch; margin: 0 auto 28px;
}
.cs-quote .q em { font-family: var(--font-display); font-style: italic; background-image: var(--grad-sig-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-quote .by {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700;
}

/* Related + CTA */
.cs-related {
  padding: clamp(60px, 7vw, 100px) clamp(22px, 5vw, 80px);
  border-top: 1px solid var(--hairline);
}
.cs-related .head { text-align: center; margin-bottom: 40px; }
.cs-related .head .label { display: block; margin-bottom: 14px; }
.cs-related .head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.cs-related .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1100px; margin: 0 auto; }
.cs-related .mini {
  padding: 24px 26px;
  border-radius: var(--r-card);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cs-related .mini:hover { background: rgba(255,255,255,0.06); border-color: rgba(179,14,20,0.30); }
.cs-related .mini strong { display: block; font-size: 17px; margin-bottom: 4px; }
.cs-related .mini span { font-size: 13px; color: var(--ink-muted); }
.cs-related .mini .arr { color: var(--sig-highlight); }
@media (max-width: 820px) { .cs-related .grid { grid-template-columns: 1fr; } }

.cs-final-cta {
  padding: clamp(80px, 9vw, 140px) clamp(22px, 5vw, 80px);
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(179,14,20,0.28), transparent 70%);
}
.cs-final-cta .label { display: block; margin-bottom: 18px; }
.cs-final-cta h2 { font-size: clamp(34px, 5vw, 60px); max-width: 22ch; margin: 0 auto 22px; }
.cs-final-cta .lead { color: var(--ink-body); max-width: 50ch; margin: 0 auto 36px; font-size: 17px; }
.cs-final-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FOOTER (shared) */
.foot {
  padding: 56px clamp(22px, 5vw, 80px) 32px;
  border-top: 1px solid var(--hairline);
}
.foot .top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px;
  padding-bottom: 36px; border-bottom: 1px solid var(--hairline); margin-bottom: 22px;
}
.foot .brand-col .logo { font-family: var(--font-logo); font-size: 28px; font-weight: 500; margin-bottom: 14px; display: block; }
.foot .brand-col .logo em { background-image: var(--grad-sig); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.foot .brand-col p { color: var(--ink-body); font-size: 14px; max-width: 36ch; }
.foot .col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin-bottom: 18px; }
.foot .col a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-body); }
.foot .col a:hover { color: var(--sig); }
.foot .bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-muted); }
@media (max-width: 1100px) { .foot .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot .top { grid-template-columns: 1fr; } }
