/* ---------- Page scope ---------- */
.page-ai {
  background: #000; /* base page tone as per reference */
}

/* Kill any global grey-strip title backgrounds on this page only */
.page-ai .title-bar,
.page-ai .section-title,
.page-ai [class*="title-"],
.page-ai h1.ai-title {
  background: transparent !important;
  box-shadow: none !important;
}

/* ---------- Hero ---------- */
.hero-ai {
  position: relative;
  background: #000; /* solid black underlay */
  padding: clamp(72px, 10vw, 140px) 0  clamp(48px, 6vw, 96px);
  overflow: hidden;
}

.hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/ai/hero-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover; /* or contain if your pattern should not crop */
  opacity: 0.35;          /* tweak to match reference */
  pointer-events: none;
  z-index: 0;
}

.hero-ai .hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
  color: #fff;
  text-align: left; /* match your reference */
}

/* Title with white underline */
h1.ai-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(28px, 5vw, 56px);
  margin: 0 0 12px;
  color: #fff;
  position: relative;
}

h1.ai-title::after {
  content: "";
  display: block;
  width: 72px;            /* tweak to match reference length */
  height: 3px;
  margin-top: 12px;
  background: #fff;
  border-radius: 999px;
}

.ai-subtitle {
  color: #eaeaea;
  max-width: 68ch;
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: 0.9;
}

/* ---------- Impact Cards ---------- */
.ai-impact {
  width: min(1100px, 92vw);
  margin: clamp(28px, 5vw, 48px) auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.impact-card {
  background: var(--amber-700, #FFB020); /* keep your amber look; override if you have design tokens */
  color: #1a1a1a;                         /* readable on amber; adjust to your palette */
  border-radius: 20px;
  padding: 20px 22px;
  min-height: 140px;                      /* equal visual weight */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08) inset, 0 6px 24px rgba(0,0,0,0.18);
}

.impact-card h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 18px);
}

.impact-card p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.5;
}

/* ---------- Problem Statement Card ---------- */
.ai-problem {
  width: min(1100px, 92vw);
  margin: clamp(16px, 3vw, 28px) auto;
}

.problem-card {
  background: #2b2b2b;       /* rounded grey */
  color: #fff;               /* white text */
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.problem-card h2 {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  color: #fff;
}

.problem-card p {
  margin: 0;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.6;
}

/* ---------- Defensive overrides (legacy bleed) ---------- */
/* If any legacy file forced a grey bg under headers, nuke within scope */
.page-ai [class*="title"],
.page-ai header,
.page-ai .section-head,
.page-ai .heading-bar {
  background-image: none !important;
  background-color: transparent !important;
}

/* Ensure hero text sits above bg */
.page-ai .hero-ai * {
  position: relative;
  z-index: 1;
}

/* ===================== */
/* AI PAGE HARD OVERRIDES */
/* ===================== */

/* Page theme reset */
body.page-ai {
  background: #0a0a0a !important;
  color: #fff;
}

/* Nuke legacy section/title backgrounds and center-align from other styles */
body.page-ai .hero,
body.page-ai .section,
body.page-ai [class*="section-"],
body.page-ai header,
body.page-ai .title-bar,
body.page-ai .heading-bar,
body.page-ai [class*="header-"] {
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

/* ---------- HERO ---------- */
body.page-ai .hero-ai {
  position: relative;
  background: #000 !important; /* no blue, solid black base */
  padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 6vw, 64px) !important; /* reduce oversized banner */
  overflow: hidden;
}

body.page-ai .hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/ai/hero-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

body.page-ai .hero-ai .hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
}

body.page-ai h1.ai-title {
  margin: 0 0 12px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(28px, 5vw, 56px);
  color: #fff !important;
  text-align: left !important;
  background: transparent !important; /* remove grey strip behind title if any */
}

body.page-ai h1.ai-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: #fff;
  border-radius: 999px;
}

body.page-ai .ai-subtitle {
  color: #eaeaea;
  max-width: 68ch;
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: 0.9;
  text-align: left !important;
}

/* ---------- IMPACT (3-up desktop, stacked mobile) ---------- */
body.page-ai .ai-impact {
  width: min(1100px, 92vw);
  margin: clamp(20px, 4vw, 36px) auto;
}

body.page-ai .impact-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  body.page-ai .impact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

body.page-ai .impact-card {
  background: #f6e6c7;               /* soft amber card */
  color: #1a1a1a;
  border-radius: 20px;
  padding: 20px 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1px 0 rgba(0,0,0,.08) inset, 0 6px 24px rgba(0,0,0,.18);
}

body.page-ai .impact-card h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 18px);
}

/* ---------- PROBLEM STATEMENT (rounded grey with white text) ---------- */
body.page-ai .ai-problem {
  width: min(1100px, 92vw);
  margin: clamp(12px, 3vw, 28px) auto;
}

