/* ═══════════════════════════════════════════════════════════════
   IMAGE STREAM HERO ("THE 3D CORRIDOR")
   Two rails of cards ride from far behind the screen toward viewer
   Pure container-query 3D perspective geometry (cqw units)
   ═══════════════════════════════════════════════════════════════ */

.image-stream-hero-section {
  position: relative;
  width: 100%;
  max-width: 1720px;
  margin: clamp(16px, 2.5vw, 32px) auto clamp(32px, 4.5vw, 56px);
  padding: 0 clamp(14px, 2.5vw, 40px);
  box-sizing: border-box;
  touch-action: pan-y !important;
}

.image-stream-container {
  position: relative;
  width: 100%;
  height: clamp(480px, 60vh, 680px);
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  container-type: inline-size;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(26, 29, 36, 0.95) 0%, rgba(12, 13, 16, 0.98) 70%, #08090C 100%);
  border: 1px solid rgba(197, 203, 211, 0.16);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.7),
    inset 0 0 80px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  isolation: isolate;
  touch-action: pan-y !important;
}

/* Subtle ambient noise / grid accent */
.image-stream-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(197, 203, 211, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(197, 203, 211, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 85%);
  z-index: 1;
}

/* 3D Perspective Stage */
.image-stream-stage {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 30cqw;
  perspective-origin: 50% 55%;
}

.image-stream-rail-box {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* Individual Card on the 3D Rails */
.ish-card {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 18cqw;
  height: 25cqw;
  margin-left: -9cqw;
  margin-top: -12.5cqw;
  border-radius: 0.6cqw;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(197, 203, 211, 0.12);
  background-color: #13151A;
  will-change: transform;
}

.ish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Center Content Overlay */
.image-stream-overlay {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5vh, 3.5rem) 1.5rem clamp(1.75rem, 4vh, 2.5rem);
  text-align: center;
  pointer-events: none;
}

.image-stream-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 780px;
}

.image-stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(18, 20, 26, 0.82);
  color: var(--silver-bright, #E2E6EC);
  border: 1px solid rgba(197, 203, 211, 0.26);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.image-stream-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E2E6EC;
  box-shadow: 0 0 8px rgba(226, 230, 236, 0.8);
  animation: ishPulse 2s ease-in-out infinite;
}

@keyframes ishPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.image-stream-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E6EC 35%, #A8B2C1 70%, #586070 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.7));
}

.image-stream-title span {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E6EC 35%, #A8B2C1 70%, #586070 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.image-stream-desc {
  max-width: 640px;
  font-family: var(--font-jakarta, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFE58F 0%, #D4AF37 50%, #EAB308 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9));
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .ish-card {
    animation-play-state: paused !important;
  }
}

@media (max-width: 768px) {
  .image-stream-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #12141A !important;
  }
}
