/* hero-live.css — positiveaiart.com's own hero stylesheet (2026-11-23), derived from the KD hero CSS
   (Projects/Internal/2026-10-26-Hero-Live-Backgrounds/hero-live.css): the same structure, the scrim and the colours
   in the ember palette (rgb 18 8 6 instead of 6 10 18, --live-* instead of --kd-blue-*), and no 404 rules.
   Everything is scoped to .has-live-bg, which the core sets only once WebGL2 is running. */

[data-live-bg] { position: relative; overflow: hidden; }
.has-live-bg > .hero-bg { position: absolute; inset: 0; z-index: 0; }
.has-live-bg > .hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.has-live-bg > :not(.hero-bg):not(.hero-scrim):not(.hero-scenes-bar) { position: relative; z-index: 2; }

.hero-canvas { position: absolute; left: 0; top: -40px; z-index: 0; width: 100%; height: calc(100% + 80px); display: block; will-change: transform; opacity: 0; transition: opacity 1.2s ease; }
.has-live-bg .hero-canvas { opacity: 1; }
.hero-scenes-bar[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-canvas { transition: none; } }

.has-live-bg { touch-action: pan-y; cursor: pointer; }
.has-live-bg a, .has-live-bg button { cursor: pointer; }

/* Darkest behind the text column (left on wide screens) and where the hero meets the page. */
.has-live-bg .hero-scrim {
  background:
    radial-gradient(ellipse 42% 55% at 26% 52%, rgba(18, 8, 6, 0.55) 0%, rgba(18, 8, 6, 0.25) 70%, rgba(18, 8, 6, 0) 100%),
    linear-gradient(180deg, rgba(18, 8, 6, 0) 0%, rgba(18, 8, 6, 0) 70%, var(--color-bg) 100%);
}
.has-live-bg h1, .has-live-bg .tagline, .has-live-bg .proof { text-shadow: 0 1px 18px rgba(18, 8, 6, 0.9); }
@media (max-width: 899px) {
  .has-live-bg .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 8, 6, 0) 0%, rgba(18, 8, 6, 0) 38%, rgba(18, 8, 6, 0.55) 60%, var(--color-bg) 100%);
  }
}

/* The pause button and the read-out: bottom of the hero, small, above the scrim. */
.hero-scenes-bar { position: absolute; z-index: 3; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: max-content; max-width: calc(100% - 2rem); }
.hero-scenes { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: rgba(30, 14, 10, 0.9); border: 1px solid var(--color-border); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-scenes button { font: 500 0.78rem/1 var(--font-body); color: var(--color-text-muted); background: transparent; border: 0; border-radius: var(--radius-pill); padding: 0.5rem 0.85rem; white-space: nowrap; }
.hero-scenes button[aria-pressed="true"] { color: var(--color-heading); background: var(--live-deep); }
.hero-scenes button:focus-visible { outline: 2px solid var(--live-light); outline-offset: 2px; }
.hero-scenes-hint, .hero-scenes-note { font: 400 0.7rem/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--color-text-muted); text-align: center; text-shadow: 0 1px 6px rgba(18, 8, 6, 0.9); }
.hero-scenes-note { color: var(--live-light); }
.hero-scenes-status { font: 400 0.7rem/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--color-text); text-align: center; text-shadow: 0 1px 6px rgba(18, 8, 6, 0.9); font-variant-numeric: tabular-nums; }
.hero-scenes-status:empty { display: none; }

.has-live-bg { padding-bottom: 6.5rem; }

.hero-scenes .hero-scenes-pause { min-width: 2.4rem; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.hero-scenes-pause::before { content: ""; display: block; }
.hero-scenes-pause[data-state="pause"]::before { width: 3px; height: 10px; margin-right: 5px; background: currentColor; box-shadow: 5px 0 0 currentColor; }
.hero-scenes-pause[data-state="play"]::before { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.hero-scenes .hero-scenes-pause:first-child { margin-left: 0; border-left: 0; border-radius: var(--radius-pill); }
.hero-scenes:empty { display: none; }

/* Without WebGL2 the logo stands where the heart would form; with the scene it is the heart. */
.has-live-bg .hero-logo { visibility: hidden; }
