/* ---------- hero library scene ----------
   Container styles for the REAL clip (Lux library scene,
   Tenor post 18978239, 498x278, aspect 1.7914) now SELF-HOSTED as
   hero-library.mp4 (the video version of the same Tenor post,
   640x358) in a <video autoplay loop muted playsinline> element.
   The Tenor JS embed was dropped: on the live site its iframe
   rendered blank in the device browser, and the scene sat buried
   below the stat-grid. A <video> has no third-party JS dependency
   and plays from our own server. A static first-frame poster
   (hero-gif-poster.webp) is the video's poster attribute and shows
   instead when the visitor asked for reduced motion. Palette
   matches the site: muted dark blues, gold #d9b36a accents, card
   radius var(--radius) = 14px. */

.hero-scene {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 20px;
  aspect-ratio: 498 / 278;       /* the real GIF's own aspect ratio */
  max-height: 430px;             /* never pushes the calculator far down */
  border-radius: var(--radius, 14px);
  overflow: hidden;
  border: 1px solid var(--line, #1d3a5c);
  background: #060d1f;           /* fallback while the GIF loads */
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45);
}

.hero-scene video.hero-library-img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
}

/* static poster: hidden unless reduced motion is on (see below) */
.hero-scene .hero-poster {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* soft vignette + gold hairline, sits above the artwork, below nothing */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(2, 6, 15, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .18);
}

/* keep it compact on phones so the calculator stays near the top */
@media (max-width: 640px) {
  .hero-scene {
    max-height: 200px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
}

/* short landscape screens: cap height so the scene never dominates */
@media (max-height: 560px) {
  .hero-scene {
    max-height: 160px;
  }
}

/* reduced motion: hide the video and show the static
   first-frame poster instead. build-c02.js also pauses the video
   so it does not keep playing in the background. */
@media (prefers-reduced-motion: reduce) {
  .hero-scene video.hero-library-img {
    display: none !important;
  }
  .hero-scene .hero-poster {
    display: block !important;
    animation: none !important;
  }
}
