/* Homepage Who She Has Helped — Concept 2 + Concept 3 hybrid */
.who-we-help-section {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 7rem;
  color: var(--charcoal);
  background: var(--white);
}

.who-we-help-atmosphere {
  position: absolute;
  width: 32rem;
  height: 32rem;
  right: -14rem;
  top: 4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .12) 0, rgba(var(--accent-rgb), 0) 68%);
  pointer-events: none;
}

.who-we-help-container { position: relative; z-index: 1; }
.who-we-help-header { max-width: 43rem; margin-bottom: 2.75rem; }
.who-we-help-header .section-label { color: var(--accent); }
.who-we-help-header h2 { color: var(--primary); font-size: clamp(2.5rem, 5vw, 4.35rem); margin: .65rem 0 1rem; }
.who-we-help-header p { max-width: 37rem; color: rgba(var(--charcoal-rgb), .76); line-height: 1.8; }
.who-we-help-see-all { display: inline-block; margin-top: 1.25rem; color: var(--accent); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.who-we-help-see-all span { display: inline-block; margin-left: .3rem; transition: transform .25s ease; }
.who-we-help-see-all:hover span, .who-we-help-see-all:focus-visible span { transform: translateX(.25rem); }
.who-we-help-see-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.who-we-help-rail-shell { position: relative; overflow: hidden; --who-card-media-height: 15.5rem; }
.who-we-help-rail-controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.who-we-help-rail-control {
  position: absolute;
  top: calc(var(--who-card-media-height) / 2);
  transform: translateY(-50%);
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 .55rem 1.4rem rgba(var(--primary-rgb), .18), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  cursor: pointer;
  pointer-events: auto;
  transition: color .25s ease, border-color .25s ease, background .25s ease, opacity .25s ease, transform .25s ease;
}
.who-we-help-rail-control[data-who-prev] { left: .85rem; }
.who-we-help-rail-control[data-who-next] { right: .85rem; }
.who-we-help-rail-control span {
  display: block;
  box-sizing: border-box;
  width: .55rem;
  height: .55rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.who-we-help-rail-control[data-who-prev] span { transform: rotate(-135deg); }
.who-we-help-rail-control[data-who-next] span { transform: rotate(45deg); }
.who-we-help-rail-control:hover:not([aria-disabled="true"]),
.who-we-help-rail-control:focus-visible {
  color: var(--white);
  border-color: rgba(var(--accent-rgb), .9);
  background: rgba(var(--accent-rgb), .88);
  transform: translateY(-50%) scale(1.06);
}
.who-we-help-rail-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.who-we-help-rail-control[aria-disabled="true"],
.who-we-help-rail-control:disabled { cursor: default; opacity: .32; pointer-events: none; }
.who-we-help-rail {
  --who-rail-gap: 1.25rem;
  --who-card-width: calc((100% - 3 * var(--who-rail-gap)) / 4);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--who-card-width);
  gap: var(--who-rail-gap);
  overflow-x: auto;
  padding: .2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.who-we-help-rail::-webkit-scrollbar { display: none; }
.who-we-help-rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.who-we-help-card { height: 30rem; min-width: 0; scroll-snap-align: start; }
.who-we-help-card-button {
  display: grid;
  grid-template-rows: var(--who-card-media-height) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--font-body);
  border: 1px solid rgba(var(--primary-rgb), .16);
  border-radius: .35rem;
  background: var(--cream);
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.who-we-help-card-button:hover,
.who-we-help-card-button:focus-visible {
  border-color: rgba(var(--accent-rgb), .9);
  background: var(--white);
  box-shadow: 0 1.25rem 2.5rem rgba(var(--primary-rgb), .14);
  transform: translateY(-.35rem);
}
.who-we-help-card-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.who-we-help-card-media { position: relative; display: block; min-height: 0; overflow: hidden; }
.who-we-help-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.who-we-help-card-button:hover .who-we-help-card-media img,
.who-we-help-card-button:focus-visible .who-we-help-card-media img { transform: scale(1.04); }
.who-we-help-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,22,.05) 15%, rgba(10,12,22,.76) 100%); }
.who-we-help-card-badge { position: absolute; top: 1rem; left: 1rem; max-width: calc(100% - 3rem); padding: .4rem .65rem; color: var(--white); border: 1px solid rgba(255,255,255,.32); background: rgba(10,12,22,.55); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.who-we-help-card-index { position: absolute; right: 1rem; bottom: .85rem; color: var(--white); font: 500 1.2rem var(--font-heading); }
.who-we-help-card-content { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .55rem; min-height: 0; padding: 1.2rem 1.25rem 1.25rem; }
.who-we-help-card-kicker { color: var(--accent); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.who-we-help-card-title { display: -webkit-box; overflow: hidden; color: var(--primary); font: 500 1.75rem/1.05 var(--font-heading); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.who-we-help-card-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; min-height: 1.3rem; color: rgba(var(--charcoal-rgb), .66); font-size: .77rem; }
.who-we-help-card-meta span + span::before { content: '·'; margin-right: .8rem; color: var(--accent); }
.who-we-help-card-action { color: var(--accent); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.who-we-help-card-action span { display: inline-block; margin-left: .25rem; transition: transform .25s ease; }
.who-we-help-card-button:hover .who-we-help-card-action span,
.who-we-help-card-button:focus-visible .who-we-help-card-action span { transform: translateX(.25rem); }

@media (max-width: 767px) {
  .who-we-help-section { padding: 4.5rem 0 5rem; }
  .who-we-help-rail-shell { --who-card-media-height: 14.5rem; }
  .who-we-help-rail-controls { display: none; }
  .who-we-help-rail { --who-card-width: minmax(16.5rem, 78vw); }
  .who-we-help-card { height: 28.5rem; }
  .who-we-help-card-button { grid-template-rows: var(--who-card-media-height) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .who-we-help-rail { scroll-behavior: auto; }
  .who-we-help-card-button, .who-we-help-card-media img, .who-we-help-card-action span, .who-we-help-see-all span { transition: none; transform: none; }
  .who-we-help-rail-control:hover:not([aria-disabled="true"]), .who-we-help-rail-control:focus-visible { transform: translateY(-50%); }
}