body.page-ai .problem-card {
  background: #2b2b2b;
  color: #fff;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

body.page-ai .problem-card h2 {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
}

/* ---------- Defensive: left-align all headings on this page ---------- */
body.page-ai h1, 
body.page-ai h2, 
body.page-ai h3, 
body.page-ai h4 { text-align: left !important; }

/* Defensive: ensure any theme token trying to color backgrounds is ignored */
body.page-ai [class*="surface"], 
body.page-ai [class*="panel"], 
body.page-ai [class*="card"] {
  background-image: none !important;
}

/* Make sure hero text sits above the decorative bg */
body.page-ai .hero-ai * { position: relative; z-index: 1; }

/* === AI page tokens (local dark theme) === */
body.page-ai {
  --ai-bg: #121212;
  --ai-surface: #1b1b1b;
  --ai-text: #ffffff;
  --ai-subtle: #e8e8e8;
  --ai-amber: #b98b2e;        /* your amber cards */
  --ai-underline: #ffffff;
  --accent: #ffffff; 
  --link: #ffffff; 
  --heading-color: #ffffff;
}

/* Kill global section defaults for this page */
body.page-ai section,
body.page-ai .section {
  background: var(--ai-bg);
  text-align: left;
  padding: 48px 0;          /* sane default, adjust as needed */
}

/* Hero (tight, not oversized) */
body.page-ai .hero-ai {
  position: relative;
  background: #000;
  padding: 96px 0 56px;
  overflow: hidden;
}
body.page-ai .hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/ai/hero-bg.png") center top / cover no-repeat;
  opacity: .35;
  pointer-events: none;
}
body.page-ai .hero-ai .hero-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
}
body.page-ai h1.ai-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ai-text);
}
body.page-ai h1.ai-title::after {
  content:"";
  display:block;
  width:72px; height:3px; margin-top:12px;
  background: var(--ai-underline);
  border-radius: 999px;
}
body.page-ai .ai-subtitle {
  color: var(--ai-subtle);
  max-width: 68ch;
  font-size: 18px;
}

/* Impact row */
body.page-ai .ai-impact { width: min(1100px, 92vw); margin: 40px auto; }
body.page-ai .impact-grid { display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:900px){ body.page-ai .impact-grid { grid-template-columns:repeat(3,1fr); } }
body.page-ai .impact-card {
  background: #f6e6c7; color:#111; border-radius:20px; padding:24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18), 0 1px 0 rgba(0,0,0,.08) inset;
}

/* Problem statement */
body.page-ai .ai-problem { width: min(1100px, 92vw); margin: 28px auto; }
body.page-ai .problem-card {
  background: var(--ai-surface); color: var(--ai-text);
  border-radius: 24px; padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
body.page-ai .problem-card h2 { margin:0 0 10px; font-weight:800; }

/* Flow section – left align */
body.page-ai .flow-section,
body.page-ai .flow-section * { text-align:left; }

/* Headings – ensure not blue */
body.page-ai h1, body.page-ai h2, body.page-ai h3 {
  color: var(--ai-text);
}

/* Two "bad actor" one-liners (use if you still see white/center) */
body.page-ai [style*="background:#fff"],
body.page-ai .section,
body.page-ai section { background: var(--ai-bg) !important; }

body.page-ai .section, 
body.page-ai section, 
body.page-ai .container, 
body.page-ai .grid { text-align: left !important; }

/* === Fine-tune controls (AI page only) === */
body.page-ai {
  --hero-pt: 88px;   /* hero top padding */
  --hero-pb: 52px;   /* hero bottom padding */
  --section-pt: 42px;
  --section-pb: 42px;
  --flow-gap: 24px;
}

body.page-ai .hero-ai { padding: var(--hero-pt) 0 var(--hero-pb); }
body.page-ai section,
body.page-ai .section { padding: var(--section-pt) 0 var(--section-pb); }

/* Lift title slightly & keep underline crisp */
body.page-ai h1.ai-title { transform: translateY(-4px); }
@media (min-width: 1200px) {
  body.page-ai h1.ai-title { transform: translateY(-6px); }
}

/* Keep all headings left, kill any lingering center rules */
body.page-ai h1, body.page-ai h2, body.page-ai h3,
body.page-ai .section > *:is(h1,h2,h3) { text-align: left !important; }

/* Meeting summary experience flow — strict left layout */
body.page-ai .flow-section { width: min(1100px, 92vw); margin: 16px auto 0; }
body.page-ai .flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--flow-gap);
  justify-items: start;       /* no centering */
  align-items: start;
}
@media (min-width: 900px) {
  body.page-ai .flow-grid { grid-template-columns: repeat(4, 1fr); }
}
body.page-ai .flow-card {
  width: 100%;
  max-width: 248px;           /* matches your ref proportion */
  margin: 0;                  /* no auto-centering margins */
}

/* "process" heading color (no blue), tame letterspacing if any */
body.page-ai .process-title {
  color: var(--ai-text);
  letter-spacing: 0;          /* remove cyan/brand typography quirks */
}

/* Extra guardrails: no white surfaces slipping through */
body.page-ai [style*="background:#fff"] { background: var(--ai-bg) !important; }

