/**
 * Regrow case study — gallery layout only.
 * Uses the shared site blue palette from single-case-study-retro.css (:root).
 */

/* Case-studies listing style: soft frames, full screenshot visible */
#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  gap: 14px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card,
#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured,
#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card:not(.retro-gallery-card--featured) {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e3eaf4;
  border-radius: 22px;
  background: linear-gradient(180deg, #eff3ff 0%, #eef2f8 100%);
  box-shadow: 0 12px 28px rgba(10, 37, 64, .08);
  isolation: isolate;
  cursor: pointer;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured {
  min-height: 320px;
  padding: 12px 12px 0;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-media-row .retro-gallery-card {
  min-height: 220px;
  padding: 10px 10px 0;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--portrait {
  min-height: 360px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card > img {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px;
  height: auto;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured > img {
  min-height: 260px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(66, 95, 255, 0.02) 0%, rgba(27, 48, 160, 0.14) 100%);
  pointer-events: none;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card__caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  margin: 0 -12px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 37, 64, .88));
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-media-row .retro-gallery-card__caption {
  margin: 0 -10px;
  padding: 12px 14px 14px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card__caption p {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured .retro-gallery-card__caption p {
  font-size: 18px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card__caption span:not(.retro-gallery-card__index) {
  display: block;
  max-width: 420px;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 1.45;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card__index::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary, #0000ff);
  content: "";
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card:hover {
  border-color: rgba(0, 0, 255, .46);
  box-shadow: 0 20px 40px rgba(10, 37, 64, .16);
  transform: translateY(-4px);
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card:hover > img {
  filter: none;
  transform: scale(1.02);
}

#SingleCaseStudyRetro.case-study-healthcare .retro-gallery-notes > div:hover {
  border-color: rgba(0, 0, 255, .25);
  background: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured,
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card:not(.retro-gallery-card--featured) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-media-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured {
    min-height: 240px;
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-media-row .retro-gallery-card,
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--portrait {
    min-height: 220px;
  }
}

@media (max-width: 639px) {
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card--featured,
  #SingleCaseStudyRetro.case-study-healthcare .retro-gallery-card:not(.retro-gallery-card--featured) {
    grid-column: auto;
    grid-row: auto;
  }
}


/* ─── Regrow Impact stage ─── */
#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__intro {
  margin-bottom: 28px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(174, 180, 255, .28);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(0, 0, 255, .45), transparent 55%),
    radial-gradient(ellipse 55% 50% at 92% 100%, rgba(64, 165, 250, .28), transparent 50%),
    linear-gradient(145deg, #070b2a 0%, #0a1548 42%, #0a2540 100%);
  box-shadow:
    0 28px 60px rgba(10, 37, 64, .28),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #ffffff;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 255, .35), transparent 68%);
  filter: blur(10px);
  animation: regrow-impact-glow 6s ease-in-out infinite;
  pointer-events: none;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: regrow-impact-live 1.8s ease-out infinite;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-copy h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-copy > p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.75;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stat {
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stat:hover {
  border-color: rgba(143, 144, 255, .55);
  background: rgba(0, 0, 255, .28);
  transform: translateY(-3px);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stat span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline {
  position: relative;
  z-index: 1;
  padding: 18px 12px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(7, 11, 42, .45);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-line {
  position: absolute;
  top: 42px;
  left: 7%;
  right: 7%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-line i {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #8f90ff, #ffffff, #8f90ff, transparent);
  animation: regrow-impact-flow 2.8s linear infinite;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #c7cbff;
  font-size: 15px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps li:hover .regrow-impact__step-icon {
  border-color: rgba(143, 144, 255, .7);
  background: rgba(0, 0, 255, .45);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps li.is-core .regrow-impact__step-icon {
  border-color: transparent;
  background: linear-gradient(135deg, #0000ff, #4040ff 55%, #40a5fa);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 255, .45);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps em {
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item {
  grid-column: span 2;
  min-height: 168px;
  padding: 20px;
  border: 1px solid #e3eaf4;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 14px 30px rgba(10, 37, 64, .06);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item--lead {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  padding: 26px;
  border-color: rgba(0, 0, 255, .18);
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 0, 255, .12), transparent 34%),
    linear-gradient(160deg, #f4f6ff 0%, #ffffff 48%, #eef2ff 100%);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item:hover {
  border-color: rgba(0, 0, 255, .35);
  box-shadow: 0 22px 44px rgba(0, 0, 255, .12);
  transform: translateY(-4px);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-primary, #0000ff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item h4 {
  margin: 0 0 8px;
  color: #0a2540;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item--lead h4 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item p {
  margin: 0;
  color: #536174;
  font-size: 13px;
  line-height: 1.7;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 78px;
  margin-top: 28px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #8f90ff, #0000ff);
  transform-origin: bottom center;
  animation: regrow-impact-bars 2.4s ease-in-out infinite;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span:nth-child(1) { height: 38%; animation-delay: 0s; }
#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span:nth-child(2) { height: 58%; animation-delay: .15s; }
#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span:nth-child(3) { height: 46%; animation-delay: .3s; }
#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span:nth-child(4) { height: 78%; animation-delay: .45s; }
#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span:nth-child(5) { height: 64%; animation-delay: .6s; }

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(105deg, #0000ff 0%, #1d1dff 40%, #0a2540 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 255, .22);
  color: #ffffff;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close-orb {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 68%);
  animation: regrow-impact-glow 5s ease-in-out infinite;
  pointer-events: none;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

#SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close-text {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.7;
}

@keyframes regrow-impact-glow {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes regrow-impact-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .65); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes regrow-impact-flow {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes regrow-impact-bars {
  0%, 100% { transform: scaleY(1); opacity: .85; }
  50% { transform: scaleY(1.18); opacity: 1; }
}

@media (max-width: 1100px) {
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-line {
    display: none;
  }
}

@media (max-width: 991px) {
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item,
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item--lead {
    grid-column: span 1;
    grid-row: auto;
    min-height: 0;
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento-item--lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage {
    padding: 22px 16px 18px;
    border-radius: 22px;
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__bento {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__stage-glow,
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__live span,
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__pipeline-line i,
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__spark span,
  #SingleCaseStudyRetro.case-study-healthcare .regrow-impact__close-orb {
    animation: none;
  }
}

/* Compact Live Operational Flow — keep nodes inside the rounded frame */
#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-pipeline {
  overflow: hidden;
  padding: 14px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-pipeline__header {
  padding-bottom: 10px;
  margin-bottom: 2px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow {
  display: grid;
  gap: 8px;
  padding: 10px 4px 4px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__primary {
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  gap: 4px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__node {
  min-height: 0;
  padding: 8px 6px 7px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(10, 37, 64, .05);
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__node:hover {
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 255, .12);
  transform: translateY(-2px);
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__node > i {
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  border-radius: 8px;
  font-size: 12px;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__node strong {
  font-size: 10px;
  line-height: 1.2;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__node small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.25;
}

#SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__connector {
  height: 2px;
}

@media (max-width: 767px) {
  #SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__primary {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__connector {
    width: 2px;
    height: 12px;
    margin: 0 auto;
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__connector::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    border-top: 5px solid #0000ff;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 0;
    transform: translateX(-50%);
  }

  #SingleCaseStudyRetro.case-study-healthcare .retro-workflow-liveflow__connector i {
    display: none;
  }
}
