/* Neural Talk "Talk to me" agent: shared by home hero and /talk-demo/ */
.ta-stage{position:relative;aspect-ratio:1/1;width:100%;overflow:hidden;border-radius:28px;background:#060102;isolation:isolate}
.ta-stage .ta-idle-media{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;object-position:50% 50%;border-radius:0;box-shadow:none}
.ta-stage .ta-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;transition:opacity .26s ease;pointer-events:none;display:block}
.ta-stage .ta-trans{z-index:1}.ta-stage .ta-rev{z-index:2}.ta-stage .ta-face{z-index:3}
.ta-stage[data-state=to-transition] .ta-trans,.ta-stage[data-state=transition] .ta-trans,.ta-stage[data-state=live] .ta-trans{opacity:1}
.ta-stage[data-state=live] .ta-face{opacity:1}
.ta-stage[data-state=to-rev] .ta-rev,.ta-stage[data-state=rev] .ta-rev{opacity:1;transition:none}
.ta-glow{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0;mix-blend-mode:screen;background:radial-gradient(28% 18% at 50% 27%,rgba(80,200,255,.5),rgba(40,120,255,.16) 55%,transparent 75%);transition:opacity .15s linear}
.ta-stage[data-state=live] .ta-glow{opacity:var(--glow,0)}
.ta-ring{position:absolute;inset:0;z-index:5;border-radius:inherit;pointer-events:none}
.ta-stage.is-listening .ta-ring{animation:taPulse 2.2s ease-in-out infinite}
@keyframes taPulse{0%,100%{box-shadow:inset 0 0 0 1px rgba(90,220,255,.25),inset 0 0 24px rgba(0,200,255,.06)}50%{box-shadow:inset 0 0 0 2px rgba(90,220,255,.55),inset 0 0 60px rgba(0,200,255,.18)}}
.ta-mic{position:absolute;z-index:6;left:50%;bottom:14px;transform:translateX(-50%);width:110px;height:6px;border-radius:6px;background:rgba(255,255,255,.14);overflow:hidden}
.ta-mic::after{content:"";position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--lvl,0));background:linear-gradient(90deg,#22d3ee,#60a5fa);transition:transform .08s linear}
.ta-controls{font-size:16px}
.ta-controls .ta-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.ta-controls .btn{min-height:50px}
.ta-notice{font-size:15px;line-height:1.55;margin:0 0 14px;opacity:.9}
.ta-notice a{text-decoration:underline}
.ta-textbtn{background:none;border:0;color:inherit;opacity:.8;text-decoration:underline;font:inherit;cursor:pointer;padding:12px 6px}
.ta-status{min-height:1.5em;font-size:16px;margin:12px 0 0;color:#bfe9ff}
.ta-status:empty{display:none}
.ta-secure{font-size:14px;line-height:1.55;background:rgba(255,200,80,.08);border:1px solid rgba(255,200,80,.3);border-radius:12px;padding:10px 14px;margin:12px 0 0}
.ta-type{display:flex;gap:10px;margin:14px 0 0;width:100%}
.ta-type input{flex:1;min-width:0;min-height:50px;font-size:16px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:inherit;padding:0 14px}
.ta-log{max-height:200px;overflow:auto;margin:14px 0 0;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);text-align:left;width:100%}
.ta-line{font-size:16px;line-height:1.5;margin:0 0 8px}.ta-line b{color:#7dd3fc;font-weight:600}.ta-user b{color:#c4b5fd}
.ta-link{margin:12px 0 0}
.ta-consent,.ta-live{width:100%}
/* hero placement: button centred directly under the loop */
.ta-host-hero{display:flex;flex-direction:column;align-items:center;width:100%}
.ta-host-hero .hero-visual{width:100%}
.ta-host-hero .ta-stage{box-shadow:0 0 0 1px rgba(99,179,237,.28),0 30px 70px -24px rgba(0,0,0,.85)}
.ta-controls--hero{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;max-width:520px;margin:clamp(26px,3vw,36px) auto 8px}
.ta-controls--hero .ta-row{justify-content:center}
.ta-controls--hero .ta-notice{text-align:left}
.ta-talk svg{width:20px;height:20px}
@media (max-width:1079px){.ta-controls--hero{margin-bottom:28px}}
@media (prefers-reduced-motion: reduce){.ta-stage .ta-layer{transition:none}.ta-stage.is-listening .ta-ring{animation:none;box-shadow:inset 0 0 0 2px rgba(90,220,255,.45)}}
[data-ta-controls] [hidden],[data-talk-agent] [hidden]{display:none!important}
/* phones: while the consent or call panel is open, the sticky .mcta bar steps aside so the notice and its buttons stay visible */
.ta-controls{scroll-margin-top:96px;scroll-margin-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
@media (max-width:1079px){
  body.ta-open .mcta{display:none!important}
  [data-ta-controls]{padding-bottom:env(safe-area-inset-bottom,0px)}
}
/* HD face: canvas is sized 1:1 to screen pixels, so each layer gets its own rounded clip (some GPUs skip the parent clip for 1:1 canvases) */
.ta-stage .ta-layer{border-radius:inherit}
/* lip sync: the face layer is pixel-identical to the clip's last frame, so it can come in fast */
.ta-stage .ta-face{transition-duration:.12s}
/* "about to speak" cue: soft pulse on the frame + brain glow from the moment she starts responding until her voice is heard.
   Static shadows on two pseudo layers; only opacity animates (compositor-only, no per-frame repaint). */
.ta-ring::before,.ta-ring::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0}
.ta-ring::before{box-shadow:inset 0 0 0 1px rgba(110,220,255,.34),inset 0 0 26px rgba(0,190,255,.09)}
.ta-ring::after{box-shadow:inset 0 0 0 2px rgba(120,225,255,.62),inset 0 0 64px rgba(0,190,255,.22)}
.ta-stage.is-cue .ta-ring{animation:none;box-shadow:none;opacity:var(--cue,0)}
.ta-stage.is-cue .ta-ring::before{opacity:1}
.ta-stage.is-cue .ta-ring::after{animation:taCue 1.15s ease-in-out infinite}
.ta-stage[data-state=live].is-cue .ta-glow{opacity:calc(var(--glow,0) + .3 * var(--cue,0))}
@keyframes taCue{0%,100%{opacity:0}50%{opacity:1}}
@media (prefers-reduced-motion: reduce){.ta-stage.is-cue .ta-ring::after{animation:none;opacity:.45}}

.ta-link{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%}
.ta-link .ta-notice{margin:0}
.ta-linkbtn{display:inline-flex;justify-content:center;align-items:center;width:100%;text-align:center;text-decoration:none}
.ta-callbtn{min-height:56px;font-size:18px;font-weight:700}
@media (max-width:899px){.ta-callbtn{min-height:64px;font-size:20px}}
