/* Grok Imagine polish — preview only, 12 Nov 2026. Does not change layout of existing cards. */

.hero { isolation: isolate; background: #06122a url(/assets/mood/hero-studio.jpg) center/cover no-repeat !important; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media picture,
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,18,42,.90) 0%, rgba(6,18,42,.78) 34%, rgba(6,18,42,.48) 58%, rgba(6,18,42,.32) 100%),
    linear-gradient(180deg, rgba(6,18,42,.16) 0%, rgba(6,18,42,.28) 100%);
}

.hero::before { z-index: 0; }
.hero .shell.hero-grid { position: relative; z-index: 1; }

.hero h1,
.hero .hero-lede {
  text-shadow: 0 2px 24px rgba(6,18,42,.45);
}

@keyframes gp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gp-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-video { animation: gp-fade 1.2s ease both; }

/* Mood band — visual only, after the trust strip */
.gp-mood {
  background: #f4f8f9;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border-top: 1px solid rgba(8,39,101,.08);
  border-bottom: 1px solid rgba(8,39,101,.08);
}

.gp-feature {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111 url(/assets/mood/feature-owner.jpg) center/cover no-repeat;
  box-shadow: 0 1px 2px rgba(8,39,101,.04), 0 18px 48px rgba(8,39,101,.10);
}

.gp-feature-poster,
.gp-feature-poster img,
.feature-video {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.gp-feature-poster {
  position: absolute;
  inset: 0;
}

.feature-video {
  position: relative;
  z-index: 1;
  animation: gp-fade 1.2s ease both;
}

.gp-stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.gp-still {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef2;
  box-shadow: 0 1px 2px rgba(8,39,101,.04), 0 12px 32px rgba(8,39,101,.08);
}

.gp-parallax { will-change: transform; height: 100%; }

.gp-still picture,
.gp-still img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
  transform-origin: center center;
}

.gp-mood-caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #566781;
  max-width: 46rem;
}

.mood-reveal { animation: gp-fade-up 0.9s ease both; }
.gp-stills .gp-still:nth-child(2) { animation-delay: .12s; }

footer { content-visibility: visible !important; contain-intrinsic-size: none !important; }

.gp-ai-note {
  margin: 0;
  padding: 0 5% 1.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(238,248,248,.62);
  max-width: none;
}

@media (max-width: 760px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,18,42,.82) 0%, rgba(6,18,42,.62) 38%, rgba(6,18,42,.78) 100%);
  }
  .hero-media picture,
  .hero-poster,
  .hero-video { object-position: 68% 50%; }
  .gp-stills { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .feature-video { display: none; }
  .gp-feature { aspect-ratio: 16/9; }
  .hero-video,
  .feature-video,
  .mood-reveal {
    animation: none !important;
  }
  .gp-parallax { transform: none !important; }
}
