/* NARJIS 2026 — Voice wave design, original non-3D on site.
   Existing Web Speech and xAI/WebSocket backends remain unchanged.
   No music/audio is generated by this visual layer. */
:root { --voice-ink:#1a1a1a; --voice-white:#f6eefb; --voice-accent:#6d5cae; }
body {background:#f6eefb}
.logo-mark {object-fit:contain;border-radius:6px}
main {padding-top:28px}
.video.voice-stage {
  width:min(90vw,640px); height:auto; min-height:0; order:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  padding:22px 18px 16px; margin:0 auto 18px;
  border:1px solid rgba(255,255,255,.9); border-radius:24px;
  background:rgba(255,255,255,.62);
  box-shadow:0 18px 50px rgba(70,50,110,.08);
  overflow:hidden;
}
.voice-stage-caption {
  margin: 0;
  font-family: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .08em;
  color: #6a6278;
}
.voice-stage-eyebrow,.voice-stage-sub {
  font-family:"IBM Plex Sans",system-ui,sans-serif;
  font-size:11px;letter-spacing:.24em;font-weight:500;color:#6d657c;
}
.voice-orb {width:min(380px,84vw);height:auto;aspect-ratio:1;margin:0 auto 2px;position:relative}
.voice-orb canvas {width:100%;height:100%;display:block;
  -webkit-mask-image:radial-gradient(closest-side,#fff 78%,rgba(255,255,255,0) 100%);
  mask-image:radial-gradient(closest-side,#fff 78%,rgba(255,255,255,0) 100%)}
.voice-diamond { width:min(148px,34vw); height:auto; display:block; margin:0 auto 6px; }
.voice-stage-wordmark {
  font:300 clamp(40px,6vw,72px)/1.15 "IBM Plex Sans Arabic","Segoe UI",sans-serif;
  letter-spacing:-.04em;color:#1a1a1a;
  text-shadow:none;
  transform:translateZ(0);
}
.voice-stage-ribbon {
  display:flex;align-items:center;justify-content:center;gap:clamp(2px,.43vw,5px);
  height:64px;margin:0 0 10px;max-width:100%;
}
.voice-stage-ribbon i {
  display:block;width:clamp(2px,.44vw,4px);
  height:var(--ng-wave-height,20px);max-height:60px;
  border-radius:9px;background:#8a78c8;opacity:.78;
  transform:scaleY(.35);transform-origin:center;
  box-shadow:none;
  animation:ng-voice-flow 2.6s ease-in-out infinite;
  animation-delay:calc(var(--ng-wave-index,0) * -47ms);
}
#vid.listen .voice-stage-ribbon i {
  animation-duration:1.1s;opacity:1;box-shadow:none;
}
#vid.talk .voice-stage-ribbon i {
  animation-duration:.45s;opacity:1;box-shadow:none;
}
#vid.think .voice-stage-ribbon i {animation-duration:2s}
#vid.listen,#vid.talk,#vid.think {filter:none;animation:none}
#vid.talk .voice-stage-wordmark {text-shadow:none}
@keyframes ng-voice-flow {
  0%,100% {transform:scaleY(.33)}
  35%{transform:scaleY(1)}
  65%{transform:scaleY(.53)}
}
@media(max-width:720px) {
  .video.voice-stage {width:calc(100vw - 28px);height:auto;gap:4px;padding:16px 14px 12px;margin-bottom:12px}
  .voice-stage-ribbon {height:48px;margin-bottom:0}
  .voice-stage-ribbon i {width:3px}
  .voice-orb {width:min(330px,88vw)}
}
@media(prefers-reduced-motion:reduce) {
  .voice-stage-ribbon i {animation:none!important;transform:scaleY(.7)!important}
  .voice-stage-wordmark {transition:none!important}
}
