/* /voice-agents/ (lab/pages/p_voice_agents.py), variety pass 2026-10-25. Sources are in the module docstring:
   PolyAI / Sierra call card (https://poly.ai/ , https://sierra.ai/product/voice), Bland call timeline
   (https://www.bland.ai/), Sierra waveform field. No boxes-and-beams on this page. */
.erp .va-sec { padding-block: clamp(96px, 14vh, 160px); }
.erp .va-h { margin: 0; max-width: 18ch; text-wrap: balance; }
.erp .va-lede { margin: 20px 0 0; max-width: 46ch; }
.erp .va-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(40px, 7vw, 112px); }
.erp .va-more { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 28px 0 0; font-size: 15px; }
.erp .va-more .ulink { color: #f4f3ef; }

/* ------------------------------------------------ call card (PolyAI, Sierra) */
.erp .va-call { position: relative; display: grid; gap: 16px; padding: 22px 22px 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgb(36 29 62 / .94), rgb(14 11 26 / .97));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .95); }
.erp .va-call__bar { display: flex; align-items: center; gap: 12px; color: #bdb6d0; font: 500 14px/1 var(--sc-font-text); }
.erp .va-call__live { display: inline-flex; align-items: center; gap: 8px; color: #f4f3ef; font-weight: 600; }
.erp .va-call__live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px rgb(74 222 128 / .8); }
.erp .va-call__who { flex: 1; }
.erp .va-call time { color: #f4f3ef; font: 500 14px/1 var(--sc-font-mono); font-variant-numeric: tabular-nums; }
.erp .va-rec { padding: 14px 16px; border-radius: 14px; background: rgb(154 107 255 / .14); box-shadow: inset 0 0 0 1px rgb(154 107 255 / .4); }
.erp .va-rec__h { display: flex; align-items: center; gap: 10px; margin: 0; color: #e3ddf2; font: 400 15px/1.3 var(--sc-font-text); }
.erp .va-rec__h b { color: #fff; font-weight: 600; }
.erp .va-rec__h i { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #7b58c5; }
.erp .va-rec__h i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(.9); }
.erp .va-rec dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0 28px; }
.erp .va-rec dl div { display: grid; }
.erp .va-rec dt { color: #8f88a6; font: 400 12px/1.3 var(--sc-font-text); }
.erp .va-rec dd { margin: 0; color: #e3ddf2; font: 500 14px/1.35 var(--sc-font-text); }
.erp .va-lns { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.erp .va-ln { display: grid; gap: 3px; max-width: 92%; padding: 11px 14px; border-radius: 14px; background: rgb(255 255 255 / .06); }
.erp .va-ln b { color: #8f88a6; font: 500 12px/1 var(--sc-font-text); }
.erp .va-ln span { color: #f4f3ef; font: 400 15px/1.45 var(--sc-font-text); }
.erp .va-ln--agent { justify-self: end; background: rgb(154 107 255 / .16); }
.erp .va-ln--agent b { color: #c9b6ff; }
.erp .va-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; }
.erp .va-wave i { width: 3px; height: calc(8px + var(--k) * 2px); border-radius: 2px; background: #6b52a8; opacity: .55; transform-origin: center; }
.erp .va-call.is-talk .va-wave i { background: #b99bff; opacity: 1; animation: va-bar .9s ease-in-out infinite; animation-delay: calc(var(--k) * -90ms); }
.erp .va-call.is-caller .va-wave i { background: #e88122; }
@keyframes va-bar { 50% { transform: scaleY(.35); } }
.erp .va-hand { display: grid; grid-template-columns: 18px auto; gap: 2px 10px; margin: 0; padding: 14px 16px; border-radius: 14px; background: rgb(232 129 34 / .12); box-shadow: inset 0 0 0 1px rgb(232 129 34 / .5); }
.erp .va-hand i { grid-row: span 2; align-self: center; width: 12px; height: 12px; margin-left: 3px; border-radius: 50%; background: #e88122; }
.erp .va-hand b { color: #f4f3ef; font: 600 15px/1.3 var(--sc-font-text); }
.erp .va-hand span { grid-column: 2; color: #d8cdbd; font: 400 13.5px/1.4 var(--sc-font-text); }
/* with JS, each part waits for its moment */
.erp .va-call.js [data-va-rec], .erp .va-call.js .va-ln, .erp .va-call.js [data-va-hand] { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.erp .va-call.js [data-va-rec].on, .erp .va-call.js .va-ln.on, .erp .va-call.js [data-va-hand].on { opacity: 1; transform: none; }
.erp .va-call.js .va-ln span.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #c9b6ff; animation: va-blink .8s steps(2) infinite; }
@keyframes va-blink { 50% { opacity: 0; } }

/* ------------------------------------------------ timeline (Bland) */
.erp .va-tl { margin: clamp(56px, 8vh, 96px) 0 0; padding: 0; list-style: none; display: grid; gap: clamp(22px, 3.4vh, 34px); }
.erp .va-tl__r { position: relative; display: grid; grid-template-columns: clamp(86px, 9vw, 130px) minmax(0, .9fr) minmax(0, 1.2fr) 28px; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding-block: 4px; opacity: .3; transition: opacity .5s cubic-bezier(.16, 1, .3, 1); }
.erp .va-tl__r.on { opacity: 1; }
.erp .va-tl__r time { color: #8f88a6; font: 500 clamp(18px, 1.8vw, 26px)/1 var(--sc-font-mono); font-variant-numeric: tabular-nums; }
.erp .va-tl__r b { color: #f4f3ef; font: 500 clamp(24px, 2.8vw, 40px)/1.08 var(--sc-font-display); letter-spacing: -.03em; }
.erp .va-tl__r span { color: #bdb6d0; font: 400 16.5px/1.5 var(--sc-font-text); max-width: 44ch; }
.erp .va-tl__r i { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22); transition: background .4s, box-shadow .4s; }
.erp .va-tl__r.done i { background: #16a34a; box-shadow: 0 0 14px rgb(74 222 128 / .5); }
.erp .va-tl__r.done i::after { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.erp .va-tl__r.is-turn.done i { background: #e88122; box-shadow: 0 0 14px rgb(232 129 34 / .55); }
.erp .va-tl__r.is-turn.on time { color: #e88122; }

/* ------------------------------------------------ waveform field (Sierra) */
.erp .va-field { position: relative; display: grid; gap: 0; margin-top: clamp(64px, 9vh, 104px); }
.erp .va-frs { position: relative; height: 84px; margin: 0; padding: 0; list-style: none; }
.erp .va-fr { position: absolute; top: 0; display: grid; gap: 2px; opacity: 0; transform: translateY(10px); filter: blur(4px); transition: opacity .8s, transform .9s cubic-bezier(.16, 1, .3, 1), filter .8s; }
.erp .va-fr.on { opacity: 1; transform: none; filter: none; }
.erp .va-fr small { color: #8f88a6; font: 400 12.5px/1 var(--sc-font-text); }
.erp .va-fr b { color: #f4f3ef; font: 500 clamp(20px, 2vw, 28px)/1.1 var(--sc-font-display); letter-spacing: -.02em; }
.erp .va-fr span { color: #c9b6ff; font: 400 13.5px/1.2 var(--sc-font-text); }
.erp .va-fr:nth-child(3n+1) { left: 2%; } .erp .va-fr:nth-child(3n+2) { left: 38%; } .erp .va-fr:nth-child(3n) { left: 72%; }
.erp .va-fw { display: flex; align-items: center; justify-content: space-between; height: 110px; }
.erp .va-fw i { width: 3px; height: calc(10px + var(--k) * 5px); border-radius: 2px; background: linear-gradient(180deg, #b99bff, #6b52a8); opacity: .8; animation: va-bar 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * -190ms); }
.erp .va-agent { margin: 22px 0 0; color: #e3ddf2; font: 400 clamp(18px, 1.8vw, 24px)/1.4 var(--sc-font-text); }
.erp .va-agent b { margin-right: 12px; color: #c9b6ff; font: 500 14px/1 var(--sc-font-text); }
/* the languages: a slow list of names */
.erp .va-lang { display: grid; gap: 16px; }
.erp .va-lang__l { position: relative; height: 4.2em; margin: 0; padding: 0; overflow: hidden; list-style: none; font: 500 clamp(34px, 4vw, 56px)/1.4 var(--sc-font-display); letter-spacing: -.03em; color: #f4f3ef;
  mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.erp .va-lang__l li { display: block; }
.erp .va-lang__l { display: block; }
.erp .va-lang__l::before { content: ""; display: block; }
.erp .va-lang__n { margin: 0; color: #bdb6d0; font: 400 16.5px/1.5 var(--sc-font-text); max-width: 34ch; }
.erp .va-lang__n b { color: #f4f3ef; font-weight: 600; }

@media (max-width: 860px) {
  .erp .va-split { grid-template-columns: 1fr; }
  .erp .va-tl__r { grid-template-columns: 70px minmax(0, 1fr) 24px; row-gap: 6px; }
  .erp .va-tl__r span { grid-column: 2 / 3; grid-row: 2; }
  .erp .va-tl__r i { grid-column: 3; grid-row: 1; }
  /* each fragment is three lines (about 64px), so 52px rows printed them on each other (2026-10-25 mobile audit) */
  .erp .va-frs { height: 240px; }
  .erp .va-fr:nth-child(3n+1) { left: 0; top: 0; } .erp .va-fr:nth-child(3n+2) { left: 0; top: 82px; } .erp .va-fr:nth-child(3n) { left: 0; top: 164px; }
  .erp .va-fw { height: 80px; overflow: hidden; } .erp .va-fw i:nth-child(n+48) { display: none; }
  .erp .va-fw { justify-content: space-between; }
  .erp .va-call { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .va-tl__r { opacity: 1; transition: none; }
  .erp .va-fw i, .erp .va-call.is-talk .va-wave i { animation: none; }
  .erp .va-fr { transition: none; }
}
