/* =========================================
   MIA Global Styles
   Single source of truth for all pages
   ========================================= */

/* Base reset */
* { box-sizing: border-box; }

html, body { min-height: 100%; }

img { max-width: 100%; height: auto; display: block; }

body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #F7F4FA;
  color: #1c1422;
}

/* Tokens */
:root {
  --bg-page: #F7F4FA;
  --bg-surface: #ffffff;

  --text-primary: #1c1422;
  --text-muted: rgba(28, 20, 34, 0.62);

  --color-accent: #f1de71;
  --color-black: #100a16; /* Darkened from #1c1422 (2026-09-07) — confirmed */
  --color-white: #f7f4fa;

  --color-blue: #71c4f1;
  --color-purple: #7184f1;
  --color-pink: #f171c4;
  --color-green: #71f19e;

  --max-width: 1100px;

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --border: rgba(28, 20, 34, 0.12);
  --shadow: 0 8px 30px rgba(28, 20, 34, 0.08);

  --ease: 140ms ease;

  --header-height: 72px;
}

/* Skip link (james-website only — accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-black);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 var(--space-sm);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(34px, 4vw, 52px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }

p { margin: 0 0 var(--space-md); }

a { color: #1c1422; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.muted { color: var(--text-muted); }
.text-white { color: var(--color-white) !important; }
.text-yellow { color: var(--color-accent); }
.accent-italic { font-style: italic; }

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.section { padding: var(--space-2xl) 0; }

/* =========================================
   Buttons
   ========================================= */

.button-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform var(--ease), opacity var(--ease), background-color var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.button:active { transform: translateY(1px); }

.button-primary {
  background: var(--color-accent);
  color: var(--color-black);
}

.button-primary:hover { opacity: 0.92; text-decoration: none; }

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.button-secondary:hover {
  background: rgba(241, 222, 113, 0.12);
  text-decoration: none;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f7f4fa;
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================
   Header and Navigation
   ========================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 10, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--ease), backdrop-filter var(--ease), border-color var(--ease);
}

/* Pages with a dark portrait-hero at the top start with a fully see-through
   header (the photo shows through it), then solidify once scrolled past it. */
body.has-dark-hero header {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

body.has-dark-hero header.is-scrolled {
  background: rgba(16, 10, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: var(--space-md) 0;
  gap: var(--space-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 96px;
  height: 40px;
  object-fit: contain;
}

.menu-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon {
  width: 18px;
  height: 2px;
  background: #f7f4fa;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #f7f4fa;
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

nav a {
  color: #f7f4fa;
  font-weight: 650;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(241, 222, 113, 0.16);
  text-decoration: none;
}

.nav-cta {
  display: none;
  background: #100a16;
  border: 1px solid var(--color-accent);
  color: #f7f4fa;
}

.nav-cta:hover {
  background: rgba(241, 222, 113, 0.1);
  opacity: 1;
}

@media (min-width: 980px) {
  .menu-button { display: none; }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .nav-cta {
    display: inline-flex;
    padding: 9px 16px;
    font-size: 13px;
    margin-left: var(--space-md);
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 60;
  }
}

@media (max-width: 979px) {
  .nav { flex-wrap: wrap; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
    margin-top: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: #100a16;
  }

  .nav-links.is-open { display: flex; }

  .nav-links.is-open ~ .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-sm);
    padding: 12px 16px;
  }

  nav a { padding: 10px 12px; }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 10px 12px;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    padding: 10px 12px;
  }
}

/* =========================================
   Nav dropdown
   ========================================= */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  font-weight: 650;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-trigger:hover {
  background: rgba(241, 222, 113, 0.16);
}

.nav-dropdown-arrow {
  width: 10px;
  height: 6px;
  transition: transform 200ms ease;
}

.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(28, 20, 34, 0.1);
  min-width: 200px;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: rgba(241, 222, 113, 0.16);
  text-decoration: none;
}

/* =========================================
   Shared layout helpers
   ========================================= */

.two-col {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 980px) {
  .two-col {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* Homepage hero layout: match current HTML (.container.hero-grid) */
.hero {
  text-align: center;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  justify-items: center;
}

/* Preheader pill typography: restore old look */
.pill {
  font-weight: 650;
  font-size: 14px;
}

/* =========================================
   Shared Hero – Homepage & Resources
   Centered gradient
   ========================================= */

.hero {
  background: var(--bg-page); /* james-website: same light tone as the rest of the site, diverged from MIA's dark hero recipe */
}

.resources-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
}

/* =========================================
   Academy Hero
   Normalized to the site-wide hero recipe (2026-09-07)
   ========================================= */

.academy-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
}

.hero,
.resources-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-inner,
.resources-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero p,
.resources-hero p {
  max-width: 88ch;
  margin-left: auto;
  margin-right: auto;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: fit-content;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* =========================================
   Programs / Resource cards (shared base)
   ========================================= */

.programs-head {
  text-align: center;
  max-width: 78ch;
  margin: 0 auto var(--space-2xl);
}

.programs-head p { color: rgba(28, 20, 34, 0.62); margin-bottom: 0; }

.program-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 980px) {
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.program-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  position: relative;
  height: 100%;
  display: flex;
}

.program-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--color-accent);
}

.program-inner {
  padding: 18px 18px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 520px; /* default for Academy cards */
}

.program-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 850;
  color: rgba(28, 20, 34, 0.65);
  width: fit-content;
}

.program-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.program-desc {
  margin: 0;
  color: rgba(28, 20, 34, 0.62);
}

/* The Academy cards include extra blocks like INCLUDES, COST, FORMAT.
   These styles make that content look structured again. */
.program-includes {
  margin-top: 4px;
}

.program-includes strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: rgba(28, 20, 34, 0.70);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.program-includes ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(28, 20, 34, 0.62);
}

.program-includes li { margin: 6px 0; }

.program-hr {
  border: none;
  border-top: 1px solid rgba(28, 20, 34, 0.08);
  margin: 10px 0 0;
}

.program-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
  margin-top: auto; /* pushes meta and button downward */
}

.meta-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 850;
  color: rgba(28, 20, 34, 0.55);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.meta-value {
  margin: 0;
  font-weight: 900;
  color: rgba(28, 20, 34, 0.92);
}

.meta-sub {
  margin: 0;
  font-weight: 750;
  color: rgba(28, 20, 34, 0.72);
  font-size: 13px;
  line-height: 1.3;
}

/* Primary CTA pinned to bottom */
.program-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 48px;
  line-height: 1;
  background: #100a16;
  color: #f7f4fa;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 850;
  text-decoration: none;
  margin-top: auto; /* james-website fix: pin to the bottom of .program-inner regardless
                        of description length, so buttons align across a grid row */
}

.program-btn:hover { text-decoration: none; opacity: 0.95; }

/* =========================================
   Academy page (scoped)
   ========================================= */

.academy-hero {
  padding: var(--space-2xl) 0;
}

.academy-hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 980px) {
  .academy-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Force Academy hero typography to be readable on dark bg */
.academy-hero h1 { color: #f7f4fa; font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.03em; }
.academy-hero p { color: rgba(247, 244, 250, 0.75); }
.academy-hero .muted { color: rgba(247, 244, 250, 0.65); }

/* Academy hero: make secondary CTA readable on dark background */
.academy-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f7f4fa;
}

.academy-hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.academy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 250, 0.18);
  background: rgba(247, 244, 250, 0.06);
  color: rgba(247, 244, 250, 0.92);
  font-weight: 650;
  font-size: 14px;
}

.academy-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(241, 222, 113, 0.18);
}

.academy-hero-divider {
  margin-top: var(--space-xl);
  border: none;
  border-top: 1px solid rgba(247, 244, 250, 0.12);
}

.alumni-row { margin-top: var(--space-lg); }

.alumni-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: rgba(247, 244, 250, 0.55);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.alumni-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  color: rgba(247, 244, 250, 0.55);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Testimonials (Academy + Resources) */
.testimonial-col {
  display: grid;
  gap: var(--space-md);
}

