/* Home page, option B (preview): a deep-navy hero with a living pipeline diagram, then a scroll-driven journey. */
body.hb-page{background:#f6f1e8}

/* ---- Hero ---- */
body.hb-page .hb-hero{position:relative;isolation:isolate;overflow:hidden;background:#06101f;color:#f8fafc}
body.hb-page .hb-hero::before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(900px 520px at 78% 40%,rgba(23,165,173,.22),transparent 60%),radial-gradient(700px 480px at 8% 12%,rgba(242,96,81,.18),transparent 55%),linear-gradient(180deg,#06101f 0%,#0a1c33 100%)}
body.hb-page .hb-hero::after{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at 70% 45%,#000 20%,transparent 72%);mask-image:radial-gradient(ellipse at 70% 45%,#000 20%,transparent 72%)}
body.hb-page .hb-hero.diagnostic-hero{display:flex;align-items:center;grid-template-columns:none;padding-block:clamp(110px,14vh,150px) clamp(48px,7vh,80px)}
.hb-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,4vw,64px);align-items:center;width:min(1160px,calc(100% - 32px));margin-inline:auto}
body.hb-page .hb-hero .diagnostic-kicker{color:#f6d73f}
body.hb-page .hb-hero h1{max-width:15ch;color:#fff}
body.hb-page .hb-hero .diagnostic-hero-copy{color:rgba(226,232,240,.82)}
.hb-stats{display:flex;flex-wrap:wrap;gap:10px 26px;margin:28px 0 0;padding:0;list-style:none}
.hb-stats li{display:grid;gap:2px}.hb-stats strong{color:#f6d73f;font-size:.86rem;letter-spacing:.04em}.hb-stats span{color:rgba(226,232,240,.7);font-size:.78rem}

/* the living diagram */
.hb-diagram{position:relative;width:100%;max-width:640px;margin-inline:auto;filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}
.hb-diagram svg{display:block;width:100%;height:auto;overflow:visible}
.hb-diagram text{font-family:Lato,system-ui,sans-serif;fill:#e8eef6}
.hb-node rect{fill:rgba(255,255,255,.07);stroke:rgba(255,255,255,.22);stroke-width:1.2}
.hb-node .t{font-size:13px;font-weight:700}.hb-node .s{font-size:10.5px;fill:#9fb2c8}
.hb-node .dot{fill:#17a5ad}
.hb-line{fill:none;stroke:rgba(255,255,255,.28);stroke-width:1.6;stroke-dasharray:var(--len,260);stroke-dashoffset:var(--len,260);animation:hb-draw 1.5s cubic-bezier(.3,.7,.2,1) forwards}
.hb-line.l2{animation-delay:.2s}.hb-line.l3{animation-delay:.4s}.hb-line.out{animation-delay:1s;stroke:rgba(246,215,63,.55)}
.hb-gate-ring{fill:none;stroke:#17a5ad;stroke-width:1.4;opacity:.7;transform-origin:center;transform-box:fill-box;animation:hb-pulse 3.2s ease-out infinite}
.hb-gate-ring.r2{animation-delay:1.6s}
.hb-gate rect{fill:#0d2540;stroke:#17a5ad;stroke-width:1.6}
.hb-gate path{fill:none;stroke:#f6d73f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.hb-report rect.card{fill:#fffdf8;stroke:rgba(255,255,255,.4)}
.hb-report .title{fill:#071426;font-size:11px;font-weight:800;letter-spacing:.05em}
.hb-report .bar{transform-origin:bottom;transform-box:fill-box;animation:hb-bar 4.2s ease-in-out infinite alternate}
.hb-report .bar.b2{animation-delay:.5s}.hb-report .bar.b3{animation-delay:1s}.hb-report .bar.b4{animation-delay:1.5s}
.hb-pkt{fill:#f6d73f}
.hb-fade{opacity:0;animation:hb-in .8s ease forwards}
.hb-fade.d1{animation-delay:.1s}.hb-fade.d2{animation-delay:.5s}.hb-fade.d3{animation-delay:.9s}.hb-fade.d4{animation-delay:1.4s}
@keyframes hb-draw{to{stroke-dashoffset:0}}
@keyframes hb-pulse{0%{transform:scale(.8);opacity:.7}100%{transform:scale(1.55);opacity:0}}
@keyframes hb-bar{from{transform:scaleY(.55)}to{transform:scaleY(1)}}
@keyframes hb-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:900px){.hb-hero-grid{grid-template-columns:1fr}.hb-diagram{max-width:520px}}

/* ---- Journey ---- */
.hb-journey{position:relative;background:#06101f;color:#f8fafc;padding:clamp(64px,8vw,110px) 0}
.hb-journey::before{content:"";position:absolute;inset:0;background:radial-gradient(800px 480px at 15% 20%,rgba(124,106,230,.16),transparent 60%),radial-gradient(800px 480px at 90% 80%,rgba(23,165,173,.14),transparent 60%);pointer-events:none}
.hb-journey .hb-wrap{position:relative;width:min(1160px,calc(100% - 32px));margin-inline:auto}
.hb-journey-head{max-width:720px;margin-bottom:clamp(36px,5vw,64px)}
.hb-journey-head .diagnostic-kicker{color:#f6d73f}
.hb-journey-head h2{margin:10px 0 14px;color:#fff;font-size:clamp(2rem,4vw,3.1rem);line-height:1.05;letter-spacing:-.03em}
.hb-journey-head p{margin:0;color:rgba(226,232,240,.78);font-size:1.05rem;line-height:1.7}
.hb-journey-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,80px);align-items:start}

/* sticky stage */
.hb-stage{position:sticky;top:96px;display:grid;gap:22px;align-self:start;min-height:min(560px,calc(100vh - 140px))}
.hb-stage-card{position:relative;overflow:hidden;display:grid;align-content:space-between;min-height:min(440px,60vh);padding:clamp(24px,3vw,36px);border:1px solid rgba(255,255,255,.14);border-radius:26px;background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.02));box-shadow:0 30px 80px rgba(0,0,0,.35)}
.hb-stage-card::before{content:"";position:absolute;inset:-30% -20% auto auto;width:70%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,var(--accent,#f6d73f),transparent 68%);opacity:.22;transition:background .6s ease,opacity .6s ease;pointer-events:none}
.hb-stage-panel{position:absolute;inset:0;display:grid;align-content:space-between;padding:clamp(24px,3vw,36px);opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.72,.2,1);pointer-events:none}
.hb-stage-panel.is-active{opacity:1;transform:none;pointer-events:auto}
.hb-stage-n{display:flex;align-items:center;gap:12px;color:rgba(226,232,240,.7);font-size:.78rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.hb-stage-n b{color:var(--accent);font-size:1.1rem;letter-spacing:.06em}
.hb-stage-icon{display:grid;place-items:center;width:84px;height:84px;border-radius:24px;background:var(--accent);color:#071426;font-size:2rem;box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 18%,transparent),0 20px 50px color-mix(in srgb,var(--accent) 38%,transparent)}
.hb-stage-word{margin:0;color:#fff;font-family:"Bricolage Grotesque",sans-serif;font-size:clamp(2.6rem,5vw,4.4rem);font-weight:600;line-height:.95;letter-spacing:-.04em}
.hb-stage-tag{margin:10px 0 0;color:rgba(226,232,240,.78);font-size:1rem;line-height:1.5;max-width:30ch}
.hb-rail{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:0;padding-top:8px}
.hb-rail::before,.hb-rail::after{content:"";position:absolute;top:19px;left:calc(100% / 12);height:2px;border-radius:2px}
.hb-rail::before{right:calc(100% / 12);background:rgba(255,255,255,.16)}
.hb-rail::after{width:calc((100% - 100% / 6) * var(--hb-progress,0));background:linear-gradient(90deg,#f6d73f,#17a5ad)}
.hb-rail button{position:relative;display:grid;justify-items:center;gap:8px;padding:0;border:0;background:none;color:rgba(226,232,240,.55);font:inherit;font-size:.66rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.hb-rail i{display:grid;place-items:center;width:24px;height:24px;border:2px solid rgba(255,255,255,.28);border-radius:50%;background:#0a1c33;font-style:normal;font-size:.6rem;transition:transform .35s ease,background .3s ease,border-color .3s ease,color .3s}
.hb-rail button.is-done i{border-color:#17a5ad;color:#17a5ad}
.hb-rail button.is-active{color:#fff}.hb-rail button.is-active i{transform:scale(1.35);border-color:var(--accent);background:var(--accent);color:#071426}

/* the scrolling steps */
.hb-steps{display:grid;gap:0}
.hb-step{display:grid;align-content:center;min-height:min(78vh,640px);padding:clamp(18px,3vw,36px) 0;opacity:.45;transform:translateX(10px);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.72,.2,1)}
.hb-step.is-active{opacity:1;transform:none}
.hb-step-n{display:flex;align-items:center;gap:10px;color:var(--accent);font-size:.78rem;font-weight:850;letter-spacing:.16em;text-transform:uppercase}
.hb-step-n::before{content:"";width:28px;height:2px;background:var(--accent)}
.hb-step h3{margin:14px 0 12px;color:#fff;font-size:clamp(1.6rem,2.8vw,2.3rem);line-height:1.1;letter-spacing:-.025em}
.hb-step>p{margin:0;max-width:52ch;color:rgba(226,232,240,.8);line-height:1.72}
.hb-step ul{display:grid;gap:10px;margin:20px 0 0;padding:0;list-style:none}
.hb-step li{display:grid;grid-template-columns:22px 1fr;gap:10px;color:rgba(248,250,252,.92);font-size:.95rem;line-height:1.5}
.hb-step li::before{content:"";width:8px;height:8px;margin:7px 0 0 6px;border-radius:50%;background:var(--accent)}
.hb-step-link{display:inline-flex;align-items:center;gap:10px;width:fit-content;margin-top:26px;padding:12px 18px;border:1px solid color-mix(in srgb,var(--accent) 60%,transparent);border-radius:12px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:#fff;font-weight:850;transition:transform .3s cubic-bezier(.2,.72,.2,1),background .25s ease}
.hb-step-link:hover,.hb-step-link:focus-visible{transform:translateX(5px);background:color-mix(in srgb,var(--accent) 28%,transparent)}
.hb-step[data-step="1"],.hb-stage-panel[data-step="1"]{--accent:#f6d73f}
.hb-step[data-step="2"],.hb-stage-panel[data-step="2"]{--accent:#f26051}
.hb-step[data-step="3"],.hb-stage-panel[data-step="3"]{--accent:#17a5ad}
.hb-step[data-step="4"],.hb-stage-panel[data-step="4"]{--accent:#9b8cf0}
.hb-step[data-step="5"],.hb-stage-panel[data-step="5"]{--accent:#2dc08a}
.hb-step[data-step="6"],.hb-stage-panel[data-step="6"]{--accent:#e8629a}

/* small screens: a simple stack, no sticky stage */
@media(max-width:900px){
  .hb-journey-grid{grid-template-columns:1fr}
  .hb-stage{display:none}
  .hb-step,.hb-step.is-active{min-height:0;opacity:1;transform:none;margin-bottom:18px;padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:20px;background:rgba(255,255,255,.05)}
}
@media(prefers-reduced-motion:reduce){
  .hb-line{animation:none;stroke-dashoffset:0}.hb-gate-ring,.hb-report .bar,.hb-fade{animation:none!important;opacity:1}
  .hb-pkt{display:none}
  .hb-stage-panel,.hb-step,.hb-step-link,.hb-rail i{transition:none!important}
}

/* the shared light theme forces dark text on headings and paragraphs; this section is dark */
body.hb-page .hb-journey h2,body.hb-page .hb-journey h3{color:#fff!important}
body.hb-page .hb-journey .hb-stage-word{color:#fff!important}
body.hb-page .hb-journey .hb-journey-head p,body.hb-page .hb-journey .hb-step>p{color:rgba(226,232,240,.82)!important}
body.hb-page .hb-journey .hb-step li{color:rgba(248,250,252,.94)!important}
body.hb-page .hb-journey .hb-stage-tag{color:rgba(226,232,240,.8)!important}
body.hb-page .hb-journey .hb-step-link{color:#fff!important}
body.hb-page .hb-hero h1{color:#fff!important}
body.hb-page .hb-hero .diagnostic-hero-copy{color:rgba(226,232,240,.84)!important}
body.hb-page .hb-journey .hb-stage-word{font-size:clamp(2.6rem,5vw,4.4rem)!important;font-weight:600!important;line-height:.95!important;letter-spacing:-.04em!important}
body.hb-page .hb-journey .hb-step h3{font-size:clamp(1.6rem,2.8vw,2.3rem)!important;font-weight:560!important;line-height:1.1!important;letter-spacing:-.025em!important}

/* progress rail: the line runs behind the dots, never through the numbers */
.hb-rail::before,.hb-rail::after{z-index:0}
.hb-rail::after{transition:width .6s cubic-bezier(.2,.72,.2,1)}
.hb-rail button{z-index:1}
.hb-rail i{position:relative;z-index:1;width:26px;height:26px;background:#0a1c33;color:rgba(226,232,240,.75);font-weight:800;font-size:.68rem}
.hb-rail button.is-done i{border-color:#17a5ad;background:#17a5ad;color:#06101f}
.hb-rail button.is-active i{box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 22%,transparent)}
.hb-rail::before,.hb-rail::after{top:20px}

/* the sections under the journey keep the 1160px column on any screen width */
body.hb-page .hb-main>.diagnostic-shell{width:min(1160px,calc(100% - 32px))!important;max-width:1160px;margin-inline:auto!important}
body.hb-page .home-closing-band{max-width:100%}

/* phones: the two-row nav is taller, so push the hero copy below it */
@media(max-width:680px){body.hb-page .hb-hero.diagnostic-hero{padding-top:176px}}

body.hb-page .hb-hero .hb-hero-aside{margin:18px 0 0;color:rgba(226,232,240,.86)!important;font-size:.95rem}
body.hb-page .hb-hero .hb-hero-aside a{color:#f6d73f;font-weight:800;text-decoration:underline;text-underline-offset:4px}