/* ========== AI CASE "NUCLEAR LOCK" (temporary) ========== */
body.page-ai {
  --bg: #121212;
  --surface: #1b1b1b;
  --text: #ffffff;
  --accent: #ffffff;
  --link: #ffffff;
  --heading-color: #ffffff;
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* kill global white/center sections */
body.page-ai section, 
body.page-ai .section { 
  background: var(--bg) !important; 
  text-align: left !important;
  padding: 48px 0 !important;
}

/* neutralize legacy hero-static junk */
body.page-ai .hero-static { 
  background: transparent !important; 
  margin: 0 !important; 
  padding: 0 !important; 
  box-shadow: none !important; 
}

/* hero */
body.page-ai .hero-ai {
  position: relative;
  background: #000 !important;
  padding: 80px 0 48px !important;
  overflow: hidden;
}
body.page-ai .hero-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/ai/hero-bg.png") center top / cover no-repeat !important;
  opacity: 0.35;
  pointer-events: none;
}
body.page-ai .hero-ai .hero-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
}
body.page-ai h1.ai-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--text) !important;
  text-align: left !important;
  transform: translateY(-6px);
}
body.page-ai h1.ai-title::after {
  content: "";
  display: block;
  width: 72px; height: 3px; margin-top: 12px;
  background: var(--text); border-radius: 999px;
}
body.page-ai .ai-subtitle { color: #e8e8e8; max-width: 68ch; }

/* impact cards */
body.page-ai .ai-impact { width: min(1100px, 92vw); margin: 36px auto; }
body.page-ai .impact-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px){ body.page-ai .impact-grid{ grid-template-columns: repeat(3, 1fr);} }
body.page-ai .impact-card {
  background: #f6e6c7; color: #111; border-radius: 20px; padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08) inset, 0 6px 24px rgba(0,0,0,.18);
}

/* problem statement */
body.page-ai .ai-problem { width: min(1100px, 92vw); margin: 24px auto; }
body.page-ai .problem-card { background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px 28px; }

/* headings must be white + left */
body.page-ai h2, body.page-ai h3, body.page-ai .process-title { color: var(--text) !important; text-align: left !important; }

/* flow layout strictly left */
body.page-ai .flow-section { width: min(1100px, 92vw); margin: 12px auto 0; }
body.page-ai .flow-grid { display: grid; grid-template-columns: 1fr; gap: 24px; justify-items: start; align-items: start; }
@media (min-width: 900px){ body.page-ai .flow-grid { grid-template-columns: repeat(4,1fr); } }
body.page-ai .flow-card { margin: 0; max-width: 248px; }

/* last guard: any inline white background becomes dark */
body.page-ai [style*="background:#fff"] { background: var(--bg) !important; }

/* === AI Case Study: Fix visual theme and alignment === */

body.page-ai {
  --ai-bg: #000;
  --ai-surface: #111;
  --ai-text: #fff;
  --ai-accent: #f6e6c7;
  background-color: var(--ai-bg) !important;
  color: var(--ai-text) !important;
  text-align: left !important;
}

/* Hero Section */
body.page-ai .hero-static {
  background: #000 url("/assets/public/background-static.png") center/cover no-repeat !important;
  padding-top: 100px;
  padding-bottom: 60px;
}
body.page-ai .hero-static h1,
body.page-ai .hero-static h2 {
  color: #fff !important;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 6px;
}

/* Impact cards */
body.page-ai .impact .card {
  background: #f6e6c7 !important;
  color: #000 !important;
  border-radius: 24px;
  text-align: left;
}
body.page-ai .impact .card h3 {
  color: #000 !important;
}

/* Problem Statement */
body.page-ai .problem {
  background: #1b1b1b !important;
  color: #fff !important;
  border-radius: 24px;
  padding: 24px;
  text-align: left;
  width: min(1000px, 90%);
  margin: 60px auto;
}

