/**
 * Hum Sum case study – shared theme tokens only.
 * Section-specific layout/styling has been moved to Tailwind utility classes in templates.
 */
 .humsum-cs {
  padding: 0 0 3rem;
  --humsum-primary: #2d6a4f;
  --humsum-primary-dark: #1b4332;
  --humsum-primary-muted: rgba(45, 106, 79, 0.25);
  --humsum-primary-soft: rgba(45, 106, 79, 0.12);
  --humsum-dark: #1b4332;
  --humsum-dark-soft: #2d6a4f;
  --humsum-bg-hero: #1b4332;
  --humsum-bg-section: #ffffff;
  --humsum-bg-section-alt: #f1f8f4;
  --humsum-bg-card: #ffffff;
  --humsum-bg-card-warm: #f1f8f4;
  --humsum-bg-outcome: var(--humsum-primary-soft);
  --humsum-text: #111827;
  --humsum-text-muted: #374151;
  --humsum-text-heading: #1b4332;
  --humsum-text-on-dark: #ffffff;
  --humsum-text-on-dark-muted: rgba(255, 255, 255, 0.92);
  --humsum-border: rgba(45, 106, 79, 0.15);
  --humsum-border-subtle: rgba(45, 106, 79, 0.1);
  --humsum-border-on-dark: rgba(255, 255, 255, 0.1);
  --humsum-border-accent: rgba(45, 106, 79, 0.3);
  --humsum-border-accent-strong: rgba(45, 106, 79, 0.4);
  --humsum-glass-subtle: rgba(255, 255, 255, 0.04);
  --humsum-glass-green-tint: rgba(45, 106, 79, 0.42);
  --humsum-glass-green-highlight: rgba(183, 228, 199, 0.14);
  --humsum-glass-green-border: rgba(183, 228, 199, 0.28);
  --humsum-shadow-soft: rgba(45, 106, 79, 0.1);
  --humsum-accent-on-dark: #b7e4c7;
  --humsum-accent-on-dark-strong: #ffffff;
  --humsum-testimonial-quote-badge-border: rgb(183 228 199 / 0.45);
  --humsum-testimonial-quote-badge-ring: rgb(216 243 220 / 0.4);
  --humsum-testimonial-quote-icon: #d8f3dc;
}

.humsum-case-study__section {
  position: relative;
}

#case-study-cta .aptly-section-heading__gradient-word {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#case-study-cta .connect-heading,
#case-study-cta .connect-heading strong {
  color: var(--humsum-text-heading);
}

#case-study-cta p {
  color: var(--humsum-text);
}

.humsum-section-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.humsum-section-heading__eyebrow {
  font-size: var(--fga-type-kicker);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
}

.humsum-section-heading__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.3rem + 0.62vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--humsum-text-heading);
}

.humsum-section-heading--dark .humsum-section-heading__eyebrow {
  color: var(--humsum-accent-on-dark);
}

.humsum-section-heading--dark .humsum-section-heading__title {
  color: var(--humsum-text-on-dark);
}

/* Matches Funding GA testimonial heading chrome; green accent border */
.humsum-section-heading--inverse {
  gap: 0.25rem;
  margin-bottom: 0;
}

.humsum-section-heading--inverse .humsum-section-heading__eyebrow {
  color: var(--humsum-accent-on-dark);
}

.humsum-section-heading--inverse .humsum-section-heading__title {
  color: var(--humsum-text-on-dark);
}

.humsum-testimonial-quote-badge {
  position: relative;
  overflow: hidden;
  border-color: var(--humsum-testimonial-quote-badge-border);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.humsum-testimonial-quote-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid var(--humsum-testimonial-quote-badge-ring);
  pointer-events: none;
}

.humsum-testimonial-quote-badge::after {
  content: "";
  position: absolute;
  top: -140%;
  left: -32%;
  width: 42%;
  height: 300%;
  transform: rotate(24deg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.22) 48%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
  animation: humsum-testimonial-badge-sheen 7s ease-in-out infinite;
}

.humsum-testimonial-quote-icon {
  color: var(--humsum-testimonial-quote-icon);
  position: relative;
  z-index: 1;
}

@keyframes humsum-testimonial-badge-sheen {
  0%,
  56% {
    transform: translateX(0) rotate(24deg);
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  75% {
    transform: translateX(230%) rotate(24deg);
    opacity: 0;
  }
  100% {
    transform: translateX(230%) rotate(24deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .humsum-testimonial-quote-badge::after {
    animation: none;
  }
}

.humsum-section-heading--compact .humsum-section-heading__title,
.humsum-section-heading__title--compact {
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .humsum-section-heading__title {
    font-size: 1.625rem;
  }

  .humsum-section-heading--compact .humsum-section-heading__title,
  .humsum-section-heading__title--compact {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .humsum-section-heading__title {
    font-size: 1.75rem;
  }

  .humsum-section-heading--compact .humsum-section-heading__title,
  .humsum-section-heading__title--compact {
    font-size: 1.375rem;
  }
}

@media (min-width: 1280px) {
  .humsum-section-heading__title {
    font-size: 1.875rem;
  }

  .humsum-section-heading--compact .humsum-section-heading__title,
  .humsum-section-heading__title--compact {
    font-size: 1.5rem;
  }
}

@media (min-width: 1536px) {
  .humsum-section-heading__title {
    font-size: 2rem;
  }

  .humsum-section-heading--compact .humsum-section-heading__title,
  .humsum-section-heading__title--compact {
    font-size: 1.625rem;
  }
}

/* Scale & Complexity – green glass cards on dark section */
#scale .humsum-scale-card {
  background: linear-gradient(
    155deg,
    var(--humsum-glass-green-highlight) 0%,
    var(--humsum-glass-green-tint) 55%,
    rgba(27, 67, 50, 0.55) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--humsum-glass-green-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#scale .humsum-scale-card--lead {
  border-left: 3px solid var(--humsum-accent-on-dark);
}