/* Home: one business, continuously evolving.
   The story text scrolls normally on the left; the same business ecosystem stays in view on the right
   and changes state with scroll position (see home-flow.js). Reuses the .hs story frame, .hs-card and
   .hs-h typography from home-story.css, and the white-tile language of the integration diagrams. */
.hf{position:relative;color:#fff;isolation:isolate;
  background:radial-gradient(90% 70% at 15% 25%,#5A52F0 0%,transparent 60%),radial-gradient(80% 70% at 90% 85%,#3A2FD0 0%,transparent 65%),linear-gradient(160deg,var(--violet-deep) 0%,#1E1690 55%,var(--violet-ink) 100%);
  background-attachment:fixed}
.hf-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(32px,5vw,80px);align-items:start}

/* Narrative: ordinary scrolling text, one beat per block */
.hf-steps{list-style:none;margin:0;padding:0}
.hf-step{min-height:86vh;display:flex;align-items:center;padding:8vh 0}
.hf-step:first-child{min-height:calc(100vh - var(--header-h));padding-top:calc(var(--header-h) + 4vh)}
.hf-step:last-child{min-height:100vh}
.hf-cap .hs-h{transition:opacity .5s}
.js .hf-step:not(.on) .hs-h{opacity:.32}
.hf-cap .hs-cta{margin-top:28px}

/* The visual stays put while the story moves past it */
.hf-vis{position:relative;height:100%}
.hf-sticky{position:sticky;top:0;height:100vh;height:100svh;display:flex;align-items:center;padding-top:calc(var(--header-h) * .6)}
.hf-card{width:100%}
.hf-art{aspect-ratio:4/3;background:var(--paper)!important}
.hf-dots{position:absolute;right:calc(-1 * clamp(18px,2.6vw,40px));top:50%;transform:translateY(-50%)}

/* Ecosystem drawing */
.hf-eco{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.hf-card-r{fill:#fff;stroke:var(--line);stroke-width:1}
.hf-t{font-family:var(--sans);font-weight:700;font-size:15px;fill:var(--violet-ink)}
.hf-ts{font-size:13px}
.hf-tm{font-family:var(--mono);font-weight:500;font-size:12px;letter-spacing:.12em;text-transform:uppercase;fill:var(--muted)}
.hf-row{fill:#E3E1EE}
.hf-tidy{fill:none;stroke:var(--violet);stroke-width:2.5;stroke-linecap:round}
.hf-man{fill:none;stroke:var(--coral);stroke-width:2;stroke-linecap:round;stroke-dasharray:5 7}
.hf-stack{fill:#fff;stroke:var(--line);stroke-width:1}
.hf-gbar{fill:var(--violet)}
.hf-gbar[data-i="5"],.hf-gbar[data-i="4"]{fill:var(--violet-deep)}
.hf-hand{transform-box:view-box}
.hf-eco *{vector-effect:non-scaling-stroke}
.hf-eco text{vector-effect:none}

/* Legacy scenes for beats 4 to 9 sit in the same card until phase 4 */
.hf .hs-sc{transition:opacity .45s,transform .6s var(--ease-out)}

@media (max-width:900px){
  .hf{background-attachment:scroll}
  .hf-grid{grid-template-columns:1fr;gap:0}
  .hf-vis{order:-1;position:sticky;top:var(--header-h);z-index:2;height:auto;margin:0 calc(-1 * var(--gutter));padding:10px var(--gutter) 14px;
    background:linear-gradient(180deg,#1E1690 0%,#1E1690 82%,rgba(30,22,144,0) 100%)}
  .hf-sticky{position:relative;height:auto;padding:0;display:block}
  .hf-vis{transition:top .35s var(--ease-out)}
  body.header-hidden .hf-vis{top:0}
  .hf-card{max-width:520px;margin:0 auto;padding:8px;border-radius:20px}
  .hf-dots{display:none}
  .hf-step,.hf-step:first-child{min-height:62vh;padding:6vh 0;align-items:flex-start}
  .hf-step:last-child{min-height:70vh}
  .hf-cap .hs-h{font-size:clamp(26px,7vw,38px)}
}
@media (max-width:560px){
  .hf-bub,.hf-growth{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hf{background-attachment:scroll}
  .hf-cap .hs-h,.hf .hs-sc{transition:none}
}

/* ---- Homepage buttons on dark and violet backgrounds (homepage only) ----
   Primary: yellow with dark text. Secondary: transparent, white text, clearly visible light border. */
.hf .btn.ghost,.hm-cta .btn.ghost{--fg:#fff;color:#fff;background:transparent;border-color:rgba(255,255,255,.72)}
.hf .btn.ghost:hover,.hm-cta .btn.ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.hf .btn.yellow,.hm-cta .btn.yellow,.hero .btn.yellow{--fg:var(--ink);color:var(--ink)}
.hf .btn:focus-visible,.hm-cta .btn:focus-visible,.hero .btn:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.hf .btn.yellow:focus-visible,.hm-cta .btn.yellow:focus-visible,.hero .btn.yellow:focus-visible{outline-color:#fff}

/* ---- Outcome cards: informational, so no hover lift or pointer ---- */
.oc-card.oc-static{cursor:default}
.oc-card.oc-static:hover{transform:none;box-shadow:none;border-color:var(--line)}
.oc-card.oc-static p{margin-bottom:6px}
.three .three-grid{margin-bottom:0}
.three .mt-m{margin-top:clamp(24px,3vw,36px)}

/* ---- Booking CTA band (moved out of the footer so the newsletter can follow it) ---- */
.site-footer.hm-cta{padding:clamp(40px,4.5vw,64px) 0}
.hm-cta + .nl + .site-footer{padding-top:clamp(36px,4vw,56px)}

/* Final beat: the M sits still at the centre; the arrows turn and the bars grow with scroll (home-flow.js) */
.hf .hs-s9 .hrot,.hf .hs-s9.on .hrot{animation:none}
.hf .hs-s9 .hb,.hf .hs-s9.on .hb{animation:none}
.hf.hf-ready .hs-s9 .hb{transform:scaleY(var(--g,1))}
.hf .hs-s9 .hrot{transform:rotate(var(--turn,0deg));transition:none}
.hf-step{min-height:74vh;padding:6vh 0}