.testimonial-card {
  border-radius: 14px;
  padding: 18px 18px;
  border: 1px solid rgba(247, 244, 250, 0.14);
  background: rgba(247, 244, 250, 0.05);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.testimonial-quote {
  color: rgba(247, 244, 250, 0.88);
  font-style: italic;
  margin: 0 0 14px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(241, 222, 113, 0.22);
  border: 1px solid rgba(241, 222, 113, 0.35);
  display: grid;
  place-items: center;
  color: rgba(247, 244, 250, 0.92);
  font-weight: 800;
  font-size: 12px;
}

.testimonial-name { color: rgba(247, 244, 250, 0.92); font-weight: 800; line-height: 1.2; }
.testimonial-role { color: rgba(247, 244, 250, 0.55); font-size: 13px; margin-top: 2px; }

/* Academy "How it works" (restored) */
.academy-how {
  background:
    radial-gradient(900px 600px at 25% 15%, rgba(241, 222, 113, 0.045), transparent 55%),
    #100a16;
}

.academy-how h2,
.academy-how h3 { color: #f7f4fa; }

.academy-how .muted { color: rgba(247, 244, 250, 0.65); }

.academy-how-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 980px) {
  .academy-how-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .academy-how-sticky {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
  }
}

.how-callout {
  margin-top: var(--space-xl);
  border-radius: 14px;
  width: fit-content;
  max-width: 420px;
  padding: 18px 18px;
  border: 1px solid rgba(247, 244, 250, 0.14);
  background: rgba(247, 244, 250, 0.05);
}

.how-callout-title {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.25;
}

.how-callout-text {
  margin: 0;
  max-width: 340px;
  line-height: 1.55;
  color: rgba(247, 244, 250, 0.60);
  font-size: 14px;
}

.how-steps { display: grid; gap: 26px; }

.how-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #1c1422;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step-title {
  margin: 0 0 4px;
  color: rgba(247, 244, 250, 0.92);
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.25;
}

.step-text {
  margin: 0;
  color: rgba(247, 244, 250, 0.62);
  font-size: 15px;
  line-height: 1.55;
}

/* Academy Quiz section (restored) */
.quiz-wrap {
  background: var(--color-accent);
  padding: 70px 0;
}

.quiz-panel {
  background: #100a16;
  border-radius: 40px;
  padding: clamp(26px, 4vw, 54px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.30);
}

.quiz-panel h2 {
  color: #f7f4fa;
  font-size: clamp(34px, 4vw, 58px);
  text-align: center;
  margin-bottom: 10px;
}

.quiz-panel > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.quiz-panel p {
  max-width: 72ch;
  color: rgba(247, 244, 250, 0.65);
}

.quiz-divider {
  border: none;
  border-top: 1px solid rgba(247, 244, 250, 0.12);
  margin: 22px 0;
}

.quiz-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 980px) {
  .quiz-steps { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.quiz-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}

.quiz-step .step-num {
  background: rgba(247, 244, 250, 0.10);
  color: rgba(247, 244, 250, 0.85);
}

.quiz-step p {
  margin: 0;
  color: rgba(247, 244, 250, 0.85);
  font-weight: 850;
}

.quiz-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.quiz-btn {
  background: var(--color-accent);
  color: #1c1422;
  padding: 16px 22px;
  border-radius: 16px;
  font-weight: 900;
  min-width: 280px;
  max-width: 360px;
  width: 100%;     
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.quiz-btn:hover { text-decoration: none; opacity: 0.96; }

/* =========================================
   Resources page (scoped)
   ========================================= */

.resources-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
  background: transparent;
}

.resources-secondary:hover { background: rgba(255, 255, 255, 0.06); }

/* Resources cards are shorter than Academy cards */
.resources-page .program-inner { 
  min-height: 360px;
  display: flex;
  flex-direction: column; 
}

.resources-page .program-btn {
  margin-top: auto;
}

.resources-proof-list {
  margin: var(--space-md) 0 0;
  padding-left: 18px;
  color: rgba(247, 244, 250, 0.72);
}

.resources-proof-list li { margin: 10px 0; }

/* Social proof should be a dark panel sitting on the light page */
.social-proof-wrap { padding-bottom: var(--space-xl); }

.social-proof-panel {
  background: #100a16;
  border: 1px solid rgba(247, 244, 250, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

/* =========================================
   Footer
   ========================================= */

footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

footer .muted { color: rgba(247, 244, 250, 0.7); font-size: 0.85rem; }

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.footer-title {
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-list a {
  color: rgba(247, 244, 250, 0.78);
  font-weight: 400;
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: var(--space-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(247, 244, 250, 0.08);
  transition: background var(--ease), transform var(--ease);
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(241, 222, 113, 0.25);
  transform: translateY(-1px);
}

.footer-social svg { width: 18px; height: 18px; fill: var(--color-white); }

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 244, 250, 0.2);
  display: flex;
  gap: var(--space-md);
  font-size: 0.75rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* Legal Pages (Privacy Policy, Terms) */
.legal-content {
  padding: 80px 0 100px;
  font-size: 1rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  color: #1c1422;
}

.legal-content p.muted {
  margin-bottom: var(--space-2xl);
  font-size: 0.9375rem;
  color: #5c5262;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: 56px;
  margin-bottom: var(--space-lg);
  color: #1c1422;
  letter-spacing: -0.01em;
}

.legal-content h2:first-of-type {
  margin-top: var(--space-2xl);
}

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  color: #1c1422;
}

.legal-content p {
  color: #3d3542;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.legal-content ul {
  list-style: disc;
  color: #3d3542;
  margin: 0 0 var(--space-lg);
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
  padding-left: 0.5rem;
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content li strong {
  color: #1c1422;
  font-weight: 600;
}

/* =========================================
   Homepage styles migrated from index.html
   Scoped to body.home to avoid affecting
   Academy and Resources pages
   ========================================= */

body.home .card {
  background: var(--bg-surface);
          border: 1px solid var(--border);
          border-radius: var(--radius-md);
          padding: var(--space-lg);
          box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
          width: 1px;
          height: 1px;
          padding: 0;
          margin: -1px;
          overflow: hidden;
          clip: rect(0, 0, 0, 0);
          white-space: nowrap;
          border: 0;
}

body.home .hero-grid {
  display: grid;
          gap: var(--space-xl);
          justify-items: center;
}

body.home .stack {
  display: grid;
          gap: var(--space-md);
}

body.home .mini-card {
  background: #fff;
          border: 1px solid var(--border);
          border-left-width: 8px;
          border-radius: var(--radius-md);
          padding: var(--space-md);
}

body.home .mini-card h3 {
  font-size: 18px;
          margin: 0 0 6px;
}

body.home .mini-card p {
  margin: 0 0 10px;
}

body.home .mini-card a {
  color: var(--color-black);
          font-weight: 650;
}

body.home .mini-card.card-newsletter {
  border-left-color: #f1de71;
}

body.home .mini-card.card-community {
  border-left-color: #1c1422;
}

body.home .mini-card.card-academy {
  border-left-color: #71c4f1;
}

body.home .mini-card.card-events {
  border-left-color: #f171c4;
}

body.home .mini-card.card-hiring {
  border-left-color: #71f19e;
}

body.home .mini-card.card-consulting {
  border-left-color: #1c1422;
}

body.home .mini-card.card-affiliate {
  border-left-color: #7184f1;
}

body.home .mini-card.card-partner {
  border-left-color: #7184f1;
}

body.home .featured-section {
  background: #f8f7f4;
}

body.home .featured-programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

body.home .program-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

body.home .program-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  width: fit-content;
}

body.home .program-card__badge--blue {
  background: #e8f4fd;
  color: #1a6fa8;
}

body.home .program-card__badge--yellow {
  background: #fdf8e8;
  color: #8a7a2a;
}

body.home .program-card__badge--green {
  background: #e9f6ee;
  color: #2e7d4f;
}

body.home .program-card__title {
  font-size: 1.2rem;
  font-weight: 750;
  margin: 0 0 10px;
  color: var(--color-black, #100a16);
}

body.home .program-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

body.home .program-card__cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-black, #100a16);
  color: #fff;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  width: fit-content;
}

body.home .program-card__cta:hover {
  opacity: 0.85;
}

body.home .program-card__cta--yellow {
  background: #f1de71;
  color: var(--color-black, #100a16);
}

@media (max-width: 768px) {
  body.home .featured-programs {
    grid-template-columns: 1fr;
  }

  body.home .program-card {
    padding: 22px 20px 20px;
  }
}

body.home #about {
  background-color: #1C1422;
}

body.home .about-header {
  text-align: center;
          margin-bottom: var(--space-xl);
}

body.home .about-header h2 {
  text-transform: none;
          letter-spacing: -0.02em;
          font-weight: 750;
          margin-bottom: 10px;
}

body.home .about-header .about-intro {
  margin: 0;
}

body.home .about {
  display: grid;
          gap: var(--space-xl);
}

body.home .photo {
  border-radius: var(--radius-md);
          border: 1px solid var(--border);
          background: var(--bg-surface);
          overflow: hidden;
          box-shadow: var(--shadow);
}

body.home .photo img {
  width: 100%;
          display: block;
          height: auto;
}

body.home .newsletter {
  display: grid;
          gap: var(--space-md);
          align-items: center;
}

body.home .newsletter .button-row {
  justify-content: center;
          margin-top: 0;
          width: 100%;
}

body.home #subscribe .card {
  background-color: #100a16;
}

body.home #subscribe .card h2, body.home #subscribe .card p {
  color: #f7f4fa;
}

body.home #subscribe .card p.muted {
  color: rgba(247, 244, 250, 0.8);
}

