.bs-system{--system-accent:#a84b2e;--step-bg:#fafaf9;padding:70px 0 115px;color:#202427;background:#fafaf9}
html.scroll-theme-enabled .bs-system{--system-accent:#ff956b;--step-bg:#222;background:transparent;color:var(--chapter-ink)}
html.scroll-theme-enabled body.theme-light .bs-system{--system-accent:#a84b2e;--step-bg:#fafaf9}
.bs-system-intro{max-width:1050px;margin-bottom:80px}
.bs-system-eyebrow{font-size:13px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase;margin:0 0 34px;color:var(--chapter-muted,#687076)}
.bs-system h2{font-size:clamp(36px,4.2vw,64px);line-height:1.13;letter-spacing:-2.4px;font-weight:600;margin:0 0 34px}
.bs-system h2 span{color:var(--system-accent)}
.bs-system-lead{font-size:20px;line-height:1.8;max-width:820px;margin:0;color:var(--chapter-muted,#687076)}
.bs-system-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;align-items:stretch}
.bs-system-step{position:relative;min-width:0;padding:0 30px 0 0}
.bs-system-step:last-child{padding-right:0}
.bs-system-step:not(:last-child)::before{content:"";position:absolute;top:22px;left:22px;width:100%;height:1px;background:var(--system-accent);opacity:.45}
.bs-step-number{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:27px;border:1px solid var(--system-accent);border-radius:50%;background:var(--step-bg);color:var(--system-accent);font-size:14px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.bs-system-brand{font-size:10px;letter-spacing:.7px;margin:0 0 12px;color:var(--chapter-muted,#687076)}
.bs-system-brand strong{font-weight:800}
.bs-system h3{color:var(--system-accent);font-size:clamp(27px,2.5vw,36px);font-weight:600;letter-spacing:-1px;line-height:1.2;margin:0 0 21px}
.bs-system-copy{font-size:16px;line-height:1.75;margin:0;color:var(--chapter-muted,#687076)}
@media(max-width:1050px){.bs-system-intro{margin-bottom:55px}.bs-system-grid{grid-template-columns:1fr}.bs-system-step,.bs-system-step:last-child{padding:0 0 40px 72px}.bs-system-step:last-child{padding-bottom:0}.bs-system-step:not(:last-child)::before{top:22px;left:22px;width:1px;height:100%}.bs-step-number{position:absolute;top:0;left:0;margin:0}.bs-system-copy{max-width:650px}.bs-system-brand{padding-top:3px}.bs-system h3{font-size:32px}}
@media(max-width:760px){.bs-system{padding:50px 0 70px}.bs-system h2{font-size:clamp(32px,7.6vw,45px);letter-spacing:-1.2px;margin-bottom:25px}.bs-system-eyebrow{font-size:11px;margin-bottom:25px}.bs-system-lead{font-size:17px;line-height:1.75}.bs-system-intro{margin-bottom:42px}.bs-system-brand{margin-bottom:9px}.bs-system h3{font-size:31px;margin-bottom:16px}.bs-system-copy{font-size:17px}.bs-system-step,.bs-system-step:last-child{padding-left:62px}}
html.theme-transition-ready .bs-system,html.theme-transition-ready .bs-system :is(h2,h2 span,h3,p,.bs-system-grid,.bs-system-step,.bs-step-number){transition:color .65s ease,border-color .65s ease,background-color .65s ease}
html.theme-transition-ready .bs-system-step::before{transition:background-color .65s ease}
/* Progress is driven directly by scroll position, including reverse scrolling. */
html.bs-system-motion .bs-flow-track{height:var(--flow-height);padding-bottom:0}
html.bs-system-motion .bs-flow-pin{position:sticky;top:var(--flow-top,132px)}
html.bs-system-motion #system .bs-system-step>*{opacity:var(--step-progress,0);transform:translateY(var(--step-offset,24px));transition:color .65s ease,border-color .65s ease,background-color .65s ease}
/* Later steps fade into place without vertical movement. */
html.bs-system-motion #system .bs-system-step:nth-child(n+2)>*{transform:none}
html.bs-system-motion .bs-system-step::before{transform:scaleX(var(--line-progress,0));transform-origin:left center;transition:background-color .65s ease}
@media(max-width:1050px){html.bs-system-motion .bs-flow-track{height:auto;padding-bottom:0}html.bs-system-motion .bs-flow-pin{position:static}html.bs-system-motion .bs-system-step::before{transform:scaleY(var(--line-progress,0));transform-origin:center top}}
@media(prefers-reduced-motion:reduce){html.bs-system-motion .bs-flow-track{height:auto;padding-bottom:0}html.bs-system-motion .bs-flow-pin{position:static}html.bs-system-motion #system .bs-system-step>*,html.bs-system-motion .bs-system-step::before{opacity:1;transform:none;transition:none}}
/* Connect circle edges; a clipped highlight travels along revealed segments. */
.bs-system-step:not(:last-child)::before{height:2px;top:21px;left:44px;width:calc(100% - 44px);border-radius:2px;background:linear-gradient(90deg,#ff956b80,#ffb793,#ff956b80);opacity:.76;box-shadow:0 0 5px #ff956b50,0 0 13px #ff956b20}
.bs-system-step:not(:last-child)::after{content:"";position:absolute;pointer-events:none;top:21px;left:44px;width:calc(100% - 44px);height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ffad78 25%,#fff1dc 50%,#ffb785 75%,transparent);background-size:var(--pulse-width,140px) 100%;background-position:var(--pulse-position,-200px) 0;background-repeat:no-repeat;clip-path:inset(0 calc((1 - var(--line-progress,1))*100%) 0 0);opacity:var(--pulse-active,0)}
.bs-step-number{background:radial-gradient(circle at 35% 30%,#ff956b12,transparent 75%),var(--step-bg);box-shadow:inset 0 0 10px #ff956b09,0 0 15px #ff956b12}
@media(max-width:1050px){.bs-system-step:not(:last-child)::before,.bs-system-step:not(:last-child)::after{top:44px;left:21px;width:2px;height:calc(100% - 44px)}.bs-system-step:not(:last-child)::before{background:linear-gradient(180deg,#ff956b80,#ffb793,#ff956b80)}.bs-system-step:not(:last-child)::after{background-image:linear-gradient(180deg,transparent,#ffad78 25%,#fff1dc 50%,#ffb785 75%,transparent);background-size:100% var(--pulse-width,140px);background-position:0 var(--pulse-position,-200px);clip-path:inset(0 0 calc((1 - var(--line-progress,1))*100%) 0)}}
@media(prefers-reduced-motion:reduce){.bs-system-step:not(:last-child)::after{display:none;animation:none}}
/* Keep the complete chapter in view throughout the pinned desktop sequence. */
@media(min-width:1051px){.bs-flow-compact .bs-system-intro{margin-bottom:32px}.bs-flow-compact .bs-system-eyebrow{margin-bottom:16px}.bs-flow-compact h2{font-size:clamp(36px,3.5vw,50px);margin-bottom:20px}.bs-flow-compact .bs-system-lead{font-size:18px;line-height:1.65}}

/* Circle glow and beam share one measured position and one animation clock. */
html #system .bs-step-number{transition:none;border-color:color-mix(in srgb,#ffad788c,#ffe0bf calc(var(--node-light,0)*100%));color:color-mix(in srgb,var(--system-accent),#fff1dc calc(var(--node-light,0)*100%));box-shadow:inset 0 0 12px rgb(255 173 120 / calc(.07 + var(--node-light,0)*.12)),0 0 9px rgb(255 173 120 / calc(.12 + var(--node-light,0)*.32)),0 0 22px rgb(255 149 107 / calc(var(--node-light,0)*.2))}
