/* QFS: an original, scroll-drawn connection between games, services and studio. */
#main.has-scroll-thread{position:relative;isolation:isolate}
/* Give the enclosing oval room, keeping the original typography and material. */
.has-scroll-thread #studio .forge-type-stage{width:84%;margin-inline:auto;margin-block:var(--thread-oval-space,135px)}
@media(max-width:860px){.has-scroll-thread #studio .forge-type-stage{width:82%;margin-block:var(--thread-oval-space,110px)}}
.scroll-thread{position:absolute;left:0;width:100%;z-index:3;pointer-events:none;user-select:none;overflow:clip;contain:layout style}
.scroll-thread svg{display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
.scroll-thread path{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;vector-effect:non-scaling-stroke}
.thread-color{stroke:url(#qfs-thread-color);stroke-width:18}
/* Section backgrounds paint first, then the line, then the actual content.
   Transparent wrappers never erase the line inside their empty rectangles. */
.has-scroll-thread>:is(#games,#services,#studio){isolation:auto;z-index:auto}
.has-scroll-thread>.principles,
.has-scroll-thread #games :is(.chapter-heading,.project-stage,.game-index),
.has-scroll-thread #services :is(.chapter-heading,.service-panel,.service-choices,.services-foot),
.has-scroll-thread #studio :is(.forge-topline,.forge-type-stage,.forge-description,.forge-approach){position:relative;z-index:4}
/* A tiny contour follows the glyphs, never the paragraph's rectangle. It keeps
   small copy legible if the responsive curve happens to pass behind letters. */
.has-scroll-thread #games .chapter-lead>p{--thread-copy-bg:#F5F2EF}
.has-scroll-thread #services :is(.chapter-lead>p,.services-foot>p){--thread-copy-bg:#19141D}
.has-scroll-thread :is(#games,#services) :is(.chapter-lead>p,.services-foot>p){text-shadow:1px 0 var(--thread-copy-bg),-1px 0 var(--thread-copy-bg),0 1px var(--thread-copy-bg),0 -1px var(--thread-copy-bg)}
@media(max-width:860px){.thread-color{stroke-width:12}}
@media(prefers-reduced-motion:reduce){.scroll-thread{opacity:.75}}
@media print{.scroll-thread{opacity:.75}.scroll-thread path{stroke-dashoffset:0!important}}