@media (min-width: 980px) {
        body.home #work-with-mia .two-col > div:first-child {
          position: sticky;
          top: 120px;
          align-self: start;
        }
      }

@media (min-width: 980px) {
        body.home .about {
          grid-template-columns: 0.85fr 1.15fr;
          align-items: start;
        }
      }

@media (min-width: 980px) {
        body.home .newsletter {
          grid-template-columns: 1fr auto;
        }
      }

@media (min-width: 980px) {
        body.home .newsletter .button-row {
          justify-self: end;
          justify-content: flex-end;
          width: auto;
        }
      }

/* =========================================
   MIA Jobs (page styles)
   ========================================= */

.jobs-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.jobs-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.jobs-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
}

.jobs-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* Numbered section label (e.g. "01 · My background") */
.num-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.num-label .num {
  font-weight: 900;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--color-accent);
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
}

.num-label .num-line {
  width: 32px;
  height: 1px;
  background: rgba(28, 20, 34, 0.15);
  flex: 0 0 auto;
}

.num-label .num-tag {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

/* Hero stats */
.jobs-proof {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 980px) {
  .jobs-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* 5-stat variant (james-website homepage hero) — one row instead of wrapping 4+1 */
  .jobs-proof--5col {
    max-width: 980px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* 6-stat variant (consulting hero) — one row instead of wrapping 4+2 */
  .jobs-proof--6col {
    max-width: 1040px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.jobs-proof-item {
  border: none;
  background: transparent;
  padding: 0;
  position: relative;
}

@media (min-width: 980px) {
  .jobs-proof-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: calc(-1 * (var(--space-lg) / 2));
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

.jobs-proof-value {
  color: var(--color-accent);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.2;
}

.jobs-proof-label {
  color: rgba(247, 244, 250, 0.78);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.35;
}

/* Section head */
.jobs-section-head {
  text-align: center;
  max-width: 78ch;
  margin: 0 auto var(--space-xl);
}

/* Steps */
.jobs-steps {
  display: grid;
  gap: var(--space-md);
  max-width: 980px;
  margin: 0 auto;
  perspective: 1000px;
}

@media (min-width: 700px) {
  .jobs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jobs-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(28, 20, 34, 0.06);
}

.jobs-step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(241, 222, 113, 0.28);
  border: 1px solid rgba(28, 20, 34, 0.10);
}

.jobs-step-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.jobs-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* =========================================
   Testimonials (full-bleed band)
   ========================================= */

.jobs-testimonials-band {
  background: #140f1a;
  border-top: 1px solid rgba(247, 244, 250, 0.08);
  border-bottom: 1px solid rgba(247, 244, 250, 0.08);
}

.jobs-testimonials-section {
  padding: var(--space-2xl) 0;
}

.jobs-testimonials-section .jobs-section-head {
  margin-bottom: var(--space-lg);
}

.jobs-testimonials-section h2 {
  color: rgba(255, 255, 255, 0.94);
}

.jobs-testimonials-section .muted {
  color: rgba(255, 255, 255, 0.72);
}

/* Track: 4-up columns on desktop, scrollable */
.jobs-testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--space-md) * 3)) / 4);
  gap: var(--space-md);
  overflow-x: auto;
  padding: 8px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  perspective: 1000px;
}

.jobs-testimonials-track::-webkit-scrollbar {
  height: 10px;
}

.jobs-testimonials-track::-webkit-scrollbar-thumb {
  background: rgba(247, 244, 250, 0.12);
  border-radius: 999px;
}

/* 2-up on medium screens */
@media (max-width: 1100px) {
  .jobs-testimonials-track {
    grid-auto-columns: calc((100% - var(--space-md)) / 2);
  }
}

/* Stacked, no horizontal scroll on mobile */
@media (max-width: 640px) {
  .jobs-testimonials-track {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 4px 2px 4px;
  }

  .jobs-scroll-hint {
    display: none;
  }
}

/* Card */
.jobs-testimonial-card {
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: none;
}

/* Quote */
.jobs-quote {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Footer row */
.jobs-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.jobs-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(241, 222, 113, 0.16);
  border: 1px solid rgba(241, 222, 113, 0.28);
  color: var(--color-accent);
  font-weight: 900;
  font-size: 13px;
}

.jobs-byline {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 750;
}

.jobs-scroll-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* Space between dark band and Pricing */
.jobs-pricing-section {
  padding-top: var(--space-xl);
}

/* =========================================
   Pricing table
   ========================================= */

.jobs-pricing-wrap {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  overflow: hidden; /* keeps rounded corners clean */
}

/* Table base */
.jobs-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.jobs-pricing-table th,
.jobs-pricing-table td {
  padding: 14px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(28, 20, 34, 0.08);
  border-right: 1px solid rgba(28, 20, 34, 0.08);
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.jobs-pricing-table thead th {
  background: rgba(28, 20, 34, 0.02);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 900;
}

.jobs-pricing-table th:last-child,
.jobs-pricing-table td:last-child {
  border-right: none;
}

.jobs-pricing-table tbody tr:last-child th,
.jobs-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.jobs-pricing-sticky {
  width: 190px;
  background: rgba(28, 20, 34, 0.015);
  font-weight: 900;
}

.jobs-pricing-table .is-popular {
  background: rgba(241, 222, 113, 0.14);
}

.popular-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(241, 222, 113, 0.42);
  border: 1px solid rgba(28, 20, 34, 0.12);
  color: rgba(28, 20, 34, 0.92);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jobs-pricing-cards {
  display: none;
  perspective: 1000px;
}

.jobs-pricing-card-fields {
  margin: var(--space-md) 0 0;
  display: grid;
  gap: 12px;
}

.jobs-pricing-card-fields dt {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.jobs-pricing-card-fields dd {
  margin: 0;
  font-size: 14px;
  color: rgba(28, 20, 34, 0.82);
  line-height: 1.5;
}

/* Mobile: replace the comparison table with stacked cards, no horizontal scroll */
@media (max-width: 820px) {
  .jobs-pricing-wrap {
    display: none;
  }

  .jobs-pricing-cards {
    display: grid;
    gap: var(--space-lg);
  }
}

.jobs-pricing-cta {
  padding: 18px;
  border-top: 1px solid rgba(28, 20, 34, 0.08);
  display: flex;
  justify-content: center;
}

/* =========================================
   FAQs
   ========================================= */

.jobs-faqs {
  max-width: 680px;
  margin: var(--space-lg) auto 0;
  display: grid;
}

.jobs-faq {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 20, 34, 0.12);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 16px 4px;
  text-align: left;
  transition: border-color 0.2s ease;
}

.jobs-faq:first-child {
  border-top: 1px solid rgba(28, 20, 34, 0.12);
}

.jobs-faq:hover {
  border-color: var(--color-accent);
}

.jobs-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: padding-left 0.2s ease;
}

.jobs-faq:hover summary {
  padding-left: 6px;
}

