/* Entropia is framed as a working fleet archive: cold station steel, route signals and a protective service role. */
.case-entropia {
  --case-primary: #85c7d6;
  --case-primary-rgb: 133, 199, 214;
  --case-primary-core: #d9f1f3;
  --case-primary-glow: #7695bb;
  --case-secondary: #7695bb;
  --case-secondary-rgb: 118, 149, 187;
}

.case-page.case-entropia {
  background:
    linear-gradient(90deg, rgba(133, 199, 214, 0.045) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(118, 149, 187, 0.034) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(circle at 16% 15%, rgba(133, 199, 214, 0.14), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(118, 149, 187, 0.12), transparent 23%),
    linear-gradient(180deg, rgba(8, 20, 33, 0.73), rgba(7, 10, 11, 0.96)),
    url("entropia-fleet-alliance/entropia-space-station-bg.png") center 42% / cover fixed;
}

.case-entropia .case-hero-content,
.case-entropia .case-service-map > article,
.case-entropia .case-role-grid > article {
  background:
    linear-gradient(145deg, rgba(16, 38, 55, 0.93), rgba(10, 18, 27, 0.98)),
    linear-gradient(90deg, rgba(133, 199, 214, 0.035), transparent 45%, rgba(118, 149, 187, 0.04));
}

.case-entropia .before-after-card.contain {
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 241, 243, 0.14), transparent 43%),
    #07131e;
  border-color: rgba(133, 199, 214, 0.44);
}

.case-entropia .before-after-card.contain img {
  padding: clamp(18px, 3vw, 36px);
}

.case-entropia .before-after-card:nth-child(2n) {
  border-color: rgba(118, 149, 187, 0.3);
}

.case-entropia .entropia-service-route {
  background:
    radial-gradient(circle at 15% 18%, rgba(133, 199, 214, 0.15), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(118, 149, 187, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(9, 29, 43, 0.93), rgba(7, 12, 20, 0.98));
}

.entropia-route-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 56px auto 0;
  max-width: 1220px;
}

.entropia-route-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 302px;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 32px);
  position: relative;
  text-decoration: none;
}

.entropia-route-card::before {
  border: 1px solid rgba(133, 199, 214, 0.43);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.entropia-route-card::after {
  background: linear-gradient(90deg, rgba(217, 241, 243, 0.88), transparent);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 0;
  width: 45%;
}

.entropia-route-service {
  background:
    linear-gradient(145deg, rgba(11, 48, 65, 0.96), rgba(7, 18, 28, 0.98)),
    repeating-linear-gradient(90deg, rgba(133, 199, 214, 0.05) 0 1px, transparent 1px 36px);
}

.entropia-route-bismarck {
  background:
    linear-gradient(145deg, rgba(21, 37, 66, 0.96), rgba(8, 15, 30, 0.98)),
    repeating-linear-gradient(90deg, rgba(118, 149, 187, 0.055) 0 1px, transparent 1px 36px);
}

.entropia-route-community {
  background:
    linear-gradient(145deg, rgba(22, 53, 58, 0.96), rgba(7, 17, 20, 0.98)),
    repeating-linear-gradient(90deg, rgba(217, 241, 243, 0.04) 0 1px, transparent 1px 36px);
}

.entropia-route-card h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  line-height: 1.08;
  margin: 20px 0 12px;
  max-width: 15ch;
}

.entropia-route-card p {
  color: var(--muted);
  margin: 0;
}

.entropia-route-action {
  color: var(--case-primary-core);
  font: 800 0.73rem/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 28px;
  text-transform: uppercase;
}

.entropia-route-action b {
  color: var(--case-primary);
  font-size: 1rem;
  margin-left: 8px;
}

.entropia-route-card:focus-visible {
  outline: 3px solid var(--case-primary-core);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .entropia-route-card:hover::before { border-color: var(--case-primary-core); }
  .entropia-route-card:hover .entropia-route-action { color: #fff; }
}

@media (max-width: 960px) {
  .entropia-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entropia-route-card:last-child {
    grid-column: span 2;
  }
}

.case-entropia .case-section:not(.band) {
  background-image: linear-gradient(90deg, rgba(133, 199, 214, 0.038) 1px, transparent 1px);
  background-size: 74px 100%;
}

@media (max-width: 640px) {
  .case-page.case-entropia {
    background-attachment: scroll;
  }

  .entropia-route-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .entropia-route-card,
  .entropia-route-card:last-child {
    grid-column: auto;
    min-height: 252px;
  }
}
