/* Success Stories carousel — homepage */
.s-social {
  background: var(--white);
  overflow: hidden;
}

.s-social .section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.s-social .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.s-social .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-700, var(--green));
  margin-bottom: 14px;
}

.s-social .section-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 137, 68, 0.14);
}

.s-social .section-title {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: var(--text-h2-lh);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  text-transform: capitalize;
  color: var(--ink);
}

.s-social .section-subtitle {
  color: var(--muted);
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
  margin-bottom: 8px;
}

.s-social .section-header-cta {
  margin-top: 20px;
}

.s-social .stories-highlight {
  color: var(--green);
  -webkit-text-fill-color: var(--green);
}

.socialcarbx {
  margin: 0 -24px;
  padding: 0 12px;
}

.stories-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 5px 8px;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.stories-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.stories-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.story-card {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 100%;
  min-width: 0;
  height: min(560px, calc(100vh - 220px));
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  outline: none;
}

@media (min-width: 768px) {
  .story-card {
    width: 320px;
    height: 420px;
    min-height: 0;
  }
}

.story-card.group:hover,
.story-card.group:focus-within {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
}

.story-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.story-card.group:hover .story-card__bg,
.story-card.group:focus-within .story-card__bg,
.story-card.is-chart-active .story-card__bg {
  filter: blur(10px);
  transform: scale(1.03);
}

.story-card__chart {
  position: relative;
  order: 2;
  flex: 0 1 auto;
  height: 180px;
  margin: 12px 8px 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.story-card__chart-panel {
  height: 100%;
  padding: 10px 8px 8px;
  border-radius: 16px;
  background: rgba(20, 40, 30, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.story-card__chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Bars + trend line, brand green — most bars stay a light tint, only the
   final ("after") bar goes fully solid so the result reads at a glance */
.story-chart-bar {
  fill: rgba(125, 255, 184, 0.4);
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-chart-bar--bright {
  fill: #7dffb8;
  filter: drop-shadow(0 0 6px rgba(125, 255, 184, 0.9)) drop-shadow(0 0 18px rgba(52, 211, 153, 0.55));
}

.story-card--has-chart.group:hover .story-chart-bar,
.story-card--has-chart:focus-within .story-chart-bar,
.story-card--has-chart.is-chart-active .story-chart-bar {
  transform: scaleY(1);
}

.story-chart-guide {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 0;
  stroke-dasharray: 3 4;
}

.story-chart-line {
  fill: none;
  stroke: #008944;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px #008944);
  opacity: 0;
  transform: translateY(6px);
  transform-box: fill-box;
  transition: opacity 0.2s ease, transform 0.5s ease;
}

.story-card--has-chart.group:hover .story-chart-line,
.story-card--has-chart:focus-within .story-chart-line,
.story-card--has-chart.is-chart-active .story-chart-line {
  opacity: 1;
  transform: translateY(0);
}

.story-chart-dot {
  fill: #0b1510;
  stroke: #008944;
  stroke-width: 1.6;
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-chart-dot--bright {
  fill: #008944;
  stroke: #fff;
  filter: drop-shadow(0 0 6px #008944) drop-shadow(0 0 18px rgba(52, 211, 153, 0.55));
}

.story-card--has-chart.group:hover .story-chart-dot,
.story-card--has-chart:focus-within .story-chart-dot,
.story-card--has-chart.is-chart-active .story-chart-dot {
  opacity: 1;
  transform: scale(1);
}

.story-chart-label {
  fill: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-card--has-chart.group:hover .story-card__chart,
.story-card--has-chart:focus-within .story-card__chart,
.story-card--has-chart.is-chart-active .story-card__chart {
  opacity: 1;
  transform: translateY(0);
}

.story-card__head {
  position: relative;
  order: 1;
  z-index: 3;
  padding: 20px 8px 0;
}

.story-card__condition {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.story-card__transition {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.story-card__from,
.story-card__to {
  font-size: clamp(1.6rem, 4.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.story-card__from {
  opacity: 0.55;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.story-card__arrow {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  flex-shrink: 0;
}

.story-card__unit {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  align-self: center;
}

.story-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.story-card__name {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.92;
}

.story-card__timeframe {
  font-size: 13px;
  opacity: 0.7;
}

.story-card__bottom {
  position: relative;
  order: 3;
  z-index: 3;
  padding: 14px 8px 18px;
}

.story-card__bottom-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
  z-index: -1;
}

.story-card__quote {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.story-card__quote strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 767px) {
  .s-social .section-header {
    text-align: center;
    margin: 0 auto 28px;
  }
}

@media (max-width: 767px) {
  .story-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.04) 75%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  .story-card__chart {
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card__bg,
  .story-card__chart,
  .story-chart-bar,
  .story-chart-line,
  .story-chart-dot,
  .story-card__trend {
    transition: none !important;
    animation: none !important;
  }
}