.jobs-faq summary::-webkit-details-marker {
  display: none;
}

.jobs-faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border: none;
  background: none;
  border-radius: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.jobs-faq:hover summary::after {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.jobs-faq[open] summary::after {
  content: "\2212";
}

.jobs-faq[open]:hover summary::after {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .jobs-faq,
  .jobs-faq summary,
  .jobs-faq summary::after {
    transition: none;
  }
  .jobs-faq:hover summary {
    padding-left: 0;
  }
}

.jobs-faq-body {
  padding: 10px 0 0;
}

.jobs-faq-body p {
  margin: 0;
}

/* =========================================
   Corporate Training Page
   ========================================= */
.corporate-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.corporate-hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 980px) {
  .corporate-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.corporate-hero-sub {
  font-size: 18px;
  max-width: 70ch;
}

.corporate-hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
}

.corporate-hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.corporate-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.corporate-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.corporate-stat-value {
  font-size: 18px;
  font-weight: 850;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.corporate-stat-label {
  font-size: 14px;
  color: rgba(247, 244, 250, 0.7);
}

.corporate-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.corporate-section-head h2 {
  margin-bottom: var(--space-sm);
}

.corporate-features {
  display: grid;
  gap: var(--space-md);
  perspective: 1000px;
}

@media (min-width: 768px) {
  .corporate-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.corporate-feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.corporate-feature-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

.corporate-fit-grid {
  display: grid;
  gap: var(--space-lg);
  perspective: 1000px;
}

@media (min-width: 768px) {
  .corporate-fit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.corporate-fit-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 244, 250, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.corporate-fit-col h3 {
  font-size: 18px;
  margin-bottom: var(--space-md);
  color: #f7f4fa;
}

.corporate-fit-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.corporate-fit-col li {
  font-size: 15px;
  padding-left: 20px;
  position: relative;
  color: rgba(247, 244, 250, 0.7);
}

.corporate-fit-col li::before {
  position: absolute;
  left: 0;
  font-size: 14px;
}

.corporate-fit-best li::before {
  content: "\2713";
  color: #71f19e;
}

.corporate-fit-not li::before {
  content: "\2717";
  color: rgba(247, 244, 250, 0.4);
}

.corporate-cta-section {
  background: var(--color-accent);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.corporate-cta-section h2 {
  color: #1c1422;
  margin-bottom: var(--space-md);
}

.corporate-cta-section p {
  color: rgba(28, 20, 34, 0.75);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.corporate-cta-section .button-primary {
  background: #100a16;
  color: #f7f4fa;
}

.corporate-cta-section .button-primary:hover {
  background: #2a1f33;
}

.corporate-disclaimer {
  text-align: center;
  max-width: 560px;
  margin: var(--space-md) auto 0;
}

/* =========================================
   Consulting Page
   ========================================= */

/* Centered gradient: every page using .consulting-hero renders a single-column,
   centered layout (.consulting-hero-grid--full, or a page-specific centered inner
   div) — no page uses the split default, so the blobs are centered to match,
   not the offset-for-a-right-column formula that caused an off-balance glow here. */
.consulting-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.consulting-hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 980px) {
  .consulting-hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }

  .consulting-hero-grid--full {
    grid-template-columns: 1fr;
  }
}

.consulting-hero-grid--full .consulting-hero-left {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.consulting-hero-grid--full .consulting-hero-left .pill {
  margin: 0 auto var(--space-lg);
}

.consulting-hero-grid--full .consulting-hero-left .consulting-hero-sub {
  max-width: 640px;
  margin: var(--space-md) auto 0;
}

.consulting-hero-grid--full .consulting-hero-left .button-row {
  justify-content: center;
}

.consulting-hero-sub {
  font-size: 18px;
  max-width: 70ch;
}

.consulting-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
}

.consulting-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.consulting-video-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.consulting-video-title {
  color: #fff;
  font-weight: 850;
  margin-bottom: 10px;
}

.consulting-video-embed {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.35);
}

.consulting-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.consulting-video-meta {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.consulting-under-hero {
  padding-top: var(--space-xl);
}

/* Center only this logos heading block (wins over other rules) */
.consulting-logos-head,
.consulting-logos-head p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 72ch;
}

.consulting-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--color-black);
  padding: 28px 0;
  overflow: hidden;
}

.consulting-marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  padding-left: 18px;
  animation: consulting-marquee 28s linear infinite;
}

.consulting-marquee-track span,
.consulting-marquee-track a {
  font-weight: 750;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  text-decoration: none;
}

.consulting-marquee-track a:hover {
  color: var(--color-accent);
}

@keyframes consulting-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .consulting-marquee-track { animation: none; }
}

/* Top 5 signs card (Jobs-style cleanliness) */
.consulting-problem {
  margin-top: var(--space-2xl);
  border: 1px solid rgba(28, 20, 34, 0.10);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
}

.consulting-problem h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.consulting-problem-list {
  margin: 16px 0 10px;
  padding-left: 22px;
  color: rgba(28, 20, 34, 0.78);
}

.consulting-problem-list li {
  margin: 12px 0;
  line-height: 1.55;
}

.consulting-problem-list strong {
  color: rgba(28, 20, 34, 0.92);
}

.consulting-problem-close {
  margin: 14px 0 0;
  font-weight: 850;
  color: rgba(28, 20, 34, 0.92);
  text-align: center;
  margin-top: var(--space-xl);
  font-weight: 850;
}

/* Soft hover lift, matched to bridged.events' .card-lift values */
.card-lift {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Doubled class raises specificity to (0,3,0) so this reliably beats .reveal-blur.is-visible's
   (0,2,0) transform rule when both classes sit on the same element — without this, whichever
   rule happened to come later in the file silently won the tie and could cancel the hover lift. */
.card-lift.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 15, 20, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .card-lift {
    transition: none;
  }
  .card-lift:hover {
    transform: none;
  }
}

/* Scroll-triggered blur reveal, used across major section headings and cards */
.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}

.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-blur {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.consulting-problems-grid {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  perspective: 1000px;
}

@media (min-width: 700px) {
  .consulting-problems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .consulting-problems-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.consulting-problem-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 14px 40px rgba(28, 20, 34, 0.05);
}

.consulting-problem-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.consulting-problem-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.consulting-services-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-sm);
}

/* Centered gradient: this section's heading and tabs are centered
   (.consulting-services-head), so the blobs are centered to match, not offset
   for a right-column visual this section doesn't have. */
.consulting-services-section {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
}

