/* =====================================================
   PLATFORM ECOSYSTEM
   ===================================================== */

.ecosystem-section {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(238, 139, 54, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(74, 124, 89, 0.08), transparent 35%),
    linear-gradient(180deg, #171716 0%, #20211f 100%);
  color: var(--light-color);
  overflow: hidden;
}

.ecosystem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.08) 50%,
      rgba(0, 0, 0, 0.2) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.ecosystem-section .container {
  position: relative;
  z-index: 1;
}

/* =====================================================
   ECOSYSTEM HEADER
   ===================================================== */

.ecosystem-header {
  position: relative;
  max-width: 980px;
  margin: 0 auto 4rem;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  animation: ecosystemHeaderReveal 1s ease both;
}

.ecosystem-header::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 210, 122, 0.16) 0%,
    rgba(238, 139, 54, 0.08) 35%,
    transparent 72%
  );
  filter: blur(12px);
  z-index: -1;
  animation: ecosystemHeaderAura 5s ease-in-out infinite;
}

.ecosystem-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-55%);
  z-index: -1;
  animation: ecosystemHeaderSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* eyebrow */
.ecosystem-header .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;

  color: #ffd27a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 210, 122, 0.18);
  box-shadow: 0 0 20px rgba(255, 210, 122, 0.08);

  text-shadow: 0 0 14px rgba(255, 210, 122, 0.18);
  animation: ecosystemEyebrowPulse 3s ease-in-out infinite alternate;
}

/* title */
.ecosystem-header h2 {
  position: relative;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;

  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 210, 122, 0.08);

  animation: ecosystemTitleRise 1.15s ease both;
}

.ecosystem-header h2::before {
  content: "";
  position: absolute;
  inset: auto 0 -18px 0;
  margin: 0 auto;
  width: 150px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 210, 122, 1),
    rgba(238, 139, 54, 0.95),
    transparent
  );
  box-shadow:
    0 0 18px rgba(255, 210, 122, 0.24),
    0 0 28px rgba(238, 139, 54, 0.14);
  animation: ecosystemLinePulse 3s ease-in-out infinite;
}

.ecosystem-header h2::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 12%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow:
    0 0 10px rgba(255, 210, 122, 0.7),
    0 0 20px rgba(255, 210, 122, 0.35);
  animation: ecosystemStarTwinkle 2.8s ease-in-out infinite;
}

/* intro text */
.ecosystem-header .section-intro {
  max-width: 820px;
  margin: 2rem auto 0;
  font-size: 1.06rem;
  line-height: 1.9;
  color: rgba(240, 240, 240, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  animation: ecosystemIntroFade 1.35s ease both;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes ecosystemHeaderReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ecosystemHeaderAura {
  0%, 100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes ecosystemHeaderSweep {
  0% {
    transform: translateX(-55%);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  50% {
    transform: translateX(55%);
    opacity: 0.7;
  }
  100% {
    transform: translateX(70%);
    opacity: 0;
  }
}

@keyframes ecosystemEyebrowPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 210, 122, 0.06);
    transform: translateY(0);
  }
  100% {
    box-shadow: 0 0 22px rgba(255, 210, 122, 0.12);
    transform: translateY(-1px);
  }
}

@keyframes ecosystemTitleRise {
  from {
    opacity: 0;
    transform: translateY(26px);
    letter-spacing: -0.01em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.03em;
  }
}

@keyframes ecosystemLinePulse {
  0%, 100% {
    opacity: 0.82;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

@keyframes ecosystemIntroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ecosystemStarTwinkle {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
  .ecosystem-header {
    padding: 2rem 1.25rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 22px;
  }

  .ecosystem-header h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .ecosystem-header .section-intro {
    font-size: 0.98rem;
    line-height: 1.8;
    margin-top: 1.75rem;
  }

  .ecosystem-header h2::before {
    width: 110px;
  }

  .ecosystem-header h2::after {
    right: 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-header,
  .ecosystem-header::before,
  .ecosystem-header::after,
  .ecosystem-header .eyebrow,
  .ecosystem-header h2,
  .ecosystem-header h2::before,
  .ecosystem-header h2::after,
  .ecosystem-header .section-intro {
    animation: none !important;
  }
}

/* =====================================================
   GRID
   ===================================================== */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 3rem;
  align-items: stretch;
}

/* =====================================================
   CARD BASE
   ===================================================== */

.ecosystem-card {
  position: relative;
  min-height: 620px;
  height: 100%;
  padding: 32px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  background: #1d1d1d;
  border: 1px solid rgba(238, 139, 54, 0.14);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateZ(0);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  animation: ecosystemCardIn 0.8s ease both;
}

.ecosystem-card:nth-child(1) { animation-delay: 0.08s; }
.ecosystem-card:nth-child(2) { animation-delay: 0.18s; }
.ecosystem-card:nth-child(3) { animation-delay: 0.28s; }
.ecosystem-card:nth-child(4) { animation-delay: 0.38s; }

.ecosystem-card > * {
  position: relative;
  z-index: 3;
}

.ecosystem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 18%,
      rgba(0, 0, 0, 0.18) 32%,
      rgba(0, 0, 0, 0.42) 58%,
      rgba(0, 0, 0, 0.88) 100%
    );
  transition: background 0.35s ease;
}

.ecosystem-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -80px 120px rgba(0, 0, 0, 0.14);
  pointer-events: none;
}

