/* ==========================================================================
   AlloTech flagship homepage — "La ligne" — v4
   Sits on allotech-apex (tokens, type, buttons). Homepage only.
   Motion system: see MOTION-FLAGSHIP.md beside the builders.
   Everything is readable with this file alone (no JS): JS-only states are
   scoped under html.fl-js.
   ========================================================================== */
:root{
  --fl-line:var(--cyan); --fl-wait:var(--warn); --fl-ok:var(--ok);
  --fl-t1:.18s; --fl-t2:.36s; --fl-t3:.7s; --fl-t4:1.1s;      /* press · state · enter · scene */
  --fl-d0:1s;                                                  /* hero copy waits for the intro */
}
html.fl-seen{--fl-d0:.05s}

/* ---------- shared bits ---------- */
.fl-demo-tag{display:flex;align-items:center;gap:8px;margin:0;font:400 .75rem/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.fl-dot{width:7px;height:7px;border-radius:50%;background:var(--fl-wait);flex:none}
.fl-cap2{color:var(--muted)}
.fl-l{display:block;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.fl-l > span{display:block}
html.fl-js .fl-rv{opacity:0;transform:translate3d(0,22px,0);transition:opacity var(--fl-t3) var(--ease-out),transform .9s var(--ease-out)}
html.fl-js .fl-rv.fl-in{opacity:1;transform:none}
:is(.fl-team,.fl-orch,.fl-plat,.fl-uses,.fl-final),.fl-emp{scroll-margin-top:calc(var(--nav-h) + 24px)}

/* ---------- ACT I · intro "Allo." ---------- */
.fl-intro{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:var(--bg);pointer-events:none;animation:fl-intro-out .45s var(--ease-out) 1s both}
.fl-intro i{position:absolute;left:0;right:0;top:50%;height:2px;background:var(--fl-line);transform-origin:0 50%;animation:fl-ring 1s var(--ease-out) both}
.fl-intro b{font:600 clamp(5rem,23vw,21rem)/1 var(--display);letter-spacing:-.05em;color:var(--text);animation:fl-allo .55s var(--ease-out) .3s both}
html.fl-seen .fl-intro{display:none}
@keyframes fl-ring{0%{transform:scaleX(0)}34%{transform:scaleX(1) scaleY(1)}44%{transform:scaleX(1) scaleY(7)}54%{transform:scaleX(1) scaleY(1)}64%{transform:scaleX(1) scaleY(7)}76%,100%{transform:scaleX(1) scaleY(1)}}
@keyframes fl-allo{from{clip-path:inset(50% 0 50% 0);opacity:.2}to{clip-path:inset(-10% 0 -10% 0);opacity:1}}
@keyframes fl-intro-out{to{opacity:0;visibility:hidden}}
@keyframes fl-up{from{transform:translate3d(0,112%,0)}to{transform:none}}

/* ---------- ACT I · hero ---------- */
.fl-hero{display:grid;align-items:center;padding-bottom:clamp(40px,7vw,90px);overflow:hidden}
.fl-hero .hero-core{opacity:.22}
.fl-field{position:absolute;inset:0;width:100%;height:100%}
.fl-hero-grid{display:grid;gap:clamp(36px,6vw,64px);align-items:center}
.fl-hero .hero-copy{text-align:left;justify-items:start;max-width:640px;margin:0}
.fl-hero h1{font-size:clamp(2rem,8.4vw,3.6rem)}
.fl-hero h1 .fl-l > span{animation:fl-up .95s var(--ease-out) both;animation-delay:calc(var(--fl-d0) + var(--i) * 90ms)}
.fl-hero .cta-row,.fl-hero .hero-trust{justify-content:flex-start}
.fl-hero .paths{width:100%}
html.apex-motion .fl-hero .hero-copy > h1{animation:none}
@media (max-width:720px){.fl-hero .hero-core{display:none}}
.fl-hero + .hx-advisor{padding-top:clamp(36px,6vw,84px)}
@media (min-width:1021px){
  .fl-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
  .fl-hero h1{font-size:clamp(2.5rem,3.95vw,3.9rem)}
  .fl-hero.hero-home{padding-top:calc(var(--nav-h) + 54px)}
  .fl-hero .hero-copy{gap:18px}
}

/* the board: Boss Brain patches work to the team */
.fl-board{position:relative;margin:0;display:grid;gap:12px;justify-items:center;width:100%;max-width:560px;margin-inline:auto}
.fl-board > .fl-demo-tag{justify-self:start}
.fl-board-scene{position:relative;width:100%;aspect-ratio:1/.92;margin-bottom:46px;--s:58px}
.fl-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fl-cable{fill:none;stroke:rgba(150,180,255,.26);stroke-width:.22}
.fl-sig{fill:none;stroke:var(--fl-line);stroke-width:.62;stroke-linecap:round;stroke-dasharray:.16 1;stroke-dashoffset:.16;opacity:0}
.fl-sig.on{opacity:1;animation:fl-sig 1.15s var(--ease) both}
@keyframes fl-sig{from{stroke-dashoffset:.16}to{stroke-dashoffset:-1}}
.fl-hub{position:absolute;left:50%;top:50%;width:30%;translate:-50% -50%;display:grid;justify-items:center;gap:8px;z-index:1}
.fl-hub img{width:100%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;background:var(--surface-2);box-shadow:0 0 0 2px rgba(43,212,240,.55),0 0 0 10px rgba(43,212,240,.08)}
.fl-hub b{font:600 .95rem/1 var(--display);letter-spacing:-.01em;position:absolute;top:calc(100% + 10px);white-space:nowrap;padding:5px 10px;border-radius:999px;background:rgba(4,6,12,.82)}
.fl-hub-ring{position:absolute;left:0;top:0;width:100%;aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 1px rgba(43,212,240,.5);animation:fl-halo 3.2s var(--ease-out) infinite}
@keyframes fl-halo{0%{transform:scale(1);opacity:.7}70%,100%{transform:scale(1.42);opacity:0}}
.fl-seat{position:absolute;left:var(--x);top:var(--y);width:var(--s);translate:-50% -50%;z-index:1}
.fl-seat img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;background:var(--surface-2);box-shadow:0 0 0 1px var(--line-2);transition:transform var(--fl-t2) var(--ease-out),box-shadow var(--fl-t2)}
.fl-seat b{position:absolute;left:50%;top:calc(100% + 7px);translate:-50% 0;width:92px;text-align:center;font:500 .75rem/1.2 var(--body);color:var(--muted);transition:color var(--fl-t2)}
.fl-seat.on img{transform:scale(1.1);box-shadow:0 0 0 2px var(--fl-line),0 0 0 8px rgba(43,212,240,.12)}
.fl-seat.on b{color:var(--text)}
.fl-board-line{display:grid;gap:4px;justify-items:center;text-align:center;min-height:3.4em;margin:0;font-size:.9rem;color:var(--muted)}
.fl-board-line b{color:var(--text);font-weight:600}
.fl-board-line span{font:400 .76rem/1.4 var(--mono);color:var(--fl-line)}
.fl-pause,.fl-replay{font:500 .78rem/1 var(--body);color:var(--muted);background:rgba(255,255,255,.05);border:1px solid var(--line-2);border-radius:999px;padding:9px 16px;min-height:44px;cursor:pointer;transition:background var(--fl-t1),color var(--fl-t1),transform var(--fl-t1)}
.fl-pause:hover,.fl-replay:hover{background:rgba(255,255,255,.1);color:var(--text)}
.fl-pause:active,.fl-replay:active{transform:scale(.96)}
.fl-pause{justify-self:center}
@media (max-width:559px){.fl-board .fl-cap2{display:none}.fl-emp{grid-template-columns:72px minmax(0,1fr);gap:14px;padding:16px}.fl-shot{border-radius:16px}}
@media (min-width:560px){.fl-board-scene{--s:74px}.fl-seat b{width:112px;font-size:.74rem}}

/* ---------- pain: lines that go dead ---------- */
.fl-pain .pain{position:relative;overflow:hidden}
.fl-pain .pain .mark{color:#ff8a7a}
.fl-pain .pain::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#ff8a7a,rgba(255,138,122,0) 62%);transform:scaleX(0);transform-origin:0 50%;transition:transform 1.2s var(--ease-out) calc(var(--d,0) * 70ms + .35s)}
.fl-pain .pain.in::after,html:not(.apex-motion) .fl-pain .pain::after{transform:scaleX(1)}

/* ---------- ACT II · the roster ---------- */
.fl-roster-nav{display:none}
.fl-roster-stage{display:grid;gap:14px;max-width:820px}
.fl-emp{display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;align-items:start;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015))}
.fl-emp.is-boss{border-color:rgba(43,212,240,.4)}
.fl-shot{position:relative;aspect-ratio:1;border-radius:20px;overflow:hidden;background:var(--surface-2)}
.fl-shot img{display:block;width:100%;height:100%;object-fit:cover}
.fl-shot-ring{position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--line-2)}
.fl-emp.is-boss .fl-shot-ring{box-shadow:inset 0 0 0 2px rgba(43,212,240,.6)}
.fl-emp-body{display:grid;gap:10px;min-width:0}
.fl-emp h3{font-size:clamp(1.3rem,4.6vw,1.6rem);line-height:1.1}
.fl-role{font:400 .78rem/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--fl-line)}
.fl-desc{color:var(--muted);font-size:1rem;line-height:1.55;max-width:56ch}
.fl-meta{font:400 .84rem/1.5 var(--mono);color:var(--dim)}
.fl-meta strong{color:var(--muted);font-weight:400}
.fl-emp.is-boss .fl-meta{color:var(--fl-line)}
.fl-work{display:flex;flex-wrap:wrap;gap:6px;counter-reset:w}
.fl-work li{font:400 .75rem/1 var(--mono);color:var(--muted);padding:8px 10px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px transparent}
.fl-work li + li::before{content:"→";margin-right:8px;color:var(--dim)}
.fl-work li:last-child{color:var(--fl-wait)}
.fl-team .callout{max-width:820px}