.consulting-meet-james {
  background:
    radial-gradient(1100px 600px at 50% 100%, rgba(241, 222, 113, 0.05), transparent 60%),
    radial-gradient(1300px 700px at 50% 0%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.consulting-meet-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 980px) {
  .consulting-meet-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.consulting-meet-body h2 {
  color: #fff;
  margin-top: var(--space-sm);
}

.consulting-meet-body p.consulting-meet-sub {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
}

.consulting-meet-credit {
  margin-top: var(--space-md);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.consulting-meet-photo-wrap {
  position: relative;
  justify-self: center;
}

.consulting-meet-photo {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.consulting-meet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.consulting-meet-tag {
  position: absolute;
  bottom: -14px;
  right: -18px;
  background: #fff;
  color: var(--color-black);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.consulting-services-head {
  max-width: 82ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.consulting-services-head h2 {
  color: rgba(255, 255, 255, 0.92);
}

.consulting-services-head .muted {
  color: rgba(255, 255, 255, 0.78);
}

.consulting-services-tabs {
  margin-top: var(--space-xl);
  width: 100%;
  display: flex;
  gap: var(--space-sm) var(--space-md);
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.consulting-services-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .consulting-services-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
}

@media (min-width: 980px) {
  .consulting-services-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.consulting-service-tab {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px 10px;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  text-align: center;
  transition: color var(--ease);
}

@media (min-width: 640px) {
  .consulting-service-tab {
    flex: initial;
    white-space: normal;
  }
}

.consulting-service-tab:hover {
  color: rgba(255, 255, 255, 0.88);
}

.consulting-service-tab.is-active {
  color: #fff;
  background: transparent;
}

/* Progress fill: empty on activate, full at the 10s auto-advance mark (kept in sync with AUTO_ADVANCE_MS in the tabs script). */
.consulting-service-tab-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
}

.consulting-service-tab.is-active .consulting-service-tab-progress {
  animation: consulting-tab-progress 10s linear forwards;
}

@keyframes consulting-tab-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consulting-service-tab.is-active .consulting-service-tab-progress {
    animation: none;
    width: 100%;
  }
}

.consulting-services-grid {
  margin-top: var(--space-lg);
  display: grid;
}

.consulting-service-card {
  display: none;
}

.consulting-service-card.is-active {
  display: flex;
  flex-direction: column;
}

@media (min-width: 980px) {
  .consulting-service-card.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: var(--space-lg);
  }

  .consulting-service-media {
    order: 2;
  }

  .consulting-service-body {
    order: 1;
  }
}

.consulting-service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.consulting-service-media {
  padding: clamp(20px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 28% 20%, rgba(241, 222, 113, 0.05), transparent 58%),
    radial-gradient(circle at 78% 75%, rgba(113, 132, 241, 0.10), transparent 62%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  align-items: center;
  align-self: center;
  overflow: hidden;
  perspective: 900px;
}

.consulting-service-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.consulting-service-media:hover img {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  .consulting-service-media img {
    transition: none;
  }
}

.consulting-service-body {
  padding: 18px;
  align-self: center;
}

.consulting-service-body h3 {
  color: #fff;
  margin-top: 4px;
  margin-bottom: 14px;
}

.consulting-service-body > .muted {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 18px;
}

.consulting-service-eyebrow {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consulting-service-impact {
  margin: 4px 0 20px;
  color: rgba(241, 222, 113, 0.95);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 700;
  line-height: 1.4;
}

/* Brand color rotation across tabs, matching the program-rail colors used on the
   homepage and academy index cards, so every panel's proof line isn't the same yellow. */
.consulting-service-impact--blue { color: var(--color-blue); }
.consulting-service-impact--purple { color: var(--color-purple); }
.consulting-service-impact--pink { color: var(--color-pink); }
.consulting-service-impact--green { color: var(--color-green); }

.consulting-bullets {
  margin: 10px 0 10px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.consulting-bullets li {
  margin: 6px 0;
}

.consulting-case-link {
  display: inline-block;
  margin-top: 16px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.consulting-case-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.consulting-service-body .consulting-bullets a {
  color: rgba(255, 255, 255, 0.92);
}

.consulting-service-body .consulting-bullets a:hover {
  color: var(--color-accent);
}

/* Engagement section centering */
.consulting-engagement .container {
  text-align: center;
}

.consulting-engagement .consulting-table-wrap {
  text-align: left;
}

.consulting-engagement-cta {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
}

.consulting-table-wrap {
  margin-top: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
}

.consulting-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.consulting-table thead th {
  text-align: left;
  padding: 14px 14px;
  font-weight: 900;
  background: rgba(241, 222, 113, 0.85);
  border-bottom: 1px solid rgba(28, 20, 34, 0.12);
}

.consulting-table thead th:first-child {
  background: rgba(241, 222, 113, 0.85);
}

.consulting-table tbody th {
  text-align: left;
  padding: 14px 14px;
  font-weight: 850;
  border-bottom: 1px solid rgba(28, 20, 34, 0.10);
  background: rgba(28, 20, 34, 0.02);
  width: 190px;
}

.consulting-table td {
  vertical-align: top;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(28, 20, 34, 0.10);
  color: rgba(28, 20, 34, 0.78);
}

.consulting-table-list {
  margin: 0;
  padding-left: 18px;
}

.consulting-table-list li {
  margin: 6px 0;
}

.consulting-table-cards {
  display: none;
  perspective: 1000px;
}

.consulting-table-card-fields {
  margin: var(--space-md) 0 0;
  display: grid;
  gap: 12px;
}

.consulting-table-card-fields dt {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.consulting-table-card-fields dd {
  margin: 0;
  font-size: 14px;
  color: rgba(28, 20, 34, 0.82);
  line-height: 1.5;
}

/* Mobile: replace the comparison table with stacked cards, no horizontal scroll */
@media (max-width: 820px) {
  .consulting-table-wrap {
    display: none;
  }

  .consulting-table-cards {
    display: grid;
    gap: var(--space-lg);
  }
}

/* Agency section centering */
.consulting-agency-card {
  border: 1px solid rgba(28, 20, 34, 0.10);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  text-align: center;
}

.consulting-agency-card .button-row {
  justify-content: center;
}

/* FAQs centering + layout fix */
.consulting-faq-head {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.consulting-faqs {
  margin-top: var(--space-lg);
  display: grid;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.consulting-faq {
  border: none;
  border-bottom: 1px solid rgba(28, 20, 34, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 16px 4px;
  box-shadow: none;
  text-align: left;
  transition: border-color 0.2s ease;
}

.consulting-faq:first-child {
  border-top: 1px solid rgba(28, 20, 34, 0.12);
}

.consulting-faq + .consulting-faq {
  margin-top: 0;
}

.consulting-faq:hover {
  border-color: var(--color-accent);
}

.consulting-faq summary {
  cursor: pointer;
  font-weight: 850;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  transition: padding-left 0.2s ease;
}

.consulting-faq:hover summary {
  padding-left: 6px;
}

.consulting-faq summary::-webkit-details-marker {
  display: none;
}

.consulting-faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.consulting-faq:hover summary::after {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.consulting-faq[open] summary::after {
  content: "\2212";
}

.consulting-faq[open]:hover summary::after {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .consulting-faq,
  .consulting-faq summary,
  .consulting-faq summary::after {
    transition: none;
  }
  .consulting-faq:hover summary {
    padding-left: 0;
  }
}

.consulting-faq-body {
  padding-top: 10px;
}

.consulting-faq-cta {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

/* =========================================
   Side Panel / Drawer
   ========================================= */

body.panel-open {
  overflow: hidden;
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 34, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.panel-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.panel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: #fff;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(28, 20, 34, 0.15);
}

.panel-drawer.is-active {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(28, 20, 34, 0.08);
  flex-shrink: 0;
}

.panel-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(28, 20, 34, 0.12);
  background: rgba(28, 20, 34, 0.02);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1;
  transition: background var(--ease);
}

.panel-close:hover {
  background: rgba(28, 20, 34, 0.06);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

.panel-footer {
  flex-shrink: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(28, 20, 34, 0.08);
  background: #fff;
}

/* Panel: Hook */
.panel-hook-headline {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text-primary);
}

/* Panel: Stats */
.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.panel-stat {
  padding: 12px;
  border-radius: 10px;
  background: rgba(241, 222, 113, 0.12);
  border: 1px solid rgba(28, 20, 34, 0.06);
}

.panel-stat-value {
  font-weight: 900;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.panel-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Panel: Bridge */
.panel-bridge {
  margin-bottom: 18px;
}

.panel-bridge p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Panel: Section title */
.panel-section-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(28, 20, 34, 0.50);
  margin: 0 0 10px;
}

/* Panel: Divider */
.panel-divider {
  border: none;
  border-top: 1px solid rgba(28, 20, 34, 0.08);
  margin: 18px 0;
}

/* Panel: Deliverables */
.panel-deliverables {
  margin-bottom: 0;
}

.panel-deliverables ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.panel-deliverables li {
  margin: 8px 0;
  line-height: 1.5;
}

/* Panel: Instructor */
.panel-instructor {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(28, 20, 34, 0.02);
  border: 1px solid rgba(28, 20, 34, 0.06);
}

.panel-instructor-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.panel-instructor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-instructor-img.is-hidden {
  display: none;
}

.panel-instructor-info {
  min-width: 0;
}

.panel-instructor-name {
  font-weight: 850;
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text-primary);
}

.panel-instructor-bio {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Panel: Testimonials */
.panel-testimonials {
  margin-bottom: 0;
}

.panel-testimonial {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(28, 20, 34, 0.08);
  background: #fff;
}

.panel-testimonial + .panel-testimonial {
  margin-top: 10px;
}

.panel-testimonial-quote {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
}

.panel-testimonial-author {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
}

/* Panel: Specs */
.panel-specs {
  margin-bottom: 0;
}

.panel-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 20, 34, 0.06);
  gap: 12px;
}

.panel-spec:last-child {
  border-bottom: none;
}

.panel-spec-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.panel-spec-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
}

/* Panel: Countdown Timer */
.panel-countdown {
  text-align: center;
  margin-bottom: 10px;
}

.panel-countdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.panel-countdown-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.panel-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.panel-countdown-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.panel-countdown-sub {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 2px;
}

.panel-countdown-sep {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  align-self: flex-start;
}

/* Panel: CTA */
.panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #100a16;
  color: #f7f4fa;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
}

.panel-cta:hover {
  opacity: 0.95;
  text-decoration: none;
}

/* Program detail link (text link under Get Access) */
.program-detail-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 4px 0;
}

.program-detail-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* =========================================
   Affiliate Program Page
   ========================================= */

.affiliate-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    #100a16;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.affiliate-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.affiliate-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
}

.affiliate-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* Section head */
.affiliate-section-head {
  text-align: center;
  max-width: 78ch;
  margin: 0 auto var(--space-xl);
}

/* How It Works steps */
.affiliate-steps {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 980px) {
  .affiliate-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.affiliate-step {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 14px 40px rgba(28, 20, 34, 0.05);
}

.affiliate-step h3 {
  margin: var(--space-sm) 0 var(--space-xs);
}

.affiliate-step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--text-primary);
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Earnings scenarios */
.affiliate-scenarios {
  display: grid;
  gap: var(--space-lg);
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 980px) {
  .affiliate-scenarios {
    grid-template-columns: repeat(3, 1fr);
  }
}

.affiliate-scenario {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 14px 40px rgba(28, 20, 34, 0.05);
}

.affiliate-scenario-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.affiliate-scenario-value {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: var(--space-xs) 0;
  line-height: 1.2;
}

.affiliate-scenario-value .muted {
  font-size: 16px;
  font-weight: 650;
}

/* Case Studies page */
.case-studies-hero {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(1300px 700px at 50% 100%, rgba(113, 132, 241, 0.08), transparent 60%),
    var(--color-black);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
}

.case-studies-hero .pill {
  margin-left: auto;
  margin-right: auto;
}

.case-studies-hero h1 {
  color: #fff;
}

.case-studies-hero .consulting-hero-sub {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.case-studies-hero .button-row {
  justify-content: center;
}

.case-studies-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.case-filter-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 20, 34, 0.16);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}

.case-filter-btn:hover {
  border-color: rgba(28, 20, 34, 0.32);
}

.case-filter-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Two-dimension left-pane filter (service + industry) + compact card grid */
.case-studies-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .case-studies-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

.case-studies-sidebar-filters {
  background: var(--color-black);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.10);
  padding: var(--space-lg);
}

@media (min-width: 900px) {
  .case-studies-sidebar-filters {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.csf-group + .csf-group {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.csf-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-sm);
}

.csf-group .case-filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 0;
}

.csf-group .case-filter-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.csf-group .case-filter-btn.is-active {
  color: var(--color-accent);
  font-weight: 800;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Compact, Genesys-style card: thumbnail, one tag, one quantified headline
   line, a name/role credit, and a link. Metrics live inside the headline
   instead of a separate stat grid, so the card stays short. */
.case-study-card-v2 {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease;
}
.case-study-card-v2:hover {
  border-color: rgba(28, 20, 34, 0.22);
}

.case-study-card-v2[hidden] {
  display: none;
}

.csc-thumb {
  aspect-ratio: 16 / 10;
  background: var(--color-black);
  overflow: hidden;
}

.csc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 320ms ease;
}

.case-study-card-v2:hover .csc-thumb img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .case-study-card-v2:hover .csc-thumb img {
    transform: none;
  }
}

.csc-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.csc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-purple);
  background: rgba(113, 132, 241, 0.12);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.csc-headline {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.csc-headline strong {
  color: var(--text-primary);
}

/* Bulleted stat list — borrowed from bridged.events' case-study cards:
   scannable proof points instead of one number buried in a sentence. */
.csc-stats {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(28, 20, 34, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.csc-stats li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.csc-stats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-purple);
}
.csc-stats li strong {
  color: var(--color-purple);
  font-weight: 800;
}

.csc-credit {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-purple);
  margin-bottom: var(--space-md);
  flex: 0 0 auto;
}

.csc-link {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.csc-link:hover {
  text-decoration: underline;
}

.case-study-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-study-thumb {
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-md);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-black);
}

.case-study-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.case-study-readmore {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-sm);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.case-study-readmore:hover {
  color: var(--color-accent-dark, var(--text-primary));
  text-decoration: underline;
}

/* Portfolio-level summary metrics strip, top of the case studies index */
.case-studies-summary {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .case-studies-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-studies-summary-stat {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(28, 20, 34, 0.05);
  padding: var(--space-lg);
  text-align: center;
}

.case-studies-summary-stat strong {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  color: var(--text-primary);
}

.case-studies-summary-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.case-study-head h3 {
  margin-bottom: 2px;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-sm) 0;
}

.case-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(113, 132, 241, 0.12);
  color: #3947a8;
  white-space: nowrap;
}

.case-study-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-sm) 0 var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(28, 20, 34, 0.08);
}