/* Process section */
body.page-ai .process-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin: 60px auto;
  width: min(1100px, 90%);
}
@media (min-width: 900px) {
  body.page-ai .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
body.page-ai .process-card {
  background: #1b1b1b !important;
  color: #fff !important;
  border: 1px solid #f6e6c7 !important;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
body.page-ai .process-card h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Text alignment fix */
body.page-ai h2,
body.page-ai h3,
body.page-ai p {
  text-align: left !important;
}

/* ==== AI case: neutralize legacy heading bars, left align, dark surfaces ==== */
body.page-ai h1, 
body.page-ai h2, 
body.page-ai h3, 
body.page-ai p,
body.page-ai .wrap,
body.page-ai .grid,
body.page-ai .stack { text-align: left !important; }

/* the blue strip comes from old "heading bar" styles */
body.page-ai .heading-bar,
body.page-ai .title-bar,
body.page-ai .section-title .heading-bar { 
  display: none !important; 
  background: transparent !important; 
  border: 0 !important; 
  height: 0 !important; 
  box-shadow: none !important;
}

/* make sure section titles themselves aren't colored */
body.page-ai .section-title,
body.page-ai h2.section-title,
body.page-ai h2#problem.section-title {
  background: transparent !important;
  color: #fff !important;
}

/* any dark panel (problem box etc.) */
body.page-ai .surface,
body.page-ai section.surface {
  background: #1b1b1b !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

/* page background must stay black, never blue */
html[data-page="ai"], 
body.page-ai { background: #0f1012 !important; }

/* === Case study safeguards (AI) === */

/* 1) Kill the unstyled header so those blue links vanish */
body.page-ai header { display: none !important; }

/* 2) Ensure page stays dark + left-aligned */
html[data-page="ai"], body.page-ai { background: #0f1012 !important; }
body.page-ai .wrap, 
body.page-ai h1, body.page-ai h2, body.page-ai h3, 
body.page-ai p, body.page-ai .grid, body.page-ai .stack { 
  text-align: left !important; 
}

/* 3) Nuke any legacy heading bars/strips */
body.page-ai .heading-bar,
body.page-ai .title-bar,
body.page-ai .section-title .heading-bar {
  display: none !important;
  background: transparent !important;
  border: 0 !important; height: 0 !important; box-shadow: none !important;
}

/* 4) Section titles should NOT have backgrounds */
body.page-ai .section-title,
body.page-ai h2.section-title,
body.page-ai h2#problem.section-title {
  background: transparent !important;
  color: #ffffff !important;
}

/* 5) Impact cards — correct color + readable ink */
:root{
  --impact-amber: #f6e6c7;   /* soft amber you intended */
  --impact-ink:   #0b0b0b;   /* dark text on amber */
}

body.page-ai .impact-cards .impact-card,
body.page-ai .impact-card {
  background: var(--impact-amber) !important;
  color: var(--impact-ink) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: none !important;
}

body.page-ai .impact-card .impact-stat,
body.page-ai .impact-card p,
body.page-ai .impact-card li,
body.page-ai .impact-card small {
  color: var(--impact-ink) !important;
  opacity: 1 !important;
}

/* 6) Any dark "surface" panels should be dark grey, not blue */
body.page-ai .surface, 
body.page-ai section.surface {
  background: #1b1b1b !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

/* force-hide the nav on this case study */
body.page-ai header.navv2-header { 
  display: none !important; 
}

/* make sure the close pill sits top-right */
/* ULTRA NUCLEAR: Target exact HTML structure */
body.page-ai #impact .impact-cards,
body.page-ai .wrap #impact .impact-cards,
body.page-ai section#impact .impact-cards,
body.page-ai .wrap section#impact .impact-cards {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: none !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.page-ai #impact .impact-card,
body.page-ai .wrap #impact .impact-card,
body.page-ai section#impact .impact-card,
body.page-ai .wrap section#impact .impact-card {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

/* LOCK CLOSE BUTTON - COMPLETELY FIXED DIMENSIONS */
html body.page-ai .ai-close-btn {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 999999 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 8px 14px 8px 12px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  background: #E2B669 !important;
  color: #0f1012 !important;
  border: 1px solid rgba(0,0,0,.55) !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  /* COMPLETELY LOCK DIMENSIONS - OVERRIDE styles.css */
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  /* PREVENT ALL STRETCHING */
  flex: none !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: auto !important;
  transform: none !important;
  scale: 1 !important;
  letter-spacing: normal !important;
  font-stretch: normal !important;
  text-transform: none !important;
  /* FORCE NORMAL RENDERING */
  box-sizing: border-box !important;
  vertical-align: baseline !important;
}

/* NUCLEAR OPTION: Override styles.css media query that forces 42px x 42px */
@media (max-width: 640px) {
  html body.page-ai .ai-close-btn {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    padding: 8px 14px 8px 12px !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #E2B669 !important;
    color: #0f1012 !important;
    border: 1px solid rgba(0,0,0,.55) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
    white-space: nowrap !important;
    flex: none !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* Override ANY responsive changes */
@media (max-width: 1200px) {
  html body.page-ai .ai-close-btn {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    display: inline-block !important;
    padding: 8px 14px 8px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #E2B669 !important;
    color: #0f1012 !important;
    border: 1px solid rgba(0,0,0,.55) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    flex: none !important;
    transform: none !important;
    scale: 1 !important;
  }
}

@media (max-width: 768px) {
  html body.page-ai .ai-close-btn {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    display: inline-block !important;
    padding: 8px 14px 8px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #E2B669 !important;
    color: #0f1012 !important;
    border: 1px solid rgba(0,0,0,.55) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    flex: none !important;
    transform: none !important;
    scale: 1 !important;
  }
}

@media (max-width: 480px) {
  html body.page-ai .ai-close-btn {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    display: inline-block !important;
    padding: 8px 14px 8px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: #E2B669 !important;
    color: #0f1012 !important;
    border: 1px solid rgba(0,0,0,.55) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    flex: none !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* optional: nudge the page title spacing if needed */
body.page-ai #top h1{
  margin-top: 12px !important;
}

/* === AI CASE: hard overrides (place at END of /css/ai.css) === */

/* A. kill any legacy bars / strips / backgrounds on titles */
body.page-ai .heading-bar,
body.page-ai .title-bar,
body.page-ai .section-title .heading-bar { display:none !important; }
body.page-ai .section-title,
body.page-ai h2.section-title,
body.page-ai h2#problem.section-title {
  background: transparent !important;
  color: #ffffff !important;
}

/* B. impact cards — correct amber + dark ink */
:root{ --impact-amber:#f6e6c7; --impact-ink:#0b0b0b; }
body.page-ai .impact-card{
  background: var(--impact-amber) !important;
  color: var(--impact-ink) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow:none !important;
}
body.page-ai .impact-card *{ color:var(--impact-ink) !important; opacity:1 !important; }

/* C. surface panels should be neutral dark (not blue) */
body.page-ai .surface, 
body.page-ai section.surface{
  background:#1b1b1b !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

/* D. close pill (top-right), always visible on desktop */
body.page-ai .ai-close-btn{
  position: fixed; top:16px; right:16px;
  z-index: 1000;
  padding: 8px 14px 8px 12px; line-height:1;
  border-radius: 999px;
  background:#E2B669; color:#0f1012;
  border:1px solid rgba(0,0,0,.55);
  display:inline-flex; gap:8px; align-items:center;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
body.page-ai .ai-close-btn span{ font-weight:600; }

/* E. scroll button: prominent ring bottom-right */
/* Clean, simple scroll button - white border and white icon */
body.page-ai #scrollTopBtn {
  position: fixed !important;
  right: 20px !important; 
  bottom: 20px !important;
  width: 50px !important; 
  height: 50px !important;
  display: flex !important; 
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #0f0f10 !important;
  border: 2px solid white !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  z-index: 1000 !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

body.page-ai #scrollTopBtn.is-visible { 
  opacity: 1 !important; 
}

body.page-ai #scrollTopBtn img { 
  width: 20px !important; 
  height: 20px !important; 
  color: white !important;
  filter: none !important;
}

/* F. process cards (the 4 lilac boxes) */
body.page-ai .process-grid{
  display:grid; gap:20px;
  grid-template-columns:repeat(4,minmax(220px,1fr));
}
@media (max-width:1024px){ body.page-ai .process-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){  body.page-ai .process-grid{ grid-template-columns:1fr; } }

body.page-ai .process-card{
  background:rgba(226,182,105,.08);
  border:2px solid rgba(226,182,105,.6);
  border-radius:16px;
  padding:20px;
}

/* G. hide CTA placeholders if they exist */
body.page-ai .cta, 
body.page-ai section.cta{ display:none !important; }

/* H. fix hero spacer + header spacing so "Impact" hugs correctly */
body.page-ai .hero-static{ height:320px; margin-left:calc(-50vw + 50%); width:100vw; background:#0f1012; }
body.page-ai #top h1{ margin:12px 0 0 0 !important; }

/* Reduce hero image size on mobile */
@media (max-width: 768px) {
  body.page-ai .hero-static {
    height: 200px !important; /* Reduce from 320px to 200px */
  }
}

@media (max-width: 480px) {
  body.page-ai .hero-static {
    height: 150px !important; /* Even smaller on very small screens */
  }
}

/* ===== AI CASE: canonical v2 – title, impact ink, process text, spacing ===== */

/* Title block sits just under the banner */
.ai-title {
  margin: 12px 0 0 0; /* 12px below banner */
}
.ai-case-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.title-rule {
  margin-top: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border-radius: 1px;
}

/* Impact cards — enforce amber + dark ink, including nested text */
:root{
  --impact-amber: #f6e6c7;
  --impact-ink:   #0b0b0b;
}
body.page-ai .impact-card {
  background: var(--impact-amber) !important;
  color: var(--impact-ink) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: none !important;
}
body.page-ai .impact-card * {
  color: var(--impact-ink) !important;
  opacity: 1 !important;
}

/* Section titles must never carry background bars */
body.page-ai .section-title,
body.page-ai h2.section-title,
body.page-ai h2#problem.section-title {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

/* Process cards — make text actually visible, keep the dark panel look */
body.page-ai .process-card,
body.page-ai .process .surface,
body.page-ai section#process .surface {
  background: #1b1b1b !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: none !important;
}
body.page-ai #process h3,
body.page-ai #process p,
body.page-ai #process li,
body.page-ai #process small {
  color: #e8eaed !important;
  opacity: 1 !important;
}
body.page-ai .process-card {
  border-radius: 16px !important;
  padding: clamp(16px, 2.2vw, 24px) !important;
  min-height: 240px; /* keeps the 4 cards balanced */
}

/* Nuke any legacy "heading bars" that were overlaying the H2s */
body.page-ai .heading-bar,
body.page-ai .title-bar,
body.page-ai .section-title .heading-bar {
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  height: 0 !important;
  box-shadow: none !important;
}

/* Rhythm: slightly tighten top cluster but keep breath elsewhere */
.wrap > header + section#impactParallax { margin-top: 6px !important; }
.wrap > section#impactParallax + section#problem { margin-top: 8px !important; }

/* Safety: generic left alignment on this page */
body.page-ai .wrap,
body.page-ai h1, body.page-ai h2, body.page-ai h3,
body.page-ai p, body.page-ai .grid, body.page-ai .stack {
  text-align: left !important;
}

/* Close pill polish so it's readable over the hero */
.ai-close-btn {
  position: fixed;
  top: 16px; right: 16px;
  padding: 8px 12px;
  background: #E2B669;
  color: #0f1012;
  border: 1px solid rgba(0,0,0,.45);
  border-radius: 999px;
  font-weight: 600;
  z-index: 100;
}

/* === AI CASE: v14 patch block 2025-10-28 === */

/* 2.1 — Title block styling */
.page-ai .ai-title{
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 12px 0 0 0;               /* 12px gap below banner */
  color: #ffffff !important;
  display: block !important;
  visibility: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
.page-ai .title-rule{
  height: 1px;
  margin: 12px 0 0 0;               /* sits 12px below title */
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border-radius: 1px;
}

/* 2.2 — Kill duplicate/legacy scroll FABs; keep only #scrollTopBtn */
.fab, .fab-top, .fab-back, .fab-circle { display:none !important; }
/* Remove conflicting scroll button rules */
#scrollTopBtn.is-visible { opacity: 1 !important; }
/* Remove conflicting scroll button img rules */

/* 2.3 — Impact cards: proper amber & tighter desktop layout */
:root{
  --impact-amber: #CFA254;          /* exact hex from user */
  --impact-ink:   #0b0b0b;
}
.page-ai .impact-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(8px, 1vw, 12px);
}
.page-ai .impact-card{
  background: var(--impact-amber) !important;
  color: var(--impact-ink) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 14px !important;
  padding: clamp(16px, 2vw, 20px) !important;
}
@media (max-width: 860px){
  .page-ai .impact-cards{ grid-template-columns: 1fr; }
}

/* 2.4 — Process: reduce space above grid & make 4 cards aligned */
.page-ai #process{ padding-top: clamp(24px, 3vw, 32px) !important; }
.page-ai .process-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 1100px){
  .page-ai .process-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .page-ai .process-grid{ grid-template-columns: 1fr; }
}
.page-ai .process-card{
  background: #131417;
  border: 1px solid #CFA254;
  border-radius: 18px;
  padding: clamp(16px, 2vw, 22px);
  display: flex; flex-direction: column;
}
.page-ai .process-card ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 8px 0 0 0 !important;
}
.page-ai .process-card li {
  position: relative !important;
  padding-left: 0 !important;
  margin-bottom: 6px !important;
  color: #e8eaed !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.page-ai .process-card li::before {
  content: none !important;
}

/* 2.5 — Experience flow: cards with dark backgrounds and golden borders */
.page-ai .flow-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
@media (max-width: 1100px){ .page-ai .flow-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px){ .page-ai .flow-grid{ grid-template-columns: 1fr; } }

.page-ai .flow-card{
  border-radius: 18px !important;
  background: #131417 !important;  /* dark background like reference */
  border: 1px solid #CFA254 !important;  /* golden-amber border */
  padding: clamp(16px, 2vw, 22px) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
}

.page-ai .flow-body{
  display: flex; 
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-ai .flow-body h3 {
  color: #ffffff !important;
  font-size: clamp(16px, 1.8vw, 18px) !important;
  font-weight: 600 !important;
  margin: 12px 0 8px 0 !important;
}

.page-ai .flow-body p {
  color: #ffffff !important;
  font-size: clamp(13px, 1.4vw, 15px) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  opacity: 0.9;
}

/* keep first/last cards away from container edges */
.page-ai .wrap{ padding-inline: clamp(16px, 3vw, 32px); }

/* 2.6 — Section rhythm: tighten "process" cluster slightly */
.page-ai #problem + #process{ margin-top: clamp(24px, 3vw, 36px) !important; }
.page-ai #process + #flow{    margin-top: clamp(24px, 3vw, 36px) !important; }

/* 2.7 — Ensure section titles are clean, no bars */
body.page-ai h2.section-title{ background: transparent !important; box-shadow:none !important; }

/* 2.9 — Problem statement: heading outside box, text with padding */
.page-ai #problem {
  padding-top: clamp(24px, 3vw, 32px) !important;
  padding-bottom: clamp(24px, 3vw, 32px) !important;
}
.page-ai #problem h2.section-title {
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}
.page-ai #problem p {
  padding-left: clamp(16px, 2vw, 24px) !important;
  padding-right: clamp(16px, 2vw, 24px) !important;
  margin: 0 !important;
}

/* 2.10 — Process section: consistent padding with other sections */
.page-ai #process {
  padding-top: clamp(24px, 3vw, 32px) !important;
  padding-bottom: clamp(24px, 3vw, 32px) !important;
}
.page-ai #process h2.section-title {
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}

