/* Core Pillar 4: Equity Growth Section */

#pillar-equity-growth {
  padding-top: 0rem;
}

/* Curtain effect - starts covering the video, slides up to reveal */
#pillar-equity-growth .video-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  /* Taller curtain for longer reveal */
  background: var(--color-black);
  z-index: 5;
  /* Above all overlays so the curtain is visible */
  /* Curtain starts down (covering video), will slide up */
  transform: translateY(0%);
  will-change: transform;
  /* Optimize for animation performance */
  pointer-events: none;
  /* Allow interaction with content underneath */
}

#pillar-equity-growth .pillar-video-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2rem;
}

#pillar-equity-growth .pillar-video-sticky::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
  pointer-events: none;
}

#pillar-equity-growth .pillar-overlay-content .pillar-title {
  font-size: var(--section-header-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin: 8rem auto 0;
  line-height: 1.2;
  max-width: 1000px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  /* Initial state for GSAP animation - completely hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px) scale(0.95);
}

#pillar-equity-growth .pillar-overlay-content .pillar-title .header-tag {
  text-align: center;
  padding-top: 3rem;
}

#pillar-equity-growth .pillar-overlay-content .pillar-subtitle {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 2rem auto 0;
  font-weight: 300;
  max-width: 1000px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#pillar-equity-growth .pillar-overlay-content {
  max-width: 750px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  text-align: left;
  height: 100%;
  min-height: min(100vh, 1200px);
}

#pillar-equity-growth .pillar-overlay-content .pillar-title {
  flex: 0 0 35%;
  text-align: left;
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

#pillar-equity-growth .pillar-overlay-content .pillar-title .header-tag {
  margin-bottom: 0;
  align-self: flex-start;
  text-align: left;
}

#pillar4-points {
  z-index: 2;
  position: relative;
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  gap: 0.4rem;
  text-align: left;
  margin: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin-top: 2rem;
}

#pillar-equity-growth .pillar-point {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  padding: 0;
  text-align: left;
  /* Initial state for GSAP animation - completely hidden, only vertical movement */
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px) scale(0.95);
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  min-width: 0;
  padding-top: 24px;
}

#pillar4-points .disclaimer {
  padding: 0 !important;
}

#pillar-equity-growth .point-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

#pillar-equity-growth .point-text {
  line-height: 2;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  min-width: 0;
}

#pillar-equity-growth.pillar-video-section {
  height: 1000px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  margin: 6rem auto 0;
}

#pillar-equity-growth .pillar-video-sticky {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pillar-equity-growth .pillar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
  pointer-events: none;
  filter: saturate(1.2) contrast(1.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

#pillar-equity-growth + .pillar-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 6rem auto 8rem;
  max-width: 500px;
  padding: 0 2rem;
  opacity: 1;
}

#pillar-equity-growth-caption {
  color: var(--color-accent-main);
  text-align: center;
  margin: 0;
  position: absolute;
  top: -13.5rem;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(40px) scale(0.95);
  z-index: 999;
}

#pillar-equity-growth + .pillar-content-container .pillar-content-row {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  width: 100%;
  margin: 0;
  padding: 2rem 0;
  align-items: flex-start;
  justify-content: center;
}

#pillar-equity-growth + .pillar-content-container .pillar-content-left {
  flex: 1.9;
}

#pillar-equity-growth + .pillar-content-container .pillar-content-right {
  flex: 1.1;
}

#pillar-equity-growth + .pillar-content-container .pillar-content-center {
  flex: 1;
  text-align: center;
  max-width: 600px;
}

#pillar-equity-growth + .pillar-content-container .pillar-content-left p,
#pillar-equity-growth + .pillar-content-container .pillar-content-right p,
#pillar-equity-growth + .pillar-content-container .pillar-content-center p {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
  /* Initial state for GSAP animation - completely hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.95);
}

@media (max-width: 900px) {
  #equity-growth-overlay {
    align-items: flex-start !important;
  }

  #pillar-equity-growth .pillar-overlay-content {
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    min-height: auto;
    height: auto;
    max-width: none;
    width: 400px;
    margin-top: -8rem;
  }

  #pillar-equity-growth .pillar-overlay-content .pillar-title {
    margin: 12rem 0 0 0;
    text-align: left;
    align-items: flex-start;
  }

  #pillar4-points {
    padding: 0;
    margin: 2rem 0 0 0;
    height: auto;
    justify-content: flex-start;
  }

  #pillar-equity-growth .pillar-point {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    transform: translateY(30px);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #pillar-equity-growth.pillar-video-section {
    height: 120vh;
    margin: 4rem auto 0;
    position: relative;
  }

  #pillar-equity-growth + .pillar-content-container {
    padding: 0 2rem;
    margin: 3rem auto 4rem;
  }

  #pillar-equity-growth + .pillar-content-container .pillar-content-row {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
  }

  #pillar-equity-growth + .pillar-content-container .pillar-content-left,
  #pillar-equity-growth + .pillar-content-container .pillar-content-right,
  #pillar-equity-growth + .pillar-content-container .pillar-content-center {
    flex: 1;
    text-align: center;
  }
}