@media (min-width:1021px) and (min-height:640px){
  html.fl-js .fl-roster{height:calc(var(--n) * 36vh + 100vh)}
  html.fl-js .fl-roster-pin{position:sticky;top:calc(var(--nav-h) + 26px);height:calc(100vh - var(--nav-h) - 52px);display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(32px,4.4vw,64px);align-items:center}
  html.fl-js .fl-roster-nav{display:block}
  html.fl-js .fl-roster-nav ol{position:relative;display:grid;gap:2px;--rp:0}
  html.fl-js .fl-roster-nav ol::before,html.fl-js .fl-roster-nav ol::after{content:"";position:absolute;left:3px;top:8px;bottom:8px;width:2px;border-radius:2px;background:var(--line)}
  html.fl-js .fl-roster-nav ol::after{background:var(--fl-line);transform-origin:50% 0;transform:scaleY(var(--rp))}
  html.fl-js .fl-roster-nav a{position:relative;display:grid;gap:3px;padding:9px 0 9px 26px;text-decoration:none;color:var(--dim);border-radius:10px;transition:color var(--fl-t2),transform var(--fl-t2) var(--ease-out)}
  html.fl-js .fl-roster-nav a::before{content:"";position:absolute;left:0;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:var(--surface-3);box-shadow:0 0 0 1px var(--line-2);transition:background var(--fl-t2),box-shadow var(--fl-t2)}
  html.fl-js .fl-roster-nav a b{font:600 1.02rem/1.15 var(--display);letter-spacing:-.01em}
  html.fl-js .fl-roster-nav a span{font:400 .75rem/1.2 var(--mono);opacity:.8}
  html.fl-js .fl-roster-nav a:hover{color:var(--muted)}
  html.fl-js .fl-roster-nav a.on{color:var(--text);transform:translateX(6px)}
  html.fl-js .fl-roster-nav a.on::before{background:var(--fl-line);box-shadow:0 0 0 5px rgba(43,212,240,.16)}
  html.fl-js .fl-roster-stage{position:relative;height:100%;max-width:none;display:block}
  html.fl-js .fl-emp{position:absolute;inset:0;grid-template-columns:minmax(240px,min(48vh,460px)) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:center;padding:0;border:0;background:none;opacity:0;transform:translate3d(0,34px,0);transition:opacity var(--fl-t2) var(--ease-out),transform var(--fl-t3) var(--ease-out);pointer-events:none}
  html.fl-js .fl-emp.is-past{transform:translate3d(0,-34px,0)}
  html.fl-js .fl-emp.is-on{opacity:1;transform:none;pointer-events:auto;transition-delay:.12s}
  html.fl-js .fl-shot{border-radius:32px}
  html.fl-js .fl-shot img{transform:scale(1.14);transition:transform 1.5s var(--ease-out)}
  html.fl-js .fl-emp.is-on .fl-shot img{transform:scale(1)}
  html.fl-js .fl-emp h3{font-size:clamp(2rem,3.4vw,3.1rem)}
  html.fl-js .fl-desc{font-size:1.1rem}
  html.fl-js .fl-emp.is-on .fl-work li{animation:fl-work .5s var(--ease-out) both;animation-delay:calc(.45s + var(--i) * .55s)}
}
@keyframes fl-work{from{opacity:.25;box-shadow:inset 0 0 0 1px transparent}60%{box-shadow:inset 0 0 0 1px var(--fl-line)}to{opacity:1;box-shadow:inset 0 0 0 1px rgba(150,180,255,.2)}}

