{
  "title": "Home Page - Hero Animation",
  "mode": "scroll",
  "aspectRatio": "16:9",
  "html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head><style data-cx-import>html,body{overflow:hidden}</style><script data-cx-import>/* Added by the Animation Studio import: the site plays and scrolls window.cxAnimation. */\n(function () {\n  var A = window.anime, taken, own = false, timeline = false;\n  if (!A) return;\n  // An assignment by the file itself wins over what this script takes.\n  Object.defineProperty(window, \"cxAnimation\", { configurable: true, get: function () { return taken; }, set: function (a) { taken = a; own = true; } });\n  function take(a, isTimeline) {\n    if (own || (taken && (timeline || !isTimeline))) return;\n    taken = a;\n    timeline = isTimeline;\n  }\n  var animate = A.animate, createTimeline = A.createTimeline;\n  A.animate = function () { var a = animate.apply(this, arguments); take(a, false); return a; };\n  A.createTimeline = function () { var t = createTimeline.apply(this, arguments); take(t, true); return t; };\n  A.onScroll = function () { return false; };\n})();\n</script>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Cloudonix orchestration layers</title>\n\n\n<style>\n/* VOICE: the cloudonix.com voice (warm, confident) rendered as a holographic engineering view.\n   IDEA: a glass layer stack projected over the site's falling-glyph field, assembled by scrolling.\n   PICTURE: glowing glass slabs land on a dot-grid floor, a scan sweeps each one; AI agents fly in and take seats.\n   COLOUR and TYPE: site palette (warm white #F7F5F2, charcoal #363635, magenta #D20072, teal #009A96); Poppins + Fira Code HUD labels.\n   LAYOUT: pinned stage, narrative left, stack right; phones: stack above, text below. */\n:root{color-scheme:light;--bg:#F7F5F2;--ink:#363635;--mute:rgba(54,54,53,.62);--teal:#009A96;--tealD:#007A77;--mag:#D20072;--line:rgba(54,54,53,.12)}\n:root[data-theme=light],:root[data-theme=dark]{color-scheme:light}\n*{box-sizing:border-box;min-width:0}\nbody{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Poppins,system-ui,sans-serif;overflow-x:clip}\nh1,h2{font-weight:700;line-height:1.08;letter-spacing:-1.2px;text-wrap:balance;margin:0 0 16px}\nh1{font-size:clamp(34px,4.2vw,52px)}h2{font-size:clamp(28px,3vw,40px)}\nh1 em,h2 em{font-style:normal;color:var(--mag)}\np{margin:0;max-width:32em;color:var(--tealD);font-weight:500;font-size:17px}\n.mono{font-family:\"Fira Code\",ui-monospace,monospace}\n#track{position:relative;height:1100vh}\n.stage{position:sticky;top:0;height:100vh;height:100svh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) 44px;grid-template-areas:\"copy viz rail\";align-items:center;gap:clamp(16px,3vw,48px);padding:24px max(4vw,16px);overflow:hidden;\n  background:radial-gradient(60% 70% at 68% 52%,rgba(0,154,150,.10),rgba(247,245,242,0) 70%),var(--bg)}\n#rain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.55;\n  --m:radial-gradient(52% 75% at 70% 45%,#000 20%,transparent 80%);-webkit-mask-image:var(--m);mask-image:var(--m)}\n.copy{grid-area:copy;position:relative;z-index:1;display:flex;flex-direction:column;gap:32px}\n.steps{display:grid}\n.step{grid-area:1/1;opacity:0;transform:translateY(14px);transition:opacity .45s,transform .45s;pointer-events:none}\n.step.on{opacity:1;transform:none;pointer-events:auto}\n.k{display:block;font:500 13px \"Fira Code\",monospace;color:var(--mag);margin-bottom:12px}\n.k::after{content:\"_\";animation:blink 1s steps(1) infinite}\n@keyframes blink{50%{opacity:0}}\n.cta{display:flex;flex-wrap:wrap;gap:12px}\n.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:14px 28px;border-radius:999px;font:500 15px/1.2 Poppins,sans-serif;letter-spacing:.5px;color:var(--ink);text-decoration:none;white-space:nowrap;transition:border-color .2s,color .2s,box-shadow .2s,transform .2s}\n.btn-o{border:1px solid var(--ink)}\n.btn-s{padding-inline:32px;border:1px solid rgba(54,54,53,.22);box-shadow:0 8px 32px rgba(54,54,53,.12);background:rgba(255,255,255,.4)}\n.btn:hover{border-color:var(--mag);color:var(--mag);transform:translateY(-1px)}\n.btn:focus-visible{outline:2px solid var(--mag);outline-offset:3px}\n.rail{grid-area:rail;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-self:center}\n.rail .dots{display:flex;flex-direction:column;align-items:center}\n.rail button{width:44px;height:30px;border:0;background:none;cursor:pointer;display:grid;place-items:center;border-radius:999px;color:var(--mag)}\n.rail .dots button::after{content:\"\";width:4px;height:16px;border-radius:999px;background:var(--line);transition:background .3s,height .3s}\n.rail .dots button.on::after{background:var(--mag);height:28px}\n.rail .next{height:48px;margin-top:10px;transition:opacity .3s}\n.rail .next svg{width:22px;height:22px;animation:bob 1.6s ease-in-out infinite}\n.rail .next[disabled]{opacity:0;pointer-events:none}\n@keyframes bob{50%{transform:translateY(5px)}}\n.rail button:focus-visible{outline:2px solid var(--mag);outline-offset:-4px}\n.viz{grid-area:viz;position:relative;z-index:1;height:100%;display:grid;place-items:center}\n.viz svg{width:100%;height:100%;max-height:calc(100svh - 48px);overflow:visible}\nsvg text{font-family:Poppins,sans-serif}\n.lname{font-weight:600;font-size:17px;fill:var(--ink)}\n.lsub,.hud{font-family:\"Fira Code\",monospace;font-size:11.5px;fill:var(--mute)}\n.lab{font-size:12.5px;font-weight:600;fill:var(--ink);text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}\n.verb{font:600 13px \"Fira Code\",monospace;opacity:.95}\n.mlab{font:600 12px \"Fira Code\",monospace;fill:#007A77;text-anchor:middle}\n.plab{font-size:12px;font-weight:500;fill:var(--ink);text-anchor:middle;paint-order:stroke;stroke:#ecebe7;stroke-width:4px;stroke-linejoin:round}\n.halo{paint-order:stroke;stroke:#fff!important;stroke-width:4px;stroke-linejoin:round}\n.tok,.fly,.mod,.ring,.xr,.puck{transform-box:fill-box;transform-origin:center}\n.cd{stroke-dasharray:3 15;animation:flowup 1.6s linear infinite}\n@keyframes flowup{to{stroke-dashoffset:36}}\nsvg.live #s-ai3 .bar-w{animation:eq .7s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}\nsvg.live #s-ai3 .bar-w:nth-child(odd){animation-delay:-.35s}\n@keyframes eq{to{transform:scaleY(.35)}}\n.end{padding:clamp(56px,9vw,120px) max(5vw,16px);border-top:1px solid var(--line)}\n.end .in{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px 64px;align-items:end}\n.end small{display:block;margin-top:24px;color:var(--mute);font:12.5px \"Fira Code\",monospace}\n@media (max-width:760px){\n  /* phones: animation owns the top of the screen, text sits in its own band underneath, never on top */\n  .stage{grid-template-columns:minmax(0,1fr) 34px;grid-template-rows:minmax(46svh,1fr) auto;grid-template-areas:\"viz rail\" \"copy copy\";align-items:stretch;padding:10px 8px max(12px,env(safe-area-inset-bottom)) 14px;gap:4px}\n  .viz{min-height:0;overflow:hidden}\n  .viz svg{height:100%;max-height:100%}\n  .rail{align-self:center}\n  .copy{max-height:50svh;gap:12px;overflow:hidden;background:var(--bg);border-top:1px solid var(--line);padding:10px 6px 0 0}\n  .k{font-size:12px;margin-bottom:6px}\n  h1{font-size:24px;margin-bottom:6px}h2{font-size:20px;margin-bottom:6px;letter-spacing:-.4px}\n  p{font-size:14px;line-height:1.45}\n  .rail button{width:34px;height:22px}.rail .dots button::after{height:11px}.rail .dots button.on::after{height:19px}.rail .next{height:36px;margin-top:4px}\n  .cta{gap:8px;flex-wrap:nowrap}.btn{min-height:40px;padding:9px 14px;font-size:12.5px;letter-spacing:.2px}.btn-s{padding-inline:16px}\n  #rain{--m:radial-gradient(80% 45% at 50% 28%,#000 20%,transparent 85%)}\n  .end .in{grid-template-columns:1fr}\n}\n@media (prefers-reduced-motion:reduce){.step,.btn{transition:none}.rail .next svg{animation:none}.k::after,.cd,svg.live #s-ai3 .bar-w{animation:none}}\n</style>\n</head>\n<body>\n<section id=\"track\" aria-label=\"Cloudonix AI telephony orchestration, built layer by layer\">\n  <div class=\"stage\">\n    <canvas id=\"rain\" aria-hidden=\"true\"></canvas>\n    <div class=\"copy\">\n      <div class=\"steps\" id=\"steps\">\n        <article class=\"step on\"><span class=\"k\">// ai telephony orchestration</span>\n          <h1 class=\"cx-h2\">Not Just Voice Agents, <em>Real Employees</em></h1>\n          <p>Cloudonix turns AI voice agents into first-class citizens in any telephony system.</p>\n        </article>\n        <article class=\"step\"><span class=\"k\">// customer type</span>\n          <h2 class=\"cx-h2\">Your Business, <em>Your Rules</em></h2>\n          <p>One infrastructure for all your telephony orchestration needs, for any business.</p></article>\n        <article class=\"step\"><span class=\"k\">// connectivity</span>\n          <h2 class=\"cx-h2\">Connect And Control <em>As You Already Do</em></h2>\n          <p>SIP trunks, PSTN, WebRTC, REST APIs and real-time media streaming. Nothing gets ripped out.</p></article>\n        <article class=\"step\"><span class=\"k\">// voice core</span>\n          <h2 class=\"cx-h2\">One Programmable <em>Voice Core</em></h2>\n          <p>Carrier-grade telephony infrastructure at your finger tips. Every call, from any source, lands in the same place.</p></article>\n        <article class=\"step\"><span class=\"k\">// orchestration</span>\n          <h2 class=\"cx-h2\">Every Call Is a Session <em>You Can Steer</em></h2>\n          <p>Script every call with CXML, plug in generative AI from ElevenLabs&trade;, OpenAI&trade; and more.</p></article>\n        <article class=\"step\"><span class=\"k\">// the usual way</span>\n          <h2 class=\"cx-h2\">Most AI agents are <em>bolted on</em></h2>\n          <p>Typically a voice bot lives outside the phone system, reached through a webhook or API bridge. It has no extension, can't sit in a queue, and loses context at every transfer.</p></article>\n        <article class=\"step\"><span class=\"k\">// agent plane</span>\n          <h2 class=\"cx-h2\">On Cloudonix, <em>they take a seat</em></h2>\n          <p>AI voice agents join the same layer as your people and your corporate systems. They get an extension, join queues, and follow the same routing and recording as everyone else.</p></article>\n        <article class=\"step\"><span class=\"k\">// bring any voice agent</span>\n          <h2 class=\"cx-h2\">Any voice agent, <em>one agent plane</em></h2>\n          <p>ElevenLabs, Vapi, Retell, Dograh, xAI and more plug straight into the agent plane. Mix providers side by side, and switch between them without touching the layers below.</p></article>\n        <article class=\"step\"><span class=\"k\">// live call</span>\n          <h2 class=\"cx-h2\">One Call, <em>Is All It Takes</em></h2>\n          <p>Handle every call, inbound, outbound, never losing a single customer or oppertunity.</p></article>\n      </div>\n      <div class=\"cta\">\n        <a class=\"btn btn-o cx-button\" href=\"/contact-sales\">Connect with an Expert</a>\n        <a class=\"btn btn-s cx-button\" href=\"https://cockpit.cloudonix.io/\">Start Here!</a>\n      </div>\n    </div>\n    <nav class=\"rail\" id=\"rail\" aria-label=\"Steps\">\n      <div class=\"dots\" id=\"dots\"></div>\n      <button type=\"button\" class=\"next\" id=\"next\" aria-label=\"Next step\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 9l6 6 6-6\"/></svg></button>\n    </nav>\n    <div class=\"viz\"><svg id=\"stack\" viewBox=\"0 -120 900 1030\" role=\"img\" aria-label=\"Isometric glass stack: connectivity, voice core, orchestration, and an agent plane where AI agents, human agents and corporate systems sit together\"></svg></div>\n  </div>\n</section>\n<section class=\"end\">\n  <div class=\"in\">\n    <h2>Voice agents belong <em>inside the phone system</em>, not beside it.</h2>\n    <div><p>When an AI agent is addressed, routed, recorded and transferred like any other participant, you can put it anywhere a person could sit: the front door, a queue, an overflow, or a night shift.</p>\n    <small>Names, extensions and systems in the illustration are sample content.</small></div>\n  </div>\n</section>\n\n\n<script>\n{\n/* ---------- Geometry: isometric slabs, u/v in [-1,1] on each layer ---------- */\nconst cx = 450, W = 250, H = 125, T = 16;\nconst LY = [720, 610, 500, 390, 230];                   // customer type, connectivity, core, orchestration, agent plane\nconst r1 = n => Math.round(n * 10) / 10;\nconst P = (cy, u, v) => [r1(cx + (u - v) * W / 2), r1(cy + (u + v) * H / 2)];\nconst pt = a => a.join(',');\nconst rhomb = cy => `${pt(P(cy,-1,-1))} ${pt(P(cy,1,-1))} ${pt(P(cy,1,1))} ${pt(P(cy,-1,1))}`;\nconst svg = document.getElementById('stack');\n\nconst LAYERS = [\n  { name: 'Customer type', sub: 'bpo · enterprise · carrier', a: '#ffffff', b: '#e6e3de', l: '#d6d2cb', r: '#c8c3bb', edge: '#363635' },\n  { name: 'Connectivity',  sub: 'sip · pstn · webrtc · apis', a: '#ffffff', b: '#e4edec', l: '#c9dcda', r: '#b6cfcc', edge: '#007A77' },\n  { name: 'Voice core',    sub: 'sip · media · recording',  a: '#ffffff', b: '#dcefee', l: '#b5d8d6', r: '#9ccbc8', edge: '#007A77' },\n  { name: 'Orchestration', sub: 'cxml · stt · tts · llm', a: '#f4fbfb', b: '#c6ebe9', l: '#7fc8c4', r: '#5fb8b4', edge: '#009A96' },\n  { name: 'Agent plane',   sub: 'ai · people · systems',    a: '#ffffff', b: '#f6e3ee', l: '#009A96', r: '#007A77', edge: 'url(#edgeG)' }\n];\n\nconst slab = (i, cy, c) => {\n  const b = P(cy, -1, -1), r = P(cy, 1, -1), f = P(cy, 1, 1), l = P(cy, -1, 1);\n  const grid = [-.5, 0, .5].map(k =>\n    `<line x1=\"${P(cy,k,-1)[0]}\" y1=\"${P(cy,k,-1)[1]}\" x2=\"${P(cy,k,1)[0]}\" y2=\"${P(cy,k,1)[1]}\"/>` +\n    `<line x1=\"${P(cy,-1,k)[0]}\" y1=\"${P(cy,-1,k)[1]}\" x2=\"${P(cy,1,k)[0]}\" y2=\"${P(cy,1,k)[1]}\"/>`).join('');\n  return `<polygon points=\"${pt(l)} ${pt(f)} ${f[0]},${f[1]+T} ${l[0]},${l[1]+T}\" fill=\"${c.l}\" opacity=\".92\"/>\n    <polygon points=\"${pt(f)} ${pt(r)} ${r[0]},${r[1]+T} ${f[0]},${f[1]+T}\" fill=\"${c.r}\" opacity=\".92\"/>\n    <polygon points=\"${rhomb(cy)}\" fill=\"url(#top${i})\" fill-opacity=\".9\"/>\n    <g stroke=\"#009A96\" stroke-opacity=\".14\">${grid}</g>\n    <polygon points=\"${rhomb(cy)}\" fill=\"none\" stroke=\"${c.edge}\" stroke-width=\"1.6\" stroke-opacity=\"${i ? .95 : .5}\" ${i > 2 ? 'filter=\"url(#glow)\"' : ''}/>\n    <g clip-path=\"url(#clip${i})\"><line class=\"scan\" x1=\"${b[0]}\" y1=\"${b[1]}\" x2=\"${r[0]}\" y2=\"${r[1]}\" stroke=\"#22d3cb\" stroke-width=\"16\" stroke-opacity=\".55\" filter=\"url(#soft)\"/></g>\n    <g class=\"lname-g\"><line x1=\"${l[0]-18}\" y1=\"${cy}\" x2=\"${l[0]-4}\" y2=\"${cy}\" stroke=\"${i===4?'#D20072':c.edge}\"/>\n    <circle cx=\"${l[0]-20}\" cy=\"${cy}\" r=\"2.5\" fill=\"${i===4?'#D20072':'#009A96'}\"/>\n    <text class=\"lname\" x=\"${l[0]-28}\" y=\"${cy-3}\" text-anchor=\"end\">${c.name}</text>\n    <text class=\"lsub\" x=\"${l[0]-28}\" y=\"${cy+15}\" text-anchor=\"end\">${c.sub}</text></g>`;\n};\n\n/* ---------- Layer contents ---------- */\nconst SLOTS = [[-.6,.75],[-.1,.75],[.4,.75],[.75,-.6],[.75,-.1],[.75,.75]];   // front edges: stay visible under the layer above\nconst CUSTOMERS = [['Carriers',22],['Enterprises',34],['BPOs',28],['MSPs',18],['SaaS platforms',16],['Contact centres',24]];\nconst custSvg = CUSTOMERS.map(([n,h],i) => { const [x,y] = P(LY[0],...SLOTS[i]);\n  const win = Array.from({length: Math.floor((h-4)/6)}, (_,k) => `<line x1=\"3\" y1=\"${-h+6+k*6+2.5}\" x2=\"11\" y2=\"${-h+6+k*6-1.5}\" stroke=\"#5fe3dc\" stroke-opacity=\".8\"/>`).join('');\n  return `<g transform=\"translate(${x},${y})\"><g class=\"puck\"><ellipse rx=\"18\" ry=\"7\" fill=\"#363635\" opacity=\".15\"/>\n    <polygon points=\"-14,${-h} 0,${-h+7} 0,7 -14,0\" fill=\"#4d4d4b\"/><polygon points=\"0,${-h+7} 14,${-h} 14,0 0,7\" fill=\"#363635\"/>\n    <polygon points=\"0,${-h-7} 14,${-h} 0,${-h+7} -14,${-h}\" fill=\"#fff\" stroke=\"#009A96\" stroke-width=\"1\"/>${win}\n    ${n==='Carriers'?`<line x1=\"0\" y1=\"${-h}\" x2=\"0\" y2=\"${-h-18}\" stroke=\"#363635\" stroke-width=\"1.5\"/><circle cy=\"${-h-19}\" r=\"3\" fill=\"#D20072\" filter=\"url(#glowM)\"/>`:''}\n    <text class=\"plab\" y=\"24\">${n}</text></g></g>`; }).join('');\nconst PUCKS = ['SIP trunks','REST APIs','PSTN','WebRTC','Media streaming','+ more'];\nconst puckSvg = PUCKS.map((n,i) => { const [x,y] = P(LY[1],...SLOTS[i]);\n  return `<g transform=\"translate(${x},${y})\"><g class=\"puck\"><ellipse cy=\"4\" rx=\"16\" ry=\"8\" fill=\"#363635\"/><rect x=\"-16\" y=\"-4\" width=\"32\" height=\"8\" fill=\"#4d4d4b\"/><ellipse cy=\"-4\" rx=\"16\" ry=\"8\" fill=\"#fff\" stroke=\"#009A96\" stroke-width=\"1.5\"/><ellipse cy=\"-4\" rx=\"5\" ry=\"2.5\" fill=\"#009A96\"/><text class=\"plab\" y=\"26\">${n}</text></g></g>`; }).join('');\n\nconst NODES = [[-.6,-.5],[0,-.7],[.6,-.4],[-.5,.2],[.1,0],[.65,.3],[-.3,.7],[.3,.65]];\nconst WIRES = [[0,1],[1,2],[0,3],[1,4],[2,5],[3,4],[4,5],[3,6],[4,7],[5,7],[6,7]];\nconst coreSvg = WIRES.map(([a,b]) => { const p = P(LY[2],...NODES[a]), q = P(LY[2],...NODES[b]);\n  return `<line class=\"wire\" x1=\"${p[0]}\" y1=\"${p[1]}\" x2=\"${q[0]}\" y2=\"${q[1]}\" stroke=\"#007A77\" stroke-opacity=\".6\" stroke-width=\"1.5\"/>`; }).join('') +\n  NODES.map(n => { const [x,y] = P(LY[2],...n); return `<ellipse class=\"node\" cx=\"${x}\" cy=\"${y}\" rx=\"8\" ry=\"4\" fill=\"#009A96\" filter=\"url(#glow)\"/>`; }).join('');\n\nconst MODS = [['LLM',.75,-.65],['STT',.75,-.2],['TTS',.75,.2]];          // front-right edge of the orchestration plane\nconst FLOWS = [[[.75,-.65],[.75,-.42],[.75,-.2]],[[.75,-.2],[.75,0],[.75,.2]]];\n\n/* CXML verbs, printed flat on the orchestration glass (isometric text along the front-left edge) */\nconst VERB_LINES = [['Dial','Say','Gather','Play'],['Record','Connect','Coach'],['Converse','Redirect','Reject'],['Hangup','Pause','Start']];\nconst AIV = ['Converse','Connect','Gather','Say'];                    // verbs that touch STT / TTS / LLMs\nconst v0 = P(LY[3], -.92, .9);\nconst verbSvg = `<g transform=\"translate(${v0[0]},${v0[1]}) matrix(.894,.447,-.894,.447,0,0)\">\n  ${VERB_LINES.map((ln,k) => `<text class=\"verb\" y=\"${-k*19}\">${ln.map(v => `<tspan fill=\"${AIV.includes(v)?'#D20072':'#007A77'}\">&lt;${v}&gt;</tspan>`).join(' ')}</text>`).join('')}</g>`;\n\n/* External AI & speech providers, cabled into the LLM / STT / TTS modules.\n   Set logo to an image URL or data: URI to show an official logo instead of the name. */\nconst AIP = [['llm', [{n:'OpenAI'},{n:'Anthropic'},{n:'Qwen'},{n:'Kimi'}]], ['stt · tts', [{n:'ElevenLabs'},{n:'Azure'},{n:'Google'},{n:'+ more', more:true}]]];\nconst AX = 724, AW = 78, AY = 280;\nconst modAt = n => { const m = MODS.find(q => q[0] === n); return P(LY[3], m[1], m[2]); };\nconst aipSvg = (() => {\n  let y = AY + 34, out = '';\n  AIP.forEach(([sec, list]) => {\n    out += `<text class=\"hud aisec\" x=\"${AX+6}\" y=\"${y}\">${sec}</text>`; y += 6;\n    list.forEach((p, i) => { const x = AX + 6 + (i % 2) * (AW + 4), yy = y + Math.floor(i / 2) * 30;\n      const face = p.logo ? `<image href=\"${p.logo}\" x=\"${x+8}\" y=\"${yy+4}\" width=\"${AW-16}\" height=\"16\" preserveAspectRatio=\"xMidYMid meet\"/>`\n                          : `<text x=\"${x+AW/2}\" y=\"${yy+16}\" text-anchor=\"middle\" font-size=\"11.5\" font-weight=\"600\" fill=\"${p.more?'#D20072':'#363635'}\">${p.n}</text>`;\n      out += `<g class=\"aichip\"><rect x=\"${x}\" y=\"${yy}\" width=\"${AW}\" height=\"24\" rx=\"12\" fill=\"#fff\" stroke=\"${p.more?'#D20072':'#009A96'}\" stroke-opacity=\".7\" ${p.more?'stroke-dasharray=\"4 4\"':''}/>${face}</g>`; });\n    y += 70;\n  });\n  const llm = modAt('LLM'), stt = modAt('STT'), tts = modAt('TTS');\n  const cables = [[AX, AY+62, llm[0]+16, llm[1]-14], [AX, AY+142, stt[0]+16, stt[1]-10], [AX, AY+170, tts[0]+16, tts[1]-6]];\n  const cab = cables.map(([x1,y1,x2,y2]) => `<line class=\"aline\" x1=\"${x1}\" y1=\"${y1}\" x2=\"${x2}\" y2=\"${y2}\" stroke=\"#D20072\" stroke-opacity=\".35\" stroke-width=\"1.5\"/>\n    <line class=\"cd aflow\" x1=\"${x1}\" y1=\"${y1}\" x2=\"${x2}\" y2=\"${y2}\" stroke=\"#D20072\" stroke-width=\"2.5\"/>\n    <circle class=\"aport\" cx=\"${x2}\" cy=\"${y2}\" r=\"4\" fill=\"#D20072\" filter=\"url(#glowM)\"/>`).join('');\n  return `${cab}<g class=\"apanel\"><rect x=\"${AX}\" y=\"${AY}\" width=\"${2*AW+16}\" height=\"${y-AY-8}\" rx=\"16\" fill=\"#ffffff\" fill-opacity=\".78\" stroke=\"url(#edgeG)\" stroke-width=\"1.5\" filter=\"url(#glow)\"/>\n    <text class=\"hud\" x=\"${AX+6}\" y=\"${AY+16}\">ai &amp; speech providers</text></g>${out}`;\n})();\nconst modSvg = MODS.map(([n,u,v]) => { const [x,y] = P(LY[3],u,v), h = 22;\n  return `<g transform=\"translate(${x},${y})\"><ellipse class=\"mring ring\" rx=\"30\" ry=\"15\" fill=\"none\" stroke=\"#D20072\" stroke-width=\"2\" opacity=\"0\"/>\n    <g class=\"mod\"><ellipse rx=\"22\" ry=\"9\" fill=\"#D20072\" opacity=\".18\" filter=\"url(#glowM)\"/>\n    <polygon points=\"-18,${-h} 0,${-h+9} 0,9 -18,0\" fill=\"#009A96\"/><polygon points=\"0,${-h+9} 18,${-h} 18,0 0,9\" fill=\"#007A77\"/>\n    <polygon points=\"0,${-h-9} 18,${-h} 0,${-h+9} -18,${-h}\" fill=\"#fff\" stroke=\"#5fe3dc\"/><ellipse cy=\"${-h}\" rx=\"6\" ry=\"3\" fill=\"#D20072\" filter=\"url(#glowM)\"/>\n    <text class=\"mlab halo\" y=\"${-h-16}\">${n}</text></g></g>`; }).join('');\nconst flowSvg = FLOWS.map(([a,c,b]) => { const p = P(LY[3],...a), q = P(LY[3],...c), e = P(LY[3],...b);\n  return `<path class=\"flow\" d=\"M${pt(p)} Q${pt(q)} ${pt(e)}\" fill=\"none\" stroke=\"#007A77\" stroke-width=\"2\" stroke-linecap=\"round\"/><circle class=\"node\" cx=\"${e[0]}\" cy=\"${e[1]}\" r=\"3.5\" fill=\"#D20072\"/>`; }).join('');\n\n/* Agent plane seats: AI, people and systems interleaved on purpose */\nconst SEATS = [\n  { id:'cal',  u:-.6, v:-.6, k:'res', n:'Calendar' },\n  { id:'ai1',  u:0,   v:-.6, k:'ai',  n:'Vapi · 301' },\n  { id:'dana', u:.6,  v:-.6, k:'hum', n:'Dana · 202' },\n  { id:'ai2',  u:-.6, v:0,   k:'ai',  n:'ElevenLabs · 302' },\n  { id:'sam',  u:0,   v:0,   k:'hum', n:'Sam · 203' },\n  { id:'kb',   u:.6,  v:0,   k:'res', n:'Knowledge' },\n  { id:'lee',  u:-.6, v:.6,  k:'hum', n:'Lee · 204' },\n  { id:'crm',  u:0,   v:.6,  k:'res', n:'CRM' },\n  { id:'ai3',  u:.6,  v:.6,  k:'ai',  n:'Retell · 303' }\n];\nconst OUTSIDE = { ai1:[765,105], ai2:[850,125], ai3:[770,195] };   // where bolted-on bots float\nconst BARS = [4,8,13,8,4];\nconst TOK = {\n  hum: `<path d=\"M-13,-6Q-13,-25 0,-25Q13,-25 13,-6Z\" fill=\"#363635\"/><circle cy=\"-34\" r=\"8\" fill=\"#363635\"/>`,\n  ai:  `<path d=\"M-24,0 L-9,-52 L9,-52 L24,0Z\" fill=\"url(#holo)\"/>\n        <polygon points=\"0,-47 16,-37.5 16,-18.5 0,-9 -16,-18.5 -16,-37.5\" fill=\"url(#aiG)\" stroke=\"#fff\" stroke-opacity=\".7\" filter=\"url(#glowM)\"/>\n        <g>${BARS.map((h,i)=>`<rect class=\"bar-w\" x=\"${-9.2+i*4}\" y=\"${-28-h/2}\" width=\"2.4\" height=\"${h}\" rx=\"1.2\" fill=\"#fff\"/>`).join('')}</g>`,\n  res: `<rect x=\"-14\" y=\"-36\" width=\"28\" height=\"28\" fill=\"#009A96\"/><ellipse cy=\"-8\" rx=\"14\" ry=\"5\" fill=\"#007A77\"/><ellipse cy=\"-36\" rx=\"14\" ry=\"5\" fill=\"#7fd8d4\"/><line x1=\"-14\" y1=\"-22\" x2=\"14\" y2=\"-22\" stroke=\"#fff\" stroke-opacity=\".35\"/>`\n};\nconst tile = 'points=\"0,-15 30,0 0,15 -30,0\"';\nconst seatSvg = SEATS.map(s => {\n  const [x,y] = P(LY[4], s.u, s.v), ai = s.k === 'ai';\n  const body = `<ellipse rx=\"15\" ry=\"5\" fill=\"#363635\" opacity=\".18\"/>${TOK[s.k]}`;\n  const labels = ai ? `<text class=\"lab lab-old\" y=\"28\">Bot (API)</text><text class=\"lab lab-new\" y=\"28\">${s.n}</text>` : `<text class=\"lab\" y=\"28\">${s.n}</text>`;\n  return `<g id=\"s-${s.id}\" class=\"seat ${ai?'ai':''}\" transform=\"translate(${x},${y})\">\n    <polygon ${tile} fill=\"${ai?'none':'#009A96'}\" fill-opacity=\".08\" stroke=\"${ai?'#D20072':'#009A96'}\" stroke-opacity=\"${ai?.8:.35}\" ${ai?'stroke-dasharray=\"4 4\"':''}/>\n    ${ai?`<polygon class=\"tile-solid\" ${tile} fill=\"#D20072\" fill-opacity=\".14\" stroke=\"#D20072\"/>`:''}\n    <ellipse class=\"ring\" rx=\"34\" ry=\"17\" fill=\"none\" stroke=\"${s.k==='res'?'#009A96':'#D20072'}\" stroke-width=\"2\" opacity=\"0\"/>\n    <g class=\"${ai?'fly':'tok'}\" data-id=\"${s.id}\">${body}${labels}</g></g>`;\n}).join('');\n\n/* Floor: iso dot grid fading out from the centre */\nconst floor = []; for (let i = -10; i <= 10; i++) for (let j = -10; j <= 10; j++) {\n  const u = i / 10, v = j / 10, d = Math.hypot(u, v); if (d > 1) continue;\n  const x = cx + (u - v) * 190, y = 800 + (u + v) * 95;\n  floor.push(`<circle cx=\"${r1(x)}\" cy=\"${r1(y)}\" r=\"1.4\" fill=\"#009A96\" opacity=\"${r1((1 - d) * .55 * 100) / 100}\"/>`);\n}\n\n/* Call paths */\nconst callPts = [P(LY[1],.95,.6), P(LY[2],.95,.6), P(LY[3],.95,.6), P(LY[4],.95,.6), [P(LY[4],.6,.6)[0], P(LY[4],.6,.6)[1]-4]];\nconst ai3 = P(LY[4],.6,.6), crm = P(LY[4],0,.6), dana = P(LY[4],.6,-.6);\nconst ctxD  = `M${ai3[0]},${ai3[1]-30} Q${r1((ai3[0]+crm[0])/2)},${ai3[1]-70} ${crm[0]},${crm[1]-40}`;\nconst xferD = `M${ai3[0]+8},${ai3[1]-40} Q${dana[0]+70},${ai3[1]-20} ${dana[0]},${dana[1]-48}`;\nconst vx = [P(0,-1,1)[0], P(0,1,-1)[0]];\n\n/* Voice agent providers. To show official logos, set logo to an image URL or data: URI\n   (e.g. an SVG from the provider's press kit); otherwise the name is set as text. */\nconst PROVIDERS = [\n  { n: 'ElevenLabs', logo: '' }, { n: 'Vapi', logo: '' }, { n: 'Retell', logo: '' },\n  { n: 'Dograh', logo: '' }, { n: 'xAI', logo: '' }, { n: '+ more', logo: '', more: true }\n];\nconst PORTS = [[-1,.6],[-1,0],[-1,-.6],[-.6,-1],[0,-1],[.6,-1]].map(([u,v]) => P(LY[4],u,v));   // along the plane's back edges\nconst CW = 88, CG = 8, CX0 = cx - (PROVIDERS.length * CW + (PROVIDERS.length - 1) * CG) / 2, CY = -64;\nconst provSvg = `<g class=\"pstrip\">\n  <rect x=\"${CX0-10}\" y=\"${CY-30}\" width=\"${PROVIDERS.length*(CW+CG)-CG+20}\" height=\"62\" rx=\"16\" fill=\"#ffffff\" fill-opacity=\".72\" stroke=\"url(#edgeG)\" stroke-width=\"1.5\" filter=\"url(#glow)\"/>\n  <text class=\"hud\" x=\"${CX0}\" y=\"${CY-40}\">voice agent providers</text></g>\n  ${PROVIDERS.map((p,i) => { const x = CX0 + i*(CW+CG) + CW/2, [px,py] = PORTS[i];\n    return `<g class=\"pbeam\"><line class=\"pline\" x1=\"${x}\" y1=\"${CY+15}\" x2=\"${px}\" y2=\"${py}\" stroke=\"#D20072\" stroke-opacity=\".35\" stroke-width=\"1.5\"/>\n      <line class=\"cd pflow\" x1=\"${x}\" y1=\"${CY+15}\" x2=\"${px}\" y2=\"${py}\" stroke=\"#D20072\" stroke-width=\"2.5\"/>\n      <ellipse class=\"port\" cx=\"${px}\" cy=\"${py}\" rx=\"9\" ry=\"4.5\" fill=\"#D20072\" filter=\"url(#glowM)\"/></g>`; }).join('')}\n  ${PROVIDERS.map((p,i) => { const x = CX0 + i*(CW+CG);\n    const face = p.logo ? `<image href=\"${p.logo}\" x=\"${x+10}\" y=\"${CY-11}\" width=\"${CW-20}\" height=\"22\" preserveAspectRatio=\"xMidYMid meet\"/>`\n                        : `<text x=\"${x+CW/2}\" y=\"${CY+4.5}\" text-anchor=\"middle\" font-size=\"12.5\" font-weight=\"600\" fill=\"${p.more?'#D20072':'#363635'}\">${p.n}</text>`;\n    return `<g class=\"chip\"><rect x=\"${x}\" y=\"${CY-15}\" width=\"${CW}\" height=\"30\" rx=\"15\" fill=\"#fff\" stroke=\"${p.more?'#D20072':'#009A96'}\" stroke-opacity=\".7\" ${p.more?'stroke-dasharray=\"4 4\"':''}/>${face}</g>`; }).join('')}`;                      // left & right vertex x for data conduits\n\nsvg.innerHTML = `\n<defs>\n  <filter id=\"glow\" x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\"><feGaussianBlur stdDeviation=\"3\" result=\"b\"/><feMerge><feMergeNode in=\"b\"/><feMergeNode in=\"SourceGraphic\"/></feMerge></filter>\n  <filter id=\"glowM\" x=\"-60%\" y=\"-60%\" width=\"220%\" height=\"220%\"><feGaussianBlur stdDeviation=\"4\" result=\"b\"/><feMerge><feMergeNode in=\"b\"/><feMergeNode in=\"SourceGraphic\"/></feMerge></filter>\n  <filter id=\"soft\" x=\"-20%\" y=\"-200%\" width=\"140%\" height=\"500%\"><feGaussianBlur stdDeviation=\"5\"/></filter>\n  ${LAYERS.map((c,i)=>`<linearGradient id=\"top${i}\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"${c.a}\"/><stop offset=\"1\" stop-color=\"${c.b}\"/></linearGradient><clipPath id=\"clip${i}\"><polygon points=\"${rhomb(LY[i])}\"/></clipPath>`).join('')}\n  <linearGradient id=\"edgeG\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\"><stop offset=\"0\" stop-color=\"#009A96\"/><stop offset=\"1\" stop-color=\"#D20072\"/></linearGradient>\n  <linearGradient id=\"aiG\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\" stop-color=\"#ff2f93\"/><stop offset=\"1\" stop-color=\"#D20072\"/></linearGradient>\n  <linearGradient id=\"holo\" x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"><stop offset=\"0\" stop-color=\"#D20072\" stop-opacity=\".28\"/><stop offset=\"1\" stop-color=\"#D20072\" stop-opacity=\"0\"/></linearGradient>\n</defs>\n<g id=\"floor\">${floor.join('')}</g>\n<g id=\"ghost\" fill=\"none\" stroke=\"#363635\" stroke-opacity=\".22\" stroke-dasharray=\"5 6\">${LY.map(cy=>`<polygon points=\"${rhomb(cy)}\"/>`).join('')}</g>\n${LAYERS.map((c,i)=>`<g id=\"L${i}\" class=\"layer\"><g class=\"lift\">${slab(i,LY[i],c)}<g>${[custSvg,puckSvg,coreSvg,flowSvg+verbSvg+modSvg,seatSvg][i]}</g></g></g>`).join('')}\n<g id=\"aip\">${aipSvg}</g>\n<g id=\"prov\">${provSvg}</g>\n<g id=\"cond\" fill=\"none\" stroke-linecap=\"round\">\n  ${vx.map(x=>`<line x1=\"${x}\" y1=\"${LY[4]+T}\" x2=\"${x}\" y2=\"${LY[0]}\" stroke=\"#009A96\" stroke-opacity=\".25\"/><line class=\"cd\" x1=\"${x}\" y1=\"${LY[0]}\" x2=\"${x}\" y2=\"${LY[4]+T}\" stroke=\"#D20072\" stroke-width=\"2.5\"/>`).join('')}\n</g>\n<g id=\"bolt\" fill=\"none\">\n  <rect x=\"706\" y=\"28\" width=\"190\" height=\"212\" rx=\"14\" stroke=\"#363635\" stroke-opacity=\".5\" stroke-dasharray=\"6 6\"/>\n  <text class=\"hud\" x=\"801\" y=\"52\" text-anchor=\"middle\">outside the phone system</text>\n  <path d=\"M708,240 L701,386\" stroke=\"#363635\" stroke-opacity=\".5\" stroke-dasharray=\"4 5\"/>\n  <text class=\"hud\" x=\"716\" y=\"262\">api bridge</text>\n</g>\n<g id=\"call\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n  ${[1,2].map(i=>`<ellipse id=\"x${i}\" class=\"xr\" cx=\"${callPts[i][0]}\" cy=\"${callPts[i][1]}\" rx=\"22\" ry=\"11\" stroke=\"#D20072\" stroke-width=\"2\" opacity=\"0\"/>`).join('')}\n  <polyline id=\"callIn\" points=\"${callPts.map(pt).join(' ')}\" stroke=\"#D20072\" stroke-width=\"3\" filter=\"url(#glowM)\"/>\n  <path id=\"ctx\" d=\"${ctxD}\" stroke=\"#009A96\" stroke-width=\"2.5\" filter=\"url(#glow)\"/>\n  <path id=\"xfer\" d=\"${xferD}\" stroke=\"#D20072\" stroke-width=\"3\" filter=\"url(#glowM)\"/>\n  <circle id=\"d1\" r=\"6\" fill=\"#fff\" stroke=\"#D20072\" stroke-width=\"2.5\" filter=\"url(#glowM)\" opacity=\"0\"/>\n  <circle id=\"d2\" r=\"5\" fill=\"#fff\" stroke=\"#009A96\" stroke-width=\"2.5\" filter=\"url(#glow)\" opacity=\"0\"/>\n  <circle id=\"d3\" r=\"6\" fill=\"#fff\" stroke=\"#D20072\" stroke-width=\"2.5\" filter=\"url(#glowM)\" opacity=\"0\"/>\n  <text id=\"inLab\" class=\"hud halo\" x=\"${callPts[0][0]+12}\" y=\"${callPts[0][1]+12}\" text-anchor=\"start\" fill=\"#363635\" stroke=\"none\">inbound call</text>\n  <text id=\"ctxLab\" class=\"hud halo\" x=\"${crm[0]-30}\" y=\"${crm[1]+31}\" text-anchor=\"end\" fill=\"#007A77\" stroke=\"none\">crm lookup</text>\n  <text id=\"xLab\" class=\"hud halo\" x=\"${dana[0]+108}\" y=\"${dana[1]-26}\" text-anchor=\"start\" fill=\"#D20072\" stroke=\"none\">warm transfer + context</text>\n</g>`;\n\n/* phones: widen the frame slightly so the layer captions on the left are never clipped */\nconst narrow = matchMedia('(max-width: 760px)');\nconst fitFrame = () => svg.setAttribute('viewBox', narrow.matches ? '-34 -120 940 1030' : '0 -120 900 1030');\nfitFrame(); narrow.addEventListener('change', fitFrame);\n\n/* ---------- Falling-glyph field (echoes the cloudonix.com hero) ---------- */\nconst reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;\nconst cv = document.getElementById('rain'), g2 = cv.getContext('2d');\nconst GL = 'αβγδεθλμπσφψωΣΔΠ∂∫√∞≈≠≤≥0123456789';\nconst pick = () => GL[Math.random() * GL.length | 0];\nlet cols = [], cw = 0, ch = 0, boost = 0, lastY = scrollY, running = false;\nconst size = () => {\n  const dpr = Math.min(devicePixelRatio || 1, 2); cw = cv.clientWidth; ch = cv.clientHeight;\n  cv.width = cw * dpr; cv.height = ch * dpr; g2.setTransform(dpr, 0, 0, dpr, 0, 0);\n  cols = Array.from({ length: Math.ceil(cw / 26) }, (_, i) => ({\n    x: i * 26 + 13, y: Math.random() * ch, s: .25 + Math.random() * .6, n: 6 + (Math.random() * 14 | 0),\n    c: Math.random() < .25 ? '210,0,114' : Math.random() < .6 ? '0,154,150' : '54,54,53',\n    g: Array.from({ length: 22 }, pick)\n  }));\n};\nconst frame = () => {\n  g2.clearRect(0, 0, cw, ch); g2.font = '13px \"Fira Code\", monospace'; g2.textAlign = 'center';\n  for (const c of cols) {\n    for (let k = 0; k < c.n; k++) {\n      const a = (1 - k / c.n) * (k ? .45 : .9);\n      g2.fillStyle = `rgba(${c.c},${a})`; g2.fillText(c.g[k], c.x, c.y - k * 16);\n    }\n    if (!reduce) { c.y += c.s * (1 + boost); if (c.y - c.n * 16 > ch) { c.y = -10; c.g.unshift(pick()); c.g.pop(); }\n      if (Math.random() < .02) c.g[Math.random() * c.n | 0] = pick(); }\n  }\n  boost *= .92;\n  if (running && !reduce) requestAnimationFrame(frame);\n};\nconst ro = new ResizeObserver(() => { size(); frame(); }); ro.observe(cv);\naddEventListener('scroll', () => { boost = Math.min(10, boost + Math.abs(scrollY - lastY) * .04); lastY = scrollY; }, { passive: true });\nconst io = new IntersectionObserver(([e]) => { const was = running; running = e.isIntersecting; if (running && !was) requestAnimationFrame(frame); });\nio.observe(document.getElementById('track'));\n\n/* ---------- Narrative steps & rail ---------- */\nconst steps = [...document.querySelectorAll('.step')];\nconst MARKS = [0, .03, .13, .23, .33, .44, .58, .68, .77];           // scroll progress where each step begins\nconst NAMES = ['Intro','Customer type','Connectivity','Voice core','Orchestration','Bolted on','Agent plane','Providers','Live call'];\nconst rail = document.getElementById('rail'), track = document.getElementById('track');\nconst dotsBox = document.getElementById('dots'), nextBtn = document.getElementById('next');\ndotsBox.innerHTML = NAMES.map((n,i)=>`<button type=\"button\" data-i=\"${i}\" aria-label=\"Go to ${n}\"></button>`).join('');\nconst dots = [...dotsBox.children];\nlet cur = -1;\nconst setStep = p => {\n  let i = 0; MARKS.forEach((m,k) => { if (p >= m) i = k; });\n  if (i === cur) return; cur = i;\n  steps.forEach((s,k) => s.classList.toggle('on', k === i));\n  dots.forEach((d,k) => { d.classList.toggle('on', k === i); d.setAttribute('aria-current', k === i ? 'step' : 'false'); });\n  svg.classList.toggle('live', i >= 8);\n  nextBtn.disabled = i === MARKS.length - 1;\n};\nrail.addEventListener('click', e => {\n  const b = e.target.closest('button'); if (!b) return;\n  const i = b === nextBtn ? Math.min(Math.max(cur, 0) + 1, MARKS.length - 1) : +b.dataset.i, dist = track.offsetHeight - innerHeight;\n  const p = i === 0 ? 0 : MARKS[i] + .6 * ((MARKS[i+1] ?? 1) - MARKS[i]);\n  window.scrollTo({ top: track.offsetTop + p * dist, behavior: reduce ? 'auto' : 'smooth' });\n});\n\n/* ---------- Scroll-synced Anime.js timeline (1000 units = whole track) ---------- */\nconst A = window.anime;\nif (!A) { setStep(8); }                                     // CDN failed: show the finished stack\nelse {\n  const { createTimeline, onScroll, utils, stagger } = A;\n  const len = el => el.getTotalLength();\n  const hideStroke = el => { const l = len(el); el.style.strokeDasharray = l; el.style.strokeDashoffset = l; };\n\n  utils.set('.lift', { opacity: 0, translateY: -140 });\n  utils.set('#L0 .lift', { opacity: .55, translateY: -60 });   // first layer is half-landed on load: invites the scroll\n  utils.set('.puck, .tok, .mod', { opacity: 0, translateY: -18 });\n  utils.set('.scan, #cond, .verb, .apanel, .aisec, .aichip, .aflow, .aport, .pstrip, .chip, .pflow, .port, #L2 .wire, #L2 .node, #L3 .node, .tile-solid, .lab-new, #bolt, #inLab, #ctxLab, #xLab', { opacity: 0 });\n  document.querySelectorAll('.flow, .pline, .aline, #callIn, #ctx, #xfer').forEach(hideStroke);\n  const flyOffset = {};\n  document.querySelectorAll('.fly').forEach(el => {\n    const s = SEATS.find(q => q.id === el.dataset.id), [sx,sy] = P(LY[4], s.u, s.v), [ox,oy] = OUTSIDE[s.id];\n    flyOffset[s.id] = [ox - sx, oy - sy];\n    utils.set(el, { opacity: 0, translateX: ox - sx, translateY: oy - sy });\n  });\n\n  const tl = createTimeline({\n    defaults: { ease: 'outCubic', duration: 60 },\n    autoplay: onScroll({ target: track, enter: 'top top', leave: 'bottom bottom', sync: .35 }),\n    onUpdate: self => setStep(self.progress)\n  });\n\n  // 1-5: glass layers land one on top of the other, each followed by a scan sweep\n  [30, 130, 230, 330, 440].forEach((t, i) => {\n    tl.add(`#L${i} .lift`, { opacity: i ? [0, 1] : [.55, 1], translateY: i ? [-140, 0] : [-60, 0], duration: i ? 90 : 60 }, i ? t : 0);\n    tl.add(`#L${i} .scan`, { translateX: [0, -W], translateY: [0, H], duration: 55, ease: 'inOutSine' }, t + 62);\n    tl.add(`#L${i} .scan`, { opacity: [0, 1], duration: 10 }, t + 62);\n    tl.add(`#L${i} .scan`, { opacity: [1, 0], duration: 15 }, t + 102);\n    if (i) tl.add(`#L${i-1} .lname-g`, { opacity: [1, .45], duration: 50 }, t + 40);\n  });\n  tl.add('#ghost', { opacity: [1, 0], duration: 100 }, 440);\n  tl.add('#L0 .puck', { opacity: [0, 1], translateY: [-18, 0], delay: stagger(8), duration: 45 }, 65);\n  tl.add('#L1 .puck', { opacity: [0, 1], translateY: [-18, 0], delay: stagger(8), duration: 45 }, 165);\n  tl.add('#L2 .wire, #L2 .node', { opacity: [0, 1], delay: stagger(4), duration: 40 }, 285);\n  document.querySelectorAll('.flow').forEach((el, i) => tl.add(el, { strokeDashoffset: [len(el), 0], duration: 30, ease: 'inOutQuad' }, 385 + i * 10));\n  tl.add('#L3 .node', { opacity: [0, 1], delay: stagger(12), duration: 20 }, 405);\n  tl.add('.mod', { opacity: [0, 1], translateY: [-18, 0], delay: stagger(10), duration: 40 }, 365);\n  tl.add('.verb', { opacity: [0, .95], translateX: [-20, 0], delay: stagger(10), duration: 30 }, 360);\n  tl.add('.apanel', { opacity: [0, 1], translateX: [30, 0], duration: 30 }, 385);\n  tl.add('.aisec', { opacity: [0, 1], duration: 15 }, 392);\n  tl.add('.aichip', { opacity: [0, 1], delay: stagger(3), duration: 15 }, 395);\n  document.querySelectorAll('.aline').forEach((el, i) => tl.add(el, { strokeDashoffset: [len(el), 0], duration: 20, ease: 'inOutQuad' }, 410 + i * 5));\n  tl.add('.aport', { opacity: [0, 1], delay: stagger(5), duration: 8 }, 428);\n  tl.add('.aflow', { opacity: [0, 1], duration: 15 }, 432);\n  tl.add('#cond', { opacity: [0, 1], duration: 40 }, 530);\n\n  // 6: people and systems take their seats; AI bots float outside, bolted on\n  tl.add('.tok', { opacity: [0, 1], translateY: [-18, 0], delay: stagger(8), duration: 45 }, 475);\n  tl.add('#bolt', { opacity: [0, 1], duration: 40 }, 490);\n  tl.add('.fly', { opacity: [0, 1], delay: stagger(8), duration: 35 }, 500);\n\n  // 7: AI agents fly in and become first-class seats with extensions\n  tl.add('#bolt', { opacity: [1, 0], duration: 40 }, 585);\n  document.querySelectorAll('.fly').forEach((el, i) => {\n    const [dx, dy] = flyOffset[el.dataset.id];\n    tl.add(el, { translateX: [dx, 0], translateY: [dy, 0], duration: 70, ease: 'inOutQuad' }, 585 + i * 8);\n  });\n  tl.add('.lab-old', { opacity: [1, 0], duration: 20 }, 645);\n  tl.add('.lab-new, .tile-solid', { opacity: [0, 1], duration: 20 }, 652);\n  tl.add('.seat.ai .ring', { scale: [.6, 1.7], duration: 35, ease: 'outQuad' }, 658);\n  tl.add('.seat.ai .ring', { opacity: [0, .9], duration: 8 }, 658);\n  tl.add('.seat.ai .ring', { opacity: [.9, 0], duration: 25 }, 667);\n\n  // helpers for the last two steps\n  const ride = (pathId, dotId, start, dur) => {\n    const pathEl = document.getElementById(pathId), dotEl = document.getElementById(dotId), L = len(pathEl);\n    const m = { p: 0 }, place = () => { const q = pathEl.getPointAtLength(m.p * L); dotEl.setAttribute('cx', q.x); dotEl.setAttribute('cy', q.y); };\n    place();\n    tl.add(dotEl, { opacity: [0, 1], duration: 5 }, start);\n    tl.add(pathEl, { strokeDashoffset: [L, 0], duration: dur, ease: 'linear' }, start);\n    tl.add(m, { p: [0, 1], duration: dur, ease: 'linear', onUpdate: place }, start);\n  };\n  const pulse = (sel, t) => {\n    tl.add(sel, { scale: [.6, 1.7], duration: 40, ease: 'outQuad' }, t);\n    tl.add(sel, { opacity: [0, 1], duration: 6 }, t);\n    tl.add(sel, { opacity: [1, 0], duration: 30 }, t + 10);\n  };\n  // 8: the provider ecosystem plugs into the same agent plane\n  tl.add('.pstrip', { opacity: [0, 1], translateY: [-30, 0], duration: 35 }, 685);\n  tl.add('.chip', { opacity: [0, 1], translateY: [-14, 0], delay: stagger(5), duration: 25 }, 695);\n  document.querySelectorAll('.pline').forEach((el, i) => tl.add(el, { strokeDashoffset: [len(el), 0], duration: 25, ease: 'inOutQuad' }, 715 + i * 4));\n  tl.add('.port', { opacity: [0, 1], delay: stagger(4), duration: 10 }, 738);\n  tl.add('.pflow', { opacity: [0, 1], duration: 20 }, 742);\n  pulse('.seat.ai .ring', 748);\n\n  // 9: a live call: connectivity -> core -> orchestration (STT/LLM/TTS) -> AI -> CRM -> human\n  tl.add('#inLab', { opacity: [0, 1], duration: 20 }, 775);\n  ride('callIn', 'd1', 780, 75);\n  const seg = callPts.slice(1).map((p, i) => Math.hypot(p[0] - callPts[i][0], p[1] - callPts[i][1]));\n  const tot = seg.reduce((a, b) => a + b, 0);\n  [1, 2].forEach(i => pulse(`#x${i}`, 780 + 75 * seg.slice(0, i).reduce((a, b) => a + b, 0) / tot));\n  document.querySelectorAll('.mring').forEach((el, k) => pulse(el, 780 + 75 * seg.slice(0, 2).reduce((a, b) => a + b, 0) / tot + k * 6));\n  pulse('#s-ai3 .ring', 855);\n  tl.add('#ctxLab', { opacity: [0, 1], duration: 15 }, 860);\n  ride('ctx', 'd2', 860, 30);\n  pulse('#s-crm .ring', 890);\n  tl.add('#d1', { opacity: [1, 0], duration: 10 }, 898);\n  tl.add('#xLab', { opacity: [0, 1], duration: 20 }, 900);\n  ride('xfer', 'd3', 902, 45);\n  pulse('#s-dana .ring', 947);\n}\n}\n</script>\n</body>\n</html>"
}