/* animated border ring */
.ecosystem-card .card-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.ecosystem-card .card-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 180deg,
      transparent 0deg,
      rgba(238, 139, 54, 0.0) 40deg,
      rgba(238, 139, 54, 0.45) 105deg,
      rgba(255, 224, 160, 0.6) 140deg,
      rgba(238, 139, 54, 0.18) 180deg,
      transparent 260deg,
      transparent 360deg
    );
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: ecosystemBorderSpin 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.ecosystem-card:hover .card-border::before,
.ecosystem-card.featured-card .card-border::before {
  opacity: 1;
}

.ecosystem-card:hover {
  transform: translateY(-10px);
  border-color: rgba(238, 139, 54, 0.36);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.44),
    0 0 30px rgba(238, 139, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ecosystem-card:hover::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.01) 18%,
      rgba(0, 0, 0, 0.14) 32%,
      rgba(0, 0, 0, 0.36) 58%,
      rgba(0, 0, 0, 0.84) 100%
    );
}

.featured-card {
  border-color: rgba(238, 139, 54, 0.42);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(238, 139, 54, 0.08),
    0 0 28px rgba(238, 139, 54, 0.06);
}

.featured-card:hover {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(238, 139, 54, 0.14),
    0 0 38px rgba(238, 139, 54, 0.08);
}

/* =====================================================
   VIDEO BACKGROUND
   ===================================================== */

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.9) saturate(1.02);
  transform: scale(1.02);
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.card-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.16) 24%,
      rgba(0, 0, 0, 0.42) 52%,
      rgba(0, 0, 0, 0.88) 100%
    );
  transition: background 0.35s ease;
}

.ecosystem-card:hover .card-video {
  transform: scale(1.07) translate3d(0, -4px, 0);
  filter: brightness(0.98) saturate(1.08);
}

.ecosystem-card:hover .card-video-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.12) 24%,
      rgba(0, 0, 0, 0.36) 52%,
      rgba(0, 0, 0, 0.84) 100%
    );
}

/* =====================================================
   TOP GLOW / MOVING LIGHT
   ===================================================== */

.card-top-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.18) 0%, transparent 70%);
  filter: blur(14px);
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation: ecosystemGlowFloat 5s ease-in-out infinite;
}

.ecosystem-card:hover .card-top-glow {
  transform: translateX(-50%) scale(1.08);
  opacity: 1;
}

.card-light-sweep {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 255, 255, 0.08) 50%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-35%) rotate(10deg);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ecosystem-card:hover .card-light-sweep {
  opacity: 1;
  animation: ecosystemSweep 1.8s ease;
}

/* =====================================================
   PROJECT ICON
   ===================================================== */

.project-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 20px;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  animation: ecosystemIconFloat 4.2s ease-in-out infinite;
}

.ecosystem-card:hover .project-icon {
  transform: translateY(-4px) scale(1.04) rotate(-2deg);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(238, 139, 54, 0.12);
}

.project-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

/* =====================================================
   HEADINGS / TEXT
   ===================================================== */

.ecosystem-card h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.ecosystem-card h3::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary-color), transparent);
  opacity: 0.9;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.ecosystem-card:hover h3 {
  color: #ffd27a;
  transform: translateY(-2px);
  text-shadow:
    0 3px 16px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(255, 210, 122, 0.12);
}

.ecosystem-card:hover h3::after {
  width: 86px;
  opacity: 1;
}

.project-subtitle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  color: #ffd27a;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.ecosystem-card:hover .project-subtitle {
  transform: translateX(2px);
  color: #fff0be;
  background: rgba(255, 255, 255, 0.09);
}

.project-description {
  color: rgba(240, 240, 240, 0.92);
  line-height: 1.82;
  font-size: 1rem;
  margin-bottom: 1.15rem;
  max-width: 60ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.ecosystem-card:hover .project-description {
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.98);
}

/* =====================================================
   FEATURES
   ===================================================== */

.project-features {
  margin: 1.1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.project-features li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.75rem;
  color: rgba(240, 240, 240, 0.9);
  line-height: 1.65;
  font-size: 0.98rem;
  transition:
    transform 0.28s ease,
    color 0.28s ease;
}

.project-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.45;
  text-shadow: 0 0 12px rgba(238, 139, 54, 0.25);
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    text-shadow 0.28s ease;
}

