/* =====================================================================
   HusslAI Enterprise page — motion layer (visuals + motion only, no copy).
   Pairs with enterprise-motion.js. Layered on the original markup.
   Contract:
   - Everything is BASE-VISIBLE. Hidden "pre" states exist only on elements
     the JS has tagged .em-pre, and the JS un-hides them on enter (with a
     rect-based fallback scan), so nothing can stall at opacity 0.
   - html.em  = JS running, motion allowed. Without it you get the
     finished/static page. prefers-reduced-motion never gets html.em.
   - Ambient loops only run while their container has .em-vis (in view).
   ===================================================================== */

/* ---------- 0. tokens ---------- */
:root{
  --em-v:#c9a24a; --em-m:#e2ba64; --em-bg:#0a0a0a;
  --em-ease:cubic-bezier(.2,.8,.2,1); --em-spring:cubic-bezier(.2,1.5,.4,1);
  --em-glow:rgba(201,162,74,.38);
}
html.lt{ --em-glow:rgba(138,106,31,.20); }

/* sticky pin needs overflow:clip (hidden would swallow the sticky) */
.evs{overflow:hidden}
@supports (overflow:clip){ .evs{overflow:clip} }

/* ---------- 1. depth + soft glow on every product view (always on) ---------- */
.evui,.pic,.hrwk,.score,.chat{
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 28px 60px -22px var(--em-glow),0 10px 30px -12px rgba(0,0,0,.45);
}
html.lt .evui,html.lt .pic,html.lt .hrwk,html.lt .score{
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 28px 56px -24px var(--em-glow),0 14px 30px -16px rgba(24,23,21,.35);
}
.evui{position:relative;border-color:rgba(217,180,94,.28)}
.evui::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(135deg,rgba(201,162,74,.7),rgba(255,255,255,0) 35%,rgba(226,186,100,.55));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.8}
.ev3 .pic::before,.proof .pic::before,.evstory .pic::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(120% 80% at 10% 0%,rgba(201,162,74,.16),transparent 55%)}
.evtop i:nth-child(3){background:#22c55e}

/* ---------- 2. generic reveal (transition on individual props: no clash with .evlift hover) ---------- */
.em-rv{transition:opacity .85s var(--em-ease) var(--d,0s),translate .85s var(--em-ease) var(--d,0s)}
.em-rv.evlift{transition:transform .35s var(--em-ease),box-shadow .35s,opacity .85s var(--em-ease) var(--d,0s),translate .85s var(--em-ease) var(--d,0s)}
html.em .em-rv.em-pre{opacity:0;translate:0 28px}
html.em .em-rv.em-pre.em-l{translate:-28px 0}
html.em .em-rv.em-pre.em-s{translate:0 0;scale:.94}
.em-rv.em-s{transition:opacity .85s var(--em-ease) var(--d,0s),scale .85s var(--em-spring) var(--d,0s)}

/* ---------- 3. ambient: aurora, grid, hero ---------- */
html.em .evaur{animation:emaur 18s ease-in-out infinite alternate;animation-play-state:paused}
html.em .evs.em-vis .evaur{animation-play-state:running}
@keyframes emaur{to{transform:translate(6%,-4%) rotate(8deg) scale(1.08)}}
html.em .evgrid{animation:emgrid 24s linear infinite;animation-play-state:paused}
html.em .evs.em-vis .evgrid{animation-play-state:running}
@keyframes emgrid{to{background-position:56px 56px,56px 56px}}

html.em .ev-hero>.kb{animation:emkb 28s ease-in-out infinite alternate}
@keyframes emkb{from{transform:scale(1.04) translate(0,0)}to{transform:scale(1.14) translate(-2%,-2%)}}
.ev-hero .grad{background-size:220% 100%}
html.em .ev-hero .grad{animation:emgradtxt 7s ease-in-out infinite alternate}
@keyframes emgradtxt{from{background-position:0 0}to{background-position:100% 0}}
html.em .ev-hero .badge{animation:embadge 3.4s ease-in-out infinite}
@keyframes embadge{50%{box-shadow:0 0 0 6px rgba(201,162,74,.12),0 0 24px rgba(201,162,74,.35)}}
html.em .btn.p{animation:embtn 3.6s ease-in-out infinite}
@keyframes embtn{50%{box-shadow:0 0 52px rgba(226,186,100,.42)}}
.evpar{will-change:transform;transform-style:flat}
.evband img,.hrpeople img{will-change:transform}

/* ---------- 4. HERO OPS CONSOLE ---------- */
.map svg{overflow:visible}
.map path{vector-effect:non-scaling-stroke}
html.em .map path.em-base{opacity:.35;animation:emmarch 1.6s linear infinite}
@keyframes emmarch{to{stroke-dashoffset:-24}}
.map path.em-route{stroke-dasharray:100;stroke-dashoffset:0;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(201,162,74,.8))}
html.em .evui:not(.em-play) .map path.em-route{stroke-dashoffset:100}
html.em .evui.em-play .map path.em-route{animation:emdraw 2.3s .25s var(--em-ease) both}
@keyframes emdraw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}

