/* A quieter page, with colour concentrated in the scroll story. */
.expertise-flow { background:#f4f6f5; padding:54px 0 38px; position:relative; }
.flow-container { max-width:1100px; }
.flow-heading { text-align:center; padding:16px 0 25px; }
.flow-heading h2 { margin:0; font-size:clamp(28px,3.2vw,42px); font-weight:500; line-height:1.15; letter-spacing:-1.7px; }
.flow-heading h2 em { font-style:normal; color:#315b74; }
.flow-heading p { font-size:16px; color:#657182; margin:12px 0 0; }
.flow-card { position:relative; display:grid; grid-template-columns:1fr 1fr; min-height:350px; margin-bottom:24px; border:1px solid #e8eceb; border-radius:16px; background:#fff; box-shadow:0 6px 20px #17345f07; overflow:hidden; transform-origin:50% 0; }
.flow-copy { padding:38px 42px; display:flex; align-items:flex-start; justify-content:center; flex-direction:column; }
.flow-copy > .line-icon { color:#31559b; margin-bottom:18px; }
.flow-copy h3 { font-size:clamp(26px,2.6vw,34px); font-weight:500; letter-spacing:-1.1px; line-height:1.15; margin:0 0 14px; }
.flow-copy p { font-size:16px; line-height:1.6; color:#637084; max-width:34ch; margin:0 0 18px; }
.flow-copy ul { display:grid; gap:7px; list-style:none; padding:0; margin:0; }
.flow-copy li { display:flex; align-items:center; gap:9px; font-size:14px; line-height:1.5; color:#41536c; }
.flow-copy li::before { content:""; width:6px; height:6px; border-bottom:1.5px solid #539641; border-right:1.5px solid #539641; transform:rotate(40deg); margin:0 3px 3px; }
.flow-visual { min-height:350px; position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden; padding:34px; background:#e8f0f4; }
.flow-colour { position:absolute; z-index:-2; inset:-20%; background:radial-gradient(ellipse at 24% 65%,#214ba8 0%,#638bd2 24%,transparent 57%),radial-gradient(ellipse at 82% 15%,#a2db76 0%,#c7e7ba 23%,transparent 60%),linear-gradient(130deg,#dce6f7,#ebf3e7); transform:translate3d(0,var(--gradient-travel,0px),0) scale(1.05); }
.flow-visual-1 .flow-colour { background:radial-gradient(ellipse at 14% 10%,#85c65d,transparent 55%),radial-gradient(ellipse at 90% 85%,#3159a7,transparent 62%),#e2edf3; }
.flow-visual-2 .flow-colour { background:radial-gradient(ellipse at 70% 90%,#59993c,transparent 55%),radial-gradient(ellipse at 22% 15%,#5f8dc7,transparent 57%),#e6efea; }
.flow-visual-3 .flow-colour { background:radial-gradient(ellipse at 25% 75%,#244caa,transparent 55%),radial-gradient(ellipse at 92% 5%,#9ad977,transparent 59%),#cddfec; }
.flow-ribs { position:absolute; inset:0; z-index:-1; pointer-events:none; background:repeating-linear-gradient(90deg,#fff0 0px,#fff2 2px,#fff0 8px,#183a6910 10px,#fff0 14px); mask-image:linear-gradient(130deg,#0009,transparent 70%); }
.flow-window { width:100%; max-width:310px; border-radius:12px; padding:23px; background:#fffffff2; border:1px solid #fff; box-shadow:0 14px 45px #15336120; transform:translateY(var(--window-travel,0px)); }
.flow-window-heading { display:flex; align-items:center; gap:10px; color:#314c74; font-size:14px; font-weight:500; }
.flow-window-foot { border-top:1px solid #e8edf1; padding-top:16px; font-size:13px; color:#63758a; }
.flow-route { display:flex; align-items:center; height:122px; color:#5478a4; }
.flow-route > span { display:grid; place-items:center; width:68px; height:68px; background:#edf3fa; border:1px solid #dfe9f5; border-radius:50%; color:#2c4f9b; flex-shrink:0; }
.flow-route > i { position:relative; height:1px; background:#adc5d7; flex:1; }
.flow-route > i::after { content:""; width:5px; height:5px; background:#6abd46; border-radius:50%; position:absolute; top:-2px; animation:flow-signal 3.6s ease-in-out infinite; animation-play-state:paused; }
.flow-route > i:nth-last-child(2)::after { animation-delay:-1.8s; }
.flow-lanes { display:grid; gap:14px; padding:24px 0; }
.flow-lanes > div { display:flex; align-items:center; gap:9px; font-size:14px; color:#45627c; }
.flow-lanes i { height:4px; flex:1; border-radius:4px; background:linear-gradient(90deg,#769aca,#b1d59a); transform:scaleX(var(--lane-fill,1)); transform-origin:left; }
.flow-lanes > div:nth-child(2) i { max-width:60px; }
.flow-shield { height:143px; display:grid; place-items:center; position:relative; color:#426e65; }
.flow-shield > span { position:absolute; width:106px; height:106px; border:1px solid #91bbbf70; border-radius:50%; }
.flow-shield > span:nth-child(2) { width:124px; height:124px; border-style:dashed; opacity:.5; }
.flow-cloud { height:143px; display:flex; align-items:center; justify-content:center; gap:26px; color:#3d66ab; }
.flow-cloud > div { display:grid; gap:7px; width:72px; }
.flow-cloud span { display:block; height:12px; border-radius:4px; background:linear-gradient(90deg,#d5e3fa,#b8dbad); }
.flow-cloud span:nth-child(2) { width:80%; }.flow-cloud span:nth-child(3) { width:60%; }
.flow-card-1 .flow-visual,.flow-card-3 .flow-visual { grid-column:1; grid-row:1; }
.flow-card-1 .flow-copy,.flow-card-3 .flow-copy { grid-column:2; }
.flow-bottom { display:flex; justify-content:space-between; align-items:center; gap:25px; padding-top:12px; }
.flow-bottom > div { display:flex; gap:24px; }
.flow-bottom span { display:flex; align-items:center; gap:8px; color:#64758a; font-size:14px; }
.flow-bottom .line-icon { color:#668c6a; }
[data-motion="on"] .flow-card.motion-active .flow-route > i::after { animation-play-state:running; }
[data-motion-suspended="true"] .flow-route > i::after { animation-play-state:paused!important; }
@keyframes flow-signal { 0% { left:0;opacity:0; } 15%,80% { opacity:1; } 100% { left:100%;opacity:0; } }

/* Cards enter softly; large movement is reserved for the sticky sequence. */
[data-motion="on"] [data-reveal="card"].motion-reveal { --reveal-y:32px; transition-duration:.7s,.9s,.9s,.3s,.3s,.3s; }
[data-motion="on"] [data-reveal="card"].motion-reveal:not(.is-visible) { scale:.99; }
[data-motion="on"] [data-reveal="fade"].motion-reveal { --reveal-y:0px; transition:opacity .7s ease-out var(--reveal-delay,0ms); }
[data-motion="on"] .group-card.motion-reveal { transition-duration:.42s,.5s,.5s,.3s,.3s,.3s; }
[data-motion="on"] .faq-list [data-reveal="row"].motion-reveal { --reveal-y:14px;transition:opacity .42s ease-out var(--reveal-delay,0ms),translate .5s var(--motion-ease) var(--reveal-delay,0ms),box-shadow .3s ease; }
.solutions { background:linear-gradient(135deg,#edf2fa,#f3f6f6 60%,#eef5e9); }
.solutions::before { opacity:.16; }
.testimonials-section { background:linear-gradient(125deg,#f1f4f8,#f6f7f6 55%,#eef4e9); }

[data-motion="on"] [data-stack-enabled="true"] .flow-card { position:sticky; top:var(--stack-inset); margin-bottom:clamp(64px,12svh,90px); transform:scale(var(--stack-scale,1)); }
[data-motion="on"] [data-stack-enabled="true"] .flow-card:last-child { margin-bottom:30px; }
[data-motion="on"] [data-stack-enabled="true"] .flow-copy,
[data-motion="on"] [data-stack-enabled="true"] .flow-window { opacity:var(--stack-copy-opacity,1); }
@media (min-width:900px) {
  [data-motion="on"] [data-stack-heading="true"] .flow-heading { position:sticky; top:var(--nav-height); z-index:8; background:linear-gradient(#f4f6f5 0%,#f4f6f5 75%,#f4f6f500); }
  .flow-heading h2 { font-size:36px; }
  .flow-heading p { margin-top:9px; }
}
@media (max-width:899px) {
  .expertise-flow { padding:35px 0; }
  .flow-heading { padding-bottom:28px; }
  .flow-copy { padding:28px; }
  .flow-visual { padding:26px; }
  .flow-bottom { flex-direction:column; align-items:flex-start; }
}
@media (max-width:600px) {
  .flow-heading h2 { font-size:30px;letter-spacing:-1px; }
  .flow-heading h2 em { display:block; }
  .flow-heading p { font-size:15px; }
  .flow-card { grid-template-columns:1fr; border-radius:14px; }
  .flow-card .flow-copy,.flow-card .flow-visual { grid-column:auto;grid-row:auto; }
  .flow-copy { padding:22px; }
  .flow-copy > .line-icon { width:26px; height:26px; margin-bottom:10px; }
  .flow-copy h3 { font-size:26px; margin-bottom:10px; }
  .flow-copy p { font-size:15px; line-height:1.5; margin-bottom:12px; }
  .flow-copy ul { gap:5px; }
  .flow-visual { min-height:190px; padding:18px; }
  .flow-window { max-width:285px; padding:16px; }
  .flow-window-heading { font-size:13px; gap:8px; }
  .flow-window-foot { font-size:12px; padding-top:10px; }
  .flow-route,.flow-shield,.flow-cloud { height:90px; }
  .flow-route > span { width:58px; height:58px; }
  .flow-shield > span { width:72px; height:72px; }
  .flow-shield > span:nth-child(2) { width:86px; height:86px; }
  .flow-shield > .line-icon { width:44px; height:44px; }
  .flow-lanes { gap:10px; padding:14px 0; }
  .flow-lanes > div { font-size:12px; }
  .flow-bottom > div { flex-direction:column; gap:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .flow-route > i::after { animation:none;left:50%; }
  .flow-colour,.flow-window,.flow-card { transform:none!important; }
}