.case-study-stats > div {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.case-study-stats strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.case-study-stats span {
  font-size: 12px;
  color: var(--text-muted);
}

.case-study-card details summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.case-study-card details summary::-webkit-details-marker {
  display: none;
}

.case-study-body {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(28, 20, 34, 0.08);
}

.case-study-body p {
  font-size: 14px;
  color: rgba(28, 20, 34, 0.78);
}

.case-testimonial {
  font-style: italic;
}

.case-testimonial-attr {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
  font-size: 13px;
}

/* ============ Individual Case Study Detail Page ============ */

.cs-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.cs-breadcrumb a {
  color: var(--text-primary);
}

.cs-breadcrumb a:hover {
  text-decoration: underline;
}

/* One grid spans the full page (hero card + body sections) so the sidebar can stay
   sticky for the whole scroll, not just while the hero section is in view. */
.cs-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 960px) {
  .cs-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.cs-sidebar {
  background: var(--color-black);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.10);
}

@media (min-width: 960px) {
  .cs-sidebar {
    position: sticky;
    top: 100px;
  }
}

.cs-fact-tag-link {
  text-decoration: none;
}

.cs-fact-tag-link:hover .cs-fact-tag {
  background: rgba(241, 222, 113, 0.22);
}

/* Hero content card: the dark gradient treatment, now scoped to a card inside the
   right column instead of a full-bleed section, so the sidebar's grid spans the whole page. */
.cs-hero-card {
  background:
    radial-gradient(1200px 600px at 30% 10%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(113, 132, 241, 0.10), transparent 55%),
    var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .cs-hero-card {
    padding: var(--space-lg);
  }
}

.cs-fact {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-fact:first-child {
  padding-top: 0;
}

.cs-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cs-fact-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.cs-fact-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.cs-fact-value a {
  color: var(--color-accent);
}

.cs-fact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-fact-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(241, 222, 113, 0.12);
  border: 1px solid rgba(241, 222, 113, 0.24);
  color: var(--color-accent);
  white-space: nowrap;
}

/* Brand color rotation for service tags (matches the program-rail colors used on
   the homepage and academy index cards), so tags don't read as yellow-on-yellow. */
.cs-fact-tag--blue {
  background: rgba(113, 196, 241, 0.14);
  border-color: rgba(113, 196, 241, 0.3);
  color: var(--color-blue);
}

.cs-fact-tag--purple {
  background: rgba(113, 132, 241, 0.14);
  border-color: rgba(113, 132, 241, 0.3);
  color: var(--color-purple);
}

.cs-fact-tag--pink {
  background: rgba(241, 113, 196, 0.14);
  border-color: rgba(241, 113, 196, 0.3);
  color: var(--color-pink);
}

.cs-fact-tag--green {
  background: rgba(113, 241, 158, 0.14);
  border-color: rgba(113, 241, 158, 0.3);
  color: var(--color-green);
}

.cs-fact-tag--gray {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.cs-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.cs-headline {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.16;
  margin: var(--space-sm) 0;
  color: #fff;
}

.cs-subhead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 62ch;
}