/* 2.11 — Flow section: consistent padding with other sections */
.page-ai #flow {
  padding-top: clamp(24px, 3vw, 32px) !important;
  padding-bottom: clamp(24px, 3vw, 32px) !important;
}
.page-ai #flow h2.section-title {
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}

/* NUCLEAR OPTION: Force flow icon containers to be visible */
.page-ai .flow-icon,
.page-ai .flow-card .flow-icon {
  width: 60px !important;
  height: 60px !important;
  background: #000000 !important;
  border: 2px solid #CFA254 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}
/* Force title case on all headings */
.page-ai h2.section-title,
.page-ai .flow-card h5 {
  text-transform: capitalize !important;
}

/* NUCLEAR OPTION: Force ALL flow icons to be visible */
.page-ai .flow-icon img,
.page-ai .flow-card .flow-icon img,
.page-ai .flow-card img,
.page-ai img[src*="vid.svg"],
.page-ai img[src*="email.svg"],
.page-ai img[src*="layout.svg"],
.page-ai img[src*="sparkle.svg"] {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ---------- HERO TITLE ---------- */
.page-ai .ai-hero {
  max-width: 1095px;
  margin: 0 auto;
  padding: 40px 24px 12px; /* tight like ref */
}
.page-ai .ai-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 12px;
}
.page-ai .ai-title-rule {
  width: clamp(120px, 22vw, 220px);
  height: 3px;
  background: #fff;
  opacity: .9;
  border-radius: 2px;
  margin: 6px 0 18px;
}
.page-ai .ai-kicker {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ---------- SCROLL BUTTON (remove ghost layer) ---------- */
/* Remove more conflicting rules */

/* RESPONSIVE FIXES FOR AI CASE STUDY */

/* RESTRICT BUTTONS FROM CHANGING IN RESPONSIVE */

/* 1. Keep close button exactly the same in responsive */
@media (max-width: 768px) {
  html body.page-ai .ai-close-btn {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 999999 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px 8px 12px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    background: #E2B669 !important;
    color: #0f1012 !important;
    border: 1px solid rgba(0,0,0,.55) !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    /* NO CHANGES - keep desktop styling */
  }
}

/* 2. Keep scroll button exactly the same in responsive */
@media (max-width: 768px) {
  body.page-ai #scrollTopBtn {
    position: fixed !important;
    right: 20px !important; 
    bottom: 20px !important;
    width: 50px !important; 
    height: 50px !important;
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #0f0f10 !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    z-index: 1000 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    /* NO CHANGES - keep desktop styling */
  }
  
  body.page-ai #scrollTopBtn.is-visible { 
    opacity: 1 !important; 
  }
  
  body.page-ai #scrollTopBtn img { 
    width: 20px !important; 
    height: 20px !important; 
    color: white !important;
    filter: none !important;
  }
}

