/* TraceBuild motion hero: ElevenLabs atmosphere behind authentic product pixels. */
.hero-film { --hero-scene-duration: 5.4s; }
.hero-film-stage { position: relative; isolation: isolate; padding: 64px 28px 70px; overflow: clip; border: 1px solid #2b4753; border-radius: 16px; background: #0b1118; box-shadow: 0 32px 80px #0005, inset 0 1px 0 #86cbd71c; }
.hero-film-ambient { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .66; pointer-events: none; }
.hero-film-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg,#0b111822,#0b111800 35%,#0b1118bb), radial-gradient(ellipse at center,#0b111800 45%,#0b111855); }
.hero-film-halo { position: absolute; inset: -20%; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 76% 28%,#176c6c60,transparent 44%),radial-gradient(ellipse at 20% 85%,#144c733d,transparent 48%); }
.hero-film-topline { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; align-items: center; gap: 9px; color: #b0c7d2; font: .59rem "Mono",monospace; letter-spacing: .12em; }
.hero-film-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #43d8b1; box-shadow: 0 0 12px #43d8b166; flex: 0 0 auto; }
.hero-film-mode { margin-left: auto; color: #6d939f; font-size: .5rem; letter-spacing: .08em; }
.hero-film-screens { position: relative; aspect-ratio: 8 / 5; border: 1px solid #64839275; border-radius: 5px; background: #171b22; box-shadow: 0 18px 40px #0008,0 0 32px #1e8b9940; }
.hero-film-screen { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.985); transition: opacity .7s ease, transform 1.1s cubic-bezier(.22,1,.36,1), visibility 0s .7s; pointer-events: none; }
.hero-film-screen.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; pointer-events: auto; z-index: 1; }
.hero-film-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-film-screen:focus-visible { outline-offset: 5px; }
.hero-film-bottomline { position: absolute; bottom: 23px; left: 28px; right: 28px; display: flex; align-items: center; gap: 12px; min-height: 25px; color: #e1edf0; font: 700 .78rem "Plex",sans-serif; }
.hero-film-step { color: #77a8b1; font: .57rem "Mono",monospace; letter-spacing: .08em; }
.hero-film-toggle { display: grid; place-items: center; margin-left: auto; width: 30px; height: 30px; border: 1px solid #4b75816b; border-radius: 50%; background: #18334066; color: #bad6de; cursor: pointer; }
.hero-film-toggle[hidden] { display: none; }
.hero-film-toggle:hover { border-color: #81bfc7; background: #24485899; }
.hero-film-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-film-toggle .hero-film-play-icon { display: none; }
.hero-film.is-paused .hero-film-pause-icon { display: none; }
.hero-film.is-paused .hero-film-play-icon { display: block; }
.hero-film-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-top: 19px; }
.hero-film-controls button { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 0 15px; border: 0; background: transparent; color: #8499a8; text-align: left; font: 700 .69rem "Plex",sans-serif; cursor: pointer; }
.hero-film-controls button:hover, .hero-film-controls button.is-active { color: #e3eff1; }
.hero-film-control-number { font: .55rem "Mono",monospace; color: #5c8a97; }
.hero-film-control-track { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; overflow: hidden; border-radius: 2px; background: #233641; }
.hero-film-control-track::after { content: ""; display: block; height: 100%; width: 100%; background: linear-gradient(90deg,#4b8ef0,#43d8b1); transform: scaleX(0); transform-origin: left; }
.hero-film-controls .is-active .hero-film-control-track::after { transform: scaleX(1); }
.hero-film.is-playing .hero-film-controls .is-active .hero-film-control-track::after { animation: hero-film-progress var(--hero-scene-duration) linear both; }
.hero-film figcaption { color: #8aa1ad; font-size: .66rem; }
@keyframes hero-film-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) {
  .hero-film-stage { padding: 46px 13px 54px; border-radius: 11px; }
  .hero-film-topline { top: 18px; left: 14px; right: 14px; font-size: .51rem; }
  .hero-film-mode { display: none; }
  .hero-film-bottomline { left: 14px; right: 14px; bottom: 13px; gap: 9px; font-size: .7rem; }
  .hero-film-step { font-size: .49rem; }
  .hero-film-controls { gap: 10px; margin-top: 15px; }
  .hero-film-controls button { font-size: .61rem; gap: 5px; align-items: baseline; }
  .hero-film-control-number { display: none; }
  .hero-film figcaption { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-film-screen { transition: none; transform: none; }
  .hero-film-ambient { display: none; }
  .hero-film-control-track::after { animation: none !important; }
}
