/* ===== v11: one motion system, choreographed hero, sticky "How we work", animated conversation, icons ===== */
/* motion tokens: every animation on the homepage uses these */
.hm{--ease:cubic-bezier(.2,.7,.2,1);--dur:.9s;--step:120ms}
@keyframes hmrise{from{opacity:0;transform:translateY(.55em)}to{opacity:1;transform:none}}
@keyframes hmfade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hmdot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
/* hero entrance: headline line by line, then the copy, the actions and the choices */
.hm .hero h1 .ln{display:block;opacity:0;animation:hmrise var(--dur) var(--ease) forwards;animation-delay:calc(var(--i) * var(--step) + 140ms)}
.hm .hero .eyebrow{opacity:0;animation:hmfade var(--dur) var(--ease) .05s forwards}
.hm .hero .lead{opacity:0;animation:hmfade var(--dur) var(--ease) .62s forwards}
.hm .hero .ctas{opacity:0;animation:hmfade var(--dur) var(--ease) .76s forwards}
.hm .hero .assure{opacity:0;animation:hmfade var(--dur) var(--ease) .88s forwards}
.hm .hero-side .intent{opacity:0;animation:hmfade var(--dur) var(--ease) .5s forwards}
/* icons: one family, brand colours, used everywhere */
.hm .ic{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(180deg,#0E2B40,#0A1B2B);border:1px solid #3CB0FD33;color:var(--hm-blue);margin-bottom:16px;box-shadow:inset 0 1px 0 #ffffff14;transition:transform .5s var(--ease),border-color .3s}
.hm .ic svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hm .card:hover .ic{transform:translateY(-2px) rotate(-4deg);border-color:#3CB0FD66}
/* "How we work": sticky, scroll-driven */
.hm .how-sec{padding:clamp(72px,9vw,128px) 0}
.hm .how-grid{display:grid;grid-template-columns:1fr;gap:40px}
.hm .how-sticky{position:relative}
.hm .how-nav{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:6px}
.hm .how-nav li{display:flex;align-items:center;gap:14px;min-height:54px;padding:0 14px;border-radius:14px;color:var(--hm-mut);font-size:18px;font-weight:600;cursor:pointer;transition:color .35s,background .35s,transform .35s var(--ease);border:1px solid transparent}
.hm .how-nav li span{font-family:"Bricolage Grotesque",sans-serif;font-size:14px;color:var(--hm-blue);min-width:26px}
.hm .how-nav li:hover{color:var(--hm-ink)}
.hm .how-nav li.on{color:var(--hm-ink);background:#132332;border-color:#3CB0FD33;transform:translateX(6px)}
.hm .how-bar{height:3px;background:var(--hm-line);border-radius:3px;margin-top:26px;overflow:hidden}
.hm .how-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#E60F24,#3CB0FD);box-shadow:0 0 14px #3CB0FD66}
.hm .how-steps{display:grid}
.hm .how-step{min-height:auto;padding:36px 0;border-top:1px solid var(--hm-line)}
.hm .how-step:last-child{border-bottom:1px solid var(--hm-line)}
.hm .how-step h3{font-size:clamp(26px,2.6vw,38px);margin:0 0 18px;letter-spacing:-.025em}
.hm .how-step ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.hm .how-step li{color:var(--hm-mut);font-size:17px;line-height:1.6;padding-left:24px;position:relative}
.hm .how-step li:before{content:"";position:absolute;left:0;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--hm-blue);box-shadow:0 0 12px #3CB0FD88}
@media(min-width:960px){
 .hm .how-grid{grid-template-columns:.8fr 1.2fr;gap:92px}
 .hm .how-sticky{position:sticky;top:136px;align-self:start}
 .hm .how-step{min-height:62vh;padding:64px 0;display:flex;flex-direction:column;justify-content:center}
}
@media(max-width:959px){.hm .how-nav,.hm .how-bar{display:none}}
/* chat example: the conversation plays as you read it */
.js-motion .chatdemo .bub{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .6s var(--ease)}
.js-motion .chatdemo .bub.in{opacity:1;transform:none}
.hm .typing{display:inline-flex;gap:6px;align-items:center;padding:13px 16px;border-radius:16px;background:#132332;border:1px solid var(--hm-line);width:fit-content;justify-self:start;animation:hmfade .4s var(--ease) both}
.hm .typing i{width:7px;height:7px;border-radius:50%;background:var(--hm-mut);animation:hmdot 1s infinite ease-in-out}
.hm .typing i:nth-child(2){animation-delay:.15s}.hm .typing i:nth-child(3){animation-delay:.3s}
/* "How we work" dims the steps you are not reading */
.js-motion .how-step{opacity:.32;transform:translateY(14px);transition:opacity .6s var(--ease),transform .8s var(--ease)}
.js-motion .how-step.on{opacity:1;transform:none}
@media(max-width:959px){.js-motion .how-step{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
 .hm .hero h1 .ln,.hm .hero .eyebrow,.hm .hero .lead,.hm .hero .ctas,.hm .hero .assure,.hm .hero-side .intent{animation:none;opacity:1;transform:none}
 .js-motion .chatdemo .bub,.js-motion .how-step{opacity:1;transform:none;transition:none}
 .hm .typing{display:none}
 .hm .ic{transition:none}
}
/* headline sized to its column on laptops and wide screens */
@media(min-width:1024px) and (max-width:1599px){.hm .hero h1{font-size:clamp(46px,4.6vw,70px);line-height:1.04}}
@media(min-width:1600px){.hm .hero h1{font-size:clamp(70px,4.2vw,88px);line-height:1.02}}