/* Fix scroll button positioning on very small screens to avoid close button overlap */
@media (max-width: 480px) {
  body.page-ai #scrollTopBtn {
    right: 20px !important; 
    left: auto !important; /* Back to right side */
    bottom: 80px !important; /* Move up to avoid close button overlap */
    width: 50px !important; 
    height: 50px !important;
  }
}

/* NUCLEAR OPTION: Override styles.css media query that forces scroll button positioning */
@media (max-width: 640px) {
  body.page-ai #scrollTopBtn {
    position: fixed !important;
    right: 20px !important; /* Back to right side */
    left: auto !important; /* Override any left positioning */
    bottom: 80px !important; /* Move up to avoid close button overlap */
    top: auto !important; /* Override styles.css top: 18px */
    width: 50px !important; /* Override styles.css width: 42px */
    height: 50px !important; /* Override styles.css height: 42px */
    background: #0f0f10 !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }
}

/* 2. Fix problem statement box responsiveness */
@media (max-width: 768px) {
  body.page-ai .problem-panel {
    padding: 20px !important;
    margin: 0 !important;
  }
}

/* MOBILE FORCE: Impact cards vertical stacking */
@media (max-width: 768px) {
  body.page-ai #impact .impact-cards,
  body.page-ai .wrap #impact .impact-cards,
  body.page-ai section#impact .impact-cards,
  body.page-ai .wrap section#impact .impact-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  body.page-ai #impact .impact-card,
  body.page-ai .wrap #impact .impact-card,
  body.page-ai section#impact .impact-card,
  body.page-ai .wrap section#impact .impact-card {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
}

