/* One scroll scene: six alternating messages become a team of working agents. */
.agent-journey{--story-paper:#f5f5f3;--story-ink:#19191b;--story-violet:#7148f5;background:var(--story-paper);color:var(--story-ink);overflow:visible}
.journey-intro{min-height:100svh;padding:clamp(155px,17vh,225px) max(5vw,24px) 56px;display:flex;flex-direction:column;align-items:flex-start}
.journey-intro h2{max-width:1450px;margin:0;font-size:clamp(64px,8.3vw,145px);font-weight:600;line-height:.95;letter-spacing:-.09em;text-wrap:balance}
.journey-intro h2 strong{font-weight:800;color:var(--story-violet);letter-spacing:-.11em}
.journey-question{display:inline-block;color:var(--story-violet);transform:rotate(13deg)}
.journey-intro-bottom{width:100%;margin-top:auto;padding-top:80px;display:flex;align-items:end;justify-content:space-between;gap:25px}
.journey-intro-bottom p{margin:0;font-size:clamp(27px,3.3vw,52px);font-weight:500;line-height:1.07;letter-spacing:-.06em}
.journey-intro-bottom .mono{padding-bottom:7px;color:#66666a}

.journey-sticky{min-height:900px;display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,1fr);align-items:center;background:#e8e5f1}
.journey-copy{position:relative;align-self:stretch;padding:clamp(165px,18vh,230px) 40px 85px max(5vw,24px)}
.journey-copy-chat,.journey-copy-team{max-width:790px}
.journey-copy-chat>p,.journey-copy-team>p{margin:0 0 70px;color:#77777b}
.journey-copy h3{margin:0;font-size:clamp(69px,6.2vw,120px);line-height:.96;letter-spacing:-.09em;font-weight:600}
.journey-copy h3 em{font-style:normal;color:var(--story-violet)}
.journey-copy-chat>span,.journey-copy-team>span{display:block;max-width:520px;margin-top:62px;font-size:clamp(21px,2vw,31px);line-height:1.2;letter-spacing:-.045em}
.journey-copy-team{margin-top:60px}
.journey-progress{position:absolute;bottom:85px;left:max(5vw,24px);right:60px;display:flex;align-items:center;gap:22px;color:#66666a}
.journey-progress>span{white-space:nowrap;font-size:9px}
.journey-progress i{display:block;flex:1;height:2px;background:#c7c3d1}
.journey-progress b{display:block;width:100%;height:100%;background:var(--story-violet);transform:scaleX(0);transform-origin:left}

.journey-visual{position:relative;justify-self:center;width:min(520px,calc(100% - 70px));margin:75px 0}
.journey-chat,.journey-team{min-height:660px;display:flex;flex-direction:column;overflow:hidden;border:2px solid var(--story-ink);border-radius:25px;background:#f9f9f6;box-shadow:16px 20px 0 rgba(25,25,27,.13)}
.journey-team{margin-top:45px;background:#e4ddff}
.journey-panel-top{height:69px;flex:none;padding:0 21px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d7d5d5;background:#f9f9f6}
.journey-panel-top>.mono{color:#85858a;font-size:9px;white-space:nowrap}
.journey-panel-brand{display:flex;align-items:center;gap:9px}
.journey-panel-brand img{width:34px;height:34px;object-fit:contain}
.journey-panel-brand strong{font-size:19px;letter-spacing:-.055em;line-height:1}
.journey-chat-body{flex:1;min-height:0;overflow:hidden;overscroll-behavior:contain}
.journey-chat-stream{position:relative;padding:25px 21px 45px}
.journey-message{width:max-content;max-width:82%;margin:0 0 16px;padding:15px 17px 16px;border-radius:17px;color:var(--story-ink);background:#e6e1f8}
.journey-message.from-user{margin-left:auto;border-bottom-right-radius:5px;background:#2b2a32;color:#f9f9f6}
.journey-message.from-agent{border-bottom-left-radius:5px}
.journey-message .mono{display:block;margin-bottom:9px;font-size:8px;opacity:.68}
.journey-message p{margin:0;font-size:15px;line-height:1.36;letter-spacing:-.027em}
.journey-panel-bottom{height:55px;flex:none;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #d7d5d5;background:#f9f9f6;color:#87878c}
.journey-panel-bottom .mono{font-size:8px}
.journey-typing{display:flex;gap:4px;align-items:center}
.journey-typing i{width:6px;height:6px;border-radius:50%;background:var(--story-violet);animation:typing-pulse 1s ease-in-out infinite alternate}
.journey-typing i:nth-child(2){animation-delay:.2s}.journey-typing i:nth-child(3){animation-delay:.4s}

.team-brief{flex:none;padding:23px 23px 20px;border-bottom:1px solid #b7aadd}
.team-brief .mono{font-size:9px;color:#5d4a9e}
.team-brief p{margin:10px 0 9px;font-size:30px;line-height:1;letter-spacing:-.065em;font-weight:600}
.team-brief small{font-size:11px;color:#686273}
.team-grid{flex:1;min-height:0;padding:16px 18px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px}
.team-card{position:relative;min-width:0;padding:13px 14px 15px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid #8474b6;border-radius:10px;background:#faf9f7;box-shadow:4px 5px 0 rgba(84,62,142,.13)}
.team-card .mono{font-size:8px;color:#7454d4}
.team-card strong{margin:9px 0 4px;font-size:23px;line-height:1;letter-spacing:-.065em}
.team-card small{font-size:10px;line-height:1.17;color:#66646e}
.team-card i{position:absolute;left:14px;right:14px;bottom:8px;height:3px;border-radius:3px;background:#ddd3ff;overflow:hidden}
.team-card i:after{content:"";display:block;width:65%;height:100%;background:var(--story-violet);animation:task-progress 2.7s ease-in-out infinite alternate}
.team-card:nth-child(2) i:after{width:42%;animation-delay:.4s}.team-card:nth-child(3) i:after{width:75%;animation-delay:.8s}.team-card:nth-child(4) i:after{width:52%;animation-delay:1.2s}.team-card:nth-child(5) i:after{width:70%;animation-delay:1.6s}
.team-card-wide{grid-column:1/-1}
.journey-team .journey-panel-bottom{background:#e4ddff;border-top-color:#b7aadd;color:#5d4a9e}
.journey-team .journey-panel-bottom>span:last-child{font:25px/1 var(--sans);color:var(--story-violet)}

.journey-scroll.is-motion{height:850svh}
.is-motion .journey-sticky{position:sticky;top:0;height:100svh;min-height:680px;overflow:hidden}
.is-motion .journey-copy-chat,.is-motion .journey-copy-team{position:absolute;top:clamp(165px,18vh,230px);left:max(5vw,24px);right:30px;margin:0}
.is-motion .journey-copy-team{visibility:hidden;opacity:0}
.is-motion .journey-visual{height:min(660px,78svh);margin:0}
.is-motion .journey-chat,.is-motion .journey-team{position:absolute;inset:0;height:100%;min-height:0;margin:0}
.is-motion .journey-team{visibility:hidden;opacity:0}
.is-motion .journey-message,.is-motion .team-card{visibility:hidden;opacity:0}

.journey-outro{min-height:320px;padding:90px max(5vw,24px);display:flex;align-items:center;justify-content:space-between;gap:35px;background:#19191b;color:#f9f9f6}
.journey-outro p{max-width:800px;margin:0;font-size:clamp(38px,5vw,78px);line-height:1;letter-spacing:-.08em;font-weight:600}
.journey-outro a{flex:none;display:flex;align-items:center;gap:25px;padding:16px 22px;border:1px solid #f9f9f6;border-radius:999px;font-size:13px;font-weight:600;transition:background .25s,color .25s,transform .25s}
.journey-outro a:hover{background:#f9f9f6;color:#19191b;transform:translateY(-3px)}
.journey-outro a span{font-size:22px;font-weight:400;line-height:.7}
@keyframes typing-pulse{to{opacity:.25;transform:translateY(-3px)}}
@keyframes task-progress{to{transform:translateX(25%)}}

@media(max-width:1120px){.journey-sticky{grid-template-columns:minmax(0,1fr) minmax(410px,1fr)}.journey-copy h3{font-size:clamp(65px,6.4vw,88px)}.journey-copy-chat>span,.journey-copy-team>span{font-size:22px}.journey-visual{width:min(500px,calc(100% - 30px))}}
@media(max-width:760px){.journey-intro{min-height:850px;padding:145px 22px 52px}.journey-intro h2{font-size:clamp(58px,10vw,86px)}.journey-intro-bottom p{font-size:33px}.journey-sticky{min-height:0;display:flex;flex-direction:column;align-items:stretch;padding:0 18px 55px}.journey-copy{min-height:340px;padding:110px 5px 35px}.journey-copy h3{font-size:clamp(54px,9vw,80px)}.journey-copy-chat>p,.journey-copy-team>p{margin-bottom:25px}.journey-copy-chat>span,.journey-copy-team>span{margin-top:25px}.journey-progress{bottom:25px;left:5px;right:5px}.journey-visual{width:min(520px,100%);margin:0 auto}.journey-chat,.journey-team{min-height:610px}.is-motion .journey-sticky{min-height:0;height:100svh;min-height:680px;padding:0 16px 20px}.is-motion .journey-copy{height:200px;min-height:0;flex:none;padding:76px 0 0}.is-motion .journey-copy-chat,.is-motion .journey-copy-team{top:76px;left:0;right:0}.is-motion .journey-copy h3{font-size:clamp(38px,6vw,55px);line-height:.97}.is-motion .journey-copy-chat>p,.is-motion .journey-copy-team>p{margin-bottom:12px}.is-motion .journey-copy-chat>span,.is-motion .journey-copy-team>span{display:none}.is-motion .journey-progress{bottom:10px;left:0;right:0}.is-motion .journey-visual{height:calc(100svh - 225px);min-height:455px;max-height:650px;margin:0 auto}.journey-outro{min-height:270px;padding:65px 25px;flex-direction:column;align-items:flex-start}.journey-outro p{font-size:51px}}
@media(max-width:520px){.journey-intro{min-height:780px;padding:128px 19px 40px}.journey-intro h2{font-size:clamp(51px,12.1vw,67px);line-height:.99}.journey-intro-bottom{padding-top:55px;align-items:flex-start;flex-direction:column;gap:30px}.journey-intro-bottom p{font-size:28px}.journey-intro-bottom .mono{font-size:8px}.journey-scroll.is-motion{height:810svh}.is-motion .journey-sticky{padding:0 13px 13px;min-height:650px}.is-motion .journey-copy{height:175px;padding-top:73px}.is-motion .journey-copy-chat,.is-motion .journey-copy-team{top:73px}.is-motion .journey-copy h3{font-size:clamp(34px,9.3vw,48px)}.is-motion .journey-copy-chat>p,.is-motion .journey-copy-team>p{font-size:8px;margin-bottom:9px}.is-motion .journey-progress{bottom:8px}.journey-progress>span{font-size:7px}.is-motion .journey-visual{height:calc(100svh - 190px);min-height:460px;max-height:650px}.journey-chat,.journey-team{border-radius:18px;box-shadow:7px 9px 0 rgba(25,25,27,.13)}.journey-panel-top{height:57px;padding:0 13px}.journey-panel-brand img{width:28px;height:28px}.journey-panel-brand strong{font-size:16px}.journey-panel-top>.mono{font-size:7px}.journey-chat-stream{padding:18px 12px 33px}.journey-message{max-width:88%;margin-bottom:12px;padding:11px 12px 12px;border-radius:13px}.journey-message .mono{font-size:7px;margin-bottom:6px}.journey-message p{font-size:13px;line-height:1.3}.journey-panel-bottom{height:43px;padding:0 13px}.team-brief{padding:16px 13px 14px}.team-brief p{font-size:23px;margin:8px 0 6px}.team-brief small{font-size:9px}.team-grid{padding:11px;gap:7px}.team-card{padding:10px 9px 13px;border-radius:8px;box-shadow:2px 3px 0 rgba(84,62,142,.13)}.team-card .mono{font-size:7px}.team-card strong{font-size:18px;margin:7px 0 3px}.team-card small{font-size:9px}.team-card i{left:9px;right:9px;bottom:6px;height:2px}.journey-team .journey-panel-bottom .mono{font-size:6px}.journey-outro p{font-size:44px}.journey-outro a{font-size:12px}}
@media(max-width:520px){.is-motion .journey-copy{height:205px}.is-motion .journey-visual{height:calc(100svh - 220px);min-height:450px}}
@media(prefers-reduced-motion:reduce){.journey-typing i,.team-card i:after{animation:none}.journey-outro a{transition:none}}

/* The conversation dissolves into one full-screen orchestration diagram. */
.journey-map{position:relative;grid-column:1/-1;width:100%;height:100svh;min-height:680px;overflow:hidden;background:#dcd5ee;color:#19191b}
.journey-map:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 56%,rgba(255,255,255,.68),transparent 31%),linear-gradient(90deg,rgba(113,72,245,.075) 1px,transparent 1px),linear-gradient(rgba(113,72,245,.075) 1px,transparent 1px);background-size:auto,76px 76px,76px 76px}
.map-heading{position:absolute;z-index:5;top:clamp(105px,13vh,130px);left:max(5vw,27px);right:max(5vw,27px);display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.map-heading>.mono:first-child{position:absolute;top:-27px;left:0;color:#6d6382;font-size:10px}
.map-heading h3{margin:0;font-size:clamp(43px,4.2vw,73px);line-height:.93;letter-spacing:-.085em;font-weight:600}
.map-heading h3 em{font-style:normal;color:#7148f5}
.map-status{flex:none;display:flex;align-items:center;gap:9px;padding-bottom:7px;font-size:10px;color:#615779}
.map-status b{color:#7148f5;font-size:16px;line-height:0;animation:typing-pulse 1s ease-in-out infinite alternate}
.map-field{position:absolute;inset:0}
.map-hub,.map-node{position:absolute;z-index:3;translate:-50% -50%}
.map-hub{left:50%;top:54%;width:clamp(290px,28vw,410px);min-height:170px;padding:17px 22px 18px;border:2px solid #19191b;border-radius:19px;background:#7148f5;color:#fff;box-shadow:11px 13px 0 rgba(25,25,27,.16)}
.map-hub:before{content:"";position:absolute;inset:-8px;border:2px solid rgba(113,72,245,.7);border-radius:25px;pointer-events:none;animation:hub-breath 3s ease-out infinite}
.map-hub-top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.map-hub-top img{width:34px;height:34px;object-fit:contain;filter:brightness(0) invert(1)}
.map-hub-top .mono{font-size:9px;opacity:.7}
.map-hub strong{display:block;margin-top:4px;font-size:clamp(30px,2.7vw,42px);line-height:1;letter-spacing:-.07em}
.map-hub p{margin:11px 0 13px;font-size:15px;letter-spacing:-.025em}
.map-hub-foot{display:block;border-top:1px solid rgba(255,255,255,.4);padding-top:11px;font-size:9px;letter-spacing:.06em}
.map-node{width:clamp(198px,18vw,260px);min-height:115px;padding:14px 16px 12px;border:1.5px solid #19191b;border-radius:14px;background:#fbfaf7;box-shadow:6px 7px 0 rgba(25,25,27,.13)}
.map-node .mono{font-size:9px;color:#7148f5;letter-spacing:.06em}
.map-node strong{display:block;margin:8px 0 3px;font-size:clamp(22px,1.9vw,29px);line-height:1;letter-spacing:-.07em}
.map-node p{margin:0;color:#68636c;font-size:12px;line-height:1.2;letter-spacing:-.02em}
.map-node small{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:8px;border-top:1px solid #dcd7e8;font-size:8px;color:#4f3e93}
.map-node small b{font-size:11px;line-height:.5;color:#7148f5;animation:worker-signal 1.4s ease-in-out infinite alternate}
.map-marketing{left:19%;top:39%}
.map-sales{left:81%;top:39%}
.map-finance{left:19%;top:75%}
.map-operations{left:81%;top:75%}
.map-support{left:50%;top:86%}
.map-link{position:absolute;z-index:1;height:2px;transform-origin:left center;pointer-events:none}
.map-link-track{display:block;width:100%;height:2px;background:#7148f5;transform:scaleX(0);transform-origin:left center}
.map-pulse{position:absolute;top:-5px;left:0;width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid #7148f5;box-shadow:0 0 0 5px rgba(113,72,245,.16);opacity:0}
.map-flow{position:absolute;top:-3px;left:0;width:8px;height:8px;border-radius:50%;background:#fff;border:2px solid #7148f5;box-shadow:0 0 0 4px rgba(113,72,245,.15);opacity:0;animation:flow-travel 2.7s linear infinite}
.map-link:nth-child(2) .map-flow{animation-duration:3.2s;animation-delay:-1.2s}
.map-link:nth-child(3) .map-flow{animation-duration:2.9s;animation-delay:-.8s}
.map-link:nth-child(4) .map-flow{animation-duration:3.4s;animation-delay:-1.7s}
.map-link:nth-child(5) .map-flow{animation-duration:3s;animation-delay:-.4s}
@keyframes flow-travel{0%{left:0;scale:.5}15%{scale:1}85%{scale:1}100%{left:100%;scale:.5}}
@keyframes hub-breath{0%{opacity:.72;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.07)}}
@keyframes worker-signal{to{opacity:.28;transform:scale(.75)}}
.map-footer{position:absolute;z-index:5;left:max(5vw,27px);right:max(5vw,27px);bottom:20px;display:flex;justify-content:space-between;gap:15px;font-size:9px;letter-spacing:.08em;color:#6d6382}
.journey-scroll.is-motion{height:1040svh}
.is-motion .journey-map{position:absolute;inset:0;min-height:0;visibility:hidden;opacity:0}
.is-motion .map-node{opacity:.28}
.is-motion .map-node small{opacity:0}

@media(max-width:1000px){
  .map-hub{width:300px}
  .map-node{width:205px}
  .map-marketing,.map-finance{left:15%}
  .map-sales,.map-operations{left:85%}
}
@media(max-width:760px){
  .journey-map{height:100svh;min-height:650px}
  .map-heading{top:93px;left:21px;right:21px;display:block}
  .map-heading>.mono:first-child{top:-18px;font-size:8px}
  .map-heading h3{font-size:clamp(35px,7.5vw,55px);line-height:.94}
  .map-status{margin-top:9px;padding:0;font-size:8px}
  .map-hub{left:50%;top:32%;width:min(305px,75vw);min-height:0;padding:12px 15px 13px;border-radius:14px;box-shadow:6px 7px 0 rgba(25,25,27,.16)}
  .map-hub-top img{width:23px;height:23px}
  .map-hub-top .mono{font-size:7px}
  .map-hub strong{font-size:30px}
  .map-hub p{margin:7px 0 9px;font-size:11px}
  .map-hub-foot{padding-top:7px;font-size:7px}
  .map-node{width:42%;min-height:91px;padding:9px 10px 8px;border-radius:10px;box-shadow:3px 4px 0 rgba(25,25,27,.13)}
  .map-node .mono{font-size:7px}
  .map-node strong{margin:6px 0 2px;font-size:20px}
  .map-node p{font-size:10px}
  .map-node small{margin-top:6px;padding-top:5px;font-size:6px}
  .map-marketing,.map-finance{left:26%}
  .map-sales,.map-operations{left:74%}
  .map-marketing,.map-sales{top:54%}
  .map-finance,.map-operations{top:72%}
  .map-support{left:50%;top:89%;width:52%}
  .map-footer{left:21px;right:21px;bottom:10px;font-size:7px}
  .journey-scroll.is-motion{height:1080svh}
}
@media(max-width:520px){
  .map-heading{top:93px;left:15px;right:15px}
  .map-heading h3{font-size:clamp(34px,9vw,44px)}
  .map-hub{top:32%;width:min(290px,75vw)}
  .map-node{width:43%}
  .map-node strong{font-size:18px}
  .map-support{width:55%}
  .map-footer{left:15px;right:15px;font-size:6px}
}
@media(max-width:760px) and (max-height:700px){
  .map-heading{top:79px}
  .map-heading>.mono:first-child{display:none}
  .map-heading h3{font-size:clamp(30px,8vw,37px)}
  .map-status{display:none}
  .map-hub{top:35%}
}
@media(prefers-reduced-motion:reduce){
  .map-link-track{transform:none}
  .map-pulse,.map-flow{display:none}
  .map-status b,.map-hub:before,.map-node small b{animation:none}
}

/* The story now relies on the conversation and task handoff. */
.journey-intro{min-height:78svh;justify-content:center;padding-top:130px;padding-bottom:90px}
.journey-panel-bottom{justify-content:flex-end}
.map-hub{min-height:0}
.map-hub p{margin-bottom:0}
.map-node{min-height:82px;display:flex;flex-direction:column;justify-content:center}
.map-node strong{margin-bottom:0}
@media(max-width:760px){.journey-intro{min-height:68svh;padding:120px 22px 70px}.map-node{min-height:68px}}
@media(max-width:520px){.journey-intro{min-height:68svh;padding:115px 19px 55px}.map-node{min-height:65px}}