/* pins: pop in as the route reaches them */
html.em .evui:not(.em-play) .pin{transform:translate(-50%,-50%) scale(0)}
html.em .evui.em-play .pin{animation:empop .6s var(--em-spring) both}
html.em .evui.em-play .pin:nth-of-type(1){animation-delay:.35s}
html.em .evui.em-play .pin:nth-of-type(2){animation-delay:.85s}
html.em .evui.em-play .pin:nth-of-type(3){animation-delay:1.35s}
html.em .evui.em-play .pin:nth-of-type(4){animation-delay:1.75s}
html.em .evui.em-play .pin:nth-of-type(5){animation-delay:2.1s}
@keyframes empop{from{transform:translate(-50%,-50%) scale(0)}to{transform:translate(-50%,-50%) scale(1)}}
.pin.bad{z-index:2}
.pin.bad::before,.pin.bad::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid rgba(239,68,68,.75);opacity:0;pointer-events:none}
html.em .evui.em-play .pin.bad{animation:empop .6s 1.35s var(--em-spring) both,empulse 1.6s 2.2s infinite}
html.em .evui.em-play .pin.bad::before{animation:emring 2s 2.1s ease-out infinite}
html.em .evui.em-play .pin.bad::after{animation:emring 2s 3.1s ease-out infinite}
@keyframes emring{0%{transform:scale(1);opacity:.9}100%{transform:scale(4.2);opacity:0}}
@keyframes empulse{50%{box-shadow:0 0 0 12px rgba(239,68,68,.18)}}
/* dispatch ripple (violet) when the work order goes out */
.map .em-dispatch{position:absolute;left:55%;top:46%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:2px solid #d9b45e;opacity:0;pointer-events:none;z-index:1}
html.em .evui.em-play .em-dispatch{animation:emdisp 1.8s 4.3s ease-out 2 both}
@keyframes emdisp{0%{transform:scale(1);opacity:.95}100%{transform:scale(11);opacity:0}}
/* traveling signal dot (JS positions it along the route) */
.map .em-sig{position:absolute;left:0;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;
  box-shadow:0 0 0 3px rgba(217,180,94,.5),0 0 18px 4px rgba(226,186,100,.8);opacity:0;pointer-events:none;z-index:2}
.map .em-sig.on{opacity:1}

/* feed: arrives one by one — a problem becomes an action */
html.em .evui:not(.em-play) .feed .it{opacity:0}
html.em .evui.em-play .feed .it{animation:emslide .7s var(--em-ease) both}
html.em .evui.em-play .feed .it:nth-child(1){animation-delay:2.6s}
html.em .evui.em-play .feed .it:nth-child(2){animation-delay:4.2s}
html.em .evui.em-play .feed .it:nth-child(3){animation-delay:5.3s}
html.em .evui.em-play .feed .it:nth-child(4){animation-delay:5.9s}
@keyframes emslide{0%{transform:translateX(30px) scale(.96);opacity:0}60%{opacity:1}100%{transform:none;opacity:1}}
.feed .it{position:relative}
html.em .evui.em-play .feed .it:nth-child(1){box-shadow:0 0 0 0 rgba(239,68,68,0)}
html.em .evui.em-play .feed .it:nth-child(1)::after,html.em .evui.em-play .feed .it:nth-child(2)::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0}
html.em .evui.em-play .feed .it:nth-child(1)::after{box-shadow:0 0 0 1px rgba(239,68,68,.8),0 0 26px rgba(239,68,68,.45);animation:emflash 1.8s 2.7s ease-out both}
html.em .evui.em-play .feed .it:nth-child(2)::after{box-shadow:0 0 0 1px rgba(217,180,94,.9),0 0 26px rgba(201,162,74,.55);animation:emflash 1.8s 4.3s ease-out both}
@keyframes emflash{0%{opacity:0}20%{opacity:1}100%{opacity:0}}
/* connector from item 1 to item 2 */
.feed .it:nth-child(2)::before{content:"";position:absolute;left:18px;top:-10px;width:2px;height:10px;background:linear-gradient(#ef4444,#c9a24a);transform-origin:top;border-radius:2px}
html.em .evui:not(.em-play) .feed .it:nth-child(2)::before{transform:scaleY(0)}
html.em .evui.em-play .feed .it:nth-child(2)::before{animation:emgrowy .45s 4.0s var(--em-ease) both}
@keyframes emgrowy{from{transform:scaleY(0)}to{transform:scaleY(1)}}
/* item 4 keeps a faint heartbeat once everything has landed */
html.em .evui.em-play.em-vis .feed .it:nth-child(4) small{animation:emblink 3s 7s ease-in-out infinite}
@keyframes emblink{50%{color:#4ade80}}
html.em .evui.em-vis .evtop i:nth-child(3){animation:emlive 2s ease-in-out infinite}
@keyframes emlive{50%{box-shadow:0 0 0 4px rgba(34,197,94,.25),0 0 12px rgba(34,197,94,.7)}}

/* ---------- 5. PROBLEM PICTURES ---------- */
.ev3 .pic{container-type:inline-size}
/* a. five windows overlap and shuffle */
.win{box-shadow:0 8px 20px rgba(0,0,0,.4);background:#242321;z-index:1}
.win::before{content:"";position:absolute;right:10px;top:10px;width:6px;height:6px;border-radius:50%;background:#42403b;box-shadow:-10px 0 #42403b}
.win:nth-child(1){--dx:46%;--dy:46%;--r:-2deg;--k:0}
.win:nth-child(2){--dx:-26%;--dy:26%;--r:2deg;--k:1}
.win:nth-child(3){--dx:-34%;--dy:62%;--r:-1.5deg;--k:2}
.win:nth-child(4){--dx:58%;--dy:-30%;--r:2.5deg;--k:3}
.win:nth-child(5){--dx:-48%;--dy:-24%;--r:-2deg;--k:4}
html.em .ev3 .pic .win{animation:emwin 10s ease-in-out infinite;animation-delay:calc(var(--k)*-2s);animation-play-state:paused}
html.em .ev3 .pic.em-vis .win{animation-play-state:running}
@keyframes emwin{
  0%,100%{transform:none;z-index:1}
  18%{transform:translate(var(--dx),var(--dy)) rotate(var(--r));z-index:6;border-color:rgba(217,180,94,.6)}
  38%{transform:translate(calc(var(--dx)*.4),calc(var(--dy)*.4));z-index:3}
  62%{transform:translate(calc(var(--dx)*-.25),calc(var(--dy)*-.25)) rotate(calc(var(--r)*-1));z-index:2}
  82%{transform:translate(calc(var(--dx)*.15),calc(var(--dy)*.2));z-index:4}
}
/* b. record flips to Out of date as the truck rolls */
.ev3 .rec .bad b{position:relative;display:inline-block}
.ev3 .rec .bad b::before{content:"\2713";position:absolute;right:0;top:0;color:#4ade80;opacity:0}
html.em .ev3 .pic .rec .bad b{animation:emflip 7s ease-in-out infinite;animation-play-state:paused}
html.em .ev3 .pic .rec .bad b::before{opacity:1;animation:emchk 7s ease-in-out infinite;animation-play-state:paused}
html.em .ev3 .pic.em-vis .rec .bad b,html.em .ev3 .pic.em-vis .rec .bad b::before,html.em .ev3 .pic.em-vis .truck i,html.em .ev3 .pic.em-vis .rec{animation-play-state:running}
@keyframes emflip{0%,36%{color:transparent;transform:rotateX(0)}40%{color:transparent;transform:rotateX(90deg)}46%{color:#fca5a5;transform:rotateX(0) scale(1.18)}52%,92%{color:#fca5a5;transform:none}100%{color:transparent}}
@keyframes emchk{0%,34%{opacity:1;transform:none}39%,100%{opacity:0;transform:rotateX(90deg)}}
html.em .ev3 .pic .rec{animation:emrecflash 7s ease-in-out infinite;animation-play-state:paused}
@keyframes emrecflash{0%,38%{box-shadow:none}46%{box-shadow:0 0 0 1px rgba(239,68,68,.7),0 0 30px rgba(239,68,68,.35)}70%,100%{box-shadow:none}}
.truck{height:36px}
.truck::before{content:"";position:absolute;left:0;right:0;bottom:-2px;height:0;border-top:2px dashed rgba(252,165,165,.35)}
.truck i{position:absolute;left:0;bottom:2px;line-height:1}
html.em .ev3 .pic .truck i{animation:emroll 7s ease-in-out infinite;animation-play-state:paused}
@keyframes emroll{0%{transform:translateX(0)}60%{transform:translateX(calc(100cqw - 76px))}68%,100%{transform:translateX(calc(100cqw - 76px))}}
/* c. spreadsheet fills while the clock ticks */
.sheet span{box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
html.em .ev3 .pic .sheet span{animation:emcell 7s ease-in-out infinite;animation-delay:calc(var(--i)*.14s);animation-play-state:paused}
html.em .ev3 .pic.em-vis .sheet span,html.em .ev3 .pic.em-vis .clock,html.em .ev3 .pic.em-vis .clock::before,html.em .ev3 .pic.em-vis .clock::after{animation-play-state:running}
@keyframes emcell{0%{background:#2b2a27}6%,70%{background:linear-gradient(135deg,#a6802a,#8a6a1f)}80%,100%{background:#2b2a27}}
.clock{font-size:0;background:radial-gradient(circle,#272624,#171615);box-shadow:0 0 0 0 rgba(245,158,11,.4)}
.clock::before,.clock::after{content:"";position:absolute;left:50%;bottom:50%;width:2px;border-radius:2px;background:#f59e0b;transform-origin:50% 100%;transform:translateX(-50%) rotate(0)}
.clock::before{height:20px}
.clock::after{height:13px;background:#fbbf24;width:3px}
html.em .ev3 .pic .clock{animation:emring2 2s ease-out infinite;animation-play-state:paused}
html.em .ev3 .pic .clock::before{animation:emhand 4s steps(24) infinite;animation-play-state:paused}
html.em .ev3 .pic .clock::after{animation:emhand 48s linear infinite;animation-play-state:paused}
@keyframes emhand{to{transform:translateX(-50%) rotate(360deg)}}
@keyframes emring2{0%{box-shadow:0 0 0 0 rgba(245,158,11,.45)}100%{box-shadow:0 0 0 14px rgba(245,158,11,0)}}

/* ---------- 6. STORY: data in -> checked -> next step ---------- */
.evstory .pic{overflow:hidden}
html.em .evstory .pic .rows div{opacity:0;transform:translateX(-18px)}
html.em .evstory figure.em-on .pic .rows div{animation:emrow .6s var(--em-ease) both;animation-delay:calc(var(--d,0s) + var(--i)*.16s)}
@keyframes emrow{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
/* ticks / cross */
html.em .evstory .rows em{display:inline-block;transform:scale(0)}
html.em .evstory figure.em-on .rows em{animation:emtick .5s var(--em-spring) both;animation-delay:calc(var(--d,0s) + .75s + var(--i)*.34s)}
@keyframes emtick{0%{transform:scale(0) rotate(-40deg)}100%{transform:scale(1) rotate(0)}}
html.em .evstory figure.em-on .rows .y{animation:emrow .6s var(--em-ease) both,emgreen 1s ease-out both;animation-delay:calc(var(--d,0s) + var(--i)*.16s),calc(var(--d,0s) + .75s + var(--i)*.34s)}
html.em .evstory figure.em-on .rows .n{animation:emrow .6s var(--em-ease) both,emred 1.4s ease-out both,emshake .5s ease-in-out both;animation-delay:calc(var(--d,0s) + var(--i)*.16s),calc(var(--d,0s) + .75s + var(--i)*.34s),calc(var(--d,0s) + .85s + var(--i)*.34s)}
@keyframes emgreen{0%{box-shadow:inset 0 0 0 1px rgba(74,222,128,.9)}100%{box-shadow:inset 0 0 0 1px rgba(74,222,128,0)}}
@keyframes emred{0%{background:#4a1d27;box-shadow:inset 0 0 0 1px rgba(248,113,113,.9)}100%{background:#2a1a24;box-shadow:inset 0 0 0 1px rgba(248,113,113,.35)}}
@keyframes emshake{0%,100%{translate:0}20%{translate:-5px}40%{translate:5px}60%{translate:-3px}80%{translate:3px}}
/* phone + notification */
.evph{width:200px;box-shadow:0 20px 50px rgba(0,0,0,.5),0 0 40px rgba(201,162,74,.25);background:linear-gradient(180deg,#262522,#171615)}
.evph::before{content:"";position:absolute;left:50%;top:7px;width:46px;height:6px;border-radius:6px;background:#383632;transform:translateX(-50%)}
.evph::after{content:"";position:absolute;left:18px;right:18px;top:34px;height:8px;border-radius:5px;background:#33322f;box-shadow:0 16px 0 #2f2e2b,0 32px 0 #282725}
.evnote{left:50%;right:auto;width:176px;bottom:20px;translate:-50% 0}
html.em .evstory .evph{opacity:0;transform:translate(-50%,60px)}
html.em .evstory figure.em-on .evph{animation:emphone .9s var(--em-ease) both;animation-delay:var(--d,0s)}
@keyframes emphone{from{opacity:0;transform:translate(-50%,60px)}to{opacity:1;transform:translate(-50%,0)}}
html.em .evstory .evnote{opacity:0;transform:translateY(-120px) scale(.9)}
html.em .evstory figure.em-on .evnote{animation:emnote .8s var(--em-spring) both,emglownote 2.4s ease-out both;animation-delay:calc(var(--d,0s) + .8s),calc(var(--d,0s) + 1.5s)}
@keyframes emnote{from{opacity:0;transform:translateY(-120px) scale(.9)}to{opacity:1;transform:none}}
@keyframes emglownote{0%{box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 0 0 rgba(217,180,94,.8)}100%{box-shadow:0 12px 30px rgba(0,0,0,.4),0 0 0 22px rgba(217,180,94,0)}}
html.em .evstory figure.em-on .evph{animation:emphone .9s var(--em-ease) both,embuzz .6s linear both;animation-delay:var(--d,0s),calc(var(--d,0s) + 1.5s)}
@keyframes embuzz{0%,100%{rotate:0}15%{rotate:1.2deg}30%{rotate:-1.2deg}45%{rotate:.9deg}60%{rotate:-.9deg}}
.arrow{opacity:.9}
html.em .evstory .arrow{opacity:.7;transition:opacity .6s var(--d,0s),color .6s var(--d,0s)}
html.em .evstory .arrow.em-on{opacity:1;animation:emnudge 1.6s ease-in-out infinite}
@keyframes emnudge{50%{translate:6px 0}}
@media (max-width:900px){@keyframes emnudge{50%{translate:0 6px}}}

/* ---------- 7. THE KEY MOMENT: before bars morph into after bars (scroll-driven) ---------- */
html.em .hrm{display:grid}
html.em .hrstatic{display:none}
.em-pin{margin-top:28px;height:calc(var(--em-h,420px) + 85vh)}
.em-pin>.hrwk{margin-top:0;position:sticky;top:max(84px,calc(50vh - var(--em-h,420px)/2));
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 30px calc(40px + var(--p,0)*50px) -18px rgba(201,162,74,calc(.18 + var(--p,0)*.45)),0 10px 30px -12px rgba(0,0,0,.5)}
@media (max-width:900px){.em-pin{height:calc(var(--em-h,420px) + 70vh)}}
html.em .hrm .f{width:100%;transform:scaleX(var(--s,0));transform-origin:left;transition:none;will-change:transform}
html.em .hrm .r.p .f,html.em .hrm .r.p2 .f{box-shadow:0 0 calc(var(--g,0)*16px) rgba(217,180,94,.8)}
html.em .hrm .r.p .f{background:linear-gradient(90deg,#7a5c18,#d9b45e)}
html.em .hrm .r.p2 .f{background:linear-gradient(90deg,#8a6a1f,#e2ba64)}
.hrm .hrst{transition:background .4s,transform .4s var(--em-spring)}
.hrm .hrst.hraf{transform:scale(1.08)}
.hrm .hrhd h3{transition:opacity .25s}
.em-rail{height:3px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:4px}
.em-rail i{display:block;height:100%;width:100%;transform:scaleX(var(--q,0));transform-origin:left;background:linear-gradient(90deg,#c9a24a,#e2ba64)}
.hrm .hint{display:none}
.hrout>div{position:relative}
.hrout b.grad{display:inline-block}
html.em .hrout>div.em-on b.grad{animation:empop2 .8s var(--em-spring) both;animation-delay:calc(var(--d,0s) + .2s)}
@keyframes empop2{from{transform:scale(.3) rotate(-20deg)}to{transform:none}}

/* ---------- 8. CONNECT: names link into One clear picture ---------- */
.evlinks{overflow:visible}
.evlinks line{vector-effect:non-scaling-stroke;stroke-width:1.6;stroke-dasharray:5 5}
.nodes span{box-shadow:0 6px 18px rgba(0,0,0,.35)}
.nodes span.hub{z-index:3;box-shadow:0 0 28px rgba(201,162,74,.55)}
html.em .evb .pic:not(.em-on) .nodes span:not(.hub){opacity:0;scale:.6}
html.em .evb .pic.em-on .nodes span:not(.hub){animation:emnode .7s var(--em-spring) both,embob 5s ease-in-out infinite;animation-delay:var(--nd,0s),calc(var(--nd,0s) + .7s)}
@keyframes emnode{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes embob{50%{translate:0 -3px}}
html.em .evb .pic:not(.em-on) .evlinks line{stroke-dashoffset:0;opacity:0}
html.em .evb .pic.em-on .evlinks line{animation:emlinedraw .9s var(--em-ease) both,emmarch 1.4s linear infinite;animation-delay:var(--ld,0s),calc(var(--ld,0s) + .9s)}
@keyframes emlinedraw{from{opacity:0;stroke-dasharray:0 200}to{opacity:1;stroke-dasharray:5 5}}
html.em .evb .pic:not(.em-play) .nodes span.hub{box-shadow:0 0 0 rgba(226,186,100,0)}
html.em .evb .pic.em-play .nodes span.hub{animation:emhub 2.4s ease-in-out infinite alternate}
@keyframes emhub{from{box-shadow:0 0 22px rgba(201,162,74,.5)}to{box-shadow:0 0 46px rgba(226,186,100,.75)}}
.nodes .em-dot{position:absolute;left:var(--x1);top:var(--y1);width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;
  background:#fff;box-shadow:0 0 0 3px rgba(217,180,94,.45),0 0 14px 3px rgba(226,186,100,.7);opacity:0;pointer-events:none;z-index:2}
html.em .evb .pic.em-play.em-vis .nodes .em-dot{animation:emtravel 2.8s var(--dd,0s) ease-in-out infinite}
@keyframes emtravel{0%{left:var(--x1);top:var(--y1);opacity:0}12%{opacity:1}82%{opacity:1}100%{left:50%;top:50%;opacity:0}}

/* ---------- 9. THE FOUR BUILD SCREENS ---------- */
/* a. policy turns Bound */
.proof .rec{overflow:hidden}
.proof .rec .evrow b[style]{position:relative;display:inline-block}
.proof .rec .evrow b[style]::before{content:"\00B7\00B7\00B7";position:absolute;right:0;top:0;color:#adaaa3;letter-spacing:2px;opacity:0}
html.em .proof .rec .evrow b[style]{animation:embind 6.5s ease-in-out infinite;animation-play-state:paused}
html.em .proof .rec .evrow b[style]::before{opacity:1;animation:embinddots 6.5s ease-in-out infinite;animation-play-state:paused}
html.em .proof .pic.em-vis .rec .evrow b,html.em .proof .pic.em-vis .rec .evrow b::before,html.em .proof .pic.em-vis .rec::after{animation-play-state:running}
@keyframes embind{0%,26%{color:transparent;transform:scale(.9)}34%{color:#4ade80;transform:scale(1.25)}42%,92%{color:#4ade80;transform:scale(1)}100%{color:transparent}}
@keyframes embinddots{0%,24%{opacity:1}30%,100%{opacity:0}}
.proof .rec::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-50%;background:linear-gradient(100deg,transparent,rgba(217,180,94,.16),transparent);pointer-events:none}
html.em .proof .rec::after{animation:emsheen 6.5s ease-in-out infinite;animation-play-state:paused}
@keyframes emsheen{0%{left:-50%}30%,100%{left:120%}}
.proof .rec .evrow:nth-child(1) b{transition:none}
html.em .proof .pic.em-vis .rec .evrow:nth-child(1) b{animation:emready 6.5s ease-in-out infinite}
@keyframes emready{0%,6%{color:#adaaa3}14%,100%{color:#f9f6f1}}
/* b. clinical records: locks click shut one by one */
html.em .proof .rows div{opacity:0;transform:translateX(-14px)}
html.em .proof .pic.em-on .rows div{animation:emrow .6s var(--em-ease) both;animation-delay:calc(var(--d,0s) + var(--i,0)*.22s)}
.proof .rows div:nth-child(1){--i:0}.proof .rows div:nth-child(2){--i:1}.proof .rows div:nth-child(3){--i:2}
html.em .proof .pic.em-on.em-vis .rows div em{animation:emsecure 4.5s ease-in-out infinite;animation-delay:calc(var(--i)*.6s + 1s)}
@keyframes emsecure{0%,70%,100%{text-shadow:none}80%{text-shadow:0 0 12px rgba(217,180,94,.95)}}
/* c. freight: truck follows the route (JS drives the SVG truck) */
.proof .pic svg{overflow:visible}
.proof .evtruck{display:none}
.em-truck{font-size:22px}
.em-trail{stroke-dasharray:100;stroke-dashoffset:100;stroke:url(#emtrail);stroke-width:3.5;fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
/* d. bars grow */
html.em .proof .evbars div::after{transform-origin:left;transform:scaleX(0)}
html.em .proof .pic.em-on .evbars div::after{animation:embar 6s ease-in-out infinite;animation-delay:calc(var(--i)*.18s);animation-play-state:paused}
html.em .proof .pic.em-on.em-vis .evbars div::after{animation-play-state:running}
@keyframes embar{0%{transform:scaleX(0)}22%,78%{transform:scaleX(1)}92%{transform:scaleX(.88)}100%{transform:scaleX(0)}}
.proof .evbars div::after{box-shadow:0 0 14px rgba(201,162,74,.55)}

/* ---------- 10. timeline, chips, score, chat, misc ---------- */
html.em .tl::before{transform-origin:left;transition:transform 1.4s var(--em-ease)}
html.em .tl.em-pre::before{transform:scaleX(0)}
html.em .tl.em-on b.n{animation:empop2 .8s var(--em-spring) both;animation-delay:calc(var(--i,0)*.3s)}
.tl>div:nth-child(1) b.n{--i:0}
.score div em{transition:color .3s}
html.em .score.em-on div em{animation:emshim 3.2s ease-in-out infinite;animation-delay:calc(var(--i,0)*.4s)}
@keyframes emshim{50%{color:#e8cf95}}
.chat .m{transition:opacity .6s var(--em-ease) var(--d,0s),translate .6s var(--em-ease) var(--d,0s)}
.chips2 span{transition:opacity .7s var(--em-ease) var(--d,0s),translate .7s var(--em-ease) var(--d,0s),border-color .3s}
.chips2 span:hover{border-color:#d9b45e}

/* ---------- 11. phones: tighter ---------- */
@media (max-width:900px){
  .evnote{width:min(176px,calc(100% - 40px))}
}

/* ---------- 12. reduced motion: finished state, no animation ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .em-rv.em-pre{opacity:1!important;translate:none!important;scale:none!important}
  .map path.em-route{stroke-dashoffset:0!important}
  .feed .it,.pin,.evnote,.evph,.rows div,.rows em{opacity:1!important}
  .evstory .evph{transform:translateX(-50%)!important}
  .evstory .evnote{transform:none!important}
  .evstory .rows div,.evstory .rows em{transform:none!important}
  .ev3 .rec .bad b{color:#fca5a5!important}
  .ev3 .rec .bad b::before{display:none}
  .proof .rec .evrow b[style]::before{display:none}
  .proof .evbars div::after{transform:none!important}
  .proof .rows div{opacity:1!important;transform:none!important}
  .nodes span:not(.hub){opacity:1!important;scale:1!important}
  .truck i{transform:translateX(calc(100cqw - 76px))}
  .em-trail{stroke-dashoffset:0!important}
  .pin{transform:translate(-50%,-50%)!important}
  .sheet span:nth-child(-n+20){background:linear-gradient(135deg,#a6802a,#8a6a1f)}
}

/* timeline columns: top-align so copy lengths don't spread the rows */
.tl>div{align-content:start}
.nodes span{white-space:nowrap}
/* freight-of-the-problem: truck rides its own lane above the label */
.ev3 .truck{height:62px;align-items:flex-end}
.ev3 .truck::before{bottom:22px}
.ev3 .truck i{bottom:26px}
/* caption cards: the hover lift shadow used to paint a hard-edged padless rectangle behind the bare caption.
   Make each lifted figure a real card (same pattern as .evb: radius 18, hairline, 16-20px caption padding). */
.ev3 figure.evlift,.proof figure.evlift{gap:0;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:rgba(255,255,255,.03)}
html.lt .ev3 figure.evlift,html.lt .proof figure.evlift{background:rgba(255,255,255,.7)}
.ev3 figure.evlift>.pic,.proof figure.evlift>.pic{border:0;border-radius:0}
.ev3 figure.evlift figcaption{padding:18px 20px 22px}
.proof figure.evlift figcaption{padding:16px 18px 20px}

/* ---------- N. photo crops (full 16:9 files; object-position reproduces the slot crop) ---------- */
.evband img{object-position:50% 59%}
.hrpeople img{object-position:50% 58%}

/* ---------- O. mobile: standalone photos become intentional full-bleed bands carrying the section heading ---------- */
@media (max-width:900px){
  /* field (ev3 group): band spans eyebrow + h2 rows, heading set over it */
  .evs .wrap:has(>.evband){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto}
  .evs .wrap:has(>.evband)>.eyebrow{grid-area:1/1;align-self:end;position:relative;z-index:2;margin:0 0 10px;color:rgba(255,255,255,.92)}
  .evs .wrap:has(>.evband)>h2{grid-area:2/1;position:relative;z-index:2;margin:0;padding-bottom:36px;color:#fff;text-shadow:0 1px 14px rgba(0,0,0,.45)}
  .evs .wrap:has(>.evband)>.evband{grid-area:1/1/3/2;width:100vw;margin:0 0 26px calc(50% - 50vw);height:auto;min-height:92vw;border-radius:0}
  .evs .wrap:has(>.evband)>.evband::after{background:linear-gradient(180deg,rgba(10,10,10,.2) 0%,rgba(10,10,10,.5) 38%,rgba(10,10,10,.9) 100%)}
  .evs .wrap:has(>.evband)>:not(.eyebrow):not(h2):not(.evband){grid-column:1}
  /* people: band spans eyebrow + h2 + lead at the top of the section; the photo no longer sits as a floating block mid-page */
  .evs .wrap:has(>.hrpeople){display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto auto}
  .evs .wrap:has(>.hrpeople)>.eyebrow{grid-area:1/1;align-self:end;position:relative;z-index:2;margin:0 0 10px;padding-top:70vw;color:rgba(255,255,255,.92)}
  .evs .wrap:has(>.hrpeople)>h2{grid-area:2/1;position:relative;z-index:2;margin:0 0 12px;color:#fff;text-shadow:0 1px 14px rgba(0,0,0,.45)}
  .evs .wrap:has(>.hrpeople)>p.lead{grid-area:3/1;position:relative;z-index:2;margin:0;padding-bottom:36px;color:rgba(255,255,255,.88)!important}
  .evs .wrap:has(>.hrpeople)>.hrpeople{grid-area:1/1/4/2;width:100vw;margin:0 0 28px calc(50% - 50vw);height:auto;border-radius:0;background:#0a0a0a}
  .evs .wrap:has(>.hrpeople)>.hrpeople img{inset:0 0 auto 0;height:90vw;object-position:60% 50%}
  .evband img{object-position:68% 59%}
  .evs .wrap:has(>.hrpeople)>.hrpeople::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,10,.1) 0%,rgba(10,10,10,.3) 36%,rgba(10,10,10,.9) 58%,rgba(10,10,10,1) 64%,rgba(10,10,10,1) 100%)}
  .evs .wrap:has(>.hrpeople)>:not(.eyebrow):not(h2):not(p.lead):not(.hrpeople){grid-column:1}
  /* cards that keep their role: tighter */
  .evb img,.evb figure .pic{height:170px}
}