.cs-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
}

.cs-avatar-dark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(241, 222, 113, 0.16);
  border: 1px solid rgba(241, 222, 113, 0.28);
  color: var(--color-accent);
  font-weight: 900;
  font-size: 13px;
  flex: 0 0 auto;
}

.cs-credit-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.4;
}

.cs-credit-text strong {
  color: rgba(255, 255, 255, 0.92);
}

/* Hero screenshot placeholder: a browser-chrome frame, not a fabricated photo */
.cs-shot {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #120d16;
}

.cs-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.cs-shot-url {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, "SF Mono", monospace;
}

.cs-shot-body {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(241, 222, 113, 0.045), transparent 60%),
    radial-gradient(500px 300px at 90% 100%, rgba(113, 132, 241, 0.10), transparent 60%),
    var(--color-black);
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: var(--space-lg);
}

.cs-shot-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  transition: transform 320ms ease;
}

.cs-shot:hover .cs-shot-img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .cs-shot:hover .cs-shot-img {
    transform: none;
  }
}

/* Click-to-expand image lightbox — opt-in via .zoomable-img, JS builds the overlay once */
.zoomable-img {
  cursor: zoom-in;
  transition: transform 320ms ease;
}

.zoomable-img:hover {
  transform: scale(1.045);
}

.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.img-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.img-lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
}

.img-lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}

.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .zoomable-img:hover {
    transform: none;
  }
  .img-lightbox {
    transition: none;
  }
}

.cs-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(241, 222, 113, 0.28);
}

.cs-testimonial-panel .cs-avatar-img {
  width: 44px;
  height: 44px;
}

/* Stat impact block (up to 3, pulled to the top of the page) */
.cs-stats {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  perspective: 1000px;
}

@media (min-width: 640px) {
  .cs-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cs-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.cs-stat strong {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--color-accent);
  font-weight: 900;
}

.cs-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

/* Body sections, light background matching the rest of the site */
.cs-body-section {
  max-width: 74ch;
}

.cs-body-section + .cs-body-section {
  margin-top: var(--space-xl);
}

.cs-body-section h2 {
  font-size: 22px;
  margin-bottom: var(--space-sm);
}

.cs-body-section ul {
  margin-top: var(--space-sm);
  padding-left: 1.15em;
}

.cs-body-section li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.cs-testimonial-panel {
  background: var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: rgba(255, 255, 255, 0.94);
  max-width: 74ch;
}

.cs-testimonial-panel blockquote {
  font-size: 19px;
  line-height: 1.55;
  font-style: normal;
  margin: 0 0 var(--space-lg);
}

.cs-testimonial-panel .cs-credit-text {
  margin-top: 0;
}

.cs-testimonial-panel .cs-credit-text strong {
  color: #fff;
}

/* Cross-sell banner: teases one other case study by id/mini-stat */
.cs-crosssell {
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
}

.cs-crosssell-info {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cs-crosssell-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cs-crosssell-name {
  font-size: 17px;
  font-weight: 800;
}

.cs-crosssell-stat {
  text-align: center;
  min-width: 84px;
}

.cs-crosssell-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
}

.cs-crosssell-stat span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .cs-crosssell {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Pitch card: same footprint as the 11 real cards (so it doesn't blow out the
   grid), but a dark gradient panel instead of a screenshot and a badge instead
   of a service-category pill, so it never reads as a twelfth completed engagement. */
.case-study-pitch-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.case-study-pitch-top {
  aspect-ratio: 16 / 10;
  background: var(--color-black);
  display: flex;
  flex-direction: column;
}

.case-study-pitch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-study-pitch-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.case-study-pitch-url {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: ui-monospace, "SF Mono", monospace;
}

.case-study-pitch-frame {
  flex: 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  margin: 10px;
  border-radius: 8px;
  transition: transform 320ms ease, border-color 320ms ease;
}

.case-study-pitch-frame span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.02em;
}

/* Matches the zoom-on-hover feel the real cards get from their screenshot
   thumbnail, even though this card has no image to zoom. */
.case-study-pitch-card:hover .case-study-pitch-frame {
  transform: scale(1.04);
  border-color: rgba(241, 222, 113, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .case-study-pitch-card:hover .case-study-pitch-frame {
    transform: none;
  }
}

.case-study-pitch-badge {
  align-self: flex-start;
  margin-bottom: var(--space-sm);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  border: 1px solid transparent;
  color: var(--color-black);
}

.case-study-pitch-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-study-pitch-body h3 {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.case-study-pitch-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.case-study-pitch-stats {
  margin-top: auto;
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(28, 20, 34, 0.08);
}

.case-study-pitch-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
}

.case-study-pitch-stats span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* Final CTA card: headline + Book A Call on the left, a mini cross-sell preview of
   another case study on the right, and a logo strip of the other companies below. */
.cs-final-card {
  background:
    radial-gradient(1100px 500px at 10% 0%, rgba(113, 132, 241, 0.16), transparent 60%),
    var(--color-black);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.cs-final-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  align-items: center;
  justify-content: space-between;
}

.cs-final-main h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  max-width: 26ch;
}

.cs-final-main p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: var(--space-sm);
  max-width: 48ch;
}

.cs-final-main .button-row {
  margin-top: var(--space-lg);
}

.cs-final-card .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f7f4fa;
}

.cs-final-card .button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cs-final-preview {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  min-width: 260px;
  max-width: 320px;
  flex: 0 0 auto;
}

.cs-final-preview-name {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: var(--space-md);
}

.cs-final-preview-stats {
  display: flex;
  gap: var(--space-lg);
}

/* Client-page stat labels are short ("uplift in trial activation"), but some
   side-project labels run longer and would otherwise stretch this box wide
   enough to force it onto its own row instead of sitting beside .cs-final-main. */
.cs-final-preview-stats > div {
  flex: 1;
  min-width: 0;
}

.cs-final-preview-stats strong {
  display: block;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 900;
}

.cs-final-preview-stats span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.cs-logo-strip {
  width: 100%;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.cs-logo-strip-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: cs-logo-marquee 22s linear infinite;
}

.cs-logo-strip-track a {
  font-weight: 800;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
}

.cs-logo-strip-track a:hover {
  color: #fff;
}

@keyframes cs-logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-logo-strip-track {
    animation: none;
  }
}

@media (max-width: 720px) {
  .cs-final-top {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-final-preview {
    min-width: 0;
  }
}

/* Engagement tiers (named-tier cards, replaces the old time/access table) */
.consulting-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  text-align: left;
  perspective: 1000px;
}

.consulting-tier-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(28, 20, 34, 0.06);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.consulting-tier-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: 0 18px 50px rgba(241, 222, 113, 0.35);
}

.consulting-tier-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.consulting-tier-price {
  font-size: 28px;
  font-weight: 900;
  margin: 6px 0 4px;
}

.consulting-tier-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.consulting-tier-list {
  margin: var(--space-md) 0;
  padding-left: 18px;
  color: rgba(28, 20, 34, 0.72);
  flex-grow: 1;
}

.consulting-tier-list li {
  margin: 6px 0;
}

/* =========================================
   James-website only: long-form content components
   Not part of MIA's design system (MIA has no article/bio pages) —
   authored fresh using the site's existing tokens for consistency.
   ========================================= */

.about-hero {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.about-hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.prose {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--text-primary);
}

.prose p {
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  font-size: 22px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-purple);
}

.prose strong {
  font-weight: 800;
}

.prose h3 {
  font-weight: 800;
}

.prose ul {
  margin: 0 0 var(--space-md);
  padding-left: 22px;
  line-height: 1.7;
}

.prose li {
  margin: 0 0 6px;
}

/* Talk list (Speaking page) — flat divider-list rows, two columns on desktop */
.talk-list {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
}

.talk-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  margin: 0 calc(-1 * var(--space-md));
  border-bottom: 1px solid var(--border);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}

.talk-item:hover {
  transform: translateY(-3px);
  background-color: var(--bg-surface);
  box-shadow: 0 10px 28px rgba(15, 15, 20, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .talk-item {
    transition: none;
  }
  .talk-item:hover {
    transform: none;
  }
}

.talk-role {
  font-weight: 800;
  color: var(--text-primary);
}

.talk-item h3 {
  font-size: 18px;
  margin: 0 0 6px;
}

.talk-item p {
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.6;
}

.talk-link {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-purple);
}

