/* Page-header background imagery: the FULL composition, right-anchored and faded —
   never a cover-crop of a human/entity figure (no floating heads/torsos). */
.feature-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  opacity: 1; /* full brightness — fading is only for under-text legibility */
  pointer-events: none;
  -webkit-mask-image: radial-gradient(110% 100% at 85% 52%, #000 55%, transparent 98%);
  mask-image: radial-gradient(110% 100% at 85% 52%, #000 55%, transparent 98%);
}

.feature-hero-media picture,
.feature-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-hero-media img {
  object-fit: contain;           /* whole image visible — context intact */
  object-position: right center;
}

.feature-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darkness lives only where lettering can reach — the figure stays full brightness */
  background:
    linear-gradient(90deg, var(--bg-secondary) 0%, rgba(17, 24, 39, 0.8) 22%, rgba(17, 24, 39, 0) 52%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.45) 0%, rgba(17, 24, 39, 0) 16%, rgba(17, 24, 39, 0) 84%, var(--bg-secondary) 100%);
  pointer-events: none;
}

.feature-hero .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .feature-hero-media {
    width: 100%;
    opacity: 0.22;
  }
}

.section-image {
  display: block;
  max-width: 100%;
}

.section-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition);
}

.section-image:hover img {
  box-shadow: var(--shadow-glow);
}

.deck-image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

.deck-image-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
}

.deck-image-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .page-hero-band {
    height: clamp(200px, 34vw, 260px);
  }

  .deck-image-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .page-hero-band {
    height: 160px;
  }
}