/* ---------- ACT III · orchestration + the gate ---------- */
.fl-orch{padding-bottom:clamp(40px,6vw,80px)}
.fl-orch > .wrap .section-head{margin-bottom:clamp(20px,3vw,36px)}
.fl-orch-pin > .wrap{display:grid;gap:clamp(20px,3vh,32px)}
.fl-orch-stage{position:relative;display:grid;gap:46px;justify-items:center}
.fl-o-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.fl-o-wires path{fill:none;stroke:rgba(150,180,255,.2);stroke-width:1.5}
.fl-o-wires path.lit{stroke:var(--fl-line);stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .8s var(--ease)}
.fl-o-wires path.lit.w4{stroke:var(--fl-ok)}
.fl-orch-track.s2 .w1,.fl-orch-track.s3 .w2,.fl-orch-track.s4 .w3,.fl-orch-track[data-state="approved"].s4 .w4{stroke-dashoffset:0}
.fl-o-col{position:relative;z-index:1;display:grid;gap:12px;width:100%;max-width:440px}
.fl-o-goal,.fl-o-hub,.fl-o-emp,.fl-o-gate,.fl-o-result{background:#0b1220;border:1px solid var(--line-2);border-radius:18px}
.fl-o-goal{padding:18px 20px;display:grid;gap:8px}
.fl-o-goal small,.fl-o-gate .who{font:400 .75rem/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--fl-line);margin:0}
.fl-o-goal b{font:600 1.2rem/1.25 var(--display);letter-spacing:-.01em}
.fl-o-hub{position:relative;justify-self:center;width:150px;padding:16px 14px;display:grid;justify-items:center;gap:6px;text-align:center}
.fl-o-hub img{width:76px;height:76px;border-radius:50%;object-fit:cover}
.fl-o-hub .fl-hub-ring{left:50%;top:16px;width:76px;margin-left:-38px;animation-play-state:paused}
.fl-orch-track.s2 .fl-hub-ring{animation-play-state:running}
.fl-o-hub b{font:600 1.05rem/1 var(--display)}
.fl-o-hub span{font-size:.8rem;color:var(--muted)}
.fl-o-emp{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px}
.fl-o-emp img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.fl-o-emp b{display:block;font:600 .95rem/1.2 var(--display)}
.fl-o-emp span{display:block;font-size:.84rem;color:var(--muted);line-height:1.3}
.fl-o-emp em{display:block;font:400 .75rem/1.3 var(--mono);font-style:normal;color:var(--dim);margin-top:3px}
.fl-o-st{font-style:normal;display:grid}
.fl-o-st i{grid-area:1/1;text-align:center;font:400 .75rem/1 var(--mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;padding:6px 8px;border-radius:999px;transition:opacity var(--fl-t2)}
.fl-o-st .w{color:var(--fl-wait);background:rgba(246,196,83,.1)}
.fl-o-st .d{color:var(--fl-ok);background:rgba(61,220,151,.1);opacity:0}
.fl-orch-track.s4 .fl-o-st .w{opacity:0}.fl-orch-track.s4 .fl-o-st .d{opacity:1}
.fl-o-gate{padding:clamp(18px,2.4vw,26px);display:grid;gap:12px;border-color:rgba(246,196,83,.5);background:linear-gradient(160deg,#151c2c,#0a0f1b)}
.fl-o-gate .what{font:600 clamp(1.3rem,2.2vw,1.6rem)/1.15 var(--display);letter-spacing:-.02em;margin:0}
.fl-o-gate .field{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.045);font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}
.fl-o-gate .field b{font:400 .75rem/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.fl-o-gate .risk{font:400 .78rem/1.4 var(--mono);color:var(--fl-wait);margin:0}
.fl-o-gate .actions{display:flex;flex-wrap:wrap;gap:8px}
.fl-o-gate .btn{min-height:44px;padding:0 20px}
.fl-o-gate .btn:active{transform:scale(.97)}
.fl-o-wait{margin:0;font-size:.86rem;color:var(--muted)}
.fl-orch-track[data-state="approved"] .fl-o-gate{border-color:rgba(61,220,151,.55)}
.fl-orch-track[data-state="refused"] .fl-o-gate{border-color:var(--line-2)}
.fl-orch-track:not([data-state="pending"]) :is(.actions,.fl-o-wait){display:none}
.fl-o-result{display:none;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;font-weight:600}
.fl-orch-track:not([data-state="pending"]) .fl-o-result{display:flex;animation:fl-pop var(--fl-t3) var(--ease-out) both}
.fl-o-result .ok,.fl-o-result .no{display:none;align-items:center;gap:10px}
.fl-orch-track[data-state="approved"] .fl-o-result{border-color:rgba(61,220,151,.5);color:var(--fl-ok)}
.fl-orch-track[data-state="approved"] .ok{display:inline-flex}
.fl-orch-track[data-state="refused"] .no{display:inline-flex;color:var(--muted)}
.fl-tick{width:18px;height:18px;border-radius:50%;background:var(--fl-ok);flex:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E");position:relative}
.fl-tick::after{content:"";position:absolute;left:5px;top:4px;width:5px;height:8px;border:solid #04060c;border-width:0 2px 2px 0;transform:rotate(45deg)}
@keyframes fl-pop{from{opacity:0;transform:translate3d(0,12px,0)}to{opacity:1;transform:none}}
.fl-orch-foot{display:grid;gap:6px;max-width:70ch}
.fl-orch-foot .eyebrow{margin:0}
.fl-orch-say{color:var(--muted);font-size:1.02rem;line-height:1.5;margin:0}
.fl-orch-say strong{color:var(--text);font:600 1.15rem/1.3 var(--display);display:block;margin-bottom:4px}
/* JS-driven steps */
html.fl-js .fl-orch-track :is(.fl-o-goal,.fl-o-hub,.fl-o-emp,.fl-o-gate){opacity:0;visibility:hidden;transform:translate3d(0,14px,0);transition:opacity var(--fl-t3) var(--ease-out),transform var(--fl-t3) var(--ease-out),border-color var(--fl-t2),visibility 0s linear var(--fl-t3)}
html.fl-js .fl-orch-track.s1 .fl-o-goal,html.fl-js .fl-orch-track.s2 .fl-o-hub,html.fl-js .fl-orch-track.s3 .fl-o-emp,html.fl-js .fl-orch-track.s4 .fl-o-gate{opacity:1;visibility:visible;transform:none;transition-delay:0s}
html.fl-js .fl-orch-track.s3 .fl-o-emp{transition-delay:calc(var(--k,0) * 110ms)}
.fl-o-wires path:not(.lit){opacity:.55}
.fl-o-emp[data-k="1"]{--k:1}.fl-o-emp[data-k="2"]{--k:2}
@media (min-width:1021px){
  .fl-orch-stage{grid-template-columns:180px 150px minmax(300px,1.12fr) minmax(290px,1fr);gap:clamp(28px,3.2vw,46px);align-items:center;justify-items:stretch}
  .fl-o-col{max-width:none}
}
@media (min-width:1021px) and (min-height:640px){
  html.fl-js .fl-orch-track{height:230vh}
  html.fl-js .fl-orch-pin{position:sticky;top:calc(var(--nav-h) + 20px);min-height:calc(100vh - var(--nav-h) - 40px);display:grid;align-content:center}
}

/* ---------- lit edge on result cards (uses, differences, deployment) ---------- */
:is(.fl-uses,.fl-diff,.fl-deploy) .cell{position:relative}
:is(.fl-uses,.fl-diff,.fl-deploy) .cell::before{content:"";position:absolute;left:24px;top:-1px;width:44px;height:2px;border-radius:2px;background:var(--fl-line);transform:scaleX(0);transform-origin:0 50%;transition:transform .9s var(--ease-out) calc(var(--d,0) * 70ms + .4s)}
:is(.fl-uses,.fl-diff,.fl-deploy) .cell.in::before,html:not(.apex-motion) :is(.fl-uses,.fl-diff,.fl-deploy) .cell::before{transform:scaleX(1)}

/* ---------- ACT V · the platform ---------- */
.fl-plat-frame{--fl-v:1;max-width:1040px;border:1px solid var(--line-2);border-radius:18px;overflow:hidden;background:#090e1a;box-shadow:var(--shadow);transform-origin:50% 100%;transform:perspective(1600px) rotateX(calc((1 - var(--fl-v)) * 14deg)) scale(calc(.93 + var(--fl-v) * .07))}
.fl-p-bar{display:flex;align-items:center;gap:7px;height:42px;padding:0 14px;background:#0d1424;border-bottom:1px solid var(--line)}
.fl-p-bar i{width:9px;height:9px;border-radius:50%;background:var(--surface-3)}
.fl-p-bar span{margin-inline:auto;font:400 .76rem/1 var(--mono);color:var(--muted);padding:7px 16px;border-radius:999px;background:rgba(255,255,255,.05)}
.fl-p-body{display:grid;min-height:330px}
.fl-p-nav{display:none}
.fl-p-main{padding:16px;min-width:0}
.fl-p-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.fl-p-tabs button{font:500 .86rem/1 var(--body);color:var(--muted);background:none;border:1px solid var(--line);border-radius:999px;padding:0 14px;min-height:40px;cursor:pointer;transition:background var(--fl-t1),color var(--fl-t1),border-color var(--fl-t1),transform var(--fl-t1)}
.fl-p-tabs button:hover{color:var(--text);border-color:var(--line-2)}
.fl-p-tabs button:active{transform:scale(.97)}
.fl-p-tabs button[aria-selected="true"]{color:#04060c;background:#fff;border-color:#fff}
.fl-p-pane{display:grid;gap:8px}
.fl-p-pane[hidden]{display:none}
.fl-p-pane:not([hidden]) .fl-p-row{animation:fl-pop var(--fl-t2) var(--ease-out) both}
.fl-p-pane:not([hidden]) .fl-p-row:nth-child(2){animation-delay:50ms}.fl-p-pane:not([hidden]) .fl-p-row:nth-child(3){animation-delay:100ms}.fl-p-pane:not([hidden]) .fl-p-row:nth-child(n+4){animation-delay:150ms}
.fl-p-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04)}
.fl-p-row > div{display:grid;gap:3px;min-width:0;flex:1}
.fl-p-row b{font:600 .96rem/1.25 var(--display)}
.fl-p-row span{font-size:.84rem;color:var(--muted);line-height:1.35}
.fl-p-row small{font:400 .75rem/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--fl-line)}
.fl-p-row img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.fl-p-row em{font:400 .75rem/1 var(--mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.fl-p-row em.badge{margin:0}
.fl-p-state i{display:none;font-style:normal;padding:6px 9px;border-radius:999px}
.fl-p-state .p{display:inline-block;color:var(--fl-wait);background:rgba(246,196,83,.1)}
.fl-p-state .a{color:var(--fl-ok);background:rgba(61,220,151,.1)}
.fl-p-state .r{color:var(--muted);background:rgba(255,255,255,.07)}
html[data-fl-gate="approved"] .fl-p-state .p,html[data-fl-gate="refused"] .fl-p-state .p{display:none}
html[data-fl-gate="approved"] .fl-p-state .a,html[data-fl-gate="refused"] .fl-p-state .r{display:inline-block}
.fl-plat-note{margin:14px 0 0;font:400 .78rem/1.4 var(--mono);color:var(--dim)}
.fl-plat .cta-row{margin-top:26px}
@media (min-width:760px){
  .fl-p-body{grid-template-columns:210px minmax(0,1fr)}
  .fl-p-nav{display:block;padding:12px 8px;border-right:1px solid var(--line)}
  .fl-p-nav li{padding:9px 12px;border-radius:9px;font-size:.86rem;color:var(--dim);transition:background var(--fl-t2),color var(--fl-t2)}
  .fl-p-nav li.on{color:var(--text);background:rgba(75,141,255,.16)}
  .fl-p-main{padding:20px}
}

/* ---------- ACT VI · the invitation ---------- */
.fl-final::after{content:"";position:absolute;left:50%;top:0;width:2px;margin-left:-1px;height:clamp(60px,9vw,120px);background:linear-gradient(180deg,rgba(43,212,240,0),var(--fl-line));border-radius:2px}
.fl-final-say{font:600 clamp(1.25rem,2.6vw,2.1rem)/1.2 var(--display);letter-spacing:-.02em;color:var(--muted);margin:0;display:grid;gap:2px}
.fl-final-say .fl-l:last-child{color:var(--text)}
html.fl-js .fl-final-say .fl-l > span{transform:translate3d(0,112%,0);transition:transform .95s var(--ease-out) calc(var(--i) * 140ms)}
html.fl-js .fl-final-say.fl-in .fl-l > span{transform:none}

/* ---------- the line: page progress ---------- */
.fl-rail{position:fixed;left:0;right:0;top:0;height:3px;z-index:70;pointer-events:none;--fl-f:0;--fl-g:1;--fl-w:0}
.fl-rail-track{position:absolute;inset:0;display:block}
.fl-rail-fill,.fl-rail-wait{position:absolute;left:0;top:0;height:100%;width:100%;transform-origin:0 50%}
.fl-rail-fill{background:var(--fl-line);transform:scaleX(var(--fl-f))}
.fl-rail-wait{left:calc(var(--fl-g) * 100%);width:calc((1 - var(--fl-g)) * 100%);background:repeating-linear-gradient(90deg,var(--fl-wait) 0 6px,transparent 6px 11px);transform:scaleX(var(--fl-w))}
.fl-rail ol{display:none}
@media (min-width:1440px) and (min-height:640px){
  .fl-rail{left:30px;right:auto;top:50%;width:150px;height:min(58vh,480px);translate:0 -50%;opacity:0;transition:opacity var(--fl-t3)}
  .fl-rail.is-live{opacity:1}
  .fl-rail-track{inset:0 auto 0 3px;width:2px;border-radius:2px;background:var(--line)}
  .fl-rail-fill,.fl-rail-wait{transform-origin:50% 0;border-radius:2px}
  .fl-rail-fill{transform:scaleY(var(--fl-f))}
  .fl-rail-wait{left:0;width:100%;top:calc(var(--fl-g) * 100%);height:calc((1 - var(--fl-g)) * 100%);background:repeating-linear-gradient(180deg,var(--fl-wait) 0 6px,transparent 6px 11px);transform:scaleY(var(--fl-w))}
  .fl-rail ol{display:block;position:absolute;inset:0}
  .fl-rail li{position:absolute;left:0;top:calc(var(--y) * 100%);translate:0 -50%}
  .fl-rail a{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:6px 0;text-decoration:none;font:400 .75rem/1 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--dim)}
  .fl-rail a::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 1.5px var(--line-2);transition:background var(--fl-t2),box-shadow var(--fl-t2),transform var(--fl-t2) var(--ease-out);flex:none}
  .fl-rail a span{opacity:0;transform:translateX(-4px);transition:opacity var(--fl-t2),transform var(--fl-t2) var(--ease-out)}
  .fl-rail li.done a::before{background:var(--fl-line);box-shadow:0 0 0 1.5px var(--fl-line)}
  .fl-rail li.on a{color:var(--text)}
  .fl-rail li.on a::before{transform:scale(1.35);box-shadow:0 0 0 1.5px var(--fl-line),0 0 0 6px rgba(43,212,240,.16)}
  .fl-rail li.on a span,.fl-rail a:hover span,.fl-rail a:focus-visible span{opacity:1;transform:none}
}

/* ---------- reduced motion: same page, no travel ---------- */
@media (prefers-reduced-motion:reduce){
  .fl-intro{display:none}
  .fl-hero h1 .fl-l > span,.fl-hub-ring,.fl-sig.on,.fl-p-pane:not([hidden]) .fl-p-row,html.fl-js .fl-emp.is-on .fl-work li,.fl-orch-track:not([data-state="pending"]) .fl-o-result{animation:none}
  .fl-sig{display:none}
  html.fl-js .fl-rv,html.fl-js .fl-final-say .fl-l > span{opacity:1;transform:none;transition:none}
  html.fl-js .fl-emp,html.fl-js .fl-emp.is-past,html.fl-js .fl-shot img{transform:none;transition:opacity var(--fl-t2)}
  html.fl-js .fl-orch-track :is(.fl-o-goal,.fl-o-hub,.fl-o-emp,.fl-o-gate){transform:none;transition:opacity var(--fl-t2)}
  .fl-o-wires path.lit{transition:none}
  .fl-plat-frame{transform:none}
  .fl-pain .pain::after,:is(.fl-uses,.fl-diff,.fl-deploy) .cell::before{transform:scaleX(1);transition:none}
}

/* the old stage layer adds its own top progress bar: the line replaces it here */
.scroll-prog{display:none}

/* homepage nav: eight links never wrap inside the pill */
header.site .navlinks a{white-space:nowrap}
@media (min-width:1181px){header.site .navbar{max-width:1180px}}

/* no JavaScript: no control is shown that cannot work */
html:not(.fl-js) .fl-o-gate .actions,html:not(.fl-js) .fl-o-wait,html:not(.fl-js) .fl-p-tabs{display:none}
html:not(.fl-js) .fl-p-pane[hidden]{display:grid;margin-top:8px}

/* ==========================================================================
   v3 · first-screen choreography for the hero text
   1 headline glint  2 the accent word flips to the other language and back
   3 the lede lights up word by word  4 a sheen crosses the main button
   5 a signal runs down the left edge, toward the rest of the page
   6 on scroll the headline lines part sideways and hand over to the page
   ========================================================================== */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .fl-hero h1 .fl-l > span:not(:has(.grad,.fl-flip)){background:linear-gradient(100deg,var(--text) 0 44%,#8ff0ff 50%,var(--text) 56% 100%) 0 0/300% 100% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;animation:fl-up .95s var(--ease-out) both,fl-glint 1.5s var(--ease) both;animation-delay:calc(var(--fl-d0) + var(--i) * 90ms),calc(var(--fl-d0) + .75s + var(--i) * 140ms)}
}
@keyframes fl-glint{from{background-position:100% 0}to{background-position:0 0}}
.fl-flip{display:inline-grid;vertical-align:bottom;overflow:hidden;padding-bottom:.14em;margin-bottom:-.14em}
.fl-flip > span{grid-area:1/1;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;transition:transform .7s var(--ease-out),opacity .45s;white-space:nowrap}
.fl-flip > .b{transform:translate3d(0,115%,0);opacity:0}
.fl-flip.is-alt > .a{transform:translate3d(0,-115%,0);opacity:0}
.fl-flip.is-alt > .b{transform:none;opacity:1}
html.fl-js .fl-hero .lede .fl-w{animation:fl-read .6s var(--ease-out) both;animation-delay:calc(var(--fl-d0) + .55s + var(--w) * 24ms)}
@keyframes fl-read{from{opacity:.28}to{opacity:1}}
.fl-hero .cta-row .btn-primary{position:relative;overflow:hidden}
.fl-hero .cta-row .btn-primary::after{content:"";position:absolute;top:0;bottom:0;left:0;width:42%;background:linear-gradient(100deg,rgba(43,212,240,0),rgba(43,212,240,.5),rgba(43,212,240,0));transform:translate3d(-130%,0,0) skewX(-18deg);animation:fl-sheen 1.1s var(--ease) calc(var(--fl-d0) + 1.9s) 2 both;pointer-events:none}
@keyframes fl-sheen{to{transform:translate3d(330%,0,0) skewX(-18deg)}}
.fl-hero .cta-row .btn:active{transform:scale(.97)}
.fl-gut{position:absolute;left:7px;top:calc(var(--nav-h) + 34px);bottom:0;width:2px;overflow:hidden;border-radius:2px;background:linear-gradient(180deg,rgba(43,212,240,0),rgba(43,212,240,.3) 14%,rgba(43,212,240,.3));pointer-events:none}
.fl-gut i{position:absolute;left:0;top:-110px;width:100%;height:110px;background:linear-gradient(180deg,rgba(43,212,240,0),#8ff0ff);animation:fl-gut 3.2s cubic-bezier(.5,0,.6,1) calc(var(--fl-d0) + 1.2s) infinite}
@keyframes fl-gut{0%{transform:translate3d(0,0,0)}72%,100%{transform:translate3d(0,calc(100svh + 120px),0)}}
html.fl-paused .fl-gut i,html.fl-hero-off .fl-gut i{animation-play-state:paused}
@media (min-width:1440px) and (min-height:640px){.fl-gut{display:none}}
.fl-hero h1 .fl-l{--dir:-1;transform:translate3d(calc(var(--fl-hp,0) * var(--dir) * 52px),0,0);opacity:calc(1 - var(--fl-hp,0) * .92)}
.fl-hero h1 .fl-l:nth-child(even){--dir:1}
@media (prefers-reduced-motion:reduce){
  .fl-hero h1 .fl-l > span:not(:has(.grad,.fl-flip)){animation:none;background-position:0 0}
  .fl-flip > span{transition:none}
  html.fl-js .fl-hero .lede .fl-w,.fl-gut i{animation:none}
  .fl-hero .cta-row .btn-primary::after,.fl-gut i{display:none}
  .fl-hero h1 .fl-l{transform:none;opacity:1}
}