.ecosystem-card:hover .project-features li {
  color: #ffffff;
}

.ecosystem-card:hover .project-features li:hover {
  transform: translateX(6px);
}

.ecosystem-card:hover .project-features li:hover::before {
  transform: scale(1.15);
  color: #ffd27a;
  text-shadow: 0 0 16px rgba(255, 210, 122, 0.38);
}

/* =====================================================
   LINK
   ===================================================== */

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  font-weight: 700;
  color: #ffd27a;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
  transition: all var(--transition-speed);
}

.project-link:hover {
  color: var(--light-color);
  transform: translateX(6px);
}

/* =====================================================
   VIDEO TUNING / PER-CARD COLORS
   ===================================================== */

.card-amp .card-video {
  object-position: center center;
}

.card-ikeverse .card-video {
  object-position: center center;
}

.card-history .card-video {
  object-position: center center;
}

.card-nalulf .card-video {
  object-position: center center;
}

.card-amp .card-video-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(35, 18, 8, 0.06) 0%,
      rgba(26, 14, 8, 0.18) 24%,
      rgba(14, 10, 8, 0.44) 52%,
      rgba(8, 7, 6, 0.88) 100%
    );
}

.card-ikeverse .card-video-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(18, 14, 38, 0.05) 0%,
      rgba(12, 12, 32, 0.14) 24%,
      rgba(10, 12, 22, 0.4) 52%,
      rgba(6, 8, 18, 0.88) 100%
    );
}

.card-history .card-video-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(44, 30, 14, 0.06) 0%,
      rgba(26, 20, 12, 0.18) 24%,
      rgba(16, 12, 8, 0.44) 52%,
      rgba(10, 8, 6, 0.9) 100%
    );
}

.card-nalulf .card-video-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.06) 0%,
      rgba(8, 18, 28, 0.16) 24%,
      rgba(6, 12, 18, 0.42) 52%,
      rgba(4, 8, 14, 0.9) 100%
    );
}

/* optional glow tones */
.card-amp .card-top-glow {
  background: radial-gradient(circle, rgba(255, 170, 90, 0.18) 0%, transparent 70%);
}

.card-ikeverse .card-top-glow {
  background: radial-gradient(circle, rgba(138, 110, 255, 0.18) 0%, transparent 70%);
}

.card-history .card-top-glow {
  background: radial-gradient(circle, rgba(120, 200, 255, 0.16) 0%, transparent 70%);
}

.card-nalulf .card-top-glow {
  background: radial-gradient(circle, rgba(84, 209, 255, 0.18) 0%, transparent 70%);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes ecosystemFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ecosystemTitleRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ecosystemLinePulse {
  0%, 100% {
    opacity: 0.8;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

@keyframes ecosystemGlowText {
  0% {
    text-shadow: 0 0 8px rgba(255, 210, 122, 0.18);
  }
  100% {
    text-shadow: 0 0 16px rgba(255, 210, 122, 0.3);
  }
}

@keyframes ecosystemCardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ecosystemBorderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ecosystemSweep {
  0% {
    transform: translateX(-36%) rotate(10deg);
  }
  100% {
    transform: translateX(36%) rotate(10deg);
  }
}

@keyframes ecosystemGlowFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes ecosystemIconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 992px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-card {
    min-height: 540px;
  }
}

@media (max-width: 768px) {
  .ecosystem-card {
    min-height: 500px;
    padding: 24px;
  }

  .project-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }

  .ecosystem-card h3 {
    font-size: 1.55rem;
  }

  .project-description {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-header,
  .ecosystem-card,
  .card-top-glow,
  .project-icon,
  .ecosystem-header .eyebrow,
  .ecosystem-header h2,
  .ecosystem-header .section-intro,
  .card-light-sweep,
  .ecosystem-card .card-border::before {
    animation: none !important;
  }

  .ecosystem-card,
  .card-video,
  .project-icon,
  .project-subtitle,
  .project-description,
  .project-features li,
  .project-link,
  .ecosystem-card h3 {
    transition: none !important;
  }
}
.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.9) saturate(1.02);
  transform: scale(1.02);
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.ecosystem-card:hover .card-image,
.amp-slide:hover .card-image {
  transform: scale(1.05);
  filter: brightness(0.98) saturate(1.06);
}

.amp-slide {
  position: relative;
  overflow: hidden;
}

.amp-slide-body {
  position: relative;
  z-index: 3;
}

/* AMP slide click-through fixes */
.amp-slide .card-image,
.amp-slide .card-video,
.amp-slide .card-video-overlay,
.amp-slide .card-top-glow {
  pointer-events: none;
}

.amp-slide {
  position: relative;
}

.amp-slide-body {
  position: relative;
  z-index: 5;
}

.amp-slide-body .project-link {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}