/* .talk-link's dark text reads correctly on the site's light pages, but goes
   near-invisible inside .cs-hero-card's dark gradient background. Same fix
   pattern as .cs-fact-tag--gray earlier this session. */
.cs-hero-card .talk-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: var(--color-accent);
}

@media (max-width: 640px) {
  .talk-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* Simple tab switcher (Speaking page: Speaking Engagements / Media Features) */
.talk-tabs {
  display: flex;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: var(--bg-page);
  padding-top: var(--space-md);
}

.talk-tab {
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
}

.talk-tab:hover {
  color: var(--text-primary);
}

.talk-tab.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--color-purple);
}

.talk-tab.is-active[data-tab-target="media"],
.talk-tab.is-active[data-tab-target="personal"] {
  border-bottom-color: var(--color-pink);
}

/* Speaking Engagements / Media Features — card grid, reuses .csc-tag/.csc-headline/
   .csc-credit/.csc-link from case-study-card-v2's text styling, better space use than
   the one-per-row list. */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.talk-card {
  background: #fff;
  border: 1px solid rgba(28, 20, 34, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.talk-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 var(--space-sm);
  flex: 1;
}

.talk-card:hover {
  border-color: rgba(28, 20, 34, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 15, 20, 0.08);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .talk-card {
    transition: none;
  }
  .talk-card:hover {
    transform: none;
  }
}

/* Media Features cards use the pink accent instead of Speaking Engagements' purple */
[data-tab-panel="media"] .csc-tag,
[data-tab-panel="personal"] .csc-tag {
  color: var(--color-pink);
  background: rgba(241, 113, 196, 0.12);
}

[data-tab-panel="media"] .csc-credit {
  color: var(--color-pink);
}

/* Card top row: tag + published date, side by side */
.csc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 10px;
}

.csc-card-meta .csc-tag {
  margin-bottom: 0;
}

.csc-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Year filter pills, sits under a tab's caption line */
.talk-year-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.talk-year-filter[hidden] {
  display: none;
}

.year-pill {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(28, 20, 34, 0.14);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.year-pill:hover {
  border-color: rgba(28, 20, 34, 0.3);
  color: var(--text-primary);
}

.year-pill.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

[data-tab-panel="personal"] .year-pill.is-active {
  background: var(--color-pink);
  border-color: var(--color-pink);
}

/* Hand-drawn squiggle divider under hero headings — a loose, imperfect wave rather than
   a straight line, using the site's yellow accent as a light signature touch. */
.hand-divider {
  display: block;
  border: none;
  border-top: 3px solid var(--color-accent);
  width: 100%;
  max-width: 280px;
  margin: var(--space-lg) 0 0;
}

/* =========================================
   Portrait Hero
   Dark hero with a full-bleed photo on the right and a diagonal
   bottom edge — used on Home, About, and the Speaking pages.
   ========================================= */

.portrait-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 15% 0%, rgba(241, 222, 113, 0.08), transparent 60%),
    #100a16;
  padding: calc(var(--space-2xl) + var(--header-height)) 0 calc(var(--space-2xl) + 56px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 94%);
}

.portrait-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  align-items: center;
  gap: var(--space-2xl);
}

.portrait-hero-text h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.portrait-hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  color: rgba(247, 244, 250, 0.65);
  margin-bottom: var(--space-sm);
}

.portrait-hero-text p {
  color: rgba(247, 244, 250, 0.72);
}

.portrait-hero-text p a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.portrait-hero-text .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f7f4fa;
}

.portrait-hero-text .button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.portrait-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-sm) 0 0;
}

.portrait-hero-tags .csc-tag {
  color: #f7f4fa;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}

.portrait-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 260px;
  margin-right: calc(-1 * ((100vw - min(var(--max-width), 92vw)) / 2));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-hero-media:not(.portrait-hero-media--photo) {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc((100vw - min(var(--max-width), 92vw)) / 2);
  left: auto;
  width: 42%;
  max-width: 560px;
  min-height: 0;
  margin: 0;
  align-self: auto;
}

.portrait-hero-text {
  max-width: 46ch;
}

.portrait-hero-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* Photo-background variant — real photographs become the hero section's own
   background (like blessingabeng.com's hero), not a separate framed box.
   A dark scrim over the left side keeps the text legible; the photo shows
   through clearly on the right. */
.portrait-hero--photo-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.portrait-hero--photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #100a16 0%, #100a16 32%, rgba(16, 10, 22, 0.82) 50%, rgba(16, 10, 22, 0.35) 72%, rgba(16, 10, 22, 0.08) 100%);
  z-index: 0;
}

.portrait-hero--photo-bg > .container {
  position: relative;
  z-index: 1;
}

.portrait-hero--photo-bg .portrait-hero-text {
  max-width: 64ch;
}

.portrait-hero--photo-bg .portrait-hero-text p {
  max-width: 48ch;
}

.portrait-hero-text .eyebrow {
  white-space: nowrap;
}

/* Typewriter cycling word */
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-accent);
  animation: typewriter-blink 0.9s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Mobile: the photo sits behind the text as one layered hero, not a stacked
   second block — matches the blessingabeng.com reference. */
@media (max-width: 860px) {
  .portrait-hero-grid {
    display: block;
    position: relative;
  }

  .portrait-hero-media,
  .portrait-hero-media:not(.portrait-hero-media--photo) {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    z-index: 0;
  }

  .portrait-hero-media img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .portrait-hero-text {
    position: relative;
    z-index: 1;
  }
}

/* Small phones: a 3-button hero CTA row doesn't fit on one line, and one
   button wrapping alone looks broken — stack them full-width instead. */
@media (max-width: 520px) {
  .portrait-hero-text .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .portrait-hero-text .button-row .button {
    width: 100%;
  }
}

/* Flush variant — no diagonal cut, dark background runs the full page (homepage:
   the hero is the only section, so a wedge into a near-empty light gap looks broken). */
.portrait-hero--flush {
  background:
    radial-gradient(1100px 600px at 15% 0%, rgba(241, 222, 113, 0.08), transparent 60%),
    #100a16;
}

/* The flush hero's diagonal wedge reveals whatever's behind it (body's
   background), not the next section — so on pages using it, body itself
   needs to be dark too, or the wedge would show through light. */
body:has(.portrait-hero--flush) {
  background: #100a16;
}

/* =========================================
   Pitch Deck (interactive personalized job-pitch pages)
   ========================================= */
.pitch-deck {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 10%, rgba(241, 222, 113, 0.06), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(113, 132, 241, 0.10), transparent 55%),
    var(--color-black);
  z-index: 100;
}

.pitch-slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 90px var(--space-lg) 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pitch-slide.is-active { display: flex; }

.pitch-slide-inner {
  max-width: 680px;
  width: 100%;
  margin: auto;
}

.pitch-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.pitch-slide h1 {
  color: #fff;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.pitch-slide h2 {
  color: #fff;
  font-size: clamp(22px, 3.5vw, 30px);
  margin-bottom: var(--space-md);
}

.pitch-slide p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.pitch-slide p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.pitch-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--space-lg) 0;
}

.pitch-credit img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pitch-credit span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.pitch-credit strong { color: #fff; }

.pitch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.pitch-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.pitch-stat strong {
  display: block;
  font-size: 26px;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.pitch-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .pitch-stats { grid-template-columns: 1fr; }
  .pitch-slide { padding: 80px var(--space-md) 70px; }
}

.pitch-exit {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 110;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.pitch-exit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), opacity var(--ease);
}

.pitch-nav-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.pitch-nav-arrow[disabled] { opacity: 0.2; cursor: default; pointer-events: none; }
.pitch-nav-prev { left: var(--space-md); }
.pitch-nav-next { right: var(--space-md); }

@media (max-width: 640px) {
  .pitch-nav-arrow { width: 38px; height: 38px; }
}

.pitch-progress {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  gap: 8px;
}

.pitch-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background var(--ease), transform var(--ease);
  cursor: pointer;
}

.pitch-progress-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.3);
}

.pitch-deck .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pitch-deck .button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
