/* v122 — page 9: the agent as a flow, copy on one side and the drawing on the other, on a white page. */
.ax-agents .ax-fit{font-size:min(calc(100cqh/40),1.3cqw)}
html[lang="ar"] .ax-agents .ax-fit{font-size:min(calc(100cqh/41),1.3cqw)}
.axn-page{flex:1;min-height:0;display:flex;flex-direction:column}
.axn-hero{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:3.4em;align-items:center}
.axn-copy{min-width:0}
.axn-copy .ax-title{font-size:3.7em}
.axn-copy .ax-lead{margin-top:1.1em!important;max-width:25em}
.axn-copy .ax-note{max-width:25em}
.ax-agents .ax-services{margin-top:2.4em}

/* the drawing: 37em by 28em; the wires are an SVG in tenths of an em, the nodes sit on top */
.axn{position:relative;width:37em;height:28em;margin:0;direction:ltr;flex:none}
.axn-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.axn-wires .fr{fill:none;stroke:#c3d2e2;stroke-width:1.1;stroke-dasharray:1.6 3.4;stroke-linecap:round}
.axn-wires .fr.o{stroke:#b3c5d8}
.axn-wires .ed{fill:none;stroke:#a7bbd0;stroke-width:1.15;stroke-linecap:round}
.axn-wires .dt{fill:#8aa6c3}
.axn-wires .pl{fill:none;stroke:#2f6db3;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:14 200;stroke-dashoffset:14;opacity:0}
.axn-nodes{position:absolute;inset:0}
.axn-n{position:absolute;left:calc(var(--x)*1em);top:calc(var(--y)*1em);width:0;height:0}
.axn-n .c{position:absolute;left:0;top:0;width:calc(var(--d)*1em);height:calc(var(--d)*1em);transform:translate(-50%,-50%);border-radius:50%;background:#fff;border:.085em solid #24476e;display:grid;place-items:center}
.axn-n .c svg{width:46%;height:46%;fill:none;stroke:#24476e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.axn-n .c i{position:absolute;inset:-.32em;border-radius:50%;border:.11em solid #2f6db3;box-shadow:0 0 .7em #2f6db355;opacity:0;pointer-events:none}
.axn-n b{position:absolute;left:0;top:calc(var(--d)*.5em + .28em);transform:translateX(-50%);white-space:nowrap;font-size:1em;font-weight:600;line-height:1.2;color:var(--ax-ink);letter-spacing:-.01em}
.axn-n.s b{font-size:.92em;font-weight:500;color:#2a4766}
.axn-n.a .c{background:radial-gradient(circle at 30% 22%,#6f98c4,#24507f);border-color:#24507f;box-shadow:0 .5em 1.4em #24507f33}
.axn-n.a .c svg{stroke:#eef6ff;stroke-width:1.5}
.axn-n.a b{font-size:1.1em;left:calc(var(--d)*.5em + .55em);top:0;transform:translateY(-50%)}
html[dir="rtl"] .axn-n.a b{left:auto;right:calc(var(--d)*.5em + .55em)}
html[dir="rtl"] .axn-n{left:calc((37 - var(--x))*1em)}
html[dir="rtl"] .axn-wires{transform:scaleX(-1)}
html[lang="ar"] .axn-n b{letter-spacing:0;font-size:1.06em}
html[lang="ar"] .axn-n.s b{font-size:.98em}
html[lang="ar"] .axn-n.a b{font-size:1.14em}

@keyframes axn-run{0%{stroke-dashoffset:14;opacity:0}.6%{opacity:1}7%{stroke-dashoffset:-100;opacity:1}7.6%,100%{stroke-dashoffset:-100;opacity:0}}
@keyframes axn-glow{0%{opacity:0;transform:scale(.92)}1.6%{opacity:1;transform:scale(1)}7%,100%{opacity:0;transform:scale(1.06)}}
@media (prefers-reduced-motion:no-preference){
 .axn-wires .pl{animation:axn-run 10s linear infinite}
 .axn-n .c i{animation:axn-glow 10s ease-out infinite}
}

/* upright page: the same two columns, the type a step larger */
@container ax (max-aspect-ratio:7/5){
 .ax-agents .ax-fit{font-size:min(calc(100cqh/48.5),1.6cqw)}
 html[lang="ar"] .ax-agents .ax-fit{font-size:min(calc(100cqh/49),1.6cqw)}
 .axn-hero{column-gap:2.6em}
}
/* portrait: the copy above, the drawing below it */
@container ax (max-aspect-ratio:1/1){
 .ax-agents .ax-fit{font-size:min(calc(100cqh/56),2.15cqw)}
 html[lang="ar"] .ax-agents .ax-fit{font-size:min(calc(100cqh/58),2.15cqw)}
 .axn-hero{grid-template-columns:minmax(0,1fr);row-gap:2.2em;align-content:center;justify-items:center}
 .axn-copy{justify-self:stretch}
 .axn-copy .ax-lead,.axn-copy .ax-note{max-width:38em}
 .ax-agents .ax-services{gap:1.8em}
}
@media print{.axn-wires .pl,.axn-n .c i{display:none}}

/* ---------- v122 — page 10: an automation workflow on a dark canvas, run from the trigger to the result ---------- */
.ax-flow .ax-fit{font-size:min(calc(100cqh/44.8),calc(100cqw/66))}
html[lang="ar"] .ax-flow .ax-fit{font-size:min(calc(100cqh/45),calc(100cqw/66))}
.axw{flex:1;min-height:0;display:flex;flex-direction:column}
.axw-copy{flex:none;min-width:0}
.axw-copy .ax-title{font-size:3.3em}
.axw-copy .ax-title br{display:none}
.axw-copy .ax-title em{margin-inline-start:.28em}
.axw-copy .ax-lead{margin-top:.9em!important;max-width:58em}
.ax-flow .ax-services{margin-top:2em}

.wf{position:relative;flex:none;width:64em;height:22.6em;direction:ltr}
.axw .wf{margin:auto}
.wf:before{content:'';position:absolute;inset:-2.2em -3em;background:radial-gradient(circle,#a6c6ea26 1px,transparent 1.3px) 0 0/1.4em 1.4em;-webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(ellipse 60% 62% at 50% 50%,#000 55%,transparent 100%);pointer-events:none}
.wf-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.wf-wires .ed{fill:none;stroke:#5f7c9e;stroke-width:1.2;stroke-linecap:round}
.wf-wires .ed.dash{stroke-dasharray:3 3.4}
.wf-wires .tip{fill:#7f9dbf}
.wf-wires .pt{fill:#0b1626;stroke:#7f9dbf;stroke-width:1.1}
.wf-wires .pt.in{fill:#7f9dbf;stroke:none}
.wf-wires .pl{fill:none;stroke:#e6f3ff;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:16 200;stroke-dashoffset:16;opacity:0;filter:drop-shadow(0 0 .35em #7fc0ff)}
.wf-nodes{position:absolute;inset:0}
.wf-n{position:absolute;left:calc(var(--x)*1em);top:calc(var(--y)*1em);width:0;height:0}
.wf-n .box{position:absolute;left:0;top:0;width:4.2em;height:4.2em;transform:translate(-50%,-50%);border-radius:.9em;background:linear-gradient(180deg,#14243b,#0d1a2c);border:.09em solid #33507a;display:grid;place-items:center;box-shadow:0 .5em 1.4em #0007}
.wf-n .box>svg{width:46%;height:46%;fill:none;stroke:#cfe2f7;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wf-n .gl{position:absolute;inset:-.14em;border-radius:1em;border:.1em solid #bfe0ff;box-shadow:0 0 1.1em #6fb6ff,inset 0 0 .8em #6fb6ff55;opacity:0;pointer-events:none}
.wf-n .lb{position:absolute;left:0;top:2.55em;transform:translateX(-50%);width:max-content;max-width:7.6em;text-align:center;line-height:1.25}
.wf-n .lb b{display:block;font-size:1em;font-weight:600;color:#e9f1fa}
.wf-n .lb small{display:block;font-size:1em;color:#8faac8;margin-top:.15em}
.wf-n.trig .box{border-color:#e88a3e;box-shadow:0 0 1.4em #e88a3e33}
.wf-n.trig .box>svg{stroke:#f3a463}
.wf-n.trig .gl{border-color:#ffc28a;box-shadow:0 0 1.3em #ff9b45,inset 0 0 .8em #ff9b4555}
.wf-n .bolt{position:absolute;left:-3.55em;top:0;width:1.3em;height:1.3em;transform:translateY(-50%)}
.wf-n .bolt svg{width:100%;height:100%;fill:#f08a3c;stroke:none}
.wf-n.sub .box{width:3.2em;height:3.2em;border-radius:50%}
.wf-n.sub .gl{border-radius:50%}
.wf-n.sub .lb{top:2.05em}
.wf-n.agent .box{width:calc(var(--w)*1em);height:4.4em;display:flex;align-items:center;justify-content:flex-start;gap:.8em;padding:0 1em;border-radius:1em;border-color:#5079ac;background:linear-gradient(180deg,#183052,#0f2038)}
.wf-n.agent .ic{width:2.2em;height:2.2em;flex:none;border-radius:.55em;background:#2a4b77;display:grid;place-items:center}
.wf-n.agent .ic svg{width:64%;height:64%;fill:none;stroke:#eef6ff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wf-n.agent .tx{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.wf-n.agent .tx b{font-size:1em;font-weight:600;color:#f1f6fc;white-space:nowrap}
.wf-n.agent .tx small{font-size:1em;margin-top:.15em;color:#9db8d8}
.wf-n.agent .port{position:absolute;bottom:-.32em;width:.56em;height:.56em;background:#7f9dbf;transform:rotate(45deg)}
.wf-n.agent .port.p1{left:calc(50% - 4.6em - .28em)}.wf-n.agent .port.p2{left:calc(50% + 4.6em - .28em)}
.wf-n.done .lb{max-width:6.6em}
.wf-n.done .box{border-color:#3fcfb0;box-shadow:0 0 1.6em #3fcfb033}
.wf-n.done .box>svg{stroke:#7fe6cf}
.wf-n.done .gl{border-color:#a8f5e2;box-shadow:0 0 1.4em #3fdcbc,inset 0 0 .9em #3fdcbc66}
.wf-n.done .burst{position:absolute;left:0;top:0;width:12em;height:12em;transform:translate(-50%,-50%) scale(.4);border-radius:50%;background:radial-gradient(circle,#3fdcbc55,#3fdcbc18 40%,transparent 68%);opacity:0;pointer-events:none}
html[dir="rtl"] .wf-n{left:calc((64 - var(--x))*1em)}
html[dir="rtl"] .wf-wires{transform:scaleX(-1)}
html[dir="rtl"] .wf-n .bolt{left:auto;right:-3.55em}
html[dir="rtl"] .wf-n.agent .port.p1{left:calc(50% + 4.6em - .28em)}html[dir="rtl"] .wf-n.agent .port.p2{left:calc(50% - 4.6em - .28em)}
html[lang="ar"] .wf-n .lb b,html[lang="ar"] .wf-n.agent .tx b{font-size:1.06em}
html[lang="ar"] .wf-n .lb small,html[lang="ar"] .wf-n.agent .tx small{font-size:1em}
html[lang="ar"] .wf-n .lb{max-width:8.2em}

@keyframes wf-run{0%{stroke-dashoffset:16;opacity:0}.6%{opacity:1}7%{stroke-dashoffset:-100;opacity:1}7.6%,100%{stroke-dashoffset:-100;opacity:0}}
@keyframes wf-glow{0%{opacity:0}1.5%{opacity:1}9%{opacity:.35}14%,100%{opacity:0}}
@keyframes wf-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}3%{opacity:1}22%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}}
@media (prefers-reduced-motion:no-preference){
 .wf-wires .pl{animation:wf-run 10s linear infinite}
 .wf-n .gl{animation:wf-glow 10s ease-out infinite}
 .wf-n.done .burst{animation:wf-burst 10s ease-out infinite}
}

/* upright page: the title on two lines, the type a step larger */
@container ax (max-aspect-ratio:7/5){
 .ax-flow .ax-fit{font-size:min(calc(100cqh/56),calc(100cqw/66))}
 html[lang="ar"] .ax-flow .ax-fit{font-size:min(calc(100cqh/57.5),calc(100cqw/66))}
 .axw-copy .ax-title{font-size:4em}
 .axw-copy .ax-title br{display:inline}
 .axw-copy .ax-title em{margin-inline-start:0}
 .axw-copy .ax-lead{max-width:36em}
}
/* portrait: the workflow keeps its shape at a smaller scale */
@container ax (max-aspect-ratio:1/1){
 .ax-flow .ax-fit{font-size:min(calc(100cqh/52),2.15cqw)}
 html[lang="ar"] .ax-flow .ax-fit{font-size:min(calc(100cqh/54),2.15cqw)}
 .wf{font-size:.68em}
 .ax-flow .ax-services{gap:1.8em}
}
@media print{.wf-wires .pl,.wf-n .gl,.wf-n.done .burst{display:none}}
