.ecosystem-section-container {
  background-color: #0b1120;
  position: relative;
  width: 100%;
  padding: 0;
}

/* Stack containers — layout cards + spacers in normal flow */
.ecosystem-sticky-group,
.ecosystem-static-group {
  position: relative;
  width: 100%;
}


/* ─── Sticky anchor ───────────────────────────────────────────
   height: 0  →  never "falls out" of its own sticky range.
   overflow: visible → lets the absolute card-inner paint outside.
   ──────────────────────────────────────────────────────────── */
.ecosystem-card {
  position: sticky;
  height: 0;
  overflow: visible;
  width: 100%;
}

/* ─── Visual card (absolutely positioned inside sticky anchor) ─ */
.card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Adjust height for subsequent cards to fit viewport properly when stuck lower */
.ecosystem-card:not(.card-1):not(.non-sticky-card) .card-inner {
  height: calc(100vh - 190px - 80px);
}

.non-sticky-card {
  position: relative;
  height: 100vh;
  width: 100%;
  z-index: 20;
}

.non-sticky-card .card-inner {
  position: relative;
  height: 100vh;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}



/* ─── Spacer — adds scroll distance without ending sticky ───── *//* ─── Card 1: Hero layout ─────────────────────────────── */
.card-inner-hero {
  flex-direction: column;
}

.card-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 60px 30px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background-color: #000;
}

.card-hero-label {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.hero-label-text {
  color: var(--lpu-orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-label-line {
  width: 50px;
  height: 3px;
  background: var(--lpu-orange);
  border-radius: 2px;
}

.card-hero-tagline {
  flex: 1;
}

.card-hero-tagline h2 {
  color: white;
  font-size: 2.5rem; /* Slightly larger for impact */
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  max-width: 900px;
}

.card-hero-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 190px); /* Fill remaining height below header */
}

.card-hero-story {
  flex: 0 0 30%; /* Narrower content like screenshot */
  padding: 60px 40px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #000;
}

.card-hero-story .card-label {
  font-size: 14px;
  margin-bottom: 12px;
}

.card-hero-story h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.card-hero-story p {
  color: #999;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.card-hero-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.card-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.card-hero-image .image-vignette {
  background: linear-gradient(to right, #000 0%, transparent 15%);
}

/* Standard spacer height since 5th card provides natural flow */
.card-spacer {
  height: 100vh; /* Scroll time per card */
  pointer-events: none;
}


/* Clearance barrier — significantly reduced since 5th card provides natural flow */
.ecosystem-clearance {
  height: 20vh;
  pointer-events: none;
}

/* ─── Content ─────────────────────────────────────────────── */
.card-content {
  flex: 1;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #000;
}

.card-meta {
  color: #555;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card-label {
  color: var(--lpu-orange);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  display: block;
}

.card-content h2 {
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.1;
}

.card-content p {
  color: #999;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.btn-explore {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--lpu-orange);
  padding-bottom: 5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-explore span {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.btn-explore:hover {
  color: var(--lpu-orange);
}

.btn-explore:hover span {
  transform: translateX(10px);
}

/* ─── Image ────────────────────────────────────────────────── */
.card-image-box {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.image-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #000 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.4) 100%);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .ecosystem-card {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .ecosystem-sticky-group,
  .ecosystem-static-group {
    overflow: visible;
  }

  .card-inner {
    position: relative !important;
    height: auto !important;
    flex-direction: column;
  }

  .card-content {
    padding: 40px;
  }

  .card-image-box {
    height: 300px;
    flex: none;
    width: 100%;
  }

  .card-content h2 {
    font-size: 2rem;
  }

  .card-spacer {
    display: none;
  }

  .non-sticky-card {
    height: auto;
  }

  .non-sticky-card .card-inner {
    height: auto;
  }

  .card-inner-hero {
    flex-direction: column;
  }

  .card-hero-header {
    padding: 30px 20px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .card-hero-tagline h2 {
    font-size: 1.6rem;
  }

  .card-hero-body {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .card-hero-story {
    flex: none;
    padding: 30px 20px;
  }

  .card-hero-image {
    height: 250px;
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .card-content {
    padding: 25px 20px;
  }

  .card-content h2 {
    font-size: 1.6rem;
  }

  .card-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .card-image-box {
    height: 220px;
  }

  .card-hero-tagline h2 {
    font-size: 1.3rem;
  }

  .card-hero-image {
    height: 200px;
  }

  .ecosystem-clearance {
    height: 5vh;
  }
}