/* 4. Meeting summary experience flow - center align and break into 2 lines */
@media (max-width: 768px) {
  body.page-ai .flow-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    justify-items: center !important;
  }
  
  body.page-ai .flow-card {
    text-align: center !important;
    max-width: 200px !important;
  }
}

@media (max-width: 480px) {
  body.page-ai .flow-grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
}

/* 5. Numbered sections (01-04) - left align text and fix order */
@media (max-width: 768px) {
  body.page-ai .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  body.page-ai .grid-2 .text-content {
    order: 1 !important;
    text-align: left !important;
  }
  
  body.page-ai .grid-2 .figure {
    order: 2 !important;
  }
  
  body.page-ai .section-title {
    text-align: left !important;
  }
  
  body.page-ai .section-number {
    text-align: left !important;
  }
}

/* ---------- LAYOUT: container & section paddings ---------- */
.page-ai .wrap { max-width: 1095px; margin: 0 auto; padding: 0 24px; }
.page-ai section { padding: 32px 0 56px; }                 /* default */
.page-ai section#problem { padding-top: 24px; }            /* tighten */
.page-ai section#process { padding-top: 20px; }            /* tighten gap before cards */

/* ---------- IMPACT (3-up desktop, 1-up mobile) ---------- */
:root {
  --impact-amber: #d7b169;          /* closer to your reference mustard */
  --impact-ink:   #0b0b0b;
}
.page-ai .impact-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}
.page-ai .impact-card {
  background: var(--impact-amber) !important;
  color: var(--impact-ink) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 14px !important;
  padding: 28px 24px !important;
  box-shadow: none !important;
  text-align: left !important;
}
.page-ai .impact-card * { 
  color: var(--impact-ink) !important; 
  opacity: 1 !important; 
  text-align: left !important;
}

