/* About section modern scroll reveal (fade/slide/blur/clip) */
/* Initial state for the about container and cards */
#about {
  --about-card-offset: 22px;
  --about-blur: 8px;
  --about-duration: 700ms;
  --about-ease: cubic-bezier(.2,.9,.25,1);
  position: relative;
  overflow: visible;
}

/* container-level subtle overlay (optional, soft) */
#about::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--about-ease);
}

/* target the card list and make cards animatable */
#about .card-team {
  opacity: 0;
  transform: translateY(var(--about-card-offset)) scale(.985);
  filter: blur(var(--about-blur));
  clip-path: inset(12% 0 12% 0); /* reveals from center out */
  transition:
    transform var(--about-duration) var(--about-ease),
    opacity var(--about-duration) var(--about-ease),
    filter var(--about-duration) var(--about-ease),
    clip-path var(--about-duration) var(--about-ease);
  will-change: transform, opacity, filter, clip-path;
  transform-origin: center;
}

/* When about is in view, reveal cards. We use nth-child to stagger. */
#about.about-in-view .card-team {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

/* Stagger delays (3 cards typical; safe for more) */
#about.about-in-view .card-team:nth-child(1) { transition-delay: 80ms; }
#about.about-in-view .card-team:nth-child(2) { transition-delay: 160ms; }
#about.about-in-view .card-team:nth-child(3) { transition-delay: 240ms; }
#about.about-in-view .card-team:nth-child(4) { transition-delay: 320ms; }

/* When leaving view, add a quick fade-out so it feels like fade out */
#about:not(.about-in-view) .card-team {
  transition-duration: 420ms;
}

/* micro-lift on hover while visible */
#about.about-in-view .card-team:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 36px 80px rgba(2,6,23,0.08);
}

/* optional: small accent when in view (make background tint visible) */
#about.about-in-view::after {
  opacity: 1;
  background: linear-gradient(180deg, rgba(37,99,235,0.02), rgba(239,68,68,0.00));
}

/* Accessibility: respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
  #about .card-team {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  #about::after { display:none; }
}

/* ===== process section styles & reveal (paste at end of home-about.css) ===== */
#process { background: transparent; }

/* process card */
.process-card {
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 18px 42px rgba(2,6,23,0.06);
  border: 1px solid rgba(2,6,23,0.04);
  transition:
    transform 560ms cubic-bezier(.2,.9,.25,1),
    opacity 560ms cubic-bezier(.2,.9,.25,1),
    box-shadow 360ms ease;
  transform: translateY(20px) scale(.997);
  opacity: 0;
  will-change: transform, opacity;
  position: relative;
  overflow: visible;
}

/* reveal - shown state */
.process-card.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* honor inline --delay custom property if present */
.process-card {
  transition-delay: var(--delay, 0ms);
}

/* step badge (left/top accent) */
.step-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#e6fffa,#ecfdf5); /* soft green */
  color: #065f46;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(6,95,70,0.06);
}

/* small decorative accent under headline inside card (optional) */
.process-card h4 { margin-top: .5rem; margin-bottom: .3rem; color: #0f172a; }
.process-card p { color: #475569; font-size: .94rem; }

/* small hover lift while visible */
.process-card.is-visible:hover {
  transform: translateY(-8px) scale(1.003);
  box-shadow: 0 36px 80px rgba(2,6,23,0.08);
}

/* responsive tweak */
@media (max-width:640px) {
  .process-card { padding: 1rem; }
  .step-badge { width: 36px; height: 24px; font-size: .85rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .process-card, .process-card.is-visible { transition: none !important; transform: none !important; opacity: 1 !important; }
}