/* Style the statistics to be bold and highlighted (first two cards only) */
.page-ai .impact-card:nth-child(1) .impact-stat,
.page-ai .impact-card:nth-child(2) .impact-stat {
  font-weight: 800 !important;
  font-size: clamp(20px, 2.5vw, 28px) !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

/* Third card - normal text styling */
.page-ai .impact-card:nth-child(3) .impact-stat {
  font-weight: 400 !important;
  font-size: clamp(14px, 1.8vw, 16px) !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  text-transform: none !important;
}

/* Style the descriptions */
.page-ai .impact-card .impact-note {
  font-weight: 400 !important;
  font-size: clamp(14px, 1.8vw, 16px) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Style figure captions to be italic */
.page-ai .cap,
.page-ai figcaption {
  font-style: italic !important;
  font-size: clamp(12px, 1.4vw, 14px) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-top: 8px !important;
  text-align: left !important;
}
@media (max-width: 960px) {
  .page-ai .impact-cards { 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 12px !important; 
  }
}
@media (max-width: 640px) {
  .page-ai .impact-cards { 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 8px !important; 
  }
}

/* ---------- H2 styling & spacing like reference ---------- */
.page-ai h2.section-title {
  font-weight: 800; color: #fff;
  font-size: clamp(22px, 3.4vw, 36px);
  margin: 0 0 12px;
}
.page-ai .section-lead { color: #d7d7d7; margin: 0 0 18px; }

/* ---------- PROBLEM STATEMENT PANEL ---------- */
.page-ai .problem-panel {
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 24px 28px;
  color: #eaeaea;
}

/* ---------- PROCESS (4-up grid, tighter top gap) ---------- */
.page-ai .process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.page-ai .process-card {
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 20px 18px;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.page-ai .process-card h4 { color:#fff; margin: 8px 0 6px; font-weight:700; }
.page-ai .process-card li { color:#cfcfcf; }

/* ---------- EXPERIENCE FLOW (equal height, pretty radius) ---------- */
.page-ai .flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px; /* increased spacing from title */
}
.page-ai .flow-card {
  background: #0f0f10;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 22px;
  padding: 22px 18px 20px;
  min-height: 320px;                 /* forces equal height like ref */
  display: flex; flex-direction: column;
}
.page-ai .flow-card h5 { color:#fff; margin: 8px 0 6px; font-weight:700; }
.page-ai .flow-card p { color:#d6d6d6; }

@media (max-width: 1060px) {
  .page-ai .process-grid, .page-ai .flow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-ai .process-grid, .page-ai .flow-grid { grid-template-columns: 1fr; }
  .page-ai .ai-hero { padding: 28px 16px 8px; }
  .page-ai .impact-card { padding: 22px 18px; }
}

/* ---------- SECTION TOKENS ---------- */
:root{
  --wrap-max: 1095px;
  --pad-x: 24px;
  --pad-sec-top: 32px;
  --pad-sec-btm: 56px;
  --pad-sec-tight: 24px;
  --gap-lg: 28px;
  --gap-md: 22px;
  --gap-sm: 14px;
}

/* base container + rhythm */
.page-ai .wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--pad-x); }
.page-ai section.cluster { padding: var(--pad-sec-top) 0 var(--pad-sec-btm); }
.page-ai section.cluster.tight { padding-top: var(--pad-sec-tight); }

.page-ai h2.section-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.15;
  color: #fff; margin: 0 0 12px;
}
.page-ai .section-lead { color:#d7d7d7; margin: 0 0 18px; }

/* shared panel style for text-heavy sections */
.page-ai .panel {
  background: #1f1f1f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 22px;
  color: #e9e9e9;
}

/* media block (image/figure) */
.page-ai .fig {
  background: #0f0f10;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 12px;
}
.page-ai .fig img { width: 100%; height: auto; display: block; border-radius: 8px; }
.page-ai .fig .cap { color:#cfcfcf; font-size: 14px; margin-top: 8px; }

/* simple 2-col media/text grid */
.page-ai .grid-2 {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap-lg);
}
.page-ai .grid-1 { display: grid; gap: var(--gap-md); }

/* gallery (rows of images/boards) */
.page-ai .gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

/* highlight list box (for Solution Highlights, Key Learnings) */
.page-ai .bullets {
  display: grid; gap: var(--gap-sm);
  padding-left: 18px;
}
.page-ai .bullets li { color:#ffffff !important; }

/* Key Learnings section - ensure white text */
.page-ai #learnings .bullets li,
.page-ai #learnings .panel,
.page-ai #learnings .bullets {
  color: #ffffff !important;
}

/* section separators for long case studies */
.page-ai .divider { height: 1px; background: rgba(255,255,255,.08); margin: 28px 0; }

/* spacing helpers */
.mt-0{margin-top:0}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-18{margin-top:18px}
.mt-22{margin-top:22px}.mt-28{margin-top:28px}

/* responsive */
@media (max-width: 1060px){
  .page-ai .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .page-ai section.cluster { padding: 24px 0 40px; }
  .page-ai .panel { padding: 18px; }
}

/* ---------- VERTICAL CENTERING FOR NUMBERED SECTIONS ---------- */
/* Center-align text content vertically with images in grid-2 layouts */
.page-ai .grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 32px !important;
  align-items: center !important; /* This centers content vertically */
}

.page-ai .grid-2 > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Additional centering for text content */
}

/* Ensure images maintain their aspect ratio */
.page-ai .grid-2 .fig {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.page-ai .grid-2 .fig img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-ai .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .page-ai .grid-2 > div {
    text-align: center !important;
  }
}

/* ---------- FORCE IMPACT CARDS HORIZONTAL ---------- */
body.page-ai .impact-cards,
.page-ai .impact-cards,
/* Move impact section up after removing "Impact of my work" */
body.page-ai #impact {
  padding-top: 20px !important;
  margin-top: -40px !important;
}

/* Increase padding between impact title and cards below */
body.page-ai #impact .section-title {
  margin-bottom: 32px !important;
}

#impact .impact-cards {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: none !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
}

@media (min-width: 900px) {
  #impact .impact-cards {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

body.page-ai .impact-card,
.page-ai .impact-card,
#impact .impact-card {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
}

/* Override any flexbox that might be interfering */
body.page-ai .impact-cards {
  display: grid !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
}

/* ---------- NUMBERED SECTION TITLES STYLING ---------- */
/* Style the separate section numbers */
.page-ai .section-number {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(56px, 7vw, 80px) !important; /* One size smaller than before */
  font-weight: 800 !important;
  color: rgba(166, 142, 221, 0.7) !important; /* A68EDD with 70% opacity */
  line-height: 0.8 !important;
  margin: 0 0 12px !important; /* Increased padding by 4px (was 8px, now 12px) */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Style the section titles */
.page-ai h2.section-title {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(26px, 3.7vw, 34px) !important; /* Slightly bigger than before */
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
  text-align: left !important;
  display: block !important;
}

/* Adjust margin for titles inside content divs */
.page-ai .grid-2 > div h2.section-title {
  margin: 0 0 16px !important;
